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 : 2323438 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 (2667895) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2667895) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21408973 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2667895'] with mtr_portfolio_ids : ['21408973'] and first list_photo_ids : [] new path : /proc/2323438/ Name: python3 Umask: 0002 State: R (running) Tgid: 2323438 Ngid: 0 Pid: 2323438 PPid: 2323437 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2323438 NSpid: 2323438 NSpgid: 2321297 NSsid: 2321297 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97896 kB VmRSS: 97896 kB RssAnon: 59760 kB RssFile: 38136 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2323438', 'Ngid': '0', 'Pid': '2323438', 'PPid': '2323437', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2323438', 'NSpid': '2323438', 'NSpgid': '2321297', 'NSsid': '2321297', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97896 kB', 'VmRSS': '97896 kB', 'RssAnon': '59760 kB', 'RssFile': '38136 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '2323438', '1106840', '0', '1106840', '865592', '97896', b'', 'marlene', '2667895') 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 (21408973) 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 (2667895 ) ) 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 (21408973) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344076557, 'portfolio_id': 21408973}, {'photo_id': 1344076556, 'portfolio_id': 21408973}, {'photo_id': 1344076546, 'portfolio_id': 21408973}, {'photo_id': 1344076540, 'portfolio_id': 21408973}, {'photo_id': 1344076537, 'portfolio_id': 21408973}, {'photo_id': 1344076508, 'portfolio_id': 21408973}, {'photo_id': 1344076506, 'portfolio_id': 21408973}, {'photo_id': 1344076504, 'portfolio_id': 21408973}, {'photo_id': 1344076503, 'portfolio_id': 21408973}, {'photo_id': 1344076501, 'portfolio_id': 21408973}, {'photo_id': 1344076436, 'portfolio_id': 21408973}, {'photo_id': 1344076432, 'portfolio_id': 21408973}, {'photo_id': 1344076431, 'portfolio_id': 21408973}, {'photo_id': 1344076430, 'portfolio_id': 21408973}, {'photo_id': 1344076428, 'portfolio_id': 21408973}, {'photo_id': 1344076387, 'portfolio_id': 21408973}, {'photo_id': 1344076386, 'portfolio_id': 21408973}, {'photo_id': 1344076384, 'portfolio_id': 21408973}, {'photo_id': 1344076382, 'portfolio_id': 21408973}, {'photo_id': 1344076379, 'portfolio_id': 21408973}, {'photo_id': 1344076339, 'portfolio_id': 21408973}, {'photo_id': 1344076338, 'portfolio_id': 21408973}, {'photo_id': 1344076335, 'portfolio_id': 21408973}, {'photo_id': 1344076332, 'portfolio_id': 21408973}, {'photo_id': 1344076330, 'portfolio_id': 21408973}, {'photo_id': 1344076291, 'portfolio_id': 21408973}, {'photo_id': 1344076286, 'portfolio_id': 21408973}, {'photo_id': 1344076281, 'portfolio_id': 21408973}, {'photo_id': 1344076277, 'portfolio_id': 21408973}, {'photo_id': 1344076273, 'portfolio_id': 21408973}, {'photo_id': 1344076226, 'portfolio_id': 21408973}, {'photo_id': 1344076221, 'portfolio_id': 21408973}, {'photo_id': 1344076217, 'portfolio_id': 21408973}, {'photo_id': 1344076212, 'portfolio_id': 21408973}, {'photo_id': 1344076203, 'portfolio_id': 21408973}, {'photo_id': 1344076201, 'portfolio_id': 21408973}, {'photo_id': 1344076137, 'portfolio_id': 21408973}, {'photo_id': 1344076134, 'portfolio_id': 21408973}, {'photo_id': 1344076131, 'portfolio_id': 21408973}, {'photo_id': 1344076128, 'portfolio_id': 21408973}, {'photo_id': 1344076067, 'portfolio_id': 21408973}, {'photo_id': 1344076066, 'portfolio_id': 21408973}, {'photo_id': 1344076064, 'portfolio_id': 21408973}, {'photo_id': 1344076062, 'portfolio_id': 21408973}, {'photo_id': 1344076050, 'portfolio_id': 21408973}, {'photo_id': 1344075924, 'portfolio_id': 21408973}, {'photo_id': 1344075921, 'portfolio_id': 21408973}, {'photo_id': 1344075918, 'portfolio_id': 21408973}, {'photo_id': 1344075913, 'portfolio_id': 21408973}, {'photo_id': 1344075814, 'portfolio_id': 21408973}, {'photo_id': 1344075810, 'portfolio_id': 21408973}, {'photo_id': 1344075803, 'portfolio_id': 21408973}, {'photo_id': 1344075800, 'portfolio_id': 21408973}, {'photo_id': 1344075795, 'portfolio_id': 21408973}, {'photo_id': 1344075779, 'portfolio_id': 21408973}, {'photo_id': 1344075704, 'portfolio_id': 21408973}, {'photo_id': 1344075699, 'portfolio_id': 21408973}, {'photo_id': 1344075697, 'portfolio_id': 21408973}, {'photo_id': 1344075694, 'portfolio_id': 21408973}, {'photo_id': 1344075692, 'portfolio_id': 21408973}, {'photo_id': 1344075689, 'portfolio_id': 21408973}, {'photo_id': 1344075644, 'portfolio_id': 21408973}, {'photo_id': 1344075641, 'portfolio_id': 21408973}, {'photo_id': 1344075639, 'portfolio_id': 21408973}] map_portfolio_id_photo_id: {21408973: [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501, 1344076436, 1344076432, 1344076431, 1344076430, 1344076428, 1344076387, 1344076386, 1344076384, 1344076382, 1344076379, 1344076339, 1344076338, 1344076335, 1344076332, 1344076330, 1344076291, 1344076286, 1344076281, 1344076277, 1344076273, 1344076226, 1344076221, 1344076217, 1344076212, 1344076203, 1344076201, 1344076137, 1344076134, 1344076131, 1344076128, 1344076067, 1344076066, 1344076064, 1344076062, 1344076050, 1344075924, 1344075921, 1344075918, 1344075913, 1344075814, 1344075810, 1344075803, 1344075800, 1344075795, 1344075779, 1344075704, 1344075699, 1344075697, 1344075694, 1344075692, 1344075689, 1344075644, 1344075641, 1344075639]} ##### 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.022457599639892578 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 14 06:29: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21408973) 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 : 21408973 get user id for portfolio 21408973 get sub ptf for main ptf 21408973, type 3726 and hashtags ['mal_croppe', 'autre_refus', 'Carton_brun', 'environnement', 'metal', 'Carton_gris', 'cartonnette', 'flou', 'Teint_Dans_La_Masse', 'kraft', 'papier', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21408973 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','environnement','metal','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21408973 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','environnement','metal','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21408973, 'sub_port_id': 21409003, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981952, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'plastique': {'main_port_id': 21408973, 'sub_port_id': 21409004, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981953, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'kraft': {'main_port_id': 21408973, 'sub_port_id': 21409005, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981954, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'flou': {'main_port_id': 21408973, 'sub_port_id': 21409006, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981955, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'Carton_brun': {'main_port_id': 21408973, 'sub_port_id': 21409007, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981956, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'Carton_gris': {'main_port_id': 21408973, 'sub_port_id': 21409008, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981957, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'autre_refus': {'main_port_id': 21408973, 'sub_port_id': 21409009, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981958, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'metal': {'main_port_id': 21408973, 'sub_port_id': 21409010, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981959, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'environnement': {'main_port_id': 21408973, 'sub_port_id': 21409011, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981960, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'mal_croppe': {'main_port_id': 21408973, 'sub_port_id': 21409012, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981961, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'cartonnette': {'main_port_id': 21408973, 'sub_port_id': 21409013, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981962, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21408973, 'sub_port_id': 21409014, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981963, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21409003 , 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=21408973 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 (21409003) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409004 , 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=21408973 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 (21409004) result : ((1344076123,), (1344076158,), (1344076213,), (1344076251,), (1344076252,), (1344076352,), (1344076415,), (1344076555,), (1344076589,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409005 , 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=21408973 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 (21409005) result : ((1344076159,), (1344076254,), (1344076591,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409006 , 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=21408973 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 (21409006) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409007 , 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=21408973 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 (21409007) result : ((1344076119,), (1344076120,), (1344076153,), (1344076155,), (1344076249,), (1344076250,), (1344076585,), (1344076586,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409008 , 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=21408973 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 (21409008) result : ((1344075806,), (1344075807,), (1344076113,), (1344076114,), (1344076145,), (1344076146,), (1344076147,), (1344076243,), (1344076244,), (1344076245,), (1344076264,), (1344076265,), (1344076266,), (1344076348,), (1344076407,), (1344076552,), (1344076578,), (1344076579,), (1344076580,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409009 , 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=21408973 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 (21409009) result : ((1344075804,), (1344075805,), (1344076105,), (1344076107,), (1344076108,), (1344076109,), (1344076111,), (1344076112,), (1344076138,), (1344076139,), (1344076140,), (1344076141,), (1344076142,), (1344076206,), (1344076207,), (1344076208,), (1344076209,), (1344076210,), (1344076211,), (1344076232,), (1344076233,), (1344076234,), (1344076235,), (1344076236,), (1344076237,), (1344076238,), (1344076260,), (1344076261,), (1344076262,), (1344076345,), (1344076346,), (1344076347,), (1344076402,), (1344076403,), (1344076404,), (1344076405,), (1344076547,), (1344076548,), (1344076549,), (1344076550,), (1344076551,), (1344076571,), (1344076572,), (1344076573,), (1344076574,), (1344076575,), (1344076576,), (1344076615,), (1344076616,), (1344076617,), (1344076618,), (1344076619,), (1344076620,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409010 , 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=21408973 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 (21409010) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409011 , 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=21408973 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 (21409011) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409012 , 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=21408973 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 (21409012) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409013 , 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=21408973 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 (21409013) result : ((1344075808,), (1344076117,), (1344076118,), (1344076149,), (1344076150,), (1344076247,), (1344076248,), (1344076351,), (1344076409,), (1344076410,), (1344076411,), (1344076412,), (1344076413,), (1344076553,), (1344076581,), (1344076582,), (1344076583,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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 21409014 , 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=21408973 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 (21409014) result : ((1344076094,), (1344076095,), (1344076096,), (1344076204,), (1344076256,), (1344076257,), (1344076258,), (1344076259,), (1344076343,), (1344076396,), (1344076397,), (1344076398,), (1344076399,), (1344076401,), (1344076542,), (1344076543,), (1344076544,), (1344076569,), (1344076608,), (1344076609,), (1344076610,), (1344076611,), (1344076612,), (1344076613,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21408973) result : ((1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,)) 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 (1344075800) 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`=21408973 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','environnement','metal','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21408973 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_brun','environnement','metal','Carton_gris','cartonnette','flou','Teint_Dans_La_Masse','kraft','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21408973, 'sub_port_id': 21409015, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981964, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'plastique': {'main_port_id': 21408973, 'sub_port_id': 21409016, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981965, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'kraft': {'main_port_id': 21408973, 'sub_port_id': 21409017, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981966, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'flou': {'main_port_id': 21408973, 'sub_port_id': 21409018, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981967, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'Carton_brun': {'main_port_id': 21408973, 'sub_port_id': 21409019, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981968, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'Carton_gris': {'main_port_id': 21408973, 'sub_port_id': 21409020, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981969, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'autre_refus': {'main_port_id': 21408973, 'sub_port_id': 21409021, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981970, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'metal': {'main_port_id': 21408973, 'sub_port_id': 21409022, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981971, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'environnement': {'main_port_id': 21408973, 'sub_port_id': 21409023, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981972, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'mal_croppe': {'main_port_id': 21408973, 'sub_port_id': 21409024, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981973, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'cartonnette': {'main_port_id': 21408973, 'sub_port_id': 21409025, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981974, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21408973, 'sub_port_id': 21409026, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13981975, 'last_updated_at': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 6, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 6, 19, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409006 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409007 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409008 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409021,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409009 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409010 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409023,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409011 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409024,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409012 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409025,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409013 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21409026,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21409014 lien utilise dans velours : https://www.fotonower.com/velours/21409015,21409016,21409017,21409018,21409019,21409020,21409021,21409022,21409023,21409024,21409025,21409026?tags=papier,plastique,kraft,flou,Carton_brun,Carton_gris,autre_refus,metal,environnement,mal_croppe,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21408973]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501] map_info['map_portfolio_photo'] : {21408973: [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501, 1344076436, 1344076432, 1344076431, 1344076430, 1344076428, 1344076387, 1344076386, 1344076384, 1344076382, 1344076379, 1344076339, 1344076338, 1344076335, 1344076332, 1344076330, 1344076291, 1344076286, 1344076281, 1344076277, 1344076273, 1344076226, 1344076221, 1344076217, 1344076212, 1344076203, 1344076201, 1344076137, 1344076134, 1344076131, 1344076128, 1344076067, 1344076066, 1344076064, 1344076062, 1344076050, 1344075924, 1344075921, 1344075918, 1344075913, 1344075814, 1344075810, 1344075803, 1344075800, 1344075795, 1344075779, 1344075704, 1344075699, 1344075697, 1344075694, 1344075692, 1344075689, 1344075644, 1344075641, 1344075639]} final : False mtd_id 4302 list_pids : [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501] Looping around the photos to save general results len do output : 1 /21408973. 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, '2667895') ('4302', '21408973', '1344076557', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076556', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076546', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076540', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076537', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076508', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076506', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076504', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076503', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076501', None, None, None, None, None, '2667895') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21408973', "{'papier': 21409003, 'plastique': 21409004, 'kraft': 21409005, 'flou': 21409006, 'Carton_brun': 21409007, 'Carton_gris': 21409008, 'autre_refus': 21409009, 'metal': 21409010, 'environnement': 21409011, 'mal_croppe': 21409012, 'cartonnette': 21409013, 'Teint_Dans_La_Masse': 21409014}", None, None, None, None, '2667895'), ('4302', '21408973', '1344076557', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076556', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076546', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076540', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076537', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076508', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076506', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076504', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076503', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076501', None, None, None, None, None, '2667895')] time used for this insertion : 0.016919851303100586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5491323471069336 time spend to save output : 0.017170429229736328 total time spend for step 1 : 1.56630277633667 step2:final Fri Mar 14 06:30:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21408973) 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 21408973 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344075644,1344075641,1344075639,1344075704,1344075699,1344075697,1344075694,1344075692,1344075689,1344075814,1344075810,1344075803,1344075800,1344075795,1344075779,1344075924,1344075921,1344075918,1344075913,1344076067,1344076066,1344076064,1344076062,1344076050,1344076137,1344076134,1344076131,1344076128,1344076226,1344076221,1344076217,1344076212,1344076203,1344076201,1344076291,1344076286,1344076281,1344076277,1344076273,1344076339,1344076338,1344076335,1344076332,1344076330,1344076387,1344076386,1344076384,1344076382,1344076379,1344076436,1344076432,1344076431,1344076430,1344076428,1344076508,1344076506,1344076504,1344076503,1344076501,1344076557,1344076556,1344076546,1344076540,1344076537); 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([21408973]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} new output for save of step final : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501] map_info['map_portfolio_photo'] : {21408973: [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501, 1344076436, 1344076432, 1344076431, 1344076430, 1344076428, 1344076387, 1344076386, 1344076384, 1344076382, 1344076379, 1344076339, 1344076338, 1344076335, 1344076332, 1344076330, 1344076291, 1344076286, 1344076281, 1344076277, 1344076273, 1344076226, 1344076221, 1344076217, 1344076212, 1344076203, 1344076201, 1344076137, 1344076134, 1344076131, 1344076128, 1344076067, 1344076066, 1344076064, 1344076062, 1344076050, 1344075924, 1344075921, 1344075918, 1344075913, 1344075814, 1344075810, 1344075803, 1344075800, 1344075795, 1344075779, 1344075704, 1344075699, 1344075697, 1344075694, 1344075692, 1344075689, 1344075644, 1344075641, 1344075639]} final : False mtd_id 4302 list_pids : [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501] Looping around the photos to save general results len do output : 10 /1344076557.Didn't retrieve data . /1344076556.Didn't retrieve data . /1344076546.Didn't retrieve data . /1344076540.Didn't retrieve data . /1344076537.Didn't retrieve data . /1344076508.Didn't retrieve data . /1344076506.Didn't retrieve data . /1344076504.Didn't retrieve data . /1344076503.Didn't retrieve data . /1344076501.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, '2667895') ('4302', '21408973', '1344076557', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076556', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076546', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076540', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076537', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076508', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076506', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076504', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076503', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076501', None, None, None, None, None, '2667895') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21408973', '1344076557', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076556', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076546', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076540', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076537', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076508', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076506', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076504', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076503', '0.08632732551988716', None, None, None, None, '2667895'), ('4302', '21408973', '1344076501', '0.08632732551988716', None, None, None, None, '2667895')] time used for this insertion : 0.023550033569335938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07483243942260742 time spend to save output : 0.024035215377807617 total time spend for step 2 : 0.09886765480041504 step3:velours_tree Fri Mar 14 06:30:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21408973: [{'papier': 21409003, 'plastique': 21409004, 'kraft': 21409005, 'flou': 21409006, 'Carton_brun': 21409007, 'Carton_gris': 21409008, 'autre_refus': 21409009, 'metal': 21409010, 'environnement': 21409011, 'mal_croppe': 21409012, 'cartonnette': 21409013, 'Teint_Dans_La_Masse': 21409014}]} input_args_next_step : {21408973: ()} output_args : {21408973: [{'papier': 21409003, 'plastique': 21409004, 'kraft': 21409005, 'flou': 21409006, 'Carton_brun': 21409007, 'Carton_gris': 21409008, 'autre_refus': 21409009, 'metal': 21409010, 'environnement': 21409011, 'mal_croppe': 21409012, 'cartonnette': 21409013, 'Teint_Dans_La_Masse': 21409014}]} args : 21408973 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 21409003, 'plastique': 21409004, 'kraft': 21409005, 'flou': 21409006, 'Carton_brun': 21409007, 'Carton_gris': 21409008, 'autre_refus': 21409009, 'metal': 21409010, 'environnement': 21409011, 'mal_croppe': 21409012, 'cartonnette': 21409013, 'Teint_Dans_La_Masse': 21409014},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21408973) 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([21408973]) 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.2702748775482178 time spend to save output : 4.029273986816406e-05 total time spend for step 3 : 0.27031517028808594 step4:send_mail_cod Fri Mar 14 06:30:01 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 : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} input_args_next_step : {1344076557: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076557 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076556 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076546 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076540 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076537 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076508 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076506 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076504 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076503 depend.output_id : 0 input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ()} output_args : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',)} args : 1344076501 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 : {21408973: [{'papier': 21409003, 'plastique': 21409004, 'kraft': 21409005, 'flou': 21409006, 'Carton_brun': 21409007, 'Carton_gris': 21409008, 'autre_refus': 21409009, 'metal': 21409010, 'environnement': 21409011, 'mal_croppe': 21409012, 'cartonnette': 21409013, 'Teint_Dans_La_Masse': 21409014}]} input_args_next_step : {1344076557: ('0.08632732551988716',), 1344076556: ('0.08632732551988716',), 1344076546: ('0.08632732551988716',), 1344076540: ('0.08632732551988716',), 1344076537: ('0.08632732551988716',), 1344076508: ('0.08632732551988716',), 1344076506: ('0.08632732551988716',), 1344076504: ('0.08632732551988716',), 1344076503: ('0.08632732551988716',), 1344076501: ('0.08632732551988716',), 21408973: ()} output_args : {21408973: [{'papier': 21409003, 'plastique': 21409004, 'kraft': 21409005, 'flou': 21409006, 'Carton_brun': 21409007, 'Carton_gris': 21409008, 'autre_refus': 21409009, 'metal': 21409010, 'environnement': 21409011, 'mal_croppe': 21409012, 'cartonnette': 21409013, 'Teint_Dans_La_Masse': 21409014}]} args : 21408973 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 :11, first value : ('0.08632732551988716',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21408973) 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 (1344076557,1344076556,1344076546,1344076540,1344076537,1344076508,1344076506,1344076504,1344076503,1344076501) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344076501 begin to download photo : 1344076506 begin to download photo : 1344076540 begin to download photo : 1344076557 download finish for photo 1344076540 begin to download photo : 1344076546 download finish for photo 1344076501 begin to download photo : 1344076503 download finish for photo 1344076506 begin to download photo : 1344076508 download finish for photo 1344076557 download finish for photo 1344076546 begin to download photo : 1344076556 download finish for photo 1344076503 begin to download photo : 1344076504 download finish for photo 1344076508 begin to download photo : 1344076537 download finish for photo 1344076556 download finish for photo 1344076537 download finish for photo 1344076504 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21408973_14-03-2025_06_30_01.pdf 21409004 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=21409004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344076123: '1741929631_166436_1344075692_6d36b721ceced7fed52e71e87facc46a_rle_crop_3711498821_0.png', 1344076158: '1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498978_0.png', 1344076213: '1741929746_986959_1344076062_1c041672fb1f0e07d9e44f20c753c697_rle_crop_3711499352_0.png', 1344076251: '1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498978_0.png', 1344076252: '1741929750_167409_1344075800_1cb99ce0033069fb74b8b4749cee6f05_rle_crop_3711499490_0.png', 1344076352: '1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499926_0.png', 1344076415: '1741929931_169276_1344076286_1df310a76d73da1b77fbfe5a5aecd9b3_rle_crop_3711500223_0.png', 1344076555: '1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500450_0.png', 1344076589: '1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500635_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2350bef76048d8cf9e0166bb96d795d5_92660203.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8175a5f23233f1b0854f59b806b9e4a1_84621656.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/844705198fb10b31363a0253c1392b6e_45598230.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8175a5f23233f1b0854f59b806b9e4a1_7571673.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/28a3335c84b220a7df1cb92e9a2a0589_39341285.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b28550dd6264410ddead220f23c3f512_45530103.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5ca86fd93be919699caf645a833a58da_55724468.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/eff5a3cee856c75c18373e9d1e9bbfb5_18704309.png change filename to text .imagette214090041741930201/ imagette214090041741930201/1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498978_0.png.png imagette214090041741930201/1741929631_166436_1344075692_6d36b721ceced7fed52e71e87facc46a_rle_crop_3711498821_0.png.png imagette214090041741930201/1741929750_167409_1344075800_1cb99ce0033069fb74b8b4749cee6f05_rle_crop_3711499490_0.png.png imagette214090041741930201/1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498978_0.png.png imagette214090041741930201/1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500450_0.png.png imagette214090041741930201/1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500635_0.png.png imagette214090041741930201/1741929931_169276_1344076286_1df310a76d73da1b77fbfe5a5aecd9b3_rle_crop_3711500223_0.png.png imagette214090041741930201/1741929746_986959_1344076062_1c041672fb1f0e07d9e44f20c753c697_rle_crop_3711499352_0.png.png imagette214090041741930201/1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499926_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d0c7593760faaa679df054cc60ec6898_5996171.png imagette214090041741930201 21409005 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=21409005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344076159: '1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499001_0.png', 1344076254: '1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499001_0.png', 1344076591: '1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500660_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9ab6f8587bab29701059218be2810356_56734986.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9ab6f8587bab29701059218be2810356_7767919.png change filename to text .imagette214090051741930202/ imagette214090051741930202/1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500660_0.png.png imagette214090051741930202/1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499001_0.png.png imagette214090051741930202/1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499001_0.png.png imagette214090061741930202/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/467aa3398ca9bc4cf98ffc55493041b3_9515835.png imagette214090051741930202 21409006 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=21409006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214090061741930202 21409009 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=21409009 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344076551: '1741930090_170290_1344076428_e2cee8ac002d056212f908bc15e693c6_rle_crop_3711500556_0.png', 1344076261: '1741929771_167560_1344075918_ae8f3652ff99cbf90451d5a8f5426df5_rle_crop_3711499561_0.png', 1344076262: '1741929771_167560_1344075913_480a287e410653035cf63de1f5adffd4_rle_crop_3711499568_0.png', 1344076345: '1741929872_168620_1344076134_140c7dae67279448f238f84d7f103814_rle_crop_3711499900_0.png', 1344076346: '1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499929_0.png', 1344076347: '1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499923_0.png', 1344076402: '1741929931_169276_1344076286_1df310a76d73da1b77fbfe5a5aecd9b3_rle_crop_3711500225_0.png', 1344076403: '1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500241_0.png', 1344076404: '1741929931_169276_1344076277_67e95f2a8001df6e606c74ffe43f5692_rle_crop_3711500257_0.png', 1344076405: '1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500268_0.png', 1344076547: '1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500451_0.png', 1344076548: '1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500453_0.png', 1344076549: '1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500479_0.png', 1344076550: '1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500470_0.png', 1344076260: '1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499543_0.png', 1344076571: '1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500633_0.png', 1344076572: '1741930111_170444_1344076338_b058042aecc41ab8a21582d8310d00d3_rle_crop_3711500645_0.png', 1344076573: '1741930111_170444_1344076338_b058042aecc41ab8a21582d8310d00d3_rle_crop_3711500642_0.png', 1344076574: '1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500662_0.png', 1344076575: '1741930111_170444_1344076332_6fdc16a44bfd5c0fa7e710ced41cd7d2_rle_crop_3711500678_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/01051040c7d5f8374bff693d0c5cd71b_24902238.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5369dbb8e42af81d170b2b1692e3fd0d_15762450.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0110398e5c65beb6d83346bc713a2806_8453415.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1e378df913c89c6a742806b5925ee816_67181726.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c47e8df1f969643bcd2be16b3c95d890_13143490.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ac444998f07bf84e102e6a1f40c9f907_4984974.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c391dd74546fbe4e605aaed58fc07092_22654192.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e7f1fbb0bbc645574a3ae9c1f1244865_34679616.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7a36a1dd03c0cddbbc32c42cd1b10368_87484491.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4e4bbb654098723172b5a2a145033f15_82326119.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bc1f800cb6aacdc419c49c86d9741e4c_36000798.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/32fe7a300a77f4d1a245b171a1152e20_49330939.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c0ec6993d6abb96313a2581542f5b937_66029218.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6c79e465c8d0a6d3ab3e3d303ffb2263_95426365.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/de65eae144d4495198d92880e1d45608_85249609.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/33683ffcbba4a5a22185712cc6b68456_39066143.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/89608b2886ba525656cada76a037faf5_68298808.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c27cb2fe763ae8eb958a0c3ed2c3d801_50111220.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/aa3b87b8f4034e4961f14eaa38e087c4_26971638.png change filename to text .imagette214090091741930202/ imagette214090091741930202/1741930090_170290_1344076428_e2cee8ac002d056212f908bc15e693c6_rle_crop_3711500556_0.png.png imagette214090091741930202/1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500470_0.png.png imagette214090091741930202/1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499923_0.png.png imagette214090091741930202/1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499543_0.png.png imagette214090091741930202/1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499929_0.png.png imagette214090091741930202/1741929771_167560_1344075913_480a287e410653035cf63de1f5adffd4_rle_crop_3711499568_0.png.png imagette214090091741930202/1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500268_0.png.png imagette214090091741930202/1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500451_0.png.png imagette214090091741930202/1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500453_0.png.png imagette214090091741930202/1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500479_0.png.png imagette214090091741930202/1741929872_168620_1344076134_140c7dae67279448f238f84d7f103814_rle_crop_3711499900_0.png.png imagette214090091741930202/1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500241_0.png.png imagette214090091741930202/1741929931_169276_1344076277_67e95f2a8001df6e606c74ffe43f5692_rle_crop_3711500257_0.png.png imagette214090091741930202/1741930111_170444_1344076332_6fdc16a44bfd5c0fa7e710ced41cd7d2_rle_crop_3711500678_0.png.png imagette214090091741930202/1741929931_169276_1344076286_1df310a76d73da1b77fbfe5a5aecd9b3_rle_crop_3711500225_0.png.png imagette214090091741930202/1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500633_0.png.png imagette214090091741930202/1741929771_167560_1344075918_ae8f3652ff99cbf90451d5a8f5426df5_rle_crop_3711499561_0.png.png imagette214090091741930202/1741930111_170444_1344076338_b058042aecc41ab8a21582d8310d00d3_rle_crop_3711500645_0.png.png imagette214090091741930202/1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500662_0.png.png imagette214090091741930202/1741930111_170444_1344076338_b058042aecc41ab8a21582d8310d00d3_rle_crop_3711500642_0.png.png imagette214090101741930205/ imagette214090121741930205/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6b00ca794cca04c699394d5c8931e74a_35751015.png imagette214090091741930202 21409010 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=21409010 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214090101741930205 21409012 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=21409012 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214090121741930205 21409013 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=21409013 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344076409: '1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500237_0.png', 1344076583: '1741930111_170444_1344076332_6fdc16a44bfd5c0fa7e710ced41cd7d2_rle_crop_3711500669_0.png', 1344076582: '1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500659_0.png', 1344076581: '1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500657_0.png', 1344076553: '1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500471_0.png', 1344076413: '1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500265_0.png', 1344076412: '1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500262_0.png', 1344076411: '1741929931_169276_1344076277_67e95f2a8001df6e606c74ffe43f5692_rle_crop_3711500250_0.png', 1344076410: '1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500234_0.png', 1344075808: '1741929494_164428_1344075641_1ba4679d9ad5b28cc470821cec5144cb_rle_crop_3711497198_0.png', 1344076351: '1741929872_168620_1344076134_140c7dae67279448f238f84d7f103814_rle_crop_3711499893_0.png', 1344076248: '1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498981_0.png', 1344076247: '1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498976_0.png', 1344076150: '1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498981_0.png', 1344076149: '1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498976_0.png', 1344076118: '1741929631_166436_1344075689_79b6f034aa4ca2be2176f2266ed77685_rle_crop_3711498833_0.png', 1344076117: '1741929631_166436_1344075697_389cba4a3f56290af1fb93584b556ade_rle_crop_3711498793_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0604b6bb58e0fa59617f94a921bf3fc9_46161468.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5d0abae606362d6e51644505de8e5911_36186045.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a46bed5fafa079d52b0cf8efa72b488b_1363197.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e2fbf2a2a6f95afe5dc7d416106f6854_56872291.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bfb6dfdf5a77225c1d1d0b772c347d1a_95978829.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d6343afa3ba7620afe6971054227f0ca_76440557.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a23c8ab0eb7996f0f0d7393ed173bf8b_67883197.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5b5390d005bf796a00490facdcdb5b0e_86285192.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ed96c464a52f2b959c6129eb4045e5cf_37124312.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/899ba58ddb53db8144d60379cc1447b3_45380631.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f1c69f9229678457e83ed895e8737e11_26459405.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1f5a84623ef04399117aab5b222526c9_58173737.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e6aeaace760caaa285ec508fba033b6f_56355169.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1f5a84623ef04399117aab5b222526c9_66367868.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e6aeaace760caaa285ec508fba033b6f_81858339.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/06ea8ce9b8b0cb83767ba1edd1289e34_53265237.png change filename to text .imagette214090131741930205/ imagette214090131741930205/1741929631_166436_1344075697_389cba4a3f56290af1fb93584b556ade_rle_crop_3711498793_0.png.png imagette214090131741930205/1741930111_170444_1344076332_6fdc16a44bfd5c0fa7e710ced41cd7d2_rle_crop_3711500669_0.png.png imagette214090131741930205/1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500657_0.png.png imagette214090131741930205/1741929872_168620_1344076134_140c7dae67279448f238f84d7f103814_rle_crop_3711499893_0.png.png imagette214090131741930205/1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500265_0.png.png imagette214090131741930205/1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500471_0.png.png imagette214090131741930205/1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498976_0.png.png imagette214090131741930205/1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500262_0.png.png imagette214090131741930205/1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498981_0.png.png imagette214090131741930205/1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500237_0.png.png imagette214090131741930205/1741929494_164428_1344075641_1ba4679d9ad5b28cc470821cec5144cb_rle_crop_3711497198_0.png.png imagette214090131741930205/1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500659_0.png.png imagette214090131741930205/1741929631_166436_1344075689_79b6f034aa4ca2be2176f2266ed77685_rle_crop_3711498833_0.png.png imagette214090131741930205/1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500234_0.png.png imagette214090131741930205/1741929931_169276_1344076277_67e95f2a8001df6e606c74ffe43f5692_rle_crop_3711500250_0.png.png imagette214090131741930205/1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498976_0.png.png imagette214090131741930205/1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498981_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8815b5a0e109ffa350637fada15d611b_44176195.png imagette214090131741930205 21409007 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=21409007 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344076119: '1741929631_166436_1344075694_a4aa0fc0ad189f51dd8108aff50c50fc_rle_crop_3711498806_0.png', 1344076120: '1741929631_166436_1344075692_6d36b721ceced7fed52e71e87facc46a_rle_crop_3711498824_0.png', 1344076153: '1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499013_0.png', 1344076155: '1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499004_0.png', 1344076249: '1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499013_0.png', 1344076250: '1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499004_0.png', 1344076585: '1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500632_0.png', 1344076586: '1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500661_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c288f0b9a61f1dc4294c677f9e6750bf_58995252.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cb7328d9e2fc0fa896387936b2fabb0e_18312386.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7cc1d989eed367fae433af0da3753516_64695754.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/226fa4729679ba6bfd987d28cc684c38_49783191.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7cc1d989eed367fae433af0da3753516_96038277.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/226fa4729679ba6bfd987d28cc684c38_35597099.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/78eb081089f03d15038b26af76a953e6_15879571.png change filename to text .imagette214090071741930206/ imagette214090071741930206/1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499013_0.png.png imagette214090071741930206/1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499004_0.png.png imagette214090071741930206/1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500661_0.png.png imagette214090071741930206/1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499013_0.png.png imagette214090071741930206/1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500632_0.png.png imagette214090071741930206/1741929631_166436_1344075692_6d36b721ceced7fed52e71e87facc46a_rle_crop_3711498824_0.png.png imagette214090071741930206/1741929631_166436_1344075694_a4aa0fc0ad189f51dd8108aff50c50fc_rle_crop_3711498806_0.png.png imagette214090071741930206/1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499004_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6b23cdda490ce5009ec9dd61ce542a5a_38503239.png imagette214090071741930206 21409008 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=21409008 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344076245: '1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499014_0.png', 1344076580: '1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500654_0.png', 1344076579: '1741930111_170444_1344076338_b058042aecc41ab8a21582d8310d00d3_rle_crop_3711500644_0.png', 1344076578: '1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500629_0.png', 1344076552: '1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500475_0.png', 1344076407: '1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500275_0.png', 1344076348: '1741929872_168620_1344076134_140c7dae67279448f238f84d7f103814_rle_crop_3711499901_0.png', 1344076266: '1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499538_0.png', 1344076265: '1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499547_0.png', 1344076264: '1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499544_0.png', 1344075806: '1741929494_164428_1344075644_e17794ee99f8d30ce554adb764e323d6_rle_crop_3711497144_0.png', 1344076244: '1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498980_0.png', 1344076243: '1741929750_167409_1344075810_68d01bdd9ac92b97d7ca2a32c5c6f216_rle_crop_3711498961_0.png', 1344076147: '1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499014_0.png', 1344076146: '1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498980_0.png', 1344076145: '1741929626_985478_1344075810_68d01bdd9ac92b97d7ca2a32c5c6f216_rle_crop_3711498961_0.png', 1344076114: '1741929631_166436_1344075692_6d36b721ceced7fed52e71e87facc46a_rle_crop_3711498819_0.png', 1344076113: '1741929631_166436_1344075697_389cba4a3f56290af1fb93584b556ade_rle_crop_3711498784_0.png', 1344075807: '1741929494_164428_1344075641_1ba4679d9ad5b28cc470821cec5144cb_rle_crop_3711497201_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/14dc81bd9ce7d83d8f77090d0a5e84e1_62554704.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8c70c5ff8e3742f87270053050913b3b_25210252.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ab28ef27e642da422c0d8fa957dc6469_33247487.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/571c58a74f6d8279756ca01666185814_35483805.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ed3e2fa53a667f47b2ca53472101bb16_44353829.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/af2c119b967b0b5598300bad073c5d8f_81444935.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/68ce4a0ce5e028e3ffb9c1ab1ac309dc_99861007.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/72f33f47f6c8ac1c65ffb57f0c094fea_11212694.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/08a98dba81a595866a33b7a4b46be2c6_8413559.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b452f7ba5196324fa6e541a4f9ac31c7_31788018.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/54f384962e261a696cf31111eef17293_58519900.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/06127952da935b8d554567de911c63a2_69006897.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9bb64bb7317189fa34b34e86f17ea5cd_89328462.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/14dc81bd9ce7d83d8f77090d0a5e84e1_41456948.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/06127952da935b8d554567de911c63a2_1694476.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9bb64bb7317189fa34b34e86f17ea5cd_2857352.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cc58d3661c545cecf0bc8105945ea1b6_1667032.png -- Missing : http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7b6b93d23cb55c914ff3889a27dbab8d_98220092.png retrying : HTTP Error 504: Gateway Time-out change filename to text .imagette214090081741930207/ imagette214090081741930207/1741929750_167409_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498980_0.png.png imagette214090081741930207/1741929494_164428_1344075641_1ba4679d9ad5b28cc470821cec5144cb_rle_crop_3711497201_0.png.png imagette214090081741930207/1741930111_170444_1344076387_d6c5886b877da4553b0dfb674833f3f8_rle_crop_3711500629_0.png.png imagette214090081741930207/1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499547_0.png.png imagette214090081741930207/1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499538_0.png.png imagette214090081741930207/1741929626_985478_1344075810_68d01bdd9ac92b97d7ca2a32c5c6f216_rle_crop_3711498961_0.png.png imagette214090081741930207/1741929872_168620_1344076134_140c7dae67279448f238f84d7f103814_rle_crop_3711499901_0.png.png imagette214090081741930207/1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500475_0.png.png imagette214090081741930207/1741929626_985478_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499014_0.png.png imagette214090081741930207/1741929494_164428_1344075644_e17794ee99f8d30ce554adb764e323d6_rle_crop_3711497144_0.png.png imagette214090081741930207/1741929750_167409_1344075810_68d01bdd9ac92b97d7ca2a32c5c6f216_rle_crop_3711498961_0.png.png imagette214090081741930207/1741929626_985478_1344075803_c5500dedf7197b2ca472da881426e9b3_rle_crop_3711498980_0.png.png imagette214090081741930207/1741929631_166436_1344075692_6d36b721ceced7fed52e71e87facc46a_rle_crop_3711498819_0.png.png imagette214090081741930207/1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499544_0.png.png imagette214090081741930207/1741930111_170444_1344076335_658ef4f217b6aebe98653afe422ddff4_rle_crop_3711500654_0.png.png imagette214090081741930207/1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500275_0.png.png imagette214090081741930207/1741930111_170444_1344076338_b058042aecc41ab8a21582d8310d00d3_rle_crop_3711500644_0.png.png imagette214090081741930207/1741929750_167409_1344075795_54782e6ee04866b4d3ebe611014cdf7a_rle_crop_3711499014_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/33ae9b2d537ee974726b33f1746e6434_88118852.png imagette214090081741930207 21409014 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=21409014 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344076399: '1741929931_169276_1344076277_67e95f2a8001df6e606c74ffe43f5692_rle_crop_3711500259_0.png', 1344076613: '1741930106_449597_1344076379_1c571c2ff21049868dacfad9e41aa827_rle_crop_3711500921_0.png', 1344076612: '1741930106_449597_1344076379_1c571c2ff21049868dacfad9e41aa827_rle_crop_3711500924_0.png', 1344076611: '1741930106_449597_1344076379_1c571c2ff21049868dacfad9e41aa827_rle_crop_3711500918_0.png', 1344076610: '1741930106_449597_1344076382_e10b50342979112a2acf84484592d013_rle_crop_3711500898_0.png', 1344076609: '1741930106_449597_1344076384_5a21af557cd2fd030aca5512efb7f8a3_rle_crop_3711500883_0.png', 1344076608: '1741930106_449597_1344076386_0f7f9607ef628abbc102e1dafb02e000_rle_crop_3711500862_0.png', 1344076569: '1741930111_170444_1344076330_2e21d380c271f2e317226971844f7bf9_rle_crop_3711500687_0.png', 1344076544: '1741930090_170290_1344076428_e2cee8ac002d056212f908bc15e693c6_rle_crop_3711500554_0.png', 1344076543: '1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500472_0.png', 1344076542: '1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500456_0.png', 1344076401: '1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500272_0.png', 1344076094: '1741929631_166436_1344075699_680d7dc2a5e5fdda21d488ec82532380_rle_crop_3711498763_0.png', 1344076398: '1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500247_0.png', 1344076397: '1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500239_0.png', 1344076396: '1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500244_0.png', 1344076343: '1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499930_0.png', 1344076259: '1741929771_167560_1344075913_480a287e410653035cf63de1f5adffd4_rle_crop_3711499570_0.png', 1344076258: '1741929771_167560_1344075913_480a287e410653035cf63de1f5adffd4_rle_crop_3711499572_0.png', 1344076257: '1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499540_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/db649aa0bcff5066ad9a9f812ee261aa_82464773.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/13267f26422516b9667dc684f716c021_48279.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fd847b18677faec282e25ad4d51f49e3_24947292.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ba9718b0fab1d5dcd9513ce1c08ba001_52795465.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4d7af8b469b4455efdafbfb85759594c_57695623.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5452edb3b7aea3c4f92dbbcf8f045c8a_21113486.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e50187122de19a70f3f43f99ec41d0a9_39483535.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fad32cc549da083c7683a8e9d02c0c4f_33413859.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b462445397a3ce377649bed93306f36c_1020863.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f24824cf35f2a4764e9e09ca1aacf284_27680197.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/831b5d9c18cefd7b78cad1cd20e7216a_53794197.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6be65b529b784b2ed214dcbd24b61cbf_23298431.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fdbf3c00f4b03b4bd8a022dd3fcfcbe1_34842890.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6f89d04e86ce130fc71ea3498c470c48_15330093.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/31e6e9512bdd2429e8eb231b6422964f_65448809.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c5c1dea8d381f8de4c4ddd355eeacd7d_10842248.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/625a0975575efed63f5d2e5bc338c6f9_88937657.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a6faa657a73ffde96dc5d5c129035213_55101741.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0345507460777ae30d9025d759615b59_8441478.png change filename to text .imagette214090141741930391/ imagette214090141741930391/1741930106_449597_1344076379_1c571c2ff21049868dacfad9e41aa827_rle_crop_3711500924_0.png.png imagette214090141741930391/1741930106_449597_1344076386_0f7f9607ef628abbc102e1dafb02e000_rle_crop_3711500862_0.png.png imagette214090141741930391/1741930106_449597_1344076384_5a21af557cd2fd030aca5512efb7f8a3_rle_crop_3711500883_0.png.png imagette214090141741930391/1741929771_167560_1344075913_480a287e410653035cf63de1f5adffd4_rle_crop_3711499572_0.png.png imagette214090141741930391/1741930090_170290_1344076431_b567e9335ade258f6df6e3567ff3fcca_rle_crop_3711500456_0.png.png imagette214090141741930391/1741930106_449597_1344076379_1c571c2ff21049868dacfad9e41aa827_rle_crop_3711500918_0.png.png imagette214090141741930391/1741929931_169276_1344076273_024db5ed090848f6b079e4492af2b5aa_rle_crop_3711500272_0.png.png imagette214090141741930391/1741930090_170290_1344076430_1c540fbe718cc73f349852f2a7537794_rle_crop_3711500472_0.png.png imagette214090141741930391/1741930106_449597_1344076379_1c571c2ff21049868dacfad9e41aa827_rle_crop_3711500921_0.png.png imagette214090141741930391/1741929631_166436_1344075699_680d7dc2a5e5fdda21d488ec82532380_rle_crop_3711498763_0.png.png imagette214090141741930391/1741929771_167560_1344076067_7be9b68daf8c0ad060c9a220c6e10c40_rle_crop_3711499540_0.png.png imagette214090141741930391/1741930090_170290_1344076428_e2cee8ac002d056212f908bc15e693c6_rle_crop_3711500554_0.png.png imagette214090141741930391/1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500239_0.png.png imagette214090141741930391/1741929872_168620_1344076131_0e683c1d077c67271c7025ca77e6a774_rle_crop_3711499930_0.png.png imagette214090141741930391/1741929771_167560_1344075913_480a287e410653035cf63de1f5adffd4_rle_crop_3711499570_0.png.png imagette214090141741930391/1741929931_169276_1344076277_67e95f2a8001df6e606c74ffe43f5692_rle_crop_3711500259_0.png.png imagette214090141741930391/1741930106_449597_1344076382_e10b50342979112a2acf84484592d013_rle_crop_3711500898_0.png.png imagette214090141741930391/1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500247_0.png.png imagette214090141741930391/1741929931_169276_1344076281_f182ac755c82797de14ed478d5035d32_rle_crop_3711500244_0.png.png imagette214090141741930391/1741930111_170444_1344076330_2e21d380c271f2e317226971844f7bf9_rle_crop_3711500687_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f1a519f41f06133a583a85a1609c9fea_14473634.png imagette214090141741930391 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21408973 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21409015,21409016,21409017,21409018,21409019,21409020,21409021,21409022,21409023,21409024,21409025,21409026?tags=papier,plastique,kraft,flou,Carton_brun,Carton_gris,autre_refus,metal,environnement,mal_croppe,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1344076557] : ('0.08632732551988716',) no score found for photo 1344076557 We are sending mail with results at report@fotonower.com args[1344076556] : ('0.08632732551988716',) no score found for photo 1344076556 We are sending mail with results at report@fotonower.com args[1344076546] : ('0.08632732551988716',) no score found for photo 1344076546 We are sending mail with results at report@fotonower.com args[1344076540] : ('0.08632732551988716',) no score found for photo 1344076540 We are sending mail with results at report@fotonower.com args[1344076537] : ('0.08632732551988716',) no score found for photo 1344076537 We are sending mail with results at report@fotonower.com args[1344076508] : ('0.08632732551988716',) no score found for photo 1344076508 We are sending mail with results at report@fotonower.com args[1344076506] : ('0.08632732551988716',) no score found for photo 1344076506 We are sending mail with results at report@fotonower.com args[1344076504] : ('0.08632732551988716',) no score found for photo 1344076504 We are sending mail with results at report@fotonower.com args[1344076503] : ('0.08632732551988716',) no score found for photo 1344076503 We are sending mail with results at report@fotonower.com args[1344076501] : ('0.08632732551988716',) no score found for photo 1344076501 We are sending mail with results at report@fotonower.com refus_total : 0.08632732551988716 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21408973 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_P21408973_14-03-2025_06_30_01.pdf results_Auto_P21408973_14-03-2025_06_30_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408973_14-03-2025_06_30_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21408973','results_Auto_P21408973_14-03-2025_06_30_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408973_14-03-2025_06_30_01.pdf','pdf','','0.38','0.08632732551988716') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21408973]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501] map_info['map_portfolio_photo'] : {21408973: [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501, 1344076436, 1344076432, 1344076431, 1344076430, 1344076428, 1344076387, 1344076386, 1344076384, 1344076382, 1344076379, 1344076339, 1344076338, 1344076335, 1344076332, 1344076330, 1344076291, 1344076286, 1344076281, 1344076277, 1344076273, 1344076226, 1344076221, 1344076217, 1344076212, 1344076203, 1344076201, 1344076137, 1344076134, 1344076131, 1344076128, 1344076067, 1344076066, 1344076064, 1344076062, 1344076050, 1344075924, 1344075921, 1344075918, 1344075913, 1344075814, 1344075810, 1344075803, 1344075800, 1344075795, 1344075779, 1344075704, 1344075699, 1344075697, 1344075694, 1344075692, 1344075689, 1344075644, 1344075641, 1344075639]} final : False mtd_id 4302 list_pids : [1344076557, 1344076556, 1344076546, 1344076540, 1344076537, 1344076508, 1344076506, 1344076504, 1344076503, 1344076501] 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, '2667895') ('4302', '21408973', '1344076557', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076556', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076546', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076540', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076537', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076508', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076506', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076504', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076503', None, None, None, None, None, '2667895') ('4302', None, None, None, None, None, None, None, '2667895') ('4302', '21408973', '1344076501', None, None, None, None, None, '2667895') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '21408973', '1344076557', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076556', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076546', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076540', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076537', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076508', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076506', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076504', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076503', None, None, None, None, None, '2667895'), ('4302', '21408973', '1344076501', None, None, None, None, None, '2667895')] time used for this insertion : 0.10865044593811035 save_final save missing photos in datou_result : time spend for datou_step_exec : 192.3164176940918 time spend to save output : 0.10891485214233398 total time spend for step 4 : 192.42533254623413 step5:split_time_score Fri Mar 14 06:33:13 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 : ['21408973'] 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 : [('21408973',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21408973) new photo added, this last batch is non a complet batch, should exit and reload photo caffe_path_current : About to save ! 2 After save, about to update current ! 2.25user 2.49system 3:17.75elapsed 2%CPU (0avgtext+0avgdata 159352maxresident)k 3928inputs+21800outputs (0major+74806minor)pagefaults 0swaps