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 : 3928216 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 (2632546) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2632546) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008886 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2632546'] with mtr_portfolio_ids : ['21008886'] and first list_photo_ids : [] new path : /proc/3928216/ Name: python3 Umask: 0002 State: R (running) Tgid: 3928216 Ngid: 0 Pid: 3928216 PPid: 3928215 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3928216 NSpid: 3928216 NSpgid: 3924859 NSsid: 3924859 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99012 kB VmRSS: 99012 kB RssAnon: 59760 kB RssFile: 39252 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 48 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3928216', 'Ngid': '0', 'Pid': '3928216', 'PPid': '3928215', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3928216', 'NSpid': '3928216', 'NSpgid': '3924859', 'NSsid': '3924859', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99012 kB', 'VmRSS': '99012 kB', 'RssAnon': '59760 kB', 'RssFile': '39252 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '48', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '3928216', '1106844', '0', '1106844', '865592', '99012', b'', 'marlene', '2632546') 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 (21008886) 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 (2632546 ) ) 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 (21008886) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340802003, 'portfolio_id': 21008886}, {'photo_id': 1340801946, 'portfolio_id': 21008886}, {'photo_id': 1340801944, 'portfolio_id': 21008886}, {'photo_id': 1340801918, 'portfolio_id': 21008886}, {'photo_id': 1340801883, 'portfolio_id': 21008886}, {'photo_id': 1340801877, 'portfolio_id': 21008886}, {'photo_id': 1340801872, 'portfolio_id': 21008886}, {'photo_id': 1340801868, 'portfolio_id': 21008886}, {'photo_id': 1340801865, 'portfolio_id': 21008886}, {'photo_id': 1340801774, 'portfolio_id': 21008886}, {'photo_id': 1340801766, 'portfolio_id': 21008886}, {'photo_id': 1340801761, 'portfolio_id': 21008886}, {'photo_id': 1340801756, 'portfolio_id': 21008886}, {'photo_id': 1340801726, 'portfolio_id': 21008886}, {'photo_id': 1340801721, 'portfolio_id': 21008886}, {'photo_id': 1340801529, 'portfolio_id': 21008886}, {'photo_id': 1340801430, 'portfolio_id': 21008886}, {'photo_id': 1340801292, 'portfolio_id': 21008886}, {'photo_id': 1340801270, 'portfolio_id': 21008886}, {'photo_id': 1340801222, 'portfolio_id': 21008886}, {'photo_id': 1340801219, 'portfolio_id': 21008886}, {'photo_id': 1340801214, 'portfolio_id': 21008886}, {'photo_id': 1340801208, 'portfolio_id': 21008886}, {'photo_id': 1340801205, 'portfolio_id': 21008886}, {'photo_id': 1340801200, 'portfolio_id': 21008886}, {'photo_id': 1340801151, 'portfolio_id': 21008886}, {'photo_id': 1340801143, 'portfolio_id': 21008886}, {'photo_id': 1340801094, 'portfolio_id': 21008886}, {'photo_id': 1340801072, 'portfolio_id': 21008886}, {'photo_id': 1340801067, 'portfolio_id': 21008886}, {'photo_id': 1340800997, 'portfolio_id': 21008886}, {'photo_id': 1340800988, 'portfolio_id': 21008886}, {'photo_id': 1340800980, 'portfolio_id': 21008886}, {'photo_id': 1340800959, 'portfolio_id': 21008886}, {'photo_id': 1340800945, 'portfolio_id': 21008886}, {'photo_id': 1340800901, 'portfolio_id': 21008886}, {'photo_id': 1340800896, 'portfolio_id': 21008886}, {'photo_id': 1340800891, 'portfolio_id': 21008886}, {'photo_id': 1340800853, 'portfolio_id': 21008886}, {'photo_id': 1340800846, 'portfolio_id': 21008886}, {'photo_id': 1340800839, 'portfolio_id': 21008886}, {'photo_id': 1340800835, 'portfolio_id': 21008886}, {'photo_id': 1340800829, 'portfolio_id': 21008886}, {'photo_id': 1340800793, 'portfolio_id': 21008886}, {'photo_id': 1340800786, 'portfolio_id': 21008886}, {'photo_id': 1340800780, 'portfolio_id': 21008886}, {'photo_id': 1340800774, 'portfolio_id': 21008886}, {'photo_id': 1340800768, 'portfolio_id': 21008886}, {'photo_id': 1340800761, 'portfolio_id': 21008886}, {'photo_id': 1340800731, 'portfolio_id': 21008886}, {'photo_id': 1340800706, 'portfolio_id': 21008886}, {'photo_id': 1340800694, 'portfolio_id': 21008886}, {'photo_id': 1340800681, 'portfolio_id': 21008886}, {'photo_id': 1340800671, 'portfolio_id': 21008886}, {'photo_id': 1340800512, 'portfolio_id': 21008886}, {'photo_id': 1340800506, 'portfolio_id': 21008886}, {'photo_id': 1340800500, 'portfolio_id': 21008886}, {'photo_id': 1340800464, 'portfolio_id': 21008886}, {'photo_id': 1340800461, 'portfolio_id': 21008886}, {'photo_id': 1340800404, 'portfolio_id': 21008886}, {'photo_id': 1340800400, 'portfolio_id': 21008886}, {'photo_id': 1340800293, 'portfolio_id': 21008886}, {'photo_id': 1340800258, 'portfolio_id': 21008886}, {'photo_id': 1340800252, 'portfolio_id': 21008886}, {'photo_id': 1340800152, 'portfolio_id': 21008886}, {'photo_id': 1340800147, 'portfolio_id': 21008886}] map_portfolio_id_photo_id: {21008886: [1340802003, 1340801946, 1340801944, 1340801918, 1340801883, 1340801877, 1340801872, 1340801868, 1340801865, 1340801774, 1340801766, 1340801761, 1340801756, 1340801726, 1340801721, 1340801529, 1340801430, 1340801292, 1340801270, 1340801222, 1340801219, 1340801214, 1340801208, 1340801205, 1340801200, 1340801151, 1340801143, 1340801094, 1340801072, 1340801067, 1340800997, 1340800988, 1340800980, 1340800959, 1340800945, 1340800901, 1340800896, 1340800891, 1340800853, 1340800846, 1340800839, 1340800835, 1340800829, 1340800793, 1340800786, 1340800780, 1340800774, 1340800768, 1340800761, 1340800731, 1340800706, 1340800694, 1340800681, 1340800671, 1340800512, 1340800506, 1340800500, 1340800464, 1340800461, 1340800404, 1340800400, 1340800293, 1340800258, 1340800252, 1340800152, 1340800147]} ##### 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.015546321868896484 #### 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 Mar 4 13:48: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 (21008886) 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 : 21008886 get user id for portfolio 21008886 get sub ptf for main ptf 21008886, type 3726 and hashtags ['environnement', 'plastique', 'mal_croppe', 'metal', 'Carton_gris', 'papier', 'Teint_Dans_La_Masse', 'cartonnette', 'kraft', 'flou', 'Carton_brun', 'autre_refus'] 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`=21008886 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','metal','Carton_gris','papier','Teint_Dans_La_Masse','cartonnette','kraft','flou','Carton_brun','autre_refus')) 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`=21008886 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','metal','Carton_gris','papier','Teint_Dans_La_Masse','cartonnette','kraft','flou','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21008886, 'sub_port_id': 21008905, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626188, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'papier': {'main_port_id': 21008886, 'sub_port_id': 21008906, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626189, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'kraft': {'main_port_id': 21008886, 'sub_port_id': 21008907, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626190, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'flou': {'main_port_id': 21008886, 'sub_port_id': 21008908, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626191, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'mal_croppe': {'main_port_id': 21008886, 'sub_port_id': 21008909, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626192, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'cartonnette': {'main_port_id': 21008886, 'sub_port_id': 21008910, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626193, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'Carton_gris': {'main_port_id': 21008886, 'sub_port_id': 21008911, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626194, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'metal': {'main_port_id': 21008886, 'sub_port_id': 21008912, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626195, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'plastique': {'main_port_id': 21008886, 'sub_port_id': 21008913, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626196, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21008886, 'sub_port_id': 21008914, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626197, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'Carton_brun': {'main_port_id': 21008886, 'sub_port_id': 21008915, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626198, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}, 'environnement': {'main_port_id': 21008886, 'sub_port_id': 21008916, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626199, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21008905 , 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=21008886 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 (21008905) result : ((1340800529,), (1340800530,), (1340800531,), (1340800532,), (1340800533,), (1340800534,), (1340800754,), (1340800755,), (1340800802,), (1340800803,), (1340800804,), (1340800805,), (1340800806,), (1340800807,), (1340800808,), (1340800922,), (1340800923,), (1340800924,), (1340800925,), (1340800926,), (1340800951,), (1340800952,), (1340800953,), (1340800954,), (1340800955,), (1340800956,), (1340800957,), (1340800958,), (1340801155,), (1340801156,), (1340801157,), (1340801158,), (1340801159,), (1340801160,), (1340801161,), (1340801176,), (1340801177,), (1340801178,), (1340801179,), (1340801298,), (1340801299,), (1340801300,), (1340801322,), (1340801324,), (1340801325,), (1340801326,), (1340801327,), (1340801715,), (1340801799,), (1340801800,), (1340801801,), (1340801802,), (1340801803,), (1340801804,), (1340801805,), (1340801916,), (1340801958,), (1340801985,), (1340801986,), (1340801987,), (1340801988,), (1340801989,), (1340802313,), (1340802314,), (1340802315,), (1340802316,), (1340802317,), (1340802323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008906 , 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=21008886 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 (21008906) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008907 , 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=21008886 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 (21008907) result : ((1340800541,), (1340800818,), (1340800931,), (1340800981,), (1340802327,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008908 , 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=21008886 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 (21008908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008909 , 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=21008886 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 (21008909) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008910 , 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=21008886 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 (21008910) result : ((1340800810,), (1340800811,), (1340800812,), (1340800813,), (1340800966,), (1340800967,), (1340800968,), (1340800969,), (1340800970,), (1340800971,), (1340800972,), (1340800973,), (1340800974,), (1340800975,), (1340800976,), (1340800977,), (1340801164,), (1340801165,), (1340801183,), (1340801813,), (1340801814,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008911 , 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=21008886 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 (21008911) result : ((1340800758,), (1340800809,), (1340800927,), (1340801163,), (1340801180,), (1340801181,), (1340801717,), (1340801811,), (1340801990,), (1340801991,), (1340802319,), (1340802320,), (1340802325,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008912 , 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=21008886 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 (21008912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008913 , 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=21008886 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 (21008913) result : ((1340800540,), (1340800759,), (1340800760,), (1340800979,), (1340801171,), (1340801825,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008914 , 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=21008886 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 (21008914) result : ((1340800527,), (1340800797,), (1340800798,), (1340800799,), (1340800941,), (1340800942,), (1340800943,), (1340800944,), (1340801149,), (1340801150,), (1340801172,), (1340801173,), (1340801174,), (1340801786,), (1340801787,), (1340802307,), (1340802308,), (1340802309,), (1340802310,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008915 , 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=21008886 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 (21008915) result : ((1340800537,), (1340800538,), (1340800539,), (1340800815,), (1340800816,), (1340800817,), (1340800928,), (1340801167,), (1340801168,), (1340801301,), (1340801816,), (1340801817,), (1340801818,), (1340801819,), (1340801917,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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 21008916 , 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=21008886 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 (21008916) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21008886) result : ((1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) 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 (1340800400,1340801200,1340800500) 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`=21008886 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','metal','Carton_gris','papier','Teint_Dans_La_Masse','cartonnette','kraft','flou','Carton_brun','autre_refus')) 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`=21008886 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','metal','Carton_gris','papier','Teint_Dans_La_Masse','cartonnette','kraft','flou','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21008886, 'sub_port_id': 21008917, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626200, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'papier': {'main_port_id': 21008886, 'sub_port_id': 21008918, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626201, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'kraft': {'main_port_id': 21008886, 'sub_port_id': 21008919, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626202, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'flou': {'main_port_id': 21008886, 'sub_port_id': 21008920, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626203, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'mal_croppe': {'main_port_id': 21008886, 'sub_port_id': 21008921, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626204, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'cartonnette': {'main_port_id': 21008886, 'sub_port_id': 21008922, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626205, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'Carton_gris': {'main_port_id': 21008886, 'sub_port_id': 21008923, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626206, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'metal': {'main_port_id': 21008886, 'sub_port_id': 21008924, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626207, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'plastique': {'main_port_id': 21008886, 'sub_port_id': 21008925, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626208, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21008886, 'sub_port_id': 21008926, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626209, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'Carton_brun': {'main_port_id': 21008886, 'sub_port_id': 21008927, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626210, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}, 'environnement': {'main_port_id': 21008886, 'sub_port_id': 21008928, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13626211, 'last_updated_at': datetime.datetime(2025, 3, 4, 13, 46, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 13, 46, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 13, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008915 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21008928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21008916 lien utilise dans velours : https://www.fotonower.com/velours/21008917,21008918,21008919,21008920,21008921,21008922,21008923,21008924,21008925,21008926,21008927,21008928?tags=autre_refus,papier,kraft,flou,mal_croppe,cartonnette,Carton_gris,metal,plastique,Teint_Dans_La_Masse,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21008886]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340802003] map_info['map_portfolio_photo'] : {21008886: [1340802003, 1340801946, 1340801944, 1340801918, 1340801883, 1340801877, 1340801872, 1340801868, 1340801865, 1340801774, 1340801766, 1340801761, 1340801756, 1340801726, 1340801721, 1340801529, 1340801430, 1340801292, 1340801270, 1340801222, 1340801219, 1340801214, 1340801208, 1340801205, 1340801200, 1340801151, 1340801143, 1340801094, 1340801072, 1340801067, 1340800997, 1340800988, 1340800980, 1340800959, 1340800945, 1340800901, 1340800896, 1340800891, 1340800853, 1340800846, 1340800839, 1340800835, 1340800829, 1340800793, 1340800786, 1340800780, 1340800774, 1340800768, 1340800761, 1340800731, 1340800706, 1340800694, 1340800681, 1340800671, 1340800512, 1340800506, 1340800500, 1340800464, 1340800461, 1340800404, 1340800400, 1340800293, 1340800258, 1340800252, 1340800152, 1340800147]} final : False mtd_id 4302 list_pids : [1340802003] Looping around the photos to save general results len do output : 1 /21008886. 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, '2632546') ('4302', '21008886', '1340802003', None, None, None, None, None, '2632546') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21008886', "{'autre_refus': 21008905, 'papier': 21008906, 'kraft': 21008907, 'flou': 21008908, 'mal_croppe': 21008909, 'cartonnette': 21008910, 'Carton_gris': 21008911, 'metal': 21008912, 'plastique': 21008913, 'Teint_Dans_La_Masse': 21008914, 'Carton_brun': 21008915, 'environnement': 21008916}", None, None, None, None, '2632546'), ('4302', '21008886', '1340802003', None, None, None, None, None, '2632546')] time used for this insertion : 0.011771202087402344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4901902675628662 time spend to save output : 0.012011528015136719 total time spend for step 1 : 0.5022017955780029 step2:final Tue Mar 4 13:48: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 (21008886) 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 21008886 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340800293,1340800258,1340800252,1340800152,1340800147,1340800464,1340800461,1340800404,1340800400,1340800512,1340800506,1340800500,1340800731,1340800706,1340800694,1340800681,1340800671,1340800793,1340800786,1340800780,1340800774,1340800768,1340800761,1340800853,1340800846,1340800839,1340800835,1340800829,1340800901,1340800896,1340800891,1340800997,1340800988,1340800980,1340800959,1340800945,1340801151,1340801143,1340801094,1340801072,1340801067,1340801222,1340801219,1340801214,1340801208,1340801205,1340801200,1340801292,1340801270,1340801529,1340801430,1340801774,1340801766,1340801761,1340801756,1340801726,1340801721,1340801883,1340801877,1340801872,1340801868,1340801865,1340801946,1340801944,1340801918,1340802003); 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([21008886]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340802003: ('0.07133681776434345',)} new output for save of step final : {1340802003: ('0.07133681776434345',)} [1340802003] map_info['map_portfolio_photo'] : {21008886: [1340802003, 1340801946, 1340801944, 1340801918, 1340801883, 1340801877, 1340801872, 1340801868, 1340801865, 1340801774, 1340801766, 1340801761, 1340801756, 1340801726, 1340801721, 1340801529, 1340801430, 1340801292, 1340801270, 1340801222, 1340801219, 1340801214, 1340801208, 1340801205, 1340801200, 1340801151, 1340801143, 1340801094, 1340801072, 1340801067, 1340800997, 1340800988, 1340800980, 1340800959, 1340800945, 1340800901, 1340800896, 1340800891, 1340800853, 1340800846, 1340800839, 1340800835, 1340800829, 1340800793, 1340800786, 1340800780, 1340800774, 1340800768, 1340800761, 1340800731, 1340800706, 1340800694, 1340800681, 1340800671, 1340800512, 1340800506, 1340800500, 1340800464, 1340800461, 1340800404, 1340800400, 1340800293, 1340800258, 1340800252, 1340800152, 1340800147]} final : False mtd_id 4302 list_pids : [1340802003] Looping around the photos to save general results len do output : 1 /1340802003.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, '2632546') ('4302', '21008886', '1340802003', None, None, None, None, None, '2632546') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '21008886', '1340802003', '0.07133681776434345', None, None, None, None, '2632546')] time used for this insertion : 0.010804176330566406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07290887832641602 time spend to save output : 0.01102304458618164 total time spend for step 2 : 0.08393192291259766 step3:velours_tree Tue Mar 4 13:48: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 : {21008886: [{'autre_refus': 21008905, 'papier': 21008906, 'kraft': 21008907, 'flou': 21008908, 'mal_croppe': 21008909, 'cartonnette': 21008910, 'Carton_gris': 21008911, 'metal': 21008912, 'plastique': 21008913, 'Teint_Dans_La_Masse': 21008914, 'Carton_brun': 21008915, 'environnement': 21008916}]} input_args_next_step : {21008886: ()} output_args : {21008886: [{'autre_refus': 21008905, 'papier': 21008906, 'kraft': 21008907, 'flou': 21008908, 'mal_croppe': 21008909, 'cartonnette': 21008910, 'Carton_gris': 21008911, 'metal': 21008912, 'plastique': 21008913, 'Teint_Dans_La_Masse': 21008914, 'Carton_brun': 21008915, 'environnement': 21008916}]} args : 21008886 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 : ({'autre_refus': 21008905, 'papier': 21008906, 'kraft': 21008907, 'flou': 21008908, 'mal_croppe': 21008909, 'cartonnette': 21008910, 'Carton_gris': 21008911, 'metal': 21008912, 'plastique': 21008913, 'Teint_Dans_La_Masse': 21008914, 'Carton_brun': 21008915, 'environnement': 21008916},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21008886) 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([21008886]) 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.28804683685302734 time spend to save output : 4.315376281738281e-05 total time spend for step 3 : 0.2880899906158447 step4:send_mail_cod Tue Mar 4 13:48: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 : {1340802003: ('0.07133681776434345',)} input_args_next_step : {1340802003: ()} output_args : {1340802003: ('0.07133681776434345',)} args : 1340802003 depend.output_id : 0 complete output_args for input 3 : {21008886: [{'autre_refus': 21008905, 'papier': 21008906, 'kraft': 21008907, 'flou': 21008908, 'mal_croppe': 21008909, 'cartonnette': 21008910, 'Carton_gris': 21008911, 'metal': 21008912, 'plastique': 21008913, 'Teint_Dans_La_Masse': 21008914, 'Carton_brun': 21008915, 'environnement': 21008916}]} input_args_next_step : {1340802003: ('0.07133681776434345',), 21008886: ()} output_args : {21008886: [{'autre_refus': 21008905, 'papier': 21008906, 'kraft': 21008907, 'flou': 21008908, 'mal_croppe': 21008909, 'cartonnette': 21008910, 'Carton_gris': 21008911, 'metal': 21008912, 'plastique': 21008913, 'Teint_Dans_La_Masse': 21008914, 'Carton_brun': 21008915, 'environnement': 21008916}]} args : 21008886 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 :2, first value : ('0.07133681776434345',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21008886) 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 (1340802003) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340802003 download finish for photo 1340802003 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21008886_04-03-2025_13_48_59.pdf 21008905 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=21008905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340801322: '1741092063_4024154_1340801151_9e1fa5516b580d4d93ca80ba18984e9a_rle_crop_3693240516_0.png', 1340801801: '1741092192_4025967_1340801214_5a176d3c8a7a91e17143ef5fd86ab45a_rle_crop_3693241143_0.png', 1340801800: '1741092192_4025967_1340801219_62e893c190a6b864ac6e72b119b7463b_rle_crop_3693241134_0.png', 1340801799: '1741092192_4025967_1340801292_e465f38148ced0a8205ccc7f28a444dd_rle_crop_3693241125_0.png', 1340801715: '1741092171_4025661_1340801222_9d35022422a14290c3faf7037eb6ca8a_rle_crop_3693240833_0.png', 1340801327: '1741092063_4024154_1340800945_27398e7a999bad58948ff6fe577d7853_rle_crop_3693240549_0.png', 1340801326: '1741092063_4024154_1340800959_fbf602f12ed825a332121e728c7e5631_rle_crop_3693240541_0.png', 1340801325: '1741092063_4024154_1340800980_8948e233ca836af26e684882c69a7c30_rle_crop_3693240530_0.png', 1340801324: '1741092063_4024154_1340800988_5b0e40b1e042159fbc00fc7a0dd8e390_rle_crop_3693240522_0.png', 1340801802: '1741092192_4025967_1340801214_5a176d3c8a7a91e17143ef5fd86ab45a_rle_crop_3693241148_0.png', 1340801300: '1741092052_4023998_1340801067_010681b53ceb90449169bd20b46773e1_rle_crop_3693240497_0.png', 1340801299: '1741092052_4023998_1340801067_010681b53ceb90449169bd20b46773e1_rle_crop_3693240495_0.png', 1340801298: '1741092052_4023998_1340801143_e2da8d20e99303e7c8b75ac25958f602_rle_crop_3693240458_0.png', 1340801179: '1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239769_0.png', 1340801178: '1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239767_0.png', 1340801177: '1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239756_0.png', 1340801176: '1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239744_0.png', 1340801987: '1741092331_4027823_1340801756_473aacf549e042a861f8b37c749299da_rle_crop_3693242738_0.png', 1340802323: '1741092432_4029372_1340801944_f04d2b5737ffc7d563bacc90aa78edad_rle_crop_3693243478_0.png', 1340802317: '1741092412_4029048_1340801865_bcaed0007bcaef1b7a22aefa341a84b3_rle_crop_3693243463_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1af8cd9e25e3b79a19a44b0d10f0dae3_32190382.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/360bb1756705040bc4797e0143320f98_32859736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ed9f66c9846f17c3859abce37466b695_6353085.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3ed763b151bf80579fca404a50adf20b_32846159.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e0d88c96c24340c8708d46241c8bc237_20582604.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/31256938788cbc451de1dcce9384c0de_6100446.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2707a441c00c49f760c58e976d688d97_56277472.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dd2c076056ff33f30f7cdaa955fcab6b_10720644.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/bc70c6cb81fdce7ff5fa1507be154018_33431726.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/420f996e2f6a035ee94a78c498cd26aa_66837094.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f94735287ff4baef54699d8b4abc9439_34576986.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/339ad6cde270b064468d2d6de0c368d0_50848665.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c2b4f6e8aaa2c1fc9233a5679107aff0_20066712.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/aaacdc76e8b90f3af10f984bf2095df7_67073048.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c92f153587e91ced06d90cfe00bab292_17674900.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7b63cef55bf6bfefb3c22acf5b7c09e8_99750218.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c74fe38a81ddb0d9ffa41d33840a4135_11798625.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/38ff01f3826f99578efce9860352da1c_63347444.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d7c893ce219a90bbd723ede43ba7edc8_59860272.png change filename to text .imagette210089051741092539/ imagette210089051741092539/1741092052_4023998_1340801067_010681b53ceb90449169bd20b46773e1_rle_crop_3693240495_0.png.png imagette210089051741092539/1741092063_4024154_1340800945_27398e7a999bad58948ff6fe577d7853_rle_crop_3693240549_0.png.png imagette210089051741092539/1741092063_4024154_1340801151_9e1fa5516b580d4d93ca80ba18984e9a_rle_crop_3693240516_0.png.png imagette210089051741092539/1741092063_4024154_1340800959_fbf602f12ed825a332121e728c7e5631_rle_crop_3693240541_0.png.png imagette210089051741092539/1741092192_4025967_1340801292_e465f38148ced0a8205ccc7f28a444dd_rle_crop_3693241125_0.png.png imagette210089051741092539/1741092192_4025967_1340801214_5a176d3c8a7a91e17143ef5fd86ab45a_rle_crop_3693241148_0.png.png imagette210089051741092539/1741092412_4029048_1340801865_bcaed0007bcaef1b7a22aefa341a84b3_rle_crop_3693243463_0.png.png imagette210089051741092539/1741092063_4024154_1340800988_5b0e40b1e042159fbc00fc7a0dd8e390_rle_crop_3693240522_0.png.png imagette210089051741092539/1741092432_4029372_1340801944_f04d2b5737ffc7d563bacc90aa78edad_rle_crop_3693243478_0.png.png imagette210089051741092539/1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239769_0.png.png imagette210089051741092539/1741092331_4027823_1340801756_473aacf549e042a861f8b37c749299da_rle_crop_3693242738_0.png.png imagette210089051741092539/1741092052_4023998_1340801067_010681b53ceb90449169bd20b46773e1_rle_crop_3693240497_0.png.png imagette210089051741092539/1741092052_4023998_1340801143_e2da8d20e99303e7c8b75ac25958f602_rle_crop_3693240458_0.png.png imagette210089051741092539/1741092192_4025967_1340801219_62e893c190a6b864ac6e72b119b7463b_rle_crop_3693241134_0.png.png imagette210089051741092539/1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239756_0.png.png imagette210089051741092539/1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239744_0.png.png imagette210089051741092539/1741092192_4025967_1340801214_5a176d3c8a7a91e17143ef5fd86ab45a_rle_crop_3693241143_0.png.png imagette210089051741092539/1741092171_4025661_1340801222_9d35022422a14290c3faf7037eb6ca8a_rle_crop_3693240833_0.png.png imagette210089051741092539/1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239767_0.png.png imagette210089051741092539/1741092063_4024154_1340800980_8948e233ca836af26e684882c69a7c30_rle_crop_3693240530_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2fe8749c174ece8016665e7d848e396d_32887234.png imagette210089051741092539 21008907 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=21008907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340800541: '1741091571_4017496_1340800293_3f049a309d38b8ea882b1a2817d38861_rle_crop_3693236792_0.png', 1340800818: '1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237449_0.png', 1340800931: '1741091833_4021152_1340800671_72f54d06fa5c979c3cf4ba2a3697b4a3_rle_crop_3693239009_0.png', 1340800981: '1741091852_4021433_1340800786_ccde062e746c36280f634e1d30cfa2a0_rle_crop_3693239082_0.png', 1340802327: '1741092432_4029372_1340801944_f04d2b5737ffc7d563bacc90aa78edad_rle_crop_3693243479_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/be512ff86ee6e6dcd626c258ff9a6728_29023597.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b76c9cdde2a274af926700a9444ea54f_160280.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a2517a926815dd92a365c613d5587619_59061397.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/97a1041af9b527c01ba63d48eb72ef2f_54665492.png change filename to text .imagette210089071741092540/ imagette210089071741092540/1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237449_0.png.png imagette210089071741092540/1741092432_4029372_1340801944_f04d2b5737ffc7d563bacc90aa78edad_rle_crop_3693243479_0.png.png imagette210089071741092540/1741091571_4017496_1340800293_3f049a309d38b8ea882b1a2817d38861_rle_crop_3693236792_0.png.png imagette210089071741092540/1741091852_4021433_1340800786_ccde062e746c36280f634e1d30cfa2a0_rle_crop_3693239082_0.png.png imagette210089071741092540/1741091833_4021152_1340800671_72f54d06fa5c979c3cf4ba2a3697b4a3_rle_crop_3693239009_0.png.png imagette210089081741092541/ imagette210089091741092541/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/073596f01c849d5ba34e4e0998e32d1b_61544316.png imagette210089071741092540 21008908 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=21008908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210089081741092541 21008909 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=21008909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210089091741092541 21008910 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=21008910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340800972: '1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239155_0.png', 1340801814: '1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241155_0.png', 1340801813: '1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241158_0.png', 1340801183: '1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239741_0.png', 1340801165: '1741091932_4022377_1340800829_1cc3fe954e3837cc0f8893700bee2b32_rle_crop_3693239725_0.png', 1340801164: '1741091932_4022377_1340800839_78a5ec89b1ee619b49413dff473aee49_rle_crop_3693239694_0.png', 1340800977: '1741091852_4021433_1340800761_09cc57b7ce54e41d9cd86fd973f1dbe1_rle_crop_3693239207_0.png', 1340800976: '1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239185_0.png', 1340800975: '1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239177_0.png', 1340800974: '1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239180_0.png', 1340800973: '1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239171_0.png', 1340800810: '1741091710_4019362_1340800512_4b6c33bb8674baae243ca04f799f9384_rle_crop_3693237416_0.png', 1340800971: '1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239149_0.png', 1340800970: '1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239148_0.png', 1340800969: '1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239121_0.png', 1340800968: '1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239118_0.png', 1340800967: '1741091852_4021433_1340800786_ccde062e746c36280f634e1d30cfa2a0_rle_crop_3693239079_0.png', 1340800966: '1741091852_4021433_1340800786_ccde062e746c36280f634e1d30cfa2a0_rle_crop_3693239080_0.png', 1340800813: '1741091710_4019362_1340800400_1c9e5e7a65e5c582192efdbc239950a0_rle_crop_3693237467_0.png', 1340800812: '1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237458_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/248c0f5717a5da167972c5060beb1c46_80185009.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/93e2692787056807064e7c1614530dea_42755886.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3fb4af9a94ac291e16394da3f48001bf_53387677.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/50a4df2a372d824200d7256e853d1662_4086182.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f54f180c59cb785d57861fe8e6906b45_62783999.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ef4ed2e2b9f8abc1d63124119a887a2e_46161132.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/150b27f61688648863d81854e0ae6889_54643137.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/de89f34dad663be256e309175f84ba2a_64443122.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/eaa6292c456c961d3a01897c14e6f9a6_67056443.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e85e6a780e0ac7f7eae52253b0a7c299_24850363.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ef94203d8de0ee00674c078ee6f2238f_78189316.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3893f222b7f48023cb034648937e54b5_86879421.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7a5f0b59df7aac7c675146b26c319891_74113372.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9f088fd0ce0e1afc8e3a8feacadd26a1_80488049.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/89a68c842156a8573a586b546e331490_28774597.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/69f257b746322372a04c7650ef86939c_21309296.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4746ab9e6b3156591694a83daf7fa5b2_10789700.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2a3c0990f6ccd692a58fb46e4cb25c24_62574814.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b40104b4622d838d649964745912bcdc_84641911.png change filename to text .imagette210089101741092541/ imagette210089101741092541/1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239121_0.png.png imagette210089101741092541/1741091852_4021433_1340800786_ccde062e746c36280f634e1d30cfa2a0_rle_crop_3693239080_0.png.png imagette210089101741092541/1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239741_0.png.png imagette210089101741092541/1741091710_4019362_1340800400_1c9e5e7a65e5c582192efdbc239950a0_rle_crop_3693237467_0.png.png imagette210089101741092541/1741091852_4021433_1340800761_09cc57b7ce54e41d9cd86fd973f1dbe1_rle_crop_3693239207_0.png.png imagette210089101741092541/1741091852_4021433_1340800786_ccde062e746c36280f634e1d30cfa2a0_rle_crop_3693239079_0.png.png imagette210089101741092541/1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239177_0.png.png imagette210089101741092541/1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241158_0.png.png imagette210089101741092541/1741091932_4022377_1340800839_78a5ec89b1ee619b49413dff473aee49_rle_crop_3693239694_0.png.png imagette210089101741092541/1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239185_0.png.png imagette210089101741092541/1741091710_4019362_1340800512_4b6c33bb8674baae243ca04f799f9384_rle_crop_3693237416_0.png.png imagette210089101741092541/1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239180_0.png.png imagette210089101741092541/1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241155_0.png.png imagette210089101741092541/1741091932_4022377_1340800829_1cc3fe954e3837cc0f8893700bee2b32_rle_crop_3693239725_0.png.png imagette210089101741092541/1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239118_0.png.png imagette210089101741092541/1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237458_0.png.png imagette210089101741092541/1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239171_0.png.png imagette210089101741092541/1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239148_0.png.png imagette210089101741092541/1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239149_0.png.png imagette210089101741092541/1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239155_0.png.png imagette210089121741092542/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6bcc310cba5c517c3e9fc600fbc7826b_99376706.png imagette210089101741092541 21008912 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=21008912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210089121741092542 21008913 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=21008913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340800540: '1741091571_4017496_1340800293_3f049a309d38b8ea882b1a2817d38861_rle_crop_3693236787_0.png', 1340800759: '1741091693_4019058_1340800506_cef28583ecafcf49102aeb13fbfeaed9_rle_crop_3693237172_0.png', 1340800760: '1741091693_4019058_1340800500_edc6cb757718eff612c3c4a73aa144cd_rle_crop_3693237181_0.png', 1340800979: '1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239127_0.png', 1340801171: '1741091932_4022377_1340800835_57efddb41b2553d8fba44cff37e46fc9_rle_crop_3693239713_0.png', 1340801825: '1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241163_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f49fc0b5b4fb38be519d63345d525edc_39116800.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/faf3f3d16afa88d66d9dd77493f6210c_50262034.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7d0bdeebafc8ee3ba6b2b05665517e12_65429928.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/02a1e9de9439775be081ac97678cdd7f_81585499.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/afbc00c38ffc1841ff088339c50c64bd_8244448.png change filename to text .imagette210089131741092542/ imagette210089131741092542/1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239127_0.png.png imagette210089131741092542/1741091693_4019058_1340800500_edc6cb757718eff612c3c4a73aa144cd_rle_crop_3693237181_0.png.png imagette210089131741092542/1741091932_4022377_1340800835_57efddb41b2553d8fba44cff37e46fc9_rle_crop_3693239713_0.png.png imagette210089131741092542/1741091693_4019058_1340800506_cef28583ecafcf49102aeb13fbfeaed9_rle_crop_3693237172_0.png.png imagette210089131741092542/1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241163_0.png.png imagette210089131741092542/1741091571_4017496_1340800293_3f049a309d38b8ea882b1a2817d38861_rle_crop_3693236787_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3161b10d57e7fa6cf430655387a3a8b5_80341101.png imagette210089131741092542 21008911 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=21008911 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340800758: '1741091693_4019058_1340800500_edc6cb757718eff612c3c4a73aa144cd_rle_crop_3693237178_0.png', 1340800809: '1741091710_4019362_1340800512_4b6c33bb8674baae243ca04f799f9384_rle_crop_3693237421_0.png', 1340800927: '1741091833_4021152_1340800793_04bf7e1deede61be3ba5840ad3aa02fe_rle_crop_3693238692_0.png', 1340801163: '1741091932_4022377_1340800901_a486f481b7592efe7efa2b21cb11435a_rle_crop_3693239665_0.png', 1340801180: '1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239750_0.png', 1340801181: '1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239764_0.png', 1340801717: '1741092171_4025661_1340801222_9d35022422a14290c3faf7037eb6ca8a_rle_crop_3693240823_0.png', 1340801811: '1741092192_4025967_1340801205_a15fff9fe74b321acc7082925e87e14f_rle_crop_3693241169_0.png', 1340801990: '1741092331_4027823_1340801721_c33599d63c78832b2318aedc8863f2ef_rle_crop_3693242763_0.png', 1340801991: '1741092331_4027823_1340801721_c33599d63c78832b2318aedc8863f2ef_rle_crop_3693242766_0.png', 1340802319: '1741092412_4029048_1340801872_eff665af8fa5ae71309dfd463b7301ef_rle_crop_3693243425_0.png', 1340802320: '1741092412_4029048_1340801865_bcaed0007bcaef1b7a22aefa341a84b3_rle_crop_3693243454_0.png', 1340802325: '1741092432_4029372_1340801944_f04d2b5737ffc7d563bacc90aa78edad_rle_crop_3693243476_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/35f8b9dcc786fc16bbfa67cddce253ba_36249708.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fcff4f3cb144b5dc9b344caca1c3c9bb_38592348.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1cf73a147da478f16e517c7db11870a4_17198848.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c144846061e4ee4630f21db1eff24b6e_92392187.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/67945660cd977a82b3e0235b5b0c9519_36512905.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/de393b55dbb651b3e9fb22b6a884f169_73150959.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fd1f1eb68452aa39882ca63fcda968f4_68682475.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1e16fb2e91ecf3fa3b93a4795266c0e6_98178417.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5c198289bcd8a5dc6a1256ad1ee388fe_78973142.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/92f874209b9252ad4dab819c0a628403_36365547.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/59c53d9f2602f97dcf311b508deaa393_66518021.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/33210cd7b947b4361e86a914ea963916_22517268.png change filename to text .imagette210089111741092542/ imagette210089111741092542/1741092412_4029048_1340801865_bcaed0007bcaef1b7a22aefa341a84b3_rle_crop_3693243454_0.png.png imagette210089111741092542/1741091833_4021152_1340800793_04bf7e1deede61be3ba5840ad3aa02fe_rle_crop_3693238692_0.png.png imagette210089111741092542/1741092432_4029372_1340801944_f04d2b5737ffc7d563bacc90aa78edad_rle_crop_3693243476_0.png.png imagette210089111741092542/1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239764_0.png.png imagette210089111741092542/1741091693_4019058_1340800500_edc6cb757718eff612c3c4a73aa144cd_rle_crop_3693237178_0.png.png imagette210089111741092542/1741092171_4025661_1340801222_9d35022422a14290c3faf7037eb6ca8a_rle_crop_3693240823_0.png.png imagette210089111741092542/1741092412_4029048_1340801872_eff665af8fa5ae71309dfd463b7301ef_rle_crop_3693243425_0.png.png imagette210089111741092542/1741091932_4022377_1340800901_a486f481b7592efe7efa2b21cb11435a_rle_crop_3693239665_0.png.png imagette210089111741092542/1741091710_4019362_1340800512_4b6c33bb8674baae243ca04f799f9384_rle_crop_3693237421_0.png.png imagette210089111741092542/1741092192_4025967_1340801205_a15fff9fe74b321acc7082925e87e14f_rle_crop_3693241169_0.png.png imagette210089111741092542/1741092331_4027823_1340801721_c33599d63c78832b2318aedc8863f2ef_rle_crop_3693242763_0.png.png imagette210089111741092542/1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239750_0.png.png imagette210089111741092542/1741092331_4027823_1340801721_c33599d63c78832b2318aedc8863f2ef_rle_crop_3693242766_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a2a4d1776be7bb53a4172af64f23fa68_48652106.png imagette210089111741092542 21008914 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=21008914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340801150: '1741091932_4022377_1340800839_78a5ec89b1ee619b49413dff473aee49_rle_crop_3693239701_0.png', 1340802310: '1741092412_4029048_1340801865_bcaed0007bcaef1b7a22aefa341a84b3_rle_crop_3693243458_0.png', 1340802309: '1741092412_4029048_1340801868_131a5d7a3ddb6f39198a9a0a58558474_rle_crop_3693243446_0.png', 1340802308: '1741092412_4029048_1340801872_eff665af8fa5ae71309dfd463b7301ef_rle_crop_3693243424_0.png', 1340802307: '1741092412_4029048_1340801872_eff665af8fa5ae71309dfd463b7301ef_rle_crop_3693243422_0.png', 1340801787: '1741092192_4025967_1340801200_76b76f56d91d3953a7d44af335f8e6fb_rle_crop_3693241189_0.png', 1340801786: '1741092192_4025967_1340801205_a15fff9fe74b321acc7082925e87e14f_rle_crop_3693241173_0.png', 1340801174: '1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239766_0.png', 1340801173: '1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239758_0.png', 1340801172: '1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239749_0.png', 1340800527: '1741091571_4017496_1340800147_c7bb9c0d5149b11fe643919bc499ce99_rle_crop_3693236902_0.png', 1340801149: '1741091932_4022377_1340800901_a486f481b7592efe7efa2b21cb11435a_rle_crop_3693239667_0.png', 1340800944: '1741091852_4021433_1340800761_09cc57b7ce54e41d9cd86fd973f1dbe1_rle_crop_3693239209_0.png', 1340800943: '1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239183_0.png', 1340800942: '1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239152_0.png', 1340800941: '1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239122_0.png', 1340800799: '1741091710_4019362_1340800400_1c9e5e7a65e5c582192efdbc239950a0_rle_crop_3693237472_0.png', 1340800798: '1741091710_4019362_1340800461_3b21ea46a97b40028dd19ae7a56fd243_rle_crop_3693237438_0.png', 1340800797: '1741091710_4019362_1340800512_4b6c33bb8674baae243ca04f799f9384_rle_crop_3693237422_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f217b17bea674e68a822b1531325ed4e_86241021.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fae6b13e603269474e0268e87a92de87_19518651.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f9dd3d26c41ad41cddfd6b4e03464c61_84844001.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7900ad99db1dfae5ddb2f1c99ee0e3f9_43599995.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5002c1259a2319c786fa645736162b4e_69889559.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cab2e12caf5b76758bb72ab8d177c0f7_10215812.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/26888ed631296e64ca62364d9de3c579_77088375.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ebfd2ac87c9e4f811d192d684dc12618_93098549.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8331fbd187e377c0ef55efde57d8b248_48997197.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c0fc5979e37bc3b95b4266bfecb1bdf1_14667293.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/035753df4bb8805efb6ae2d1214483a2_41518847.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d10f7db63f45d136863aa89369a2443a_74518291.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d2d6cfe20b3e6668d9c5c88a76dc0b75_37426898.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5293c06f694b0b308a67848a06727814_50849161.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2de012c8fd71ec1d0407fba5b0eda2ba_15242307.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5e52789a3c247d77ecc2286b604129fd_99287833.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f254b1b60de5a2c91759408752155263_64937220.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/68a9cf66911d24894542c8d12ff992d6_36562087.png change filename to text .imagette210089141741092543/ imagette210089141741092543/1741091710_4019362_1340800512_4b6c33bb8674baae243ca04f799f9384_rle_crop_3693237422_0.png.png imagette210089141741092543/1741092412_4029048_1340801872_eff665af8fa5ae71309dfd463b7301ef_rle_crop_3693243422_0.png.png imagette210089141741092543/1741092412_4029048_1340801868_131a5d7a3ddb6f39198a9a0a58558474_rle_crop_3693243446_0.png.png imagette210089141741092543/1741091932_4022377_1340800901_a486f481b7592efe7efa2b21cb11435a_rle_crop_3693239667_0.png.png imagette210089141741092543/1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239758_0.png.png imagette210089141741092543/1741091952_4022688_1340800896_78a8ccb0a5cfd4e4f3a6671ef9ca26a1_rle_crop_3693239749_0.png.png imagette210089141741092543/1741092412_4029048_1340801872_eff665af8fa5ae71309dfd463b7301ef_rle_crop_3693243424_0.png.png imagette210089141741092543/1741091952_4022688_1340800891_f91e21c228bb3a08cf197e50c3558adf_rle_crop_3693239766_0.png.png imagette210089141741092543/1741091852_4021433_1340800768_ae3bac6f906ce51db6c6f505fd7dfab1_rle_crop_3693239183_0.png.png imagette210089141741092543/1741091571_4017496_1340800147_c7bb9c0d5149b11fe643919bc499ce99_rle_crop_3693236902_0.png.png imagette210089141741092543/1741092412_4029048_1340801865_bcaed0007bcaef1b7a22aefa341a84b3_rle_crop_3693243458_0.png.png imagette210089141741092543/1741091710_4019362_1340800400_1c9e5e7a65e5c582192efdbc239950a0_rle_crop_3693237472_0.png.png imagette210089141741092543/1741091932_4022377_1340800839_78a5ec89b1ee619b49413dff473aee49_rle_crop_3693239701_0.png.png imagette210089141741092543/1741091852_4021433_1340800774_83deabd6be8105851e1759e92e0be485_rle_crop_3693239152_0.png.png imagette210089141741092543/1741092192_4025967_1340801205_a15fff9fe74b321acc7082925e87e14f_rle_crop_3693241173_0.png.png imagette210089141741092543/1741091852_4021433_1340800780_0cdb60d9bdc688a48e63ec267ae79373_rle_crop_3693239122_0.png.png imagette210089141741092543/1741091710_4019362_1340800461_3b21ea46a97b40028dd19ae7a56fd243_rle_crop_3693237438_0.png.png imagette210089141741092543/1741092192_4025967_1340801200_76b76f56d91d3953a7d44af335f8e6fb_rle_crop_3693241189_0.png.png imagette210089141741092543/1741091852_4021433_1340800761_09cc57b7ce54e41d9cd86fd973f1dbe1_rle_crop_3693239209_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e9f7c64da518f2f1d9019fe611f5b145_29663714.png imagette210089141741092543 21008915 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=21008915 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340800537: '1741091571_4017496_1340800252_de548854ef19487f7e4c98080634b946_rle_crop_3693236867_0.png', 1340800538: '1741091571_4017496_1340800152_2b9ef3dcc60a622c33168bca4890a80f_rle_crop_3693236891_0.png', 1340800539: '1741091571_4017496_1340800147_c7bb9c0d5149b11fe643919bc499ce99_rle_crop_3693236904_0.png', 1340800815: '1741091710_4019362_1340800461_3b21ea46a97b40028dd19ae7a56fd243_rle_crop_3693237435_0.png', 1340800816: '1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237454_0.png', 1340800817: '1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237455_0.png', 1340800928: '1741091833_4021152_1340800671_72f54d06fa5c979c3cf4ba2a3697b4a3_rle_crop_3693239015_0.png', 1340801167: '1741091932_4022377_1340800835_57efddb41b2553d8fba44cff37e46fc9_rle_crop_3693239715_0.png', 1340801168: '1741091932_4022377_1340800829_1cc3fe954e3837cc0f8893700bee2b32_rle_crop_3693239735_0.png', 1340801301: '1741092052_4023998_1340801067_010681b53ceb90449169bd20b46773e1_rle_crop_3693240496_0.png', 1340801816: '1741092192_4025967_1340801292_e465f38148ced0a8205ccc7f28a444dd_rle_crop_3693241122_0.png', 1340801817: '1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241161_0.png', 1340801818: '1741092192_4025967_1340801200_76b76f56d91d3953a7d44af335f8e6fb_rle_crop_3693241187_0.png', 1340801819: '1741092192_4025967_1340801200_76b76f56d91d3953a7d44af335f8e6fb_rle_crop_3693241188_0.png', 1340801917: '1741092293_4027114_1340801270_5471c15e88c672809ffd64a7e1f59f01_rle_crop_3693241249_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/237d24dee5c132ba4b3c4593a08721d7_56148818.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a824e8316cf7158ffff23e986b5f534e_2584531.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/660b1d7b604a4db5e123127d84dcc835_50973390.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d337d6bc3f0336f6c3c4e3c9e530e03d_85554858.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0846d5c0bc0323eb78f8da3823fd86be_66189695.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a3c4fba97fdf8d5d2c535ebfb8dbd8c2_35671844.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/bdc3561de2f36274f1dcb830ec6d2180_84058769.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f8144ef8bb806663816066cda2df01a2_42495793.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f95d639a7f6aff5d4abd6824d6f4c628_92234165.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3fea811c6a6fd7bdff4872bada73016e_87308729.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0f1c8c90a6efef684ae6f46bc300151c_34860605.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/778cbfcac733411343eb8db59fdd7dac_4738060.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b22a844fa7c329b3af2d39ec23f085e4_67929877.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/73a59f300cf94c6b079fd6d19c691d98_45372897.png change filename to text .imagette210089151741092544/ imagette210089151741092544/1741092192_4025967_1340801208_1cb10a0a1a48b48cbf671493e9da403d_rle_crop_3693241161_0.png.png imagette210089151741092544/1741091833_4021152_1340800671_72f54d06fa5c979c3cf4ba2a3697b4a3_rle_crop_3693239015_0.png.png imagette210089151741092544/1741091571_4017496_1340800252_de548854ef19487f7e4c98080634b946_rle_crop_3693236867_0.png.png imagette210089151741092544/1741091932_4022377_1340800829_1cc3fe954e3837cc0f8893700bee2b32_rle_crop_3693239735_0.png.png imagette210089151741092544/1741091571_4017496_1340800152_2b9ef3dcc60a622c33168bca4890a80f_rle_crop_3693236891_0.png.png imagette210089151741092544/1741092192_4025967_1340801200_76b76f56d91d3953a7d44af335f8e6fb_rle_crop_3693241187_0.png.png imagette210089151741092544/1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237454_0.png.png imagette210089151741092544/1741092052_4023998_1340801067_010681b53ceb90449169bd20b46773e1_rle_crop_3693240496_0.png.png imagette210089151741092544/1741091710_4019362_1340800404_51eb863301930c576d41750421b58059_rle_crop_3693237455_0.png.png imagette210089151741092544/1741092192_4025967_1340801292_e465f38148ced0a8205ccc7f28a444dd_rle_crop_3693241122_0.png.png imagette210089151741092544/1741092192_4025967_1340801200_76b76f56d91d3953a7d44af335f8e6fb_rle_crop_3693241188_0.png.png imagette210089151741092544/1741091932_4022377_1340800835_57efddb41b2553d8fba44cff37e46fc9_rle_crop_3693239715_0.png.png imagette210089151741092544/1741091710_4019362_1340800461_3b21ea46a97b40028dd19ae7a56fd243_rle_crop_3693237435_0.png.png imagette210089151741092544/1741091571_4017496_1340800147_c7bb9c0d5149b11fe643919bc499ce99_rle_crop_3693236904_0.png.png imagette210089151741092544/1741092293_4027114_1340801270_5471c15e88c672809ffd64a7e1f59f01_rle_crop_3693241249_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6d03279c5a48cfcca85ed83f4be2dc4c_69079643.png imagette210089151741092544 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21008886 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21008917,21008918,21008919,21008920,21008921,21008922,21008923,21008924,21008925,21008926,21008927,21008928?tags=autre_refus,papier,kraft,flou,mal_croppe,cartonnette,Carton_gris,metal,plastique,Teint_Dans_La_Masse,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1340802003] : ('0.07133681776434345',) no score found for photo 1340802003 We are sending mail with results at report@fotonower.com refus_total : 0.07133681776434345 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=21008886 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_P21008886_04-03-2025_13_48_59.pdf results_Auto_P21008886_04-03-2025_13_48_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_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','21008886','results_Auto_P21008886_04-03-2025_13_48_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_59.pdf','pdf','','0.31','0.07133681776434345') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21008886]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340802003] map_info['map_portfolio_photo'] : {21008886: [1340802003, 1340801946, 1340801944, 1340801918, 1340801883, 1340801877, 1340801872, 1340801868, 1340801865, 1340801774, 1340801766, 1340801761, 1340801756, 1340801726, 1340801721, 1340801529, 1340801430, 1340801292, 1340801270, 1340801222, 1340801219, 1340801214, 1340801208, 1340801205, 1340801200, 1340801151, 1340801143, 1340801094, 1340801072, 1340801067, 1340800997, 1340800988, 1340800980, 1340800959, 1340800945, 1340800901, 1340800896, 1340800891, 1340800853, 1340800846, 1340800839, 1340800835, 1340800829, 1340800793, 1340800786, 1340800780, 1340800774, 1340800768, 1340800761, 1340800731, 1340800706, 1340800694, 1340800681, 1340800671, 1340800512, 1340800506, 1340800500, 1340800464, 1340800461, 1340800404, 1340800400, 1340800293, 1340800258, 1340800252, 1340800152, 1340800147]} final : False mtd_id 4302 list_pids : [1340802003] 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, '2632546') ('4302', '21008886', '1340802003', None, None, None, None, None, '2632546') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '21008886', '1340802003', None, None, None, None, None, '2632546')] time used for this insertion : 0.011732101440429688 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.305526256561279 time spend to save output : 0.011948823928833008 total time spend for step 4 : 6.317475080490112 step5:split_time_score Tue Mar 4 13:49:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21008886'] 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 : [('21008886',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21008886) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340802003: {'path': 'temp/1741092539_3928216_1340802003_d749d71d73e7863e264eaa9d8e81070d.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 = 21008886; (('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 = 21008886 group by h (('13', 66),) 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=21008886 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 (21008886) 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 (21008886) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04032025 21008886 Nombre de photos uploadées : 66 / 23040 (0%) 04032025 21008886 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 04032025 21008886 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1340800293, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3f049a309d38b8ea882b1a2817d38861.jpg', 'username': None, 'uploaded_at': 1741091482, 'text': 'image_04032025_13_30_04_10146.jpg'}, {'photo_id': 1340800258, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f2e77b2e4476be1c0f1fc33a46df3257.jpg', 'username': None, 'uploaded_at': 1741091482, 'text': 'image_04032025_13_30_14_10137.jpg'}, {'photo_id': 1340800252, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/de548854ef19487f7e4c98080634b946.jpg', 'username': None, 'uploaded_at': 1741091482, 'text': 'image_04032025_13_30_24_10135.jpg'}, {'photo_id': 1340800152, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2b9ef3dcc60a622c33168bca4890a80f.jpg', 'username': None, 'uploaded_at': 1741091482, 'text': 'image_04032025_13_30_33_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003152132034301758 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21008886, '2025-03-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1636376,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02406144142150879 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= 1636376 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1636376, 'dashboard_run_id': 1645392, 'mtr_portfolio_id': 21008527, 'dashboard_result_id': 9192890, '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_P21008527_04-03-2025_13_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008540, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1645392, 'mtr_portfolio_id': 21008886, 'dashboard_result_id': 9192891, '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_P21008886_04-03-2025_13_46_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008916, '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 = 21008527 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': 2632515, 'mtr_portfolio_id': 21008527, 'created_at': datetime.datetime(2025, 3, 4, 13, 32, 58), 'result': '0.06897028059033312', 'result_long': None, 'result_double': None}] Qualite : 0.06897028059033312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21008527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008527_04-03-2025_13_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21008527 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_P21008527_04-03-2025_13_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008540, 'pht': 3726}}" where mtr_portfolio_id = 21008527 and dashboard_run_id = 1645392 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`=21008527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9192890, 0.06897028059033312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008527_04-03-2025_13_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008540, '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 = 21008886 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': 2632546, 'mtr_portfolio_id': 21008886, 'created_at': datetime.datetime(2025, 3, 4, 13, 48, 59), 'result': '0.07133681776434345', 'result_long': None, 'result_double': None}] Qualite : 0.07133681776434345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21008886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21008886 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_P21008886_04-03-2025_13_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008916, 'pht': 3726}}" where mtr_portfolio_id = 21008886 and dashboard_run_id = 1645392 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`=21008886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9192891, 0.07133681776434345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21008886_04-03-2025_13_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21008905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21008906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21008907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21008908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21008909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21008910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21008911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21008912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21008913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21008914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21008915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21008916, '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 (21008527,21008886) result : ((1340799005,), (1340799541,), (1340799555,), (1340799567,), (1340799646,), (1340799650,), (1340799653,), (1340799658,), (1340799664,), (1340799697,), (1340799733,), (1340799740,), (1340799778,), (1340799784,), (1340799789,), (1340799833,), (1340799839,), (1340799874,), (1340799880,), (1340799885,), (1340799920,), (1340799926,), (1340799930,), (1340799959,), (1340799965,), (1340799969,), (1340799994,), (1340800000,), (1340800011,), (1340800023,), (1340800030,), (1340800105,), (1340800112,), (1340800116,), (1340800121,), (1340800298,), (1340800147,), (1340800152,), (1340800252,), (1340800258,), (1340800293,), (1340800400,), (1340800404,), (1340800461,), (1340800464,), (1340800500,), (1340800506,), (1340800512,), (1340800671,), (1340800681,), (1340800694,), (1340800706,), (1340800731,), (1340800761,), (1340800768,), (1340800774,), (1340800780,), (1340800786,), (1340800793,), (1340800829,), (1340800835,), (1340800839,), (1340800846,), (1340800853,), (1340800891,), (1340800896,), (1340800901,), (1340800945,), (1340800959,), (1340800980,), (1340800988,), (1340800997,), (1340801067,), (1340801072,), (1340801094,), (1340801143,), (1340801151,), (1340801200,), (1340801205,), (1340801208,), (1340801214,), (1340801219,), (1340801222,), (1340801270,), (1340801292,), (1340801430,), (1340801529,), (1340801721,), (1340801726,), (1340801756,), (1340801761,), (1340801766,), (1340801774,), (1340801865,), (1340801868,), (1340801872,), (1340801877,), (1340801883,), (1340801918,), (1340801944,), (1340801946,), (1340802003,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21008886]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340802003] map_info['map_portfolio_photo'] : {21008886: [1340802003, 1340801946, 1340801944, 1340801918, 1340801883, 1340801877, 1340801872, 1340801868, 1340801865, 1340801774, 1340801766, 1340801761, 1340801756, 1340801726, 1340801721, 1340801529, 1340801430, 1340801292, 1340801270, 1340801222, 1340801219, 1340801214, 1340801208, 1340801205, 1340801200, 1340801151, 1340801143, 1340801094, 1340801072, 1340801067, 1340800997, 1340800988, 1340800980, 1340800959, 1340800945, 1340800901, 1340800896, 1340800891, 1340800853, 1340800846, 1340800839, 1340800835, 1340800829, 1340800793, 1340800786, 1340800780, 1340800774, 1340800768, 1340800761, 1340800731, 1340800706, 1340800694, 1340800681, 1340800671, 1340800512, 1340800506, 1340800500, 1340800464, 1340800461, 1340800404, 1340800400, 1340800293, 1340800258, 1340800252, 1340800152, 1340800147]} final : True mtd_id 4302 list_pids : [1340802003] Looping around the photos to save general results len do output : 1 /21008886Didn'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, '2632546') ('4302', '21008886', '1340802003', None, None, None, None, None, '2632546') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21008886', 'None', None, None, None, None, '2632546'), ('4302', '21008886', '1340802003', None, None, None, None, None, '2632546')] time used for this insertion : 0.012339115142822266 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24132513999938965 time spend to save output : 0.012538909912109375 total time spend for step 5 : 0.253864049911499 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 (2632546) 2.03user 2.29system 0:10.84elapsed 39%CPU (0avgtext+0avgdata 156384maxresident)k 240inputs+14072outputs (3major+62000minor)pagefaults 0swaps