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 : 1758621 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 (2713709) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2713709) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951031 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2713709'] with mtr_portfolio_ids : ['21951031'] and first list_photo_ids : [] new path : /proc/1758621/ Name: python3 Umask: 0002 State: R (running) Tgid: 1758621 Ngid: 0 Pid: 1758621 PPid: 1758618 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1758621 NSpid: 1758621 NSpgid: 1756119 NSsid: 1756119 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98496 kB VmRSS: 98496 kB RssAnon: 59796 kB RssFile: 38700 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 49 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1758621', 'Ngid': '0', 'Pid': '1758621', 'PPid': '1758618', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1758621', 'NSpid': '1758621', 'NSpgid': '1756119', 'NSsid': '1756119', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98496 kB', 'VmRSS': '98496 kB', 'RssAnon': '59796 kB', 'RssFile': '38700 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '49', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '1758621', '1106932', '0', '1106932', '865680', '98496', b'', 'marlene', '2713709') 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 (21951031) 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 (2713709 ) ) 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 (21951031) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349309977, 'portfolio_id': 21951031}, {'photo_id': 1349309923, 'portfolio_id': 21951031}, {'photo_id': 1349309889, 'portfolio_id': 21951031}, {'photo_id': 1349309884, 'portfolio_id': 21951031}, {'photo_id': 1349309877, 'portfolio_id': 21951031}, {'photo_id': 1349309872, 'portfolio_id': 21951031}, {'photo_id': 1349309867, 'portfolio_id': 21951031}, {'photo_id': 1349309862, 'portfolio_id': 21951031}, {'photo_id': 1349309786, 'portfolio_id': 21951031}, {'photo_id': 1349309759, 'portfolio_id': 21951031}, {'photo_id': 1349309740, 'portfolio_id': 21951031}, {'photo_id': 1349309737, 'portfolio_id': 21951031}, {'photo_id': 1349309735, 'portfolio_id': 21951031}, {'photo_id': 1349309591, 'portfolio_id': 21951031}, {'photo_id': 1349309580, 'portfolio_id': 21951031}, {'photo_id': 1349309570, 'portfolio_id': 21951031}, {'photo_id': 1349309558, 'portfolio_id': 21951031}, {'photo_id': 1349309536, 'portfolio_id': 21951031}, {'photo_id': 1349309510, 'portfolio_id': 21951031}, {'photo_id': 1349309500, 'portfolio_id': 21951031}, {'photo_id': 1349309485, 'portfolio_id': 21951031}, {'photo_id': 1349309481, 'portfolio_id': 21951031}, {'photo_id': 1349309436, 'portfolio_id': 21951031}, {'photo_id': 1349309432, 'portfolio_id': 21951031}, {'photo_id': 1349309428, 'portfolio_id': 21951031}, {'photo_id': 1349309427, 'portfolio_id': 21951031}, {'photo_id': 1349309262, 'portfolio_id': 21951031}, {'photo_id': 1349309256, 'portfolio_id': 21951031}, {'photo_id': 1349309251, 'portfolio_id': 21951031}, {'photo_id': 1349309241, 'portfolio_id': 21951031}, {'photo_id': 1349309231, 'portfolio_id': 21951031}, {'photo_id': 1349309077, 'portfolio_id': 21951031}, {'photo_id': 1349309075, 'portfolio_id': 21951031}, {'photo_id': 1349309070, 'portfolio_id': 21951031}, {'photo_id': 1349309068, 'portfolio_id': 21951031}, {'photo_id': 1349308983, 'portfolio_id': 21951031}, {'photo_id': 1349308980, 'portfolio_id': 21951031}, {'photo_id': 1349308978, 'portfolio_id': 21951031}, {'photo_id': 1349308943, 'portfolio_id': 21951031}, {'photo_id': 1349308941, 'portfolio_id': 21951031}, {'photo_id': 1349308939, 'portfolio_id': 21951031}, {'photo_id': 1349308935, 'portfolio_id': 21951031}, {'photo_id': 1349308934, 'portfolio_id': 21951031}, {'photo_id': 1349308900, 'portfolio_id': 21951031}, {'photo_id': 1349308898, 'portfolio_id': 21951031}, {'photo_id': 1349308894, 'portfolio_id': 21951031}, {'photo_id': 1349308891, 'portfolio_id': 21951031}, {'photo_id': 1349308889, 'portfolio_id': 21951031}, {'photo_id': 1349308823, 'portfolio_id': 21951031}, {'photo_id': 1349308806, 'portfolio_id': 21951031}, {'photo_id': 1349308798, 'portfolio_id': 21951031}, {'photo_id': 1349308741, 'portfolio_id': 21951031}, {'photo_id': 1349308724, 'portfolio_id': 21951031}, {'photo_id': 1349308723, 'portfolio_id': 21951031}, {'photo_id': 1349308615, 'portfolio_id': 21951031}, {'photo_id': 1349308612, 'portfolio_id': 21951031}, {'photo_id': 1349308609, 'portfolio_id': 21951031}, {'photo_id': 1349308606, 'portfolio_id': 21951031}, {'photo_id': 1349308523, 'portfolio_id': 21951031}, {'photo_id': 1349308519, 'portfolio_id': 21951031}, {'photo_id': 1349308515, 'portfolio_id': 21951031}, {'photo_id': 1349308511, 'portfolio_id': 21951031}, {'photo_id': 1349308503, 'portfolio_id': 21951031}, {'photo_id': 1349308428, 'portfolio_id': 21951031}, {'photo_id': 1349308423, 'portfolio_id': 21951031}, {'photo_id': 1349308417, 'portfolio_id': 21951031}, {'photo_id': 1349308410, 'portfolio_id': 21951031}, {'photo_id': 1349308401, 'portfolio_id': 21951031}] map_portfolio_id_photo_id: {21951031: [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862, 1349309786, 1349309759, 1349309740, 1349309737, 1349309735, 1349309591, 1349309580, 1349309570, 1349309558, 1349309536, 1349309510, 1349309500, 1349309485, 1349309481, 1349309436, 1349309432, 1349309428, 1349309427, 1349309262, 1349309256, 1349309251, 1349309241, 1349309231, 1349309077, 1349309075, 1349309070, 1349309068, 1349308983, 1349308980, 1349308978, 1349308943, 1349308941, 1349308939, 1349308935, 1349308934, 1349308900, 1349308898, 1349308894, 1349308891, 1349308889, 1349308823, 1349308806, 1349308798, 1349308741, 1349308724, 1349308723, 1349308615, 1349308612, 1349308609, 1349308606, 1349308523, 1349308519, 1349308515, 1349308511, 1349308503, 1349308428, 1349308423, 1349308417, 1349308410, 1349308401]} ##### 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.014965295791625977 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Apr 1 17:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21951031) 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 : 21951031 get user id for portfolio 21951031 get sub ptf for main ptf 21951031, type 3726 and hashtags ['papier', 'plastique', 'environnement', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'Carton_gris', 'kraft', 'metal', 'autre_refus', 'mal_croppe', 'cartonnette'] 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`=21951031 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','flou','Carton_brun','Carton_gris','kraft','metal','autre_refus','mal_croppe','cartonnette')) 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`=21951031 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','flou','Carton_brun','Carton_gris','kraft','metal','autre_refus','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21951031, 'sub_port_id': 21951035, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452941, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'flou': {'main_port_id': 21951031, 'sub_port_id': 21951036, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452942, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 21951031, 'sub_port_id': 21951037, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452943, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'papier': {'main_port_id': 21951031, 'sub_port_id': 21951038, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452944, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'kraft': {'main_port_id': 21951031, 'sub_port_id': 21951039, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452945, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'autre_refus': {'main_port_id': 21951031, 'sub_port_id': 21951040, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452946, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'Carton_gris': {'main_port_id': 21951031, 'sub_port_id': 21951041, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452947, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'Carton_brun': {'main_port_id': 21951031, 'sub_port_id': 21951042, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452948, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'metal': {'main_port_id': 21951031, 'sub_port_id': 21951043, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452949, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'environnement': {'main_port_id': 21951031, 'sub_port_id': 21951044, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452950, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'cartonnette': {'main_port_id': 21951031, 'sub_port_id': 21951045, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452951, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}, 'plastique': {'main_port_id': 21951031, 'sub_port_id': 21951046, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452952, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 2)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21951035 , 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=21951031 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 (21951035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951036 , 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=21951031 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 (21951036) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951037 , 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=21951031 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 (21951037) result : ((1349308862,), (1349308879,), (1349308880,), (1349308881,), (1349308882,), (1349308883,), (1349308955,), (1349308956,), (1349308957,), (1349308987,), (1349308988,), (1349308989,), (1349308990,), (1349309236,), (1349309237,), (1349309238,), (1349309239,), (1349309240,), (1349309456,), (1349309656,), (1349309791,), (1349309792,), (1349309793,), (1349309794,), (1349309795,), (1349309796,), (1349309798,), (1349309799,), (1349310061,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951038 , 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=21951031 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 (21951038) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951039 , 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=21951031 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 (21951039) result : ((1349308886,), (1349308887,), (1349308888,), (1349309250,), (1349309843,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951040 , 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=21951031 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 (21951040) result : ((1349308871,), (1349308958,), (1349309243,), (1349309457,), (1349309800,), (1349309840,), (1349309841,), (1349310064,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951041 , 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=21951031 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 (21951041) result : ((1349308885,), (1349309458,), (1349309626,), (1349309628,), (1349309801,), (1349309842,), (1349309854,), (1349309855,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951042 , 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=21951031 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 (21951042) result : ((1349308864,), (1349308874,), (1349308875,), (1349308960,), (1349308961,), (1349308962,), (1349308992,), (1349308993,), (1349308994,), (1349309246,), (1349309247,), (1349309248,), (1349309249,), (1349309803,), (1349309856,), (1349310062,), (1349310063,), (1349310065,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951043 , 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=21951031 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 (21951043) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951044 , 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=21951031 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 (21951044) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951045 , 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=21951031 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 (21951045) result : ((1349308863,), (1349308872,), (1349308873,), (1349309657,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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 21951046 , 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=21951031 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 (21951046) result : ((1349308866,), (1349308876,), (1349308877,), (1349308878,), (1349308966,), (1349308967,), (1349308968,), (1349308969,), (1349308970,), (1349308996,), (1349308997,), (1349308998,), (1349309460,), (1349309659,), (1349309805,), (1349309858,), (1349309860,), (1349309861,), (1349310066,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21951031) result : ((1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) 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 (1349309500,1349308900) 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`=21951031 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','flou','Carton_brun','Carton_gris','kraft','metal','autre_refus','mal_croppe','cartonnette')) 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`=21951031 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','environnement','Teint_Dans_La_Masse','flou','Carton_brun','Carton_gris','kraft','metal','autre_refus','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21951031, 'sub_port_id': 21951047, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452953, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'flou': {'main_port_id': 21951031, 'sub_port_id': 21951048, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452954, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'Teint_Dans_La_Masse': {'main_port_id': 21951031, 'sub_port_id': 21951049, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452955, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'papier': {'main_port_id': 21951031, 'sub_port_id': 21951050, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452956, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'kraft': {'main_port_id': 21951031, 'sub_port_id': 21951051, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452957, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'autre_refus': {'main_port_id': 21951031, 'sub_port_id': 21951052, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452958, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'Carton_gris': {'main_port_id': 21951031, 'sub_port_id': 21951053, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452959, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'Carton_brun': {'main_port_id': 21951031, 'sub_port_id': 21951054, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452960, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'metal': {'main_port_id': 21951031, 'sub_port_id': 21951055, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452961, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'environnement': {'main_port_id': 21951031, 'sub_port_id': 21951056, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452962, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'cartonnette': {'main_port_id': 21951031, 'sub_port_id': 21951057, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452963, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 19, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}, 'plastique': {'main_port_id': 21951031, 'sub_port_id': 21951058, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14452964, 'last_updated_at': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 17, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 17, 19, 4)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951045 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21951058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21951046 lien utilise dans velours : https://www.fotonower.com/velours/21951047,21951048,21951049,21951050,21951051,21951052,21951053,21951054,21951055,21951056,21951057,21951058?tags=mal_croppe,flou,Teint_Dans_La_Masse,papier,kraft,autre_refus,Carton_gris,Carton_brun,metal,environnement,cartonnette,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21951031]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] map_info['map_portfolio_photo'] : {21951031: [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862, 1349309786, 1349309759, 1349309740, 1349309737, 1349309735, 1349309591, 1349309580, 1349309570, 1349309558, 1349309536, 1349309510, 1349309500, 1349309485, 1349309481, 1349309436, 1349309432, 1349309428, 1349309427, 1349309262, 1349309256, 1349309251, 1349309241, 1349309231, 1349309077, 1349309075, 1349309070, 1349309068, 1349308983, 1349308980, 1349308978, 1349308943, 1349308941, 1349308939, 1349308935, 1349308934, 1349308900, 1349308898, 1349308894, 1349308891, 1349308889, 1349308823, 1349308806, 1349308798, 1349308741, 1349308724, 1349308723, 1349308615, 1349308612, 1349308609, 1349308606, 1349308523, 1349308519, 1349308515, 1349308511, 1349308503, 1349308428, 1349308423, 1349308417, 1349308410, 1349308401]} final : False mtd_id 4302 list_pids : [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] Looping around the photos to save general results len do output : 1 /21951031. 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, '2713709') ('4302', '21951031', '1349309977', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309923', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309889', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309884', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309877', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309872', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309867', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309862', None, None, None, None, None, '2713709') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '21951031', "{'mal_croppe': 21951035, 'flou': 21951036, 'Teint_Dans_La_Masse': 21951037, 'papier': 21951038, 'kraft': 21951039, 'autre_refus': 21951040, 'Carton_gris': 21951041, 'Carton_brun': 21951042, 'metal': 21951043, 'environnement': 21951044, 'cartonnette': 21951045, 'plastique': 21951046}", None, None, None, None, '2713709'), ('4302', '21951031', '1349309977', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309923', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309889', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309884', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309877', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309872', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309867', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309862', None, None, None, None, None, '2713709')] time used for this insertion : 0.015619754791259766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5050661563873291 time spend to save output : 0.015872955322265625 total time spend for step 1 : 0.5209391117095947 step2:final Tue Apr 1 17:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21951031) 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 21951031 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349308428,1349308401,1349308423,1349308417,1349308410,1349308523,1349308519,1349308515,1349308511,1349308503,1349308615,1349308612,1349308609,1349308606,1349308823,1349308806,1349308798,1349308741,1349308724,1349308723,1349308900,1349308898,1349308894,1349308891,1349308889,1349308943,1349308941,1349308939,1349308935,1349308934,1349308983,1349308980,1349308978,1349309077,1349309075,1349309070,1349309068,1349309262,1349309256,1349309251,1349309241,1349309231,1349309436,1349309432,1349309428,1349309427,1349309536,1349309510,1349309500,1349309485,1349309481,1349309591,1349309580,1349309570,1349309558,1349309786,1349309759,1349309740,1349309737,1349309735,1349309923,1349309889,1349309884,1349309877,1349309872,1349309867,1349309862,1349309977); 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([21951031]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} new output for save of step final : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] map_info['map_portfolio_photo'] : {21951031: [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862, 1349309786, 1349309759, 1349309740, 1349309737, 1349309735, 1349309591, 1349309580, 1349309570, 1349309558, 1349309536, 1349309510, 1349309500, 1349309485, 1349309481, 1349309436, 1349309432, 1349309428, 1349309427, 1349309262, 1349309256, 1349309251, 1349309241, 1349309231, 1349309077, 1349309075, 1349309070, 1349309068, 1349308983, 1349308980, 1349308978, 1349308943, 1349308941, 1349308939, 1349308935, 1349308934, 1349308900, 1349308898, 1349308894, 1349308891, 1349308889, 1349308823, 1349308806, 1349308798, 1349308741, 1349308724, 1349308723, 1349308615, 1349308612, 1349308609, 1349308606, 1349308523, 1349308519, 1349308515, 1349308511, 1349308503, 1349308428, 1349308423, 1349308417, 1349308410, 1349308401]} final : False mtd_id 4302 list_pids : [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] Looping around the photos to save general results len do output : 8 /1349309977.Didn't retrieve data . /1349309923.Didn't retrieve data . /1349309889.Didn't retrieve data . /1349309884.Didn't retrieve data . /1349309877.Didn't retrieve data . /1349309872.Didn't retrieve data . /1349309867.Didn't retrieve data . /1349309862.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, '2713709') ('4302', '21951031', '1349309977', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309923', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309889', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309884', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309877', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309872', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309867', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309862', None, None, None, None, None, '2713709') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '21951031', '1349309977', '0.05483160810308454', None, None, None, None, '2713709'), ('4302', '21951031', '1349309923', '0.05483160810308454', None, None, None, None, '2713709'), ('4302', '21951031', '1349309889', '0.05483160810308454', None, None, None, None, '2713709'), ('4302', '21951031', '1349309884', '0.05483160810308454', None, None, None, None, '2713709'), ('4302', '21951031', '1349309877', '0.05483160810308454', None, None, None, None, '2713709'), ('4302', '21951031', '1349309872', '0.05483160810308454', None, None, None, None, '2713709'), ('4302', '21951031', '1349309867', '0.05483160810308454', None, None, None, None, '2713709'), ('4302', '21951031', '1349309862', '0.05483160810308454', None, None, None, None, '2713709')] time used for this insertion : 0.015620946884155273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12801146507263184 time spend to save output : 0.016045331954956055 total time spend for step 2 : 0.1440567970275879 step3:velours_tree Tue Apr 1 17:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21951031: [{'mal_croppe': 21951035, 'flou': 21951036, 'Teint_Dans_La_Masse': 21951037, 'papier': 21951038, 'kraft': 21951039, 'autre_refus': 21951040, 'Carton_gris': 21951041, 'Carton_brun': 21951042, 'metal': 21951043, 'environnement': 21951044, 'cartonnette': 21951045, 'plastique': 21951046}]} input_args_next_step : {21951031: ()} output_args : {21951031: [{'mal_croppe': 21951035, 'flou': 21951036, 'Teint_Dans_La_Masse': 21951037, 'papier': 21951038, 'kraft': 21951039, 'autre_refus': 21951040, 'Carton_gris': 21951041, 'Carton_brun': 21951042, 'metal': 21951043, 'environnement': 21951044, 'cartonnette': 21951045, 'plastique': 21951046}]} args : 21951031 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 21951035, 'flou': 21951036, 'Teint_Dans_La_Masse': 21951037, 'papier': 21951038, 'kraft': 21951039, 'autre_refus': 21951040, 'Carton_gris': 21951041, 'Carton_brun': 21951042, 'metal': 21951043, 'environnement': 21951044, 'cartonnette': 21951045, 'plastique': 21951046},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21951031) 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([21951031]) 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.26993584632873535 time spend to save output : 4.315376281738281e-05 total time spend for step 3 : 0.26997900009155273 step4:send_mail_cod Tue Apr 1 17:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} input_args_next_step : {1349309977: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309977 depend.output_id : 0 input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309923 depend.output_id : 0 input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309889 depend.output_id : 0 input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309884 depend.output_id : 0 input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309877 depend.output_id : 0 input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309872 depend.output_id : 0 input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309867 depend.output_id : 0 input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ()} output_args : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',)} args : 1349309862 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 : {21951031: [{'mal_croppe': 21951035, 'flou': 21951036, 'Teint_Dans_La_Masse': 21951037, 'papier': 21951038, 'kraft': 21951039, 'autre_refus': 21951040, 'Carton_gris': 21951041, 'Carton_brun': 21951042, 'metal': 21951043, 'environnement': 21951044, 'cartonnette': 21951045, 'plastique': 21951046}]} input_args_next_step : {1349309977: ('0.05483160810308454',), 1349309923: ('0.05483160810308454',), 1349309889: ('0.05483160810308454',), 1349309884: ('0.05483160810308454',), 1349309877: ('0.05483160810308454',), 1349309872: ('0.05483160810308454',), 1349309867: ('0.05483160810308454',), 1349309862: ('0.05483160810308454',), 21951031: ()} output_args : {21951031: [{'mal_croppe': 21951035, 'flou': 21951036, 'Teint_Dans_La_Masse': 21951037, 'papier': 21951038, 'kraft': 21951039, 'autre_refus': 21951040, 'Carton_gris': 21951041, 'Carton_brun': 21951042, 'metal': 21951043, 'environnement': 21951044, 'cartonnette': 21951045, 'plastique': 21951046}]} args : 21951031 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 :9, first value : ('0.05483160810308454',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21951031) 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 (1349309977,1349309923,1349309889,1349309884,1349309877,1349309872,1349309867,1349309862) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349309862 begin to download photo : 1349309872 begin to download photo : 1349309884 begin to download photo : 1349309923 download finish for photo 1349309923 begin to download photo : 1349309977 download finish for photo 1349309872 begin to download photo : 1349309877 download finish for photo 1349309862 begin to download photo : 1349309867 download finish for photo 1349309884 begin to download photo : 1349309889 download finish for photo 1349309977 download finish for photo 1349309877 download finish for photo 1349309889 download finish for photo 1349309867 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219510351743521579/ imagette219510361743521579/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P21951031_01-04-2025_17_32_59.pdf 21951035 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=21951035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219510351743521579 21951036 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=21951036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219510361743521579 21951039 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=21951039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349308886: '1743520766_3240300_1349308523_f3d3df5f43940bc75000f4d9d9c8294c_rle_crop_3742913284_0.png', 1349308887: '1743520766_3240300_1349308417_a41f8cf2dde379f3c0170236462ae3f9_rle_crop_3742913344_0.png', 1349308888: '1743520766_3240300_1349308410_e273f1a8dd65304c900f35365aa399c2_rle_crop_3742913351_0.png', 1349309250: '1743521011_402982_1349308939_7aa751db08dd47b6e7df3490fbb98859_rle_crop_3742914735_0.png', 1349309843: '1743521353_406915_1349309580_6281d4e510f5bc8d1a065e7104ada67c_rle_crop_3742917642_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c663d60bb18f419e2f85f14047aafaaa_61081296.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e997948a4a9bde06a9dfd6ae51eb840b_12839485.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/05839381c81569b045c287cd21028b0e_41442831.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a9a3fa788b5640fe27c7837edfbbb155_64800550.png change filename to text .imagette219510391743521579/ imagette219510391743521579/1743520766_3240300_1349308417_a41f8cf2dde379f3c0170236462ae3f9_rle_crop_3742913344_0.png.png imagette219510391743521579/1743520766_3240300_1349308523_f3d3df5f43940bc75000f4d9d9c8294c_rle_crop_3742913284_0.png.png imagette219510391743521579/1743520766_3240300_1349308410_e273f1a8dd65304c900f35365aa399c2_rle_crop_3742913351_0.png.png imagette219510391743521579/1743521353_406915_1349309580_6281d4e510f5bc8d1a065e7104ada67c_rle_crop_3742917642_0.png.png imagette219510391743521579/1743521011_402982_1349308939_7aa751db08dd47b6e7df3490fbb98859_rle_crop_3742914735_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c680c716835c600fccfdf88f2be9f939_38462862.png imagette219510391743521579 21951040 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=21951040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349308871: '1743520766_2372187_1349308515_1b373b57ade4e81a735c45568c5f6d72_rle_crop_3742913259_0.png', 1349308958: '1743520871_401482_1349308889_0e9468cda2f78473df96ee2c1872a59b_rle_crop_3742913683_0.png', 1349309243: '1743521011_402982_1349308934_d940fc3f8bbfc99efb4cff85b98fa54c_rle_crop_3742915209_0.png', 1349309457: '1743521113_404134_1349309070_6e6aaa5a758b1f2dad6fbfead717eb75_rle_crop_3742916076_0.png', 1349309800: '1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917509_0.png', 1349309840: '1743521353_406915_1349309570_07e71aa039c05e4a3e1356a5e108fcf3_rle_crop_3742917650_0.png', 1349309841: '1743521353_406915_1349309558_15287114e9cb584ca5ded4a80596de54_rle_crop_3742917661_0.png', 1349310064: '1743521474_408804_1349309740_3e2323fe27f25dcfcf32dcd3660ffc31_rle_crop_3742919466_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a9065f7486bf57e4a71eb83d0f5ffee9_13226129.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0fdf475309b977d4ec3df20b227fb877_55076557.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/894965388cef63248bc1652747952e03_62747547.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7f3a3e8a4aa1d08955c5f2867c81f649_72179298.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c4b35a2a1c3596475c4c63a013877755_21553571.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c8ac249f9c2839ec9d09765f54723917_50894788.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/68e58daf3e13987df04b1b5fb54f2017_25582217.png change filename to text .imagette219510401743521580/ imagette219510401743521580/1743521353_406915_1349309558_15287114e9cb584ca5ded4a80596de54_rle_crop_3742917661_0.png.png imagette219510401743521580/1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917509_0.png.png imagette219510401743521580/1743520871_401482_1349308889_0e9468cda2f78473df96ee2c1872a59b_rle_crop_3742913683_0.png.png imagette219510401743521580/1743521113_404134_1349309070_6e6aaa5a758b1f2dad6fbfead717eb75_rle_crop_3742916076_0.png.png imagette219510401743521580/1743521474_408804_1349309740_3e2323fe27f25dcfcf32dcd3660ffc31_rle_crop_3742919466_0.png.png imagette219510401743521580/1743521011_402982_1349308934_d940fc3f8bbfc99efb4cff85b98fa54c_rle_crop_3742915209_0.png.png imagette219510401743521580/1743521353_406915_1349309570_07e71aa039c05e4a3e1356a5e108fcf3_rle_crop_3742917650_0.png.png imagette219510401743521580/1743520766_2372187_1349308515_1b373b57ade4e81a735c45568c5f6d72_rle_crop_3742913259_0.png.png imagette219510431743521580/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6df9e8c5a2aefed9d971935a62a59bb6_83603235.png imagette219510401743521580 21951043 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=21951043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219510431743521580 21951045 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=21951045 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349308863: '1743520753_400350_1349308606_835241dfb45cb79d71af371250e3e0fd_rle_crop_3742913218_0.png', 1349308872: '1743520766_2372187_1349308615_7ac5cd2bc34c170023df1cb29a615e3d_rle_crop_3742913232_0.png', 1349308873: '1743520766_2372187_1349308515_1b373b57ade4e81a735c45568c5f6d72_rle_crop_3742913264_0.png', 1349309657: '1743521250_405907_1349309262_2f7990f7b1a7849f4d4fa8cc27c11fcb_rle_crop_3742916968_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/9cf549cde67e9ed33eeadfc9aefe1307_55830395.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e4577cc729ffd73dd488be6d96a25f3a_50510695.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/9eadf736476d4783b55efc5bcf1d4255_38632156.png change filename to text .imagette219510451743521580/ imagette219510451743521580/1743520753_400350_1349308606_835241dfb45cb79d71af371250e3e0fd_rle_crop_3742913218_0.png.png imagette219510451743521580/1743520766_2372187_1349308615_7ac5cd2bc34c170023df1cb29a615e3d_rle_crop_3742913232_0.png.png imagette219510451743521580/1743521250_405907_1349309262_2f7990f7b1a7849f4d4fa8cc27c11fcb_rle_crop_3742916968_0.png.png imagette219510451743521580/1743520766_2372187_1349308515_1b373b57ade4e81a735c45568c5f6d72_rle_crop_3742913264_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/48591e0943eb2bd14865fe2c3bfdff90_4166388.png imagette219510451743521580 21951046 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=21951046 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349308996: '1743520911_401970_1349308900_77ef71aa5e476c9feb731dcbb11496b7_rle_crop_3742914461_0.png', 1349310066: '1743521474_408804_1349309735_71002dcbb2b3906d11981619718deecd_rle_crop_3742919494_0.png', 1349309861: '1743521371_407118_1349309485_456b5173713723610a86751bd853f458_rle_crop_3742917808_0.png', 1349309860: '1743521371_407118_1349309500_983fc954f170a38d42f2e57fb7948d32_rle_crop_3742917786_0.png', 1349309858: '1743521371_407118_1349309510_8708488790c052ffe293f3e8a701a571_rle_crop_3742917776_0.png', 1349309805: '1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917507_0.png', 1349309659: '1743521250_405907_1349309262_2f7990f7b1a7849f4d4fa8cc27c11fcb_rle_crop_3742916965_0.png', 1349309460: '1743521113_404134_1349309070_6e6aaa5a758b1f2dad6fbfead717eb75_rle_crop_3742916082_0.png', 1349308998: '1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914506_0.png', 1349308997: '1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914492_0.png', 1349308866: '1743520753_400350_1349308609_519ac17a8b1795cb031ebffe68552466_rle_crop_3742913204_0.png', 1349308970: '1743520871_401482_1349308889_0e9468cda2f78473df96ee2c1872a59b_rle_crop_3742913680_0.png', 1349308969: '1743520871_401482_1349308891_b3ec570449ae4d6602990735527788a6_rle_crop_3742913669_0.png', 1349308968: '1743520871_401482_1349308894_7a5f777e260ce20ebbae3386df19db9a_rle_crop_3742913650_0.png', 1349308967: '1743520871_401482_1349308898_04c62f3be04233bad943ef1c47b60a04_rle_crop_3742913633_0.png', 1349308966: '1743520871_401482_1349308898_04c62f3be04233bad943ef1c47b60a04_rle_crop_3742913637_0.png', 1349308878: '1743520766_2372187_1349308503_06eb8db247f0f3b2e050cab212f0b1c0_rle_crop_3742913298_0.png', 1349308877: '1743520766_2372187_1349308515_1b373b57ade4e81a735c45568c5f6d72_rle_crop_3742913265_0.png', 1349308876: '1743520766_2372187_1349308519_516e241d808a46e5f9ffb4b44e73dafe_rle_crop_3742913249_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/742b4971b1318f6b5af76cb37677ceb7_82582062.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/43cc9890f5c5a5c257347565dbb99513_80780713.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/af3abc380b09fdc297c6de194d859b30_18015282.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a2e32cf1b0554935a2ae06178aded2d9_7086486.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ac3aa8ea6463718d428c817421204e1b_94084083.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b08f70fe119cbbf6e8c4e7f694448d2b_32987183.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/493fccfad36a0546c90921d614c13d1d_55058831.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/dbb76b3344e6ada4016196defe04a440_42191599.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e38b3fc4dee9cd3091fb7c97d628f4ba_4247871.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b7b0bb498edc08feef40d715b0dbbce7_27741319.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/fd9a74515ae93e6a7380829865a1c2fc_43820002.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/cbdee64a964549f729a45418fd976778_92897715.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0cac065a688e391437ef885c05572319_70212690.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c3c55ce3f183ada9548b325ea4228b0f_48498932.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/45a0fef974690863b8846d7fa1a977a8_90227173.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/bea5303aae4e78398bd78adadee492ab_12419307.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/bfb0c4903c97d9ba680203d5005fbe06_6635454.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/be82d15bf0b6db97dc6abfed7f715326_82373047.png change filename to text .imagette219510461743521580/ imagette219510461743521580/1743520871_401482_1349308898_04c62f3be04233bad943ef1c47b60a04_rle_crop_3742913637_0.png.png imagette219510461743521580/1743520766_2372187_1349308515_1b373b57ade4e81a735c45568c5f6d72_rle_crop_3742913265_0.png.png imagette219510461743521580/1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914506_0.png.png imagette219510461743521580/1743521371_407118_1349309510_8708488790c052ffe293f3e8a701a571_rle_crop_3742917776_0.png.png imagette219510461743521580/1743521474_408804_1349309735_71002dcbb2b3906d11981619718deecd_rle_crop_3742919494_0.png.png imagette219510461743521580/1743520871_401482_1349308891_b3ec570449ae4d6602990735527788a6_rle_crop_3742913669_0.png.png imagette219510461743521580/1743520766_2372187_1349308519_516e241d808a46e5f9ffb4b44e73dafe_rle_crop_3742913249_0.png.png imagette219510461743521580/1743520871_401482_1349308894_7a5f777e260ce20ebbae3386df19db9a_rle_crop_3742913650_0.png.png imagette219510461743521580/1743520753_400350_1349308609_519ac17a8b1795cb031ebffe68552466_rle_crop_3742913204_0.png.png imagette219510461743521580/1743521371_407118_1349309500_983fc954f170a38d42f2e57fb7948d32_rle_crop_3742917786_0.png.png imagette219510461743521580/1743520911_401970_1349308900_77ef71aa5e476c9feb731dcbb11496b7_rle_crop_3742914461_0.png.png imagette219510461743521580/1743521113_404134_1349309070_6e6aaa5a758b1f2dad6fbfead717eb75_rle_crop_3742916082_0.png.png imagette219510461743521580/1743521250_405907_1349309262_2f7990f7b1a7849f4d4fa8cc27c11fcb_rle_crop_3742916965_0.png.png imagette219510461743521580/1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914492_0.png.png imagette219510461743521580/1743520766_2372187_1349308503_06eb8db247f0f3b2e050cab212f0b1c0_rle_crop_3742913298_0.png.png imagette219510461743521580/1743520871_401482_1349308898_04c62f3be04233bad943ef1c47b60a04_rle_crop_3742913633_0.png.png imagette219510461743521580/1743520871_401482_1349308889_0e9468cda2f78473df96ee2c1872a59b_rle_crop_3742913680_0.png.png imagette219510461743521580/1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917507_0.png.png imagette219510461743521580/1743521371_407118_1349309485_456b5173713723610a86751bd853f458_rle_crop_3742917808_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7b01406e7f7fe5dc1d6eca1d68aa004a_72293736.png imagette219510461743521580 21951037 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=21951037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349309237: '1743521011_402982_1349308941_2357386476ca23f402587514d32a8a69_rle_crop_3742914727_0.png', 1349310061: '1743521474_408804_1349309740_3e2323fe27f25dcfcf32dcd3660ffc31_rle_crop_3742919465_0.png', 1349309799: '1743521271_406177_1349309231_f42fe7db369b335cb194970370628979_rle_crop_3742917569_0.png', 1349309798: '1743521271_406177_1349309231_f42fe7db369b335cb194970370628979_rle_crop_3742917574_0.png', 1349309796: '1743521271_406177_1349309241_acd84bc458ddca0990be0aec7822b977_rle_crop_3742917549_0.png', 1349309795: '1743521271_406177_1349309241_acd84bc458ddca0990be0aec7822b977_rle_crop_3742917553_0.png', 1349309794: '1743521271_406177_1349309251_f83ba5cc429fbdc79326951aca2408c7_rle_crop_3742917531_0.png', 1349309793: '1743521271_406177_1349309251_f83ba5cc429fbdc79326951aca2408c7_rle_crop_3742917533_0.png', 1349309792: '1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917511_0.png', 1349309791: '1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917516_0.png', 1349309656: '1743521250_405907_1349309262_2f7990f7b1a7849f4d4fa8cc27c11fcb_rle_crop_3742916971_0.png', 1349309456: '1743521113_404134_1349309068_4820d7edf85fccb465b2d7459bedd0cb_rle_crop_3742916092_0.png', 1349309240: '1743521011_402982_1349308934_d940fc3f8bbfc99efb4cff85b98fa54c_rle_crop_3742915214_0.png', 1349309239: '1743521011_402982_1349308935_c82700ebd90a6c69cdaa517a837d33eb_rle_crop_3742914752_0.png', 1349309238: '1743521011_402982_1349308939_7aa751db08dd47b6e7df3490fbb98859_rle_crop_3742914741_0.png', 1349308862: '1743520753_400350_1349308609_519ac17a8b1795cb031ebffe68552466_rle_crop_3742913210_0.png', 1349309236: '1743521011_402982_1349308983_20595252457e69a7517d454cf39520f3_rle_crop_3742914709_0.png', 1349308990: '1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914505_0.png', 1349308989: '1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914498_0.png', 1349308988: '1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914490_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e69b09a1e0dfef5c2d8b54c48242a2e5_31303915.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/10b022d87ece957746a99b6d1e517a99_67089787.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/f8d00298f31a19fd8c275234d1a93ec9_21015788.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/51f08f0b2a32f4af0f943d74171e6ac5_71133631.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7fdd4a37f17748d4e1ddd7de51d87bca_67690055.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a08d5843ce8cf8ab5c44973b892d2d71_70636585.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8ca852d38a9d4b0e83e2015d81f7ed4a_26433507.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/3c9503e0d2ecad31645922914660fe52_59789120.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0e1d41ffc2a809dbbad6be8fe8692137_37087929.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ae63b5a81778f2d2e116f345484eed26_15885796.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0965048e93a5ffacab5a28495539cc02_24297966.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0e83096f0626bbf1a9443d4e747d101b_8186925.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7f0419f04cf95e998e8bc4a0fe83b43c_45289553.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8a6aee44fdf227c850f636feb6933cf1_28190903.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/f575729b348cc5d9b8883ad4b72d04d5_65235201.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/11c468e3819ad0153b045624e77be2ff_72550535.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/12c7e9d2cd60e912cec705fef531542f_90610487.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5b9f5bba544587842d753a7fee3bf947_86646906.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/77d3a093aac1df25e254a80bddfdf0ff_33467998.png change filename to text .imagette219510371743521582/ imagette219510371743521582/1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914505_0.png.png imagette219510371743521582/1743521474_408804_1349309740_3e2323fe27f25dcfcf32dcd3660ffc31_rle_crop_3742919465_0.png.png imagette219510371743521582/1743521271_406177_1349309251_f83ba5cc429fbdc79326951aca2408c7_rle_crop_3742917533_0.png.png imagette219510371743521582/1743521271_406177_1349309241_acd84bc458ddca0990be0aec7822b977_rle_crop_3742917553_0.png.png imagette219510371743521582/1743521271_406177_1349309231_f42fe7db369b335cb194970370628979_rle_crop_3742917569_0.png.png imagette219510371743521582/1743521011_402982_1349308939_7aa751db08dd47b6e7df3490fbb98859_rle_crop_3742914741_0.png.png imagette219510371743521582/1743521250_405907_1349309262_2f7990f7b1a7849f4d4fa8cc27c11fcb_rle_crop_3742916971_0.png.png imagette219510371743521582/1743521271_406177_1349309231_f42fe7db369b335cb194970370628979_rle_crop_3742917574_0.png.png imagette219510371743521582/1743521271_406177_1349309241_acd84bc458ddca0990be0aec7822b977_rle_crop_3742917549_0.png.png imagette219510371743521582/1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914498_0.png.png imagette219510371743521582/1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917516_0.png.png imagette219510371743521582/1743521011_402982_1349308934_d940fc3f8bbfc99efb4cff85b98fa54c_rle_crop_3742915214_0.png.png imagette219510371743521582/1743521271_406177_1349309251_f83ba5cc429fbdc79326951aca2408c7_rle_crop_3742917531_0.png.png imagette219510371743521582/1743521011_402982_1349308941_2357386476ca23f402587514d32a8a69_rle_crop_3742914727_0.png.png imagette219510371743521582/1743521113_404134_1349309068_4820d7edf85fccb465b2d7459bedd0cb_rle_crop_3742916092_0.png.png imagette219510371743521582/1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914490_0.png.png imagette219510371743521582/1743521011_402982_1349308983_20595252457e69a7517d454cf39520f3_rle_crop_3742914709_0.png.png imagette219510371743521582/1743520753_400350_1349308609_519ac17a8b1795cb031ebffe68552466_rle_crop_3742913210_0.png.png imagette219510371743521582/1743521271_406177_1349309256_9879b05d8e63bd0904e4628a5a133a00_rle_crop_3742917511_0.png.png imagette219510371743521582/1743521011_402982_1349308935_c82700ebd90a6c69cdaa517a837d33eb_rle_crop_3742914752_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/aa809b94df3161258d733d638f545e42_46917023.png imagette219510371743521582 21951041 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=21951041 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349308885: '1743520766_3240300_1349308417_a41f8cf2dde379f3c0170236462ae3f9_rle_crop_3742913338_0.png', 1349309458: '1743521113_404134_1349309070_6e6aaa5a758b1f2dad6fbfead717eb75_rle_crop_3742916077_0.png', 1349309626: '1743521232_405681_1349309432_57e35f08bc44495c20c149409e6c4bde_rle_crop_3742916841_0.png', 1349309628: '1743521232_405681_1349309428_dd9a5568ceb18d89da74216678dac4db_rle_crop_3742916850_0.png', 1349309801: '1743521271_406177_1349309241_acd84bc458ddca0990be0aec7822b977_rle_crop_3742917540_0.png', 1349309842: '1743521353_406915_1349309570_07e71aa039c05e4a3e1356a5e108fcf3_rle_crop_3742917647_0.png', 1349309854: '1743521371_407118_1349309500_983fc954f170a38d42f2e57fb7948d32_rle_crop_3742917782_0.png', 1349309855: '1743521371_407118_1349309485_456b5173713723610a86751bd853f458_rle_crop_3742917798_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0a60272d6b42b0644486ffdd19c11274_31270602.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/cf9f5d2e9772cfc0bbdcff047b780692_41442658.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/fffce16b8196f843bc4f8c0df6aebcbf_85375025.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e991f3f74447110ff7d44b0908123592_49695874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c5bd4c90f482fba22aac6d70fee24d71_40541912.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/564763b56b1d7dccd6e83435bf6efb50_60046310.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/fe9cb384d61da3e49e5a9510451b4e1e_78227812.png change filename to text .imagette219510411743521583/ imagette219510411743521583/1743521371_407118_1349309485_456b5173713723610a86751bd853f458_rle_crop_3742917798_0.png.png imagette219510411743521583/1743521113_404134_1349309070_6e6aaa5a758b1f2dad6fbfead717eb75_rle_crop_3742916077_0.png.png imagette219510411743521583/1743520766_3240300_1349308417_a41f8cf2dde379f3c0170236462ae3f9_rle_crop_3742913338_0.png.png imagette219510411743521583/1743521232_405681_1349309432_57e35f08bc44495c20c149409e6c4bde_rle_crop_3742916841_0.png.png imagette219510411743521583/1743521271_406177_1349309241_acd84bc458ddca0990be0aec7822b977_rle_crop_3742917540_0.png.png imagette219510411743521583/1743521353_406915_1349309570_07e71aa039c05e4a3e1356a5e108fcf3_rle_crop_3742917647_0.png.png imagette219510411743521583/1743521232_405681_1349309428_dd9a5568ceb18d89da74216678dac4db_rle_crop_3742916850_0.png.png imagette219510411743521583/1743521371_407118_1349309500_983fc954f170a38d42f2e57fb7948d32_rle_crop_3742917782_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a3320992077acdf989dffadf8e7cadcf_73292339.png imagette219510411743521583 21951042 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=21951042 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349309246: '1743521011_402982_1349308983_20595252457e69a7517d454cf39520f3_rle_crop_3742914713_0.png', 1349310065: '1743521474_408804_1349309737_3196a3778073e77f78e6a1c90e62ae19_rle_crop_3742919481_0.png', 1349310063: '1743521490_409088_1349309786_dfd29d1e09211d0246d3d2942de382aa_rle_crop_3742919503_0.png', 1349310062: '1743521490_409088_1349309786_dfd29d1e09211d0246d3d2942de382aa_rle_crop_3742919504_0.png', 1349309856: '1743521371_407118_1349309485_456b5173713723610a86751bd853f458_rle_crop_3742917799_0.png', 1349309803: '1743521271_406177_1349309251_f83ba5cc429fbdc79326951aca2408c7_rle_crop_3742917525_0.png', 1349309249: '1743521011_402982_1349308934_d940fc3f8bbfc99efb4cff85b98fa54c_rle_crop_3742915212_0.png', 1349309248: '1743521011_402982_1349308939_7aa751db08dd47b6e7df3490fbb98859_rle_crop_3742914737_0.png', 1349309247: '1743521011_402982_1349308941_2357386476ca23f402587514d32a8a69_rle_crop_3742914723_0.png', 1349308864: '1743520753_400350_1349308609_519ac17a8b1795cb031ebffe68552466_rle_crop_3742913206_0.png', 1349308994: '1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914499_0.png', 1349308993: '1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914491_0.png', 1349308992: '1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914487_0.png', 1349308962: '1743520871_401482_1349308891_b3ec570449ae4d6602990735527788a6_rle_crop_3742913665_0.png', 1349308961: '1743520871_401482_1349308894_7a5f777e260ce20ebbae3386df19db9a_rle_crop_3742913646_0.png', 1349308960: '1743520871_401482_1349308894_7a5f777e260ce20ebbae3386df19db9a_rle_crop_3742913647_0.png', 1349308875: '1743520766_2372187_1349308511_811803924b816ac116c923cefda429be_rle_crop_3742913290_0.png', 1349308874: '1743520766_2372187_1349308615_7ac5cd2bc34c170023df1cb29a615e3d_rle_crop_3742913239_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b68c52a7f1bc0a2a89a1d1962fdee262_5697423.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/916194704993542b215e81ec48d6d0f3_64530032.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2a4a4df9d556304cdd0094ffc448bc84_73470215.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c700534ba022a05d0a0db9bc5f59f1a4_55377791.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/cbf0277307c616465688d4ad5c1d5f95_43293053.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1cf60145548e199628ecfc395bf598cd_34793036.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5d21b99ebe2617431f9ceb60b3dd1670_55731596.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/de6fe10ec263b2d9ae9b7852a22dcceb_17341959.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/55939a077718b14da50f0b4e33148d70_65027503.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/05b9827bda586262713fd9ec4f1f2b6b_3591556.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/20c5d233a6b069dc9dc44b1d8674be37_64421396.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1fb6fafaf8506c5bcca89e96882bf63d_45638468.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ca8959eed8ce8dab3ecb1dfd3a6898ac_8866667.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/f3609d83624a7df0d35103b1ab2ade52_45726195.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6bcec239ece6c760c1a8a00af17dfa83_27087525.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1b87b3bece3e083eaa502e999aa65e2d_64716120.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a5d176d31a1b654252bfa85051a8e304_13061378.png change filename to text .imagette219510421743521583/ imagette219510421743521583/1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914487_0.png.png imagette219510421743521583/1743521490_409088_1349309786_dfd29d1e09211d0246d3d2942de382aa_rle_crop_3742919503_0.png.png imagette219510421743521583/1743520911_401970_1349308724_6a0ff6551a7a14ca12698411902b7a00_rle_crop_3742914491_0.png.png imagette219510421743521583/1743520766_2372187_1349308615_7ac5cd2bc34c170023df1cb29a615e3d_rle_crop_3742913239_0.png.png imagette219510421743521583/1743521011_402982_1349308939_7aa751db08dd47b6e7df3490fbb98859_rle_crop_3742914737_0.png.png imagette219510421743521583/1743520766_2372187_1349308511_811803924b816ac116c923cefda429be_rle_crop_3742913290_0.png.png imagette219510421743521583/1743521011_402982_1349308934_d940fc3f8bbfc99efb4cff85b98fa54c_rle_crop_3742915212_0.png.png imagette219510421743521583/1743520871_401482_1349308894_7a5f777e260ce20ebbae3386df19db9a_rle_crop_3742913647_0.png.png imagette219510421743521583/1743520871_401482_1349308891_b3ec570449ae4d6602990735527788a6_rle_crop_3742913665_0.png.png imagette219510421743521583/1743521011_402982_1349308941_2357386476ca23f402587514d32a8a69_rle_crop_3742914723_0.png.png imagette219510421743521583/1743521490_409088_1349309786_dfd29d1e09211d0246d3d2942de382aa_rle_crop_3742919504_0.png.png imagette219510421743521583/1743520753_400350_1349308609_519ac17a8b1795cb031ebffe68552466_rle_crop_3742913206_0.png.png imagette219510421743521583/1743521474_408804_1349309737_3196a3778073e77f78e6a1c90e62ae19_rle_crop_3742919481_0.png.png imagette219510421743521583/1743521371_407118_1349309485_456b5173713723610a86751bd853f458_rle_crop_3742917799_0.png.png imagette219510421743521583/1743520871_401482_1349308894_7a5f777e260ce20ebbae3386df19db9a_rle_crop_3742913646_0.png.png imagette219510421743521583/1743520911_401970_1349308723_edfbeba8f052c7c44a3ee0a4af1d56dc_rle_crop_3742914499_0.png.png imagette219510421743521583/1743521011_402982_1349308983_20595252457e69a7517d454cf39520f3_rle_crop_3742914713_0.png.png imagette219510421743521583/1743521271_406177_1349309251_f83ba5cc429fbdc79326951aca2408c7_rle_crop_3742917525_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e00b7f5fbfc9b52795487084574d7299_78237157.png imagette219510421743521583 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21951031 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21951047,21951048,21951049,21951050,21951051,21951052,21951053,21951054,21951055,21951056,21951057,21951058?tags=mal_croppe,flou,Teint_Dans_La_Masse,papier,kraft,autre_refus,Carton_gris,Carton_brun,metal,environnement,cartonnette,plastique your option no_mail is active, we will not send the real mail to your client args[1349309977] : ('0.05483160810308454',) no score found for photo 1349309977 We are sending mail with results at report@fotonower.com args[1349309923] : ('0.05483160810308454',) no score found for photo 1349309923 We are sending mail with results at report@fotonower.com args[1349309889] : ('0.05483160810308454',) no score found for photo 1349309889 We are sending mail with results at report@fotonower.com args[1349309884] : ('0.05483160810308454',) no score found for photo 1349309884 We are sending mail with results at report@fotonower.com args[1349309877] : ('0.05483160810308454',) no score found for photo 1349309877 We are sending mail with results at report@fotonower.com args[1349309872] : ('0.05483160810308454',) no score found for photo 1349309872 We are sending mail with results at report@fotonower.com args[1349309867] : ('0.05483160810308454',) no score found for photo 1349309867 We are sending mail with results at report@fotonower.com args[1349309862] : ('0.05483160810308454',) no score found for photo 1349309862 We are sending mail with results at report@fotonower.com refus_total : 0.05483160810308454 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=21951031 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_P21951031_01-04-2025_17_32_59.pdf results_Auto_P21951031_01-04-2025_17_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_32_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21951031','results_Auto_P21951031_01-04-2025_17_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_32_59.pdf','pdf','','0.31','0.05483160810308454') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21951031]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] map_info['map_portfolio_photo'] : {21951031: [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862, 1349309786, 1349309759, 1349309740, 1349309737, 1349309735, 1349309591, 1349309580, 1349309570, 1349309558, 1349309536, 1349309510, 1349309500, 1349309485, 1349309481, 1349309436, 1349309432, 1349309428, 1349309427, 1349309262, 1349309256, 1349309251, 1349309241, 1349309231, 1349309077, 1349309075, 1349309070, 1349309068, 1349308983, 1349308980, 1349308978, 1349308943, 1349308941, 1349308939, 1349308935, 1349308934, 1349308900, 1349308898, 1349308894, 1349308891, 1349308889, 1349308823, 1349308806, 1349308798, 1349308741, 1349308724, 1349308723, 1349308615, 1349308612, 1349308609, 1349308606, 1349308523, 1349308519, 1349308515, 1349308511, 1349308503, 1349308428, 1349308423, 1349308417, 1349308410, 1349308401]} final : False mtd_id 4302 list_pids : [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] 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, '2713709') ('4302', '21951031', '1349309977', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309923', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309889', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309884', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309877', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309872', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309867', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309862', None, None, None, None, None, '2713709') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21951031', '1349309977', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309923', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309889', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309884', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309877', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309872', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309867', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309862', None, None, None, None, None, '2713709')] time used for this insertion : 0.015836238861083984 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.443086385726929 time spend to save output : 0.016055583953857422 total time spend for step 4 : 6.459141969680786 step5:split_time_score Tue Apr 1 17:33:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21951031'] 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 : [('21951031',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21951031) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349309923: {'path': 'temp/1743521579_1758621_1349309923_e12090732cadc4f2b0845386d715599a.jpg', 'extension': 'jpg'}, 1349309977: {'path': 'temp/1743521579_1758621_1349309977_344be2f26e5a4d73f74ff5fbdc93a45b.jpg', 'extension': 'jpg'}, 1349309872: {'path': 'temp/1743521579_1758621_1349309872_38be6315a7bbf03f6523ce25b2fe7813.jpg', 'extension': 'jpg'}, 1349309877: {'path': 'temp/1743521579_1758621_1349309877_5777d12e5e64a9cd251395bd283c4769.jpg', 'extension': 'jpg'}, 1349309884: {'path': 'temp/1743521579_1758621_1349309884_bab80c8423272754a170b016dbceb6eb.jpg', 'extension': 'jpg'}, 1349309889: {'path': 'temp/1743521579_1758621_1349309889_83e531356047ce2a286d6ec7158a35d1.jpg', 'extension': 'jpg'}, 1349309862: {'path': 'temp/1743521579_1758621_1349309862_2797f15904e09b3c28bbbde8e41da4f4.jpg', 'extension': 'jpg'}, 1349309867: {'path': 'temp/1743521579_1758621_1349309867_4a14eca98864a9da824e2f26825d0a57.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 21951031; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21951031 group by h (('17', 68),) 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=21951031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21951031) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21951031) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01042025 21951031 Nombre de photos uploadées : 68 / 23040 (0%) 01042025 21951031 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 01042025 21951031 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1349308428, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ab2d3bff7c3615f20e06f33e90b57df0.jpg', 'username': None, 'uploaded_at': 1743520577, 'text': 'image_01042025_17_15_03_010157m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349308401, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2c84d835e5269fd49c02fb1c7c290c94.jpg', 'username': None, 'uploaded_at': 1743520563, 'text': 'image_01042025_17_15_13_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349308423, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b6aa45885c3d0d75e70422fce83eb2b5.jpg', 'username': None, 'uploaded_at': 1743520577, 'text': 'image_01042025_17_15_24_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349308417, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a41f8cf2dde379f3c0170236462ae3f9.jpg', 'username': None, 'uploaded_at': 1743520577, 'text': 'image_01042025_17_15_34_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029730796813964844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21951031, '2025-04-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1705632,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02792668342590332 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1705632 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1705632, 'dashboard_run_id': 1715761, 'mtr_portfolio_id': 21949788, 'dashboard_result_id': 9790940, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949788_01-04-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21949815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949826, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1715761, 'mtr_portfolio_id': 21950402, 'dashboard_result_id': 9790941, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21950402_01-04-2025_17_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21950405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21950406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21950407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21950408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21950409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21950410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21950411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21950412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21950413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21950414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21950415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21950416, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1715761, 'mtr_portfolio_id': 21951031, 'dashboard_result_id': 9790942, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_30_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21951035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21951036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21951037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21951038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21951039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21951040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21951041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21951042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21951043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21951044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21951045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21951046, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21949788 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2713610, 'mtr_portfolio_id': 21949788, 'created_at': datetime.datetime(2025, 4, 1, 17, 2, 58), 'result': '0.059239150326573425', 'result_long': None, 'result_double': None}] Qualite : 0.059239150326573425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21949788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949788_01-04-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21949788 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949788_01-04-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21949815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949826, 'pht': 3726}}" where mtr_portfolio_id = 21949788 and dashboard_run_id = 1715761 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21949788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9790940, 0.059239150326573425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21949788_01-04-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21949815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21949816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21949817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21949818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21949819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21949820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21949821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21949822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21949823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21949824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21949825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21949826, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21950402 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2713671, 'mtr_portfolio_id': 21950402, 'created_at': datetime.datetime(2025, 4, 1, 17, 19, 29), 'result': '0.05969570519763254', 'result_long': None, 'result_double': None}] Qualite : 0.05969570519763254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21950402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21950402_01-04-2025_17_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21950402 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21950402_01-04-2025_17_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21950405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21950406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21950407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21950408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21950409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21950410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21950411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21950412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21950413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21950414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21950415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21950416, 'pht': 3726}}" where mtr_portfolio_id = 21950402 and dashboard_run_id = 1715761 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21950402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9790941, 0.05969570519763254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21950402_01-04-2025_17_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21950405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21950406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21950407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21950408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21950409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21950410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21950411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21950412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21950413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21950414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21950415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21950416, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21951031 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2713709, 'mtr_portfolio_id': 21951031, 'created_at': datetime.datetime(2025, 4, 1, 17, 32, 59), 'result': '0.05483160810308454', 'result_long': None, 'result_double': None}] Qualite : 0.05483160810308454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21951031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21951031 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21951035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21951036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21951037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21951038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21951039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21951040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21951041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21951042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21951043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21951044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21951045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21951046, 'pht': 3726}}" where mtr_portfolio_id = 21951031 and dashboard_run_id = 1715761 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21951031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9790942, 0.05483160810308454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21951031_01-04-2025_17_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21951035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21951036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21951037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21951038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21951039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21951040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21951041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21951042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21951043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21951044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21951045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21951046, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21949788,21950402,21951031) result : ((1349303052,), (1349303054,), (1349303059,), (1349303094,), (1349303100,), (1349303106,), (1349303117,), (1349303130,), (1349303133,), (1349303217,), (1349303222,), (1349303230,), (1349303251,), (1349303257,), (1349303260,), (1349303277,), (1349303280,), (1349303336,), (1349303355,), (1349303394,), (1349303398,), (1349303410,), (1349303419,), (1349303439,), (1349303486,), (1349303488,), (1349303491,), (1349303494,), (1349303497,), (1349303500,), (1349303524,), (1349303526,), (1349303529,), (1349303531,), (1349303571,), (1349303573,), (1349303583,), (1349303621,), (1349303629,), (1349303632,), (1349303718,), (1349303720,), (1349303723,), (1349303727,), (1349303797,), (1349303800,), (1349303806,), (1349303816,), (1349303825,), (1349303861,), (1349303863,), (1349303866,), (1349303868,), (1349303976,), (1349303996,), (1349304236,), (1349304267,), (1349304288,), (1349304302,), (1349304326,), (1349304354,), (1349304426,), (1349304441,), (1349304502,), (1349304816,), (1349304632,), (1349304665,), (1349304706,), (1349304748,), (1349304782,), (1349305053,), (1349305108,), (1349305124,), (1349305156,), (1349305493,), (1349305540,), (1349305577,), (1349305609,), (1349305858,), (1349305902,), (1349305950,), (1349305993,), (1349306026,), (1349306043,), (1349306310,), (1349306336,), (1349306389,), (1349306423,), (1349306462,), (1349306492,), (1349306653,), (1349306667,), (1349306689,), (1349306716,), (1349306942,), (1349306958,), (1349306980,), (1349307001,), (1349307019,), (1349307068,), (1349307284,), (1349307969,), (1349307972,), (1349307996,), (1349308004,), (1349308023,), (1349308063,), (1349308066,), (1349308069,), (1349308074,), (1349308127,), (1349308131,), (1349308138,), (1349308141,), (1349308307,), (1349308315,), (1349308319,), (1349308323,), (1349308330,), (1349308333,), (1349308351,), (1349308357,), (1349308365,), (1349308374,), (1349308433,), (1349308401,), (1349308410,), (1349308417,), (1349308423,), (1349308428,), (1349308503,), (1349308511,), (1349308515,), (1349308519,), (1349308523,), (1349308606,), (1349308609,), (1349308612,), (1349308615,), (1349308723,), (1349308724,), (1349308741,), (1349308798,), (1349308806,), (1349308823,), (1349308889,), (1349308891,), (1349308894,), (1349308898,), (1349308900,), (1349308934,), (1349308935,), (1349308939,), (1349308941,), (1349308943,), (1349308978,), (1349308980,), (1349308983,), (1349309068,), (1349309070,), (1349309075,), (1349309077,), (1349309231,), (1349309241,), (1349309251,), (1349309256,), (1349309262,), (1349309427,), (1349309428,), (1349309432,), (1349309436,), (1349309481,), (1349309485,), (1349309500,), (1349309510,), (1349309536,), (1349309558,), (1349309570,), (1349309580,), (1349309591,), (1349309735,), (1349309737,), (1349309740,), (1349309759,), (1349309786,), (1349309862,), (1349309867,), (1349309872,), (1349309877,), (1349309884,), (1349309889,), (1349309923,), (1349309977,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01042025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21951031]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] map_info['map_portfolio_photo'] : {21951031: [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862, 1349309786, 1349309759, 1349309740, 1349309737, 1349309735, 1349309591, 1349309580, 1349309570, 1349309558, 1349309536, 1349309510, 1349309500, 1349309485, 1349309481, 1349309436, 1349309432, 1349309428, 1349309427, 1349309262, 1349309256, 1349309251, 1349309241, 1349309231, 1349309077, 1349309075, 1349309070, 1349309068, 1349308983, 1349308980, 1349308978, 1349308943, 1349308941, 1349308939, 1349308935, 1349308934, 1349308900, 1349308898, 1349308894, 1349308891, 1349308889, 1349308823, 1349308806, 1349308798, 1349308741, 1349308724, 1349308723, 1349308615, 1349308612, 1349308609, 1349308606, 1349308523, 1349308519, 1349308515, 1349308511, 1349308503, 1349308428, 1349308423, 1349308417, 1349308410, 1349308401]} final : True mtd_id 4302 list_pids : [1349309977, 1349309923, 1349309889, 1349309884, 1349309877, 1349309872, 1349309867, 1349309862] Looping around the photos to save general results len do output : 1 /21951031Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309977', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309923', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309889', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309884', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309877', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309872', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309867', None, None, None, None, None, '2713709') ('4302', None, None, None, None, None, None, None, '2713709') ('4302', '21951031', '1349309862', None, None, None, None, None, '2713709') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '21951031', 'None', None, None, None, None, '2713709'), ('4302', '21951031', '1349309977', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309923', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309889', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309884', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309877', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309872', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309867', None, None, None, None, None, '2713709'), ('4302', '21951031', '1349309862', None, None, None, None, None, '2713709')] time used for this insertion : 0.01387786865234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.30086755752563477 time spend to save output : 0.014111757278442383 total time spend for step 5 : 0.31497931480407715 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2713709) 2.17user 2.62system 0:11.58elapsed 41%CPU (0avgtext+0avgdata 159520maxresident)k 192inputs+15872outputs (1major+64145minor)pagefaults 0swaps