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 : 2477720 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 (2764642) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2764642) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454771 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2764642'] with mtr_portfolio_ids : ['22454771'] and first list_photo_ids : [] new path : /proc/2477720/ Name: python3 Umask: 0002 State: R (running) Tgid: 2477720 Ngid: 0 Pid: 2477720 PPid: 2477719 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2477720 NSpid: 2477720 NSpgid: 2467127 NSsid: 2467127 VmPeak: 1107208 kB VmSize: 1107208 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99084 kB VmRSS: 99072 kB RssAnon: 60180 kB RssFile: 38892 kB RssShmem: 0 kB VmData: 865956 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 125 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2477720', 'Ngid': '0', 'Pid': '2477720', 'PPid': '2477719', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2477720', 'NSpid': '2477720', 'NSpgid': '2467127', 'NSsid': '2467127', 'VmPeak': '1107208 kB', 'VmSize': '1107208 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99084 kB', 'VmRSS': '99072 kB', 'RssAnon': '60180 kB', 'RssFile': '38892 kB', 'RssShmem': '0 kB', 'VmData': '865956 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '125', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '2477720', '1107208', '0', '1107208', '865956', '99072', b'', 'marlene', '2764642') 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 (22454771) 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 (2764642 ) ) 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 (22454771) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353936768, 'portfolio_id': 22454771}, {'photo_id': 1353936676, 'portfolio_id': 22454771}, {'photo_id': 1353936673, 'portfolio_id': 22454771}, {'photo_id': 1353936670, 'portfolio_id': 22454771}, {'photo_id': 1353936667, 'portfolio_id': 22454771}, {'photo_id': 1353936663, 'portfolio_id': 22454771}, {'photo_id': 1353936657, 'portfolio_id': 22454771}, {'photo_id': 1353936584, 'portfolio_id': 22454771}, {'photo_id': 1353936555, 'portfolio_id': 22454771}, {'photo_id': 1353936527, 'portfolio_id': 22454771}, {'photo_id': 1353936497, 'portfolio_id': 22454771}, {'photo_id': 1353936112, 'portfolio_id': 22454771}, {'photo_id': 1353936082, 'portfolio_id': 22454771}, {'photo_id': 1353936053, 'portfolio_id': 22454771}, {'photo_id': 1353936016, 'portfolio_id': 22454771}, {'photo_id': 1353935975, 'portfolio_id': 22454771}, {'photo_id': 1353935571, 'portfolio_id': 22454771}, {'photo_id': 1353935532, 'portfolio_id': 22454771}, {'photo_id': 1353935501, 'portfolio_id': 22454771}, {'photo_id': 1353935468, 'portfolio_id': 22454771}, {'photo_id': 1353935366, 'portfolio_id': 22454771}, {'photo_id': 1353935336, 'portfolio_id': 22454771}, {'photo_id': 1353935305, 'portfolio_id': 22454771}, {'photo_id': 1353935271, 'portfolio_id': 22454771}, {'photo_id': 1353935238, 'portfolio_id': 22454771}, {'photo_id': 1353935206, 'portfolio_id': 22454771}, {'photo_id': 1353935049, 'portfolio_id': 22454771}, {'photo_id': 1353935048, 'portfolio_id': 22454771}, {'photo_id': 1353935045, 'portfolio_id': 22454771}, {'photo_id': 1353935044, 'portfolio_id': 22454771}, {'photo_id': 1353935040, 'portfolio_id': 22454771}, {'photo_id': 1353935039, 'portfolio_id': 22454771}, {'photo_id': 1353935036, 'portfolio_id': 22454771}, {'photo_id': 1353935035, 'portfolio_id': 22454771}, {'photo_id': 1353934984, 'portfolio_id': 22454771}, {'photo_id': 1353934981, 'portfolio_id': 22454771}, {'photo_id': 1353934977, 'portfolio_id': 22454771}, {'photo_id': 1353934971, 'portfolio_id': 22454771}, {'photo_id': 1353934967, 'portfolio_id': 22454771}, {'photo_id': 1353934958, 'portfolio_id': 22454771}, {'photo_id': 1353934907, 'portfolio_id': 22454771}, {'photo_id': 1353934904, 'portfolio_id': 22454771}, {'photo_id': 1353934901, 'portfolio_id': 22454771}, {'photo_id': 1353934850, 'portfolio_id': 22454771}, {'photo_id': 1353934847, 'portfolio_id': 22454771}, {'photo_id': 1353934844, 'portfolio_id': 22454771}, {'photo_id': 1353934841, 'portfolio_id': 22454771}, {'photo_id': 1353934838, 'portfolio_id': 22454771}, {'photo_id': 1353934831, 'portfolio_id': 22454771}, {'photo_id': 1353934762, 'portfolio_id': 22454771}, {'photo_id': 1353934744, 'portfolio_id': 22454771}, {'photo_id': 1353934732, 'portfolio_id': 22454771}, {'photo_id': 1353934726, 'portfolio_id': 22454771}, {'photo_id': 1353934719, 'portfolio_id': 22454771}, {'photo_id': 1353934716, 'portfolio_id': 22454771}, {'photo_id': 1353934701, 'portfolio_id': 22454771}, {'photo_id': 1353934696, 'portfolio_id': 22454771}, {'photo_id': 1353934693, 'portfolio_id': 22454771}, {'photo_id': 1353934687, 'portfolio_id': 22454771}, {'photo_id': 1353934622, 'portfolio_id': 22454771}, {'photo_id': 1353934618, 'portfolio_id': 22454771}, {'photo_id': 1353934615, 'portfolio_id': 22454771}, {'photo_id': 1353934611, 'portfolio_id': 22454771}, {'photo_id': 1353934608, 'portfolio_id': 22454771}, {'photo_id': 1353934604, 'portfolio_id': 22454771}, {'photo_id': 1353934527, 'portfolio_id': 22454771}, {'photo_id': 1353934508, 'portfolio_id': 22454771}, {'photo_id': 1353934500, 'portfolio_id': 22454771}, {'photo_id': 1353934428, 'portfolio_id': 22454771}, {'photo_id': 1353934424, 'portfolio_id': 22454771}, {'photo_id': 1353934422, 'portfolio_id': 22454771}, {'photo_id': 1353934419, 'portfolio_id': 22454771}, {'photo_id': 1353934417, 'portfolio_id': 22454771}, {'photo_id': 1353934415, 'portfolio_id': 22454771}, {'photo_id': 1353934364, 'portfolio_id': 22454771}, {'photo_id': 1353934359, 'portfolio_id': 22454771}, {'photo_id': 1353934356, 'portfolio_id': 22454771}] map_portfolio_id_photo_id: {22454771: [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657, 1353936584, 1353936555, 1353936527, 1353936497, 1353936112, 1353936082, 1353936053, 1353936016, 1353935975, 1353935571, 1353935532, 1353935501, 1353935468, 1353935366, 1353935336, 1353935305, 1353935271, 1353935238, 1353935206, 1353935049, 1353935048, 1353935045, 1353935044, 1353935040, 1353935039, 1353935036, 1353935035, 1353934984, 1353934981, 1353934977, 1353934971, 1353934967, 1353934958, 1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} ##### 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.023757219314575195 #### 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 Mon Apr 28 15:32: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 (22454771) 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 : 22454771 get user id for portfolio 22454771 get sub ptf for main ptf 22454771, type 3726 and hashtags ['Teint_Dans_La_Masse', 'plastique', 'autre_refus', 'papier', 'Carton_brun', 'Carton_gris', 'cartonnette', 'mal_croppe', 'environnement', 'kraft', 'flou', 'metal'] 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`=22454771 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','autre_refus','papier','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','kraft','flou','metal')) 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`=22454771 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','autre_refus','papier','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','kraft','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22454771, 'sub_port_id': 22454779, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898683, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'plastique': {'main_port_id': 22454771, 'sub_port_id': 22454780, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898684, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'environnement': {'main_port_id': 22454771, 'sub_port_id': 22454781, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898685, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'Carton_gris': {'main_port_id': 22454771, 'sub_port_id': 22454782, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898686, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'metal': {'main_port_id': 22454771, 'sub_port_id': 22454783, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898687, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22454771, 'sub_port_id': 22454784, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898688, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'kraft': {'main_port_id': 22454771, 'sub_port_id': 22454785, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898689, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'mal_croppe': {'main_port_id': 22454771, 'sub_port_id': 22454786, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898690, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'papier': {'main_port_id': 22454771, 'sub_port_id': 22454787, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898691, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'autre_refus': {'main_port_id': 22454771, 'sub_port_id': 22454788, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898692, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'cartonnette': {'main_port_id': 22454771, 'sub_port_id': 22454789, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898693, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}, 'Carton_brun': {'main_port_id': 22454771, 'sub_port_id': 22454790, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898694, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22454779 , 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=22454771 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 (22454779) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454780 , 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=22454771 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 (22454780) result : ((1353934909,), (1353934964,), (1353934978,), (1353936715,), (1353936761,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454781 , 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=22454771 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 (22454781) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454782 , 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=22454771 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 (22454782) result : ((1353934641,), (1353934948,), (1353934949,), (1353934950,), (1353934974,), (1353934975,), (1353935042,), (1353935059,), (1353935060,), (1353935061,), (1353935837,), (1353935927,), (1353935929,), (1353936624,), (1353936698,), (1353936699,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454783 , 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=22454771 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 (22454783) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454784 , 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=22454771 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 (22454784) result : ((1353934627,), (1353934942,), (1353934943,), (1353934944,), (1353934945,), (1353935056,), (1353935057,), (1353935058,), (1353935811,), (1353935812,), (1353935813,), (1353936167,), (1353936168,), (1353936617,), (1353936618,), (1353936619,), (1353936620,), (1353936621,), (1353936622,), (1353936692,), (1353936693,), (1353936694,), (1353936695,), (1353936753,), (1353936875,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454785 , 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=22454771 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 (22454785) result : ((1353936634,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454786 , 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=22454771 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 (22454786) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454787 , 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=22454771 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 (22454787) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454788 , 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=22454771 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 (22454788) result : ((1353934947,), (1353935820,), (1353936175,), (1353936623,), (1353936696,), (1353936884,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454789 , 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=22454771 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 (22454789) result : ((1353934628,), (1353934642,), (1353934955,), (1353935063,), (1353935843,), (1353935844,), (1353936180,), (1353936625,), (1353936637,), (1353936700,), (1353936756,), (1353936757,), (1353936758,), (1353936892,), (1353936897,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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 22454790 , 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=22454771 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 (22454790) result : ((1353934629,), (1353934630,), (1353934646,), (1353934647,), (1353934648,), (1353934649,), (1353934957,), (1353934959,), (1353934960,), (1353934961,), (1353934962,), (1353934976,), (1353935066,), (1353935067,), (1353935853,), (1353935854,), (1353935855,), (1353935856,), (1353936189,), (1353936190,), (1353936627,), (1353936628,), (1353936629,), (1353936630,), (1353936705,), (1353936706,), (1353936707,), (1353936759,), (1353936760,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) 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 (1353934500) 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`=22454771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','autre_refus','papier','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','kraft','flou','metal')) 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`=22454771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','plastique','autre_refus','papier','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','kraft','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22454771, 'sub_port_id': 22454791, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898695, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'plastique': {'main_port_id': 22454771, 'sub_port_id': 22454792, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898696, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'environnement': {'main_port_id': 22454771, 'sub_port_id': 22454793, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898697, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'Carton_gris': {'main_port_id': 22454771, 'sub_port_id': 22454794, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898698, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'metal': {'main_port_id': 22454771, 'sub_port_id': 22454795, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898699, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22454771, 'sub_port_id': 22454796, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898700, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'kraft': {'main_port_id': 22454771, 'sub_port_id': 22454797, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898701, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'mal_croppe': {'main_port_id': 22454771, 'sub_port_id': 22454798, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898702, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'papier': {'main_port_id': 22454771, 'sub_port_id': 22454799, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898703, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'autre_refus': {'main_port_id': 22454771, 'sub_port_id': 22454800, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898704, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'cartonnette': {'main_port_id': 22454771, 'sub_port_id': 22454801, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898705, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'Carton_brun': {'main_port_id': 22454771, 'sub_port_id': 22454802, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898706, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454779 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454780 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454793,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454781 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454785 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454798,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454786 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454799,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454787 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454800,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454788 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454801,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454789 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454802,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454790 lien utilise dans velours : https://www.fotonower.com/velours/22454791,22454792,22454793,22454794,22454795,22454796,22454797,22454798,22454799,22454800,22454801,22454802?tags=flou,plastique,environnement,Carton_gris,metal,Teint_Dans_La_Masse,kraft,mal_croppe,papier,autre_refus,cartonnette,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22454771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] map_info['map_portfolio_photo'] : {22454771: [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657, 1353936584, 1353936555, 1353936527, 1353936497, 1353936112, 1353936082, 1353936053, 1353936016, 1353935975, 1353935571, 1353935532, 1353935501, 1353935468, 1353935366, 1353935336, 1353935305, 1353935271, 1353935238, 1353935206, 1353935049, 1353935048, 1353935045, 1353935044, 1353935040, 1353935039, 1353935036, 1353935035, 1353934984, 1353934981, 1353934977, 1353934971, 1353934967, 1353934958, 1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : False mtd_id 4302 list_pids : [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] Looping around the photos to save general results len do output : 1 /22454771. 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, '2764642') ('4302', '22454771', '1353936768', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936676', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936673', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936670', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936667', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936663', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936657', None, None, None, None, None, '2764642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '22454771', "{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}", None, None, None, None, '2764642'), ('4302', '22454771', '1353936768', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936676', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936673', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936670', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936667', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936663', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936657', None, None, None, None, None, '2764642')] time used for this insertion : 0.01362919807434082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47400736808776855 time spend to save output : 0.013930797576904297 total time spend for step 1 : 0.48793816566467285 step2:final Mon Apr 28 15:32: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 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 (22454771) 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 22454771 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353934364,1353934359,1353934356,1353934428,1353934424,1353934422,1353934419,1353934417,1353934415,1353934527,1353934508,1353934500,1353934622,1353934618,1353934615,1353934611,1353934608,1353934604,1353934719,1353934716,1353934701,1353934696,1353934693,1353934687,1353934762,1353934744,1353934732,1353934726,1353934850,1353934847,1353934844,1353934841,1353934838,1353934831,1353934907,1353934904,1353934901,1353934984,1353934981,1353934977,1353934971,1353934967,1353934958,1353935049,1353935048,1353935044,1353935045,1353935039,1353935040,1353935036,1353935035,1353935366,1353935336,1353935305,1353935271,1353935238,1353935206,1353935571,1353935532,1353935501,1353935468,1353936112,1353936082,1353936053,1353936016,1353935975,1353936584,1353936555,1353936527,1353936497,1353936676,1353936673,1353936670,1353936667,1353936663,1353936657,1353936768); 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([22454771]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} new output for save of step final : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] map_info['map_portfolio_photo'] : {22454771: [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657, 1353936584, 1353936555, 1353936527, 1353936497, 1353936112, 1353936082, 1353936053, 1353936016, 1353935975, 1353935571, 1353935532, 1353935501, 1353935468, 1353935366, 1353935336, 1353935305, 1353935271, 1353935238, 1353935206, 1353935049, 1353935048, 1353935045, 1353935044, 1353935040, 1353935039, 1353935036, 1353935035, 1353934984, 1353934981, 1353934977, 1353934971, 1353934967, 1353934958, 1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : False mtd_id 4302 list_pids : [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] Looping around the photos to save general results len do output : 7 /1353936768.Didn't retrieve data . /1353936676.Didn't retrieve data . /1353936673.Didn't retrieve data . /1353936670.Didn't retrieve data . /1353936667.Didn't retrieve data . /1353936663.Didn't retrieve data . /1353936657.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, '2764642') ('4302', '22454771', '1353936768', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936676', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936673', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936670', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936667', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936663', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936657', None, None, None, None, None, '2764642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22454771', '1353936768', '0.061645324297743324', None, None, None, None, '2764642'), ('4302', '22454771', '1353936676', '0.061645324297743324', None, None, None, None, '2764642'), ('4302', '22454771', '1353936673', '0.061645324297743324', None, None, None, None, '2764642'), ('4302', '22454771', '1353936670', '0.061645324297743324', None, None, None, None, '2764642'), ('4302', '22454771', '1353936667', '0.061645324297743324', None, None, None, None, '2764642'), ('4302', '22454771', '1353936663', '0.061645324297743324', None, None, None, None, '2764642'), ('4302', '22454771', '1353936657', '0.061645324297743324', None, None, None, None, '2764642')] time used for this insertion : 0.012454032897949219 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0786595344543457 time spend to save output : 0.0129852294921875 total time spend for step 2 : 0.0916447639465332 step3:velours_tree Mon Apr 28 15:32: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 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 : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} input_args_next_step : {22454771: ()} output_args : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} args : 22454771 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 : ({'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22454771) 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([22454771]) 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.6090784072875977 time spend to save output : 6.461143493652344e-05 total time spend for step 3 : 0.6091430187225342 step4:send_mail_cod Mon Apr 28 15:32: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 : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} input_args_next_step : {1353936768: ()} output_args : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} args : 1353936768 depend.output_id : 0 input_args_next_step : {1353936768: ('0.061645324297743324',), 1353936676: ()} output_args : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} args : 1353936676 depend.output_id : 0 input_args_next_step : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ()} output_args : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} args : 1353936673 depend.output_id : 0 input_args_next_step : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ()} output_args : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} args : 1353936670 depend.output_id : 0 input_args_next_step : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ()} output_args : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} args : 1353936667 depend.output_id : 0 input_args_next_step : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ()} output_args : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} args : 1353936663 depend.output_id : 0 input_args_next_step : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ()} output_args : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',)} args : 1353936657 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 : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} input_args_next_step : {1353936768: ('0.061645324297743324',), 1353936676: ('0.061645324297743324',), 1353936673: ('0.061645324297743324',), 1353936670: ('0.061645324297743324',), 1353936667: ('0.061645324297743324',), 1353936663: ('0.061645324297743324',), 1353936657: ('0.061645324297743324',), 22454771: ()} output_args : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} args : 22454771 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 :8, first value : ('0.061645324297743324',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22454771) 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 (1353936768,1353936676,1353936673,1353936670,1353936667,1353936663,1353936657) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353936657 begin to download photo : 1353936667 begin to download photo : 1353936673 begin to download photo : 1353936768 download finish for photo 1353936667 begin to download photo : 1353936670 download finish for photo 1353936673 begin to download photo : 1353936676 download finish for photo 1353936768 download finish for photo 1353936657 begin to download photo : 1353936663 download finish for photo 1353936670 download finish for photo 1353936676 download finish for photo 1353936663 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette224547791745847179/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P22454771_28-04-2025_15_32_59.pdf Dont find os.environ['TEMPS'] 22454779 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=22454779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224547791745847179 22454780 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=22454780 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934909: '1745846591_3335227_1353934726_25089bc1b26f1fda8abee17046f02362_rle_crop_3771087644_0.png', 1353934964: '1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087894_0.png', 1353934978: '1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087981_0.png', 1353936715: '1745847014_3339360_1353935305_a360c6e47baf3b06f0be4d9b66a68908_rle_crop_3771091834_0.png', 1353936761: '1745847070_3340086_1353936555_a14fd2609c50c5a8659235cf08310f78_rle_crop_3771091974_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/e2cce7890717f81616a189c295a17cba_84784684.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/9fb486172b0c029337861b68fb00e0f7_99970287.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c0e45f164467fe3f45449083744d5a80_72537414.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/cd6c5e0c40225cbfcf53a57dec23d077_47242661.png change filename to text .imagette224547801745847179/ imagette224547801745847179/1745847014_3339360_1353935305_a360c6e47baf3b06f0be4d9b66a68908_rle_crop_3771091834_0.png.png imagette224547801745847179/1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087894_0.png.png imagette224547801745847179/1745847070_3340086_1353936555_a14fd2609c50c5a8659235cf08310f78_rle_crop_3771091974_0.png.png imagette224547801745847179/1745846591_3335227_1353934726_25089bc1b26f1fda8abee17046f02362_rle_crop_3771087644_0.png.png imagette224547801745847179/1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087981_0.png.png imagette224547831745847179/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/49967f9e13700a637234d1cb80c8dd52_50216438.png imagette224547801745847179 22454783 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=22454783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224547831745847179 22454785 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=22454785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353936634: '1745846951_3338818_1353934831_79baa8b588d3e8442c67b24b6874d261_rle_crop_3771091475_0.png'} change filename to text .imagette224547851745847179/ imagette224547851745847179/1745846951_3338818_1353934831_79baa8b588d3e8442c67b24b6874d261_rle_crop_3771091475_0.png.png imagette224547861745847180/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/64a9ee6178a7b437719424a2f799a8eb_23433944.png imagette224547851745847179 22454786 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=22454786 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224547861745847180 22454788 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=22454788 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934947: '1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087865_0.png', 1353935820: '1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089477_0.png', 1353936175: '1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089017_0.png', 1353936623: '1745846951_3338818_1353934847_e6a695873887ac1ea36931edf7c75cff_rle_crop_3771090227_0.png', 1353936696: '1745847014_3339360_1353935271_81f1c3f40ab088e2984f4299415dd122_rle_crop_3771091851_0.png', 1353936884: '1745847103_2717143_1353936082_703b421156dcb73eae4da3a8977d34fb_rle_crop_3771092110_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d79e016b8ae54fab26fd73b4e47e6d8f_97183869.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/630c3a55737e1af7643f7161c4a1ee8f_73376056.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/21a5b23cb750896645467020c6111509_26044986.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6d447beba6b02360572ae50138cd3569_83860001.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/11e703fe8aad87ab86daa69936c96123_39216731.png change filename to text .imagette224547881745847180/ imagette224547881745847180/1745846951_3338818_1353934847_e6a695873887ac1ea36931edf7c75cff_rle_crop_3771090227_0.png.png imagette224547881745847180/1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089477_0.png.png imagette224547881745847180/1745847014_3339360_1353935271_81f1c3f40ab088e2984f4299415dd122_rle_crop_3771091851_0.png.png imagette224547881745847180/1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087865_0.png.png imagette224547881745847180/1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089017_0.png.png imagette224547881745847180/1745847103_2717143_1353936082_703b421156dcb73eae4da3a8977d34fb_rle_crop_3771092110_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d19cab5c5749f56813f8f59288f4b7a2_27654789.png imagette224547881745847180 22454789 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=22454789 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934628: '1745846352_3332726_1353934359_bc648baba13fc8e4181d81e9c9c9c9ef_rle_crop_3771071837_0.png', 1353934642: '1745846366_351478_1353934419_d6c6960d112bd67a33c67633920f7bad_rle_crop_3771071878_0.png', 1353934955: '1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087888_0.png', 1353935063: '1745846701_3336410_1353934604_9ca7a4d8435bfc4b6e761ff8adefdef7_rle_crop_3771088819_0.png', 1353935843: '1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089479_0.png', 1353935844: '1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089471_0.png', 1353936180: '1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089016_0.png', 1353936625: '1745846951_3338818_1353934907_07fe93e1803d3d6c386cf9304a477655_rle_crop_3771090161_0.png', 1353936637: '1745846983_2714193_1353935468_2e84514f1c02af97da8c750226091e20_rle_crop_3771091505_0.png', 1353936700: '1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091820_0.png', 1353936756: '1745847070_3340086_1353936555_a14fd2609c50c5a8659235cf08310f78_rle_crop_3771091968_0.png', 1353936757: '1745847070_3340086_1353936497_bd2927d2f37845ac1bdfa96fe9e67271_rle_crop_3771091991_0.png', 1353936758: '1745847070_3340086_1353936497_bd2927d2f37845ac1bdfa96fe9e67271_rle_crop_3771091993_0.png', 1353936892: '1745847103_2717143_1353936082_703b421156dcb73eae4da3a8977d34fb_rle_crop_3771092107_0.png', 1353936897: '1745847103_2717143_1353936053_1ae43e6ddbde93c72cbc8c0cb7342658_rle_crop_3771092121_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/7b4ec81ec868c9c0fdc6afa861572f75_36521685.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/91dc872fd2dccb967704f72a6dfedadd_35219453.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3bd607f40bcedbd231fd689c1905d106_46720647.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/470641e14501853f9618e0fc387c0208_19067722.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/95b5b4a4bf581d4d7dfa4928e1501508_61051798.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ac4b3a1eee1659397e78def125f6e4dc_96986452.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/722b28b86bd59fdb6cbf11a2c8e29e47_17064358.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/0d8025b1af7836794b159eb1fbe698bc_51842445.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/232d2343aa61a25158f9b0ef1eb7e375_7181496.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/120f365afabb81c1d3e9a7ed1f406b81_55107933.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3fbe1bc37ae048f85e538a8c9153f388_66670451.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/4aa63c8b49428d4a4462e2931969b4a2_79141959.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b20090a4dc8e4e823f587651b1b1ee2f_62061939.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/e9cc2c9e639aa5e3d187ade15e6f78e3_15723595.png change filename to text .imagette224547891745847180/ imagette224547891745847180/1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089016_0.png.png imagette224547891745847180/1745847103_2717143_1353936053_1ae43e6ddbde93c72cbc8c0cb7342658_rle_crop_3771092121_0.png.png imagette224547891745847180/1745846983_2714193_1353935468_2e84514f1c02af97da8c750226091e20_rle_crop_3771091505_0.png.png imagette224547891745847180/1745847070_3340086_1353936497_bd2927d2f37845ac1bdfa96fe9e67271_rle_crop_3771091991_0.png.png imagette224547891745847180/1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089479_0.png.png imagette224547891745847180/1745847103_2717143_1353936082_703b421156dcb73eae4da3a8977d34fb_rle_crop_3771092107_0.png.png imagette224547891745847180/1745846951_3338818_1353934907_07fe93e1803d3d6c386cf9304a477655_rle_crop_3771090161_0.png.png imagette224547891745847180/1745846366_351478_1353934419_d6c6960d112bd67a33c67633920f7bad_rle_crop_3771071878_0.png.png imagette224547891745847180/1745847070_3340086_1353936555_a14fd2609c50c5a8659235cf08310f78_rle_crop_3771091968_0.png.png imagette224547891745847180/1745846352_3332726_1353934359_bc648baba13fc8e4181d81e9c9c9c9ef_rle_crop_3771071837_0.png.png imagette224547891745847180/1745847070_3340086_1353936497_bd2927d2f37845ac1bdfa96fe9e67271_rle_crop_3771091993_0.png.png imagette224547891745847180/1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091820_0.png.png imagette224547891745847180/1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089471_0.png.png imagette224547891745847180/1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087888_0.png.png imagette224547891745847180/1745846701_3336410_1353934604_9ca7a4d8435bfc4b6e761ff8adefdef7_rle_crop_3771088819_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/be03f8eef2f857e6d187e614a8c1b4b1_18759774.png imagette224547891745847180 22454782 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=22454782 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934641: '1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071862_0.png', 1353934948: '1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087918_0.png', 1353934949: '1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087920_0.png', 1353934950: '1745846621_2706424_1353934687_c89a67c8b9d724de783f5683984048f3_rle_crop_3771087930_0.png', 1353934974: '1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087983_0.png', 1353934975: '1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087982_0.png', 1353935042: '1745846711_3336557_1353934850_d332124e1d8b141eda99a55c5919ca93_rle_crop_3771088649_0.png', 1353935059: '1745846701_3336410_1353934611_5486f097f2f160cb6b4f06f41c0a34ab_rle_crop_3771088764_0.png', 1353935060: '1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088784_0.png', 1353935061: '1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088779_0.png', 1353935837: '1745846833_3337791_1353934977_fa6759638885b61bac1ec4fff480693c_rle_crop_3771089572_0.png', 1353935927: '1745846863_2710774_1353935045_bac90530232a0c8ce0ab5264b08616dd_rle_crop_3771089623_0.png', 1353935929: '1745846863_2710774_1353935044_0ef22c4fd7f1647a72c6632ff8ec27f8_rle_crop_3771089632_0.png', 1353936624: '1745846951_3338818_1353934838_3be7f3676de40da9f497715a92a4f2ac_rle_crop_3771091458_0.png', 1353936698: '1745847014_3339360_1353935571_91050dc232daebd36f653a3f44607eac_rle_crop_3771091809_0.png', 1353936699: '1745847014_3339360_1353935305_a360c6e47baf3b06f0be4d9b66a68908_rle_crop_3771091841_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/edc1f43290867d1dd45d0b819430bf00_85864478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/753066652e38b7a3d59fcaacf31fadc3_50537115.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ef7f8fe2472d3843b9cf3c9447ba7998_39227342.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/782735cafe63337e2c2d89600b4ebf4f_63851601.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f5ae332e6ab0024433a5e4f913c26b18_84757011.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/9c08f7397bfcc29cf033f9ccb8ab4271_34824775.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/354993695c0105ac797a89f20eaa898b_40973881.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/2dfdd2e9291f5e8506ad16d12ade956d_95512796.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/11c1c33545b3fc358c692a76f12ce351_32780397.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/aa438663db4cb01eb933d332f3b560ce_41481549.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/2b3a79fb6d3378fdf7f17d7447e266a0_16130957.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/77501e316fad3012a71f7069c9ef246a_77656557.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/77501e316fad3012a71f7069c9ef246a_27963343.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d75b90098ce97bf2854ea35fedf88b0c_31367531.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/060ed7acba1434fb41fa4ecf09bac762_45430965.png change filename to text .imagette224547821745847181/ imagette224547821745847181/1745846701_3336410_1353934611_5486f097f2f160cb6b4f06f41c0a34ab_rle_crop_3771088764_0.png.png imagette224547821745847181/1745846621_2706424_1353934687_c89a67c8b9d724de783f5683984048f3_rle_crop_3771087930_0.png.png imagette224547821745847181/1745847014_3339360_1353935305_a360c6e47baf3b06f0be4d9b66a68908_rle_crop_3771091841_0.png.png imagette224547821745847181/1745846833_3337791_1353934977_fa6759638885b61bac1ec4fff480693c_rle_crop_3771089572_0.png.png imagette224547821745847181/1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087918_0.png.png imagette224547821745847181/1745846863_2710774_1353935044_0ef22c4fd7f1647a72c6632ff8ec27f8_rle_crop_3771089632_0.png.png imagette224547821745847181/1745846951_3338818_1353934838_3be7f3676de40da9f497715a92a4f2ac_rle_crop_3771091458_0.png.png imagette224547821745847181/1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087982_0.png.png imagette224547821745847181/1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087983_0.png.png imagette224547821745847181/1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071862_0.png.png imagette224547821745847181/1745846863_2710774_1353935045_bac90530232a0c8ce0ab5264b08616dd_rle_crop_3771089623_0.png.png imagette224547821745847181/1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087920_0.png.png imagette224547821745847181/1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088784_0.png.png imagette224547821745847181/1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088779_0.png.png imagette224547821745847181/1745847014_3339360_1353935571_91050dc232daebd36f653a3f44607eac_rle_crop_3771091809_0.png.png imagette224547821745847181/1745846711_3336557_1353934850_d332124e1d8b141eda99a55c5919ca93_rle_crop_3771088649_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/689dd856fff7761da9fa7da06d1101cc_43549254.png imagette224547821745847181 22454784 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=22454784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353936168: '1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089018_0.png', 1353936875: '1745847103_2717143_1353935975_51ff14d76bf7d496ea073297b516220a_rle_crop_3771092145_0.png', 1353936753: '1745847070_3340086_1353936527_cf0b1af4ed25030e685ef12d4875690c_rle_crop_3771091978_0.png', 1353936695: '1745847014_3339360_1353935206_2db1127d46f7dc22295a48801b53c67e_rle_crop_3771091868_0.png', 1353936694: '1745847014_3339360_1353935305_a360c6e47baf3b06f0be4d9b66a68908_rle_crop_3771091837_0.png', 1353936693: '1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091826_0.png', 1353936692: '1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091827_0.png', 1353936622: '1745846951_3338818_1353934838_3be7f3676de40da9f497715a92a4f2ac_rle_crop_3771091462_0.png', 1353936621: '1745846951_3338818_1353934841_fc3a67ddda3cebfaef349bd716edf644_rle_crop_3771091451_0.png', 1353936620: '1745846951_3338818_1353934841_fc3a67ddda3cebfaef349bd716edf644_rle_crop_3771091452_0.png', 1353936619: '1745846951_3338818_1353934844_f1d2ba07c5fff511cc7abb58db8ac2b1_rle_crop_3771091439_0.png', 1353936618: '1745846951_3338818_1353934847_e6a695873887ac1ea36931edf7c75cff_rle_crop_3771090233_0.png', 1353936617: '1745846951_3338818_1353934907_07fe93e1803d3d6c386cf9304a477655_rle_crop_3771090167_0.png', 1353934627: '1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071812_0.png', 1353936167: '1745846891_3338295_1353934984_d57e946f8995f2c06bae670e6a963d3f_rle_crop_3771089803_0.png', 1353935813: '1745846833_3337791_1353934977_fa6759638885b61bac1ec4fff480693c_rle_crop_3771089575_0.png', 1353935812: '1745846833_3337791_1353934977_fa6759638885b61bac1ec4fff480693c_rle_crop_3771089581_0.png', 1353935811: '1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089475_0.png', 1353935058: '1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088789_0.png', 1353935057: '1745846701_3336410_1353934611_5486f097f2f160cb6b4f06f41c0a34ab_rle_crop_3771088767_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/dec40fbfc05d947f367e62b10cf3d0a3_89464071.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/96d629d754f392174c630d5888908aa7_53140318.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/edb2304ffc413e58c63dbc4cb69afb73_89767076.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/eaea9d0309a2bce01a6f074da1fa13ae_48296328.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5acbf5e370eb86bfae0083ba2454c22e_84411197.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a647cd2677fae1b781f2ccc94297af48_69364767.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6b562660fdd05419c8f97a9618f9bb11_40004209.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c6167da615b43fb1bf41ee9676691f51_72053204.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/49d4e0b00b926232fcc3efe1f5fb71f1_75519884.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/01cdb1190edc9e50326ac4b9f73ff7f6_84696549.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/0f0e6745f05333b3cc3b41fdc93822ea_98222443.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/b4561f3e530e10f08795f90df6b3b4ca_87473164.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/4eb05973944f1d908ae3f066f0354b15_49908897.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/58f06667226ff4a17eda20e09903b1b2_52320040.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/80ff370337ed9ab6a73ccbf69459a6d7_80933789.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d2e76bf701435740d53bab859cb79fba_45411525.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/613e4bbcb7ef5cd8d9735de828da0613_24284405.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d530acd73367224c0d1c57537c1273c0_56376864.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d3511d5ebbf6efb58c500750b6e65f55_81586844.png change filename to text .imagette224547841745847182/ imagette224547841745847182/1745847070_3340086_1353936527_cf0b1af4ed25030e685ef12d4875690c_rle_crop_3771091978_0.png.png imagette224547841745847182/1745846951_3338818_1353934907_07fe93e1803d3d6c386cf9304a477655_rle_crop_3771090167_0.png.png imagette224547841745847182/1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091826_0.png.png imagette224547841745847182/1745846891_3338295_1353934984_d57e946f8995f2c06bae670e6a963d3f_rle_crop_3771089803_0.png.png imagette224547841745847182/1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091827_0.png.png imagette224547841745847182/1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071812_0.png.png imagette224547841745847182/1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089018_0.png.png imagette224547841745847182/1745846701_3336410_1353934611_5486f097f2f160cb6b4f06f41c0a34ab_rle_crop_3771088767_0.png.png imagette224547841745847182/1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088789_0.png.png imagette224547841745847182/1745846951_3338818_1353934844_f1d2ba07c5fff511cc7abb58db8ac2b1_rle_crop_3771091439_0.png.png imagette224547841745847182/1745847014_3339360_1353935206_2db1127d46f7dc22295a48801b53c67e_rle_crop_3771091868_0.png.png imagette224547841745847182/1745846951_3338818_1353934847_e6a695873887ac1ea36931edf7c75cff_rle_crop_3771090233_0.png.png imagette224547841745847182/1745846833_3337791_1353934977_fa6759638885b61bac1ec4fff480693c_rle_crop_3771089581_0.png.png imagette224547841745847182/1745847014_3339360_1353935305_a360c6e47baf3b06f0be4d9b66a68908_rle_crop_3771091837_0.png.png imagette224547841745847182/1745846951_3338818_1353934838_3be7f3676de40da9f497715a92a4f2ac_rle_crop_3771091462_0.png.png imagette224547841745847182/1745846833_3337791_1353934981_63f70763021f9d3a65e196e0dd470d36_rle_crop_3771089475_0.png.png imagette224547841745847182/1745847103_2717143_1353935975_51ff14d76bf7d496ea073297b516220a_rle_crop_3771092145_0.png.png imagette224547841745847182/1745846951_3338818_1353934841_fc3a67ddda3cebfaef349bd716edf644_rle_crop_3771091452_0.png.png imagette224547841745847182/1745846951_3338818_1353934841_fc3a67ddda3cebfaef349bd716edf644_rle_crop_3771091451_0.png.png imagette224547841745847182/1745846833_3337791_1353934977_fa6759638885b61bac1ec4fff480693c_rle_crop_3771089575_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/285982e5888bc98d52050b2daac7a220_29849737.png imagette224547841745847182 22454790 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=22454790 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353935853: '1745846833_3337791_1353935049_0ef6bc928c8673c9b4091583365c780f_rle_crop_3771089380_0.png', 1353936760: '1745847070_3340086_1353936527_cf0b1af4ed25030e685ef12d4875690c_rle_crop_3771091979_0.png', 1353936759: '1745847070_3340086_1353936555_a14fd2609c50c5a8659235cf08310f78_rle_crop_3771091969_0.png', 1353936707: '1745847014_3339360_1353935238_d1a4b8faf50a7ad5d85e86303bf4aac7_rle_crop_3771091859_0.png', 1353936706: '1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091825_0.png', 1353936705: '1745847014_3339360_1353935571_91050dc232daebd36f653a3f44607eac_rle_crop_3771091808_0.png', 1353936630: '1745846951_3338818_1353934838_3be7f3676de40da9f497715a92a4f2ac_rle_crop_3771091463_0.png', 1353936629: '1745846951_3338818_1353934844_f1d2ba07c5fff511cc7abb58db8ac2b1_rle_crop_3771091434_0.png', 1353936628: '1745846951_3338818_1353934844_f1d2ba07c5fff511cc7abb58db8ac2b1_rle_crop_3771091435_0.png', 1353936627: '1745846951_3338818_1353934907_07fe93e1803d3d6c386cf9304a477655_rle_crop_3771090168_0.png', 1353936190: '1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089022_0.png', 1353936189: '1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089026_0.png', 1353935856: '1745846833_3337791_1353934958_d15656955f515b5cd8ca37efa67c1408_rle_crop_3771089614_0.png', 1353935855: '1745846833_3337791_1353934967_60107a5b14d83cc51c8cd0a848043389_rle_crop_3771089599_0.png', 1353935854: '1745846833_3337791_1353935048_b640d175e062e1d79c5b7412ef99cb71_rle_crop_3771089390_0.png', 1353934629: '1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071806_0.png', 1353935067: '1745846701_3336410_1353934604_9ca7a4d8435bfc4b6e761ff8adefdef7_rle_crop_3771088817_0.png', 1353935066: '1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088791_0.png', 1353934976: '1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087984_0.png', 1353934962: '1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/de6dddb5423ed078043a14effb5aeb82_68424071.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ea897a6e8bf208d10e17d7d220394d28_12844344.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/53e89d3939eabb036ce4a5964dc44986_66316954.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/a38a2efdea524f017c0d3f14ca1bd8e9_7473045.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/04df44b81f72d2a0738d0dfd6d8a8609_26982798.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/11d2dfd89f05c4c4154ce7817b0add96_88111375.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/46839f63d5c9a3ffd4cebd14387b4aea_46295910.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/85a07bfc5b88d743e47b3acca0b87812_87426463.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/f25c726dc10f7d54e5545f8d1ec28070_95837181.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1b738522d3a9e3fdc35f67e558a83067_6269974.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/9932a47ffbe383701a1cc3cac9bdc217_51227791.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/6b52b492cefa9e59279c50a7ac106ea7_28938499.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/be9d38f14b25ac36d260e305e99e8ed9_51469226.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/5c09265e7a735f822a548674516b5085_35118439.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/de6dddb5423ed078043a14effb5aeb82_84560708.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/39a27031d444b9f2611ddbe2c129c755_84096997.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/1c73f49b58af46696d2ed415a2dbe069_45568219.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3c548a201ca9178e2070cc7519a5bd17_17142851.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/397e62b991f699404ca5f32c1b044c93_44070387.png change filename to text .imagette224547901745847183/ imagette224547901745847183/1745846951_3338818_1353934844_f1d2ba07c5fff511cc7abb58db8ac2b1_rle_crop_3771091434_0.png.png imagette224547901745847183/1745846701_3336410_1353934604_9ca7a4d8435bfc4b6e761ff8adefdef7_rle_crop_3771088817_0.png.png imagette224547901745847183/1745846951_3338818_1353934838_3be7f3676de40da9f497715a92a4f2ac_rle_crop_3771091463_0.png.png imagette224547901745847183/1745846833_3337791_1353934967_60107a5b14d83cc51c8cd0a848043389_rle_crop_3771089599_0.png.png imagette224547901745847183/1745847014_3339360_1353935571_91050dc232daebd36f653a3f44607eac_rle_crop_3771091808_0.png.png imagette224547901745847183/1745846951_3338818_1353934844_f1d2ba07c5fff511cc7abb58db8ac2b1_rle_crop_3771091435_0.png.png imagette224547901745847183/1745847014_3339360_1353935238_d1a4b8faf50a7ad5d85e86303bf4aac7_rle_crop_3771091859_0.png.png imagette224547901745847183/1745847070_3340086_1353936527_cf0b1af4ed25030e685ef12d4875690c_rle_crop_3771091979_0.png.png imagette224547901745847183/1745846652_3335818_1353934527_1ded4c49a29df70a28b9a873167328f9_rle_crop_3771087984_0.png.png imagette224547901745847183/1745846951_3338818_1353934907_07fe93e1803d3d6c386cf9304a477655_rle_crop_3771090168_0.png.png imagette224547901745847183/1745847070_3340086_1353936555_a14fd2609c50c5a8659235cf08310f78_rle_crop_3771091969_0.png.png imagette224547901745847183/1745846833_3337791_1353935048_b640d175e062e1d79c5b7412ef99cb71_rle_crop_3771089390_0.png.png imagette224547901745847183/1745847014_3339360_1353935336_8a36fdad7c270e26b75ae093fbd24e2b_rle_crop_3771091825_0.png.png imagette224547901745847183/1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089026_0.png.png imagette224547901745847183/1745846701_3336410_1353934608_ad0440a6053e5b722205f1d4ac547b56_rle_crop_3771088791_0.png.png imagette224547901745847183/1745846833_3337791_1353934958_d15656955f515b5cd8ca37efa67c1408_rle_crop_3771089614_0.png.png imagette224547901745847183/1745846833_3337791_1353935049_0ef6bc928c8673c9b4091583365c780f_rle_crop_3771089380_0.png.png imagette224547901745847183/1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087910_0.png.png imagette224547901745847183/1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071806_0.png.png imagette224547901745847183/1745846891_3338295_1353934904_8d899dcda966bd906c0e1676642f72c9_rle_crop_3771089022_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/56ec834bdef1c327f40162ea1c4ee0de_34404993.png imagette224547901745847183 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22454771 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22454791,22454792,22454793,22454794,22454795,22454796,22454797,22454798,22454799,22454800,22454801,22454802?tags=flou,plastique,environnement,Carton_gris,metal,Teint_Dans_La_Masse,kraft,mal_croppe,papier,autre_refus,cartonnette,Carton_brun Dont find os.environ['TEMPS'] your option no_mail is active, we will not send the real mail to your client args[1353936768] : ('0.061645324297743324',) no score found for photo 1353936768 We are sending mail with results at report@fotonower.com args[1353936676] : ('0.061645324297743324',) no score found for photo 1353936676 We are sending mail with results at report@fotonower.com args[1353936673] : ('0.061645324297743324',) no score found for photo 1353936673 We are sending mail with results at report@fotonower.com args[1353936670] : ('0.061645324297743324',) no score found for photo 1353936670 We are sending mail with results at report@fotonower.com args[1353936667] : ('0.061645324297743324',) no score found for photo 1353936667 We are sending mail with results at report@fotonower.com args[1353936663] : ('0.061645324297743324',) no score found for photo 1353936663 We are sending mail with results at report@fotonower.com args[1353936657] : ('0.061645324297743324',) no score found for photo 1353936657 We are sending mail with results at report@fotonower.com refus_total : 0.061645324297743324 2022-04-13 10:29:59 0 Dont find os.environ['TEMPS'] 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=22454771 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_P22454771_28-04-2025_15_32_59.pdf results_Auto_P22454771_28-04-2025_15_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.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','22454771','results_Auto_P22454771_28-04-2025_15_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.pdf','pdf','','0.32','0.061645324297743324') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22454771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] map_info['map_portfolio_photo'] : {22454771: [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657, 1353936584, 1353936555, 1353936527, 1353936497, 1353936112, 1353936082, 1353936053, 1353936016, 1353935975, 1353935571, 1353935532, 1353935501, 1353935468, 1353935366, 1353935336, 1353935305, 1353935271, 1353935238, 1353935206, 1353935049, 1353935048, 1353935045, 1353935044, 1353935040, 1353935039, 1353935036, 1353935035, 1353934984, 1353934981, 1353934977, 1353934971, 1353934967, 1353934958, 1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : False mtd_id 4302 list_pids : [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] 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, '2764642') ('4302', '22454771', '1353936768', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936676', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936673', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936670', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936667', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936663', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936657', None, None, None, None, None, '2764642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '22454771', '1353936768', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936676', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936673', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936670', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936667', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936663', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936657', None, None, None, None, None, '2764642')] time used for this insertion : 0.012741565704345703 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.009126901626587 time spend to save output : 0.013024568557739258 total time spend for step 4 : 6.022151470184326 step5:split_time_score Mon Apr 28 15:33:05 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 : ['22454771'] 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 : [('22454771',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22454771) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353936768: {'path': 'temp/1745847179_2477720_1353936768_fa7b9787237d2512767b9ae62a963a3d.jpg', 'extension': 'jpg'}, 1353936667: {'path': 'temp/1745847179_2477720_1353936667_ba7d0378c6e76a279b4cccf77f3b8d8a.jpg', 'extension': 'jpg'}, 1353936670: {'path': 'temp/1745847179_2477720_1353936670_ab9f59594297b8d3b3185a8501db1e92.jpg', 'extension': 'jpg'}, 1353936673: {'path': 'temp/1745847179_2477720_1353936673_bc0297e7a2f3954b39c60741b3ead977.jpg', 'extension': 'jpg'}, 1353936676: {'path': 'temp/1745847179_2477720_1353936676_e5c9f6ec87f172887353439e8e2ab157.jpg', 'extension': 'jpg'}, 1353936657: {'path': 'temp/1745847179_2477720_1353936657_3b393786c0ae7ed94a0ca0c58c988dd0.jpg', 'extension': 'jpg'}, 1353936663: {'path': 'temp/1745847179_2477720_1353936663_4893cf5574e95ff943ca03717435cd7f.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 = 22454771; (('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 = 22454771 group by h (('15', 77),) 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=22454771 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 (22454771) 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 (22454771) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28042025 22454771 Nombre de photos uploadées : 77 / 23040 (0%) 28042025 22454771 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 28042025 22454771 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1353934364, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/36167d839cb9ed5e850212b4d2f72e26.jpg', 'username': None, 'uploaded_at': 1745846177, 'text': 'image_28042025_15_15_04_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353934359, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/bc648baba13fc8e4181d81e9c9c9c9ef.jpg', 'username': None, 'uploaded_at': 1745846177, 'text': 'image_28042025_15_15_14_009124m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353934356, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c8051d4f14f43b0b2a6d7b122f69b84d.jpg', 'username': None, 'uploaded_at': 1745846177, 'text': 'image_28042025_15_15_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353934428, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ea2262106350884d7b5bc2738dbba32c.jpg', 'username': None, 'uploaded_at': 1745846237, 'text': 'image_28042025_15_15_54_010132m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029931068420410156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22454771, '2025-04-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1750587,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02338409423828125 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= 1750587 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1750587, 'dashboard_run_id': 1758828, 'mtr_portfolio_id': 22453714, 'dashboard_result_id': 10115719, '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_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1758828, 'mtr_portfolio_id': 22454148, 'dashboard_result_id': 10115720, '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_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1758828, 'mtr_portfolio_id': 22454771, 'dashboard_result_id': 10115721, '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_P22454771_28-04-2025_15_30_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, '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 = 22453714 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': 2764539, 'mtr_portfolio_id': 22453714, 'created_at': datetime.datetime(2025, 4, 28, 15, 2, 30), 'result': '0.07443313121988651', 'result_long': None, 'result_double': None}] Qualite : 0.07443313121988651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22453714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22453714 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_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}" where mtr_portfolio_id = 22453714 and dashboard_run_id = 1758828 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`=22453714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10115719, 0.07443313121988651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22454148 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': 2764583, 'mtr_portfolio_id': 22454148, 'created_at': datetime.datetime(2025, 4, 28, 15, 19), 'result': '0.05319964641723295', 'result_long': None, 'result_double': None}] Qualite : 0.05319964641723295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22454148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22454148 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_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}" where mtr_portfolio_id = 22454148 and dashboard_run_id = 1758828 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`=22454148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10115720, 0.05319964641723295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22454771 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': 2764642, 'mtr_portfolio_id': 22454771, 'created_at': datetime.datetime(2025, 4, 28, 15, 32, 58), 'result': '0.061645324297743324', 'result_long': None, 'result_double': None}] Qualite : 0.061645324297743324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22454771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22454771 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_P22454771_28-04-2025_15_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, 'pht': 3726}}" where mtr_portfolio_id = 22454771 and dashboard_run_id = 1758828 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`=22454771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10115721, 0.061645324297743324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, '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 (22453714,22454148,22454771) result : ((1353928460,), (1353928465,), (1353928470,), (1353928640,), (1353928644,), (1353928675,), (1353928707,), (1353928736,), (1353929110,), (1353929112,), (1353929140,), (1353929159,), (1353929169,), (1353929190,), (1353931215,), (1353931351,), (1353931414,), (1353932029,), (1353932068,), (1353932107,), (1353932148,), (1353932190,), (1353932226,), (1353932335,), (1353932363,), (1353932409,), (1353932437,), (1353932551,), (1353932532,), (1353932537,), (1353932542,), (1353932546,), (1353932817,), (1353932842,), (1353932857,), (1353932861,), (1353932936,), (1353932945,), (1353932948,), (1353932953,), (1353932957,), (1353933040,), (1353933057,), (1353933059,), (1353933061,), (1353933064,), (1353933151,), (1353933153,), (1353933156,), (1353933158,), (1353933173,), (1353933180,), (1353933184,), (1353933190,), (1353933234,), (1353933237,), (1353933242,), (1353933248,), (1353933252,), (1353933255,), (1353933268,), (1353933272,), (1353933278,), (1353933283,), (1353933286,), (1353933290,), (1353933340,), (1353933347,), (1353933353,), (1353933358,), (1353933423,), (1353933427,), (1353933431,), (1353933434,), (1353933438,), (1353933521,), (1353933525,), (1353933527,), (1353933528,), (1353933542,), (1353933543,), (1353933561,), (1353933567,), (1353933644,), (1353933647,), (1353933660,), (1353933699,), (1353933728,), (1353933742,), (1353933761,), (1353933766,), (1353933773,), (1353933779,), (1353933833,), (1353933839,), (1353933843,), (1353933847,), (1353933861,), (1353933868,), (1353933984,), (1353933986,), (1353933990,), (1353933992,), (1353934006,), (1353934028,), (1353934032,), (1353934210,), (1353934301,), (1353934334,), (1353934343,), (1353934367,), (1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,), (1353934958,), (1353934967,), (1353934971,), (1353934977,), (1353934981,), (1353934984,), (1353935035,), (1353935036,), (1353935039,), (1353935040,), (1353935044,), (1353935045,), (1353935048,), (1353935049,), (1353935206,), (1353935238,), (1353935271,), (1353935305,), (1353935336,), (1353935366,), (1353935468,), (1353935501,), (1353935532,), (1353935571,), (1353935975,), (1353936016,), (1353936053,), (1353936082,), (1353936112,), (1353936497,), (1353936527,), (1353936555,), (1353936584,), (1353936657,), (1353936663,), (1353936667,), (1353936670,), (1353936673,), (1353936676,), (1353936768,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28042025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22454771]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] map_info['map_portfolio_photo'] : {22454771: [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657, 1353936584, 1353936555, 1353936527, 1353936497, 1353936112, 1353936082, 1353936053, 1353936016, 1353935975, 1353935571, 1353935532, 1353935501, 1353935468, 1353935366, 1353935336, 1353935305, 1353935271, 1353935238, 1353935206, 1353935049, 1353935048, 1353935045, 1353935044, 1353935040, 1353935039, 1353935036, 1353935035, 1353934984, 1353934981, 1353934977, 1353934971, 1353934967, 1353934958, 1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : True mtd_id 4302 list_pids : [1353936768, 1353936676, 1353936673, 1353936670, 1353936667, 1353936663, 1353936657] Looping around the photos to save general results len do output : 1 /22454771Didn'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, '2764642') ('4302', '22454771', '1353936768', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936676', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936673', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936670', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936667', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936663', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353936657', None, None, None, None, None, '2764642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '22454771', 'None', None, None, None, None, '2764642'), ('4302', '22454771', '1353936768', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936676', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936673', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936670', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936667', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936663', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353936657', None, None, None, None, None, '2764642')] time used for this insertion : 0.013274669647216797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29265403747558594 time spend to save output : 0.013521671295166016 total time spend for step 5 : 0.30617570877075195 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 (2764642) 2.20user 2.86system 0:11.16elapsed 45%CPU (0avgtext+0avgdata 160648maxresident)k 118408inputs+15872outputs (560major+75159minor)pagefaults 0swaps