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 : 180818 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 (2725351) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2725351) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069943 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2725351'] with mtr_portfolio_ids : ['22069943'] and first list_photo_ids : [] new path : /proc/180818/ Name: python3 Umask: 0002 State: R (running) Tgid: 180818 Ngid: 0 Pid: 180818 PPid: 180817 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 180818 NSpid: 180818 NSpgid: 179292 NSsid: 179292 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98332 kB VmRSS: 98332 kB RssAnon: 59800 kB RssFile: 38532 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 536 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 101 nonvoluntary_ctxt_switches: 170 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '180818', 'Ngid': '0', 'Pid': '180818', 'PPid': '180817', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '180818', 'NSpid': '180818', 'NSpgid': '179292', 'NSsid': '179292', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98332 kB', 'VmRSS': '98332 kB', 'RssAnon': '59800 kB', 'RssFile': '38532 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '536 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '101', 'nonvoluntary_ctxt_switches': '170'} ('datou_batch_current', '180818', '1106828', '0', '1106828', '865576', '98332', b'', 'marlene', '2725351') 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 (22069943) 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 (2725351 ) ) 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 (22069943) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350217752, 'portfolio_id': 22069943}, {'photo_id': 1350217681, 'portfolio_id': 22069943}, {'photo_id': 1350217678, 'portfolio_id': 22069943}, {'photo_id': 1350217672, 'portfolio_id': 22069943}, {'photo_id': 1350217665, 'portfolio_id': 22069943}, {'photo_id': 1350217659, 'portfolio_id': 22069943}, {'photo_id': 1350217653, 'portfolio_id': 22069943}, {'photo_id': 1350217497, 'portfolio_id': 22069943}, {'photo_id': 1350217470, 'portfolio_id': 22069943}, {'photo_id': 1350217440, 'portfolio_id': 22069943}, {'photo_id': 1350217400, 'portfolio_id': 22069943}, {'photo_id': 1350217162, 'portfolio_id': 22069943}, {'photo_id': 1350217136, 'portfolio_id': 22069943}, {'photo_id': 1350217130, 'portfolio_id': 22069943}, {'photo_id': 1350217127, 'portfolio_id': 22069943}, {'photo_id': 1350217123, 'portfolio_id': 22069943}, {'photo_id': 1350216993, 'portfolio_id': 22069943}, {'photo_id': 1350216967, 'portfolio_id': 22069943}, {'photo_id': 1350216938, 'portfolio_id': 22069943}, {'photo_id': 1350216906, 'portfolio_id': 22069943}, {'photo_id': 1350216660, 'portfolio_id': 22069943}, {'photo_id': 1350216630, 'portfolio_id': 22069943}, {'photo_id': 1350216621, 'portfolio_id': 22069943}, {'photo_id': 1350216592, 'portfolio_id': 22069943}, {'photo_id': 1350216566, 'portfolio_id': 22069943}, {'photo_id': 1350216160, 'portfolio_id': 22069943}, {'photo_id': 1350216106, 'portfolio_id': 22069943}, {'photo_id': 1350216072, 'portfolio_id': 22069943}, {'photo_id': 1350216050, 'portfolio_id': 22069943}, {'photo_id': 1350215901, 'portfolio_id': 22069943}, {'photo_id': 1350215896, 'portfolio_id': 22069943}, {'photo_id': 1350215892, 'portfolio_id': 22069943}, {'photo_id': 1350215889, 'portfolio_id': 22069943}, {'photo_id': 1350215886, 'portfolio_id': 22069943}, {'photo_id': 1350215273, 'portfolio_id': 22069943}, {'photo_id': 1350215226, 'portfolio_id': 22069943}, {'photo_id': 1350215169, 'portfolio_id': 22069943}, {'photo_id': 1350215094, 'portfolio_id': 22069943}, {'photo_id': 1350214470, 'portfolio_id': 22069943}, {'photo_id': 1350214394, 'portfolio_id': 22069943}, {'photo_id': 1350214343, 'portfolio_id': 22069943}, {'photo_id': 1350214279, 'portfolio_id': 22069943}, {'photo_id': 1350214224, 'portfolio_id': 22069943}, {'photo_id': 1350214181, 'portfolio_id': 22069943}, {'photo_id': 1350213577, 'portfolio_id': 22069943}, {'photo_id': 1350213540, 'portfolio_id': 22069943}, {'photo_id': 1350213488, 'portfolio_id': 22069943}, {'photo_id': 1350213437, 'portfolio_id': 22069943}, {'photo_id': 1350212585, 'portfolio_id': 22069943}, {'photo_id': 1350212538, 'portfolio_id': 22069943}, {'photo_id': 1350212489, 'portfolio_id': 22069943}, {'photo_id': 1350212446, 'portfolio_id': 22069943}, {'photo_id': 1350212402, 'portfolio_id': 22069943}, {'photo_id': 1350211538, 'portfolio_id': 22069943}, {'photo_id': 1350211488, 'portfolio_id': 22069943}, {'photo_id': 1350211436, 'portfolio_id': 22069943}, {'photo_id': 1350211400, 'portfolio_id': 22069943}, {'photo_id': 1350211358, 'portfolio_id': 22069943}, {'photo_id': 1350211311, 'portfolio_id': 22069943}, {'photo_id': 1350210886, 'portfolio_id': 22069943}, {'photo_id': 1350210843, 'portfolio_id': 22069943}, {'photo_id': 1350210808, 'portfolio_id': 22069943}, {'photo_id': 1350210575, 'portfolio_id': 22069943}, {'photo_id': 1350210550, 'portfolio_id': 22069943}, {'photo_id': 1350210509, 'portfolio_id': 22069943}, {'photo_id': 1350210478, 'portfolio_id': 22069943}, {'photo_id': 1350210434, 'portfolio_id': 22069943}, {'photo_id': 1350210393, 'portfolio_id': 22069943}, {'photo_id': 1350209752, 'portfolio_id': 22069943}, {'photo_id': 1350209695, 'portfolio_id': 22069943}] map_portfolio_id_photo_id: {22069943: [1350217752, 1350217681, 1350217678, 1350217672, 1350217665, 1350217659, 1350217653, 1350217497, 1350217470, 1350217440, 1350217400, 1350217162, 1350217136, 1350217130, 1350217127, 1350217123, 1350216993, 1350216967, 1350216938, 1350216906, 1350216660, 1350216630, 1350216621, 1350216592, 1350216566, 1350216160, 1350216106, 1350216072, 1350216050, 1350215901, 1350215896, 1350215892, 1350215889, 1350215886, 1350215273, 1350215226, 1350215169, 1350215094, 1350214470, 1350214394, 1350214343, 1350214279, 1350214224, 1350214181, 1350213577, 1350213540, 1350213488, 1350213437, 1350212585, 1350212538, 1350212489, 1350212446, 1350212402, 1350211538, 1350211488, 1350211436, 1350211400, 1350211358, 1350211311, 1350210886, 1350210843, 1350210808, 1350210575, 1350210550, 1350210509, 1350210478, 1350210434, 1350210393, 1350209752, 1350209695]} ##### 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.01441049575805664 #### 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 Wed Apr 16 10:19:29 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 (22069943) 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 : 22069943 get user id for portfolio 22069943 get sub ptf for main ptf 22069943, type 3726 and hashtags ['Carton_brun', 'Carton_gris', 'kraft', 'metal', 'flou', 'environnement', 'plastique', 'Teint_Dans_La_Masse', 'mal_croppe', 'papier', 'cartonnette', '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`=22069943 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','kraft','metal','flou','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','papier','cartonnette','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`=22069943 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','kraft','metal','flou','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','papier','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22069943, 'sub_port_id': 22069968, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558300, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'mal_croppe': {'main_port_id': 22069943, 'sub_port_id': 22069969, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558301, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'metal': {'main_port_id': 22069943, 'sub_port_id': 22069970, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558302, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'Carton_gris': {'main_port_id': 22069943, 'sub_port_id': 22069971, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558303, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'kraft': {'main_port_id': 22069943, 'sub_port_id': 22069972, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558304, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'autre_refus': {'main_port_id': 22069943, 'sub_port_id': 22069973, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558305, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'Carton_brun': {'main_port_id': 22069943, 'sub_port_id': 22069974, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558306, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'papier': {'main_port_id': 22069943, 'sub_port_id': 22069975, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558307, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'flou': {'main_port_id': 22069943, 'sub_port_id': 22069976, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558308, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'cartonnette': {'main_port_id': 22069943, 'sub_port_id': 22069977, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558309, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'plastique': {'main_port_id': 22069943, 'sub_port_id': 22069978, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558310, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}, 'Teint_Dans_La_Masse': {'main_port_id': 22069943, 'sub_port_id': 22069979, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558311, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 44)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22069968 , 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=22069943 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 (22069968) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069969 , 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=22069943 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 (22069969) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069970 , 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=22069943 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 (22069970) result : ((1350214122,), (1350215880,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069971 , 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=22069943 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 (22069971) result : ((1350211168,), (1350213949,), (1350213951,), (1350213953,), (1350213955,), (1350215017,), (1350215842,), (1350215843,), (1350215845,), (1350215846,), (1350215933,), (1350217009,), (1350217010,), (1350217012,), (1350217097,), (1350217274,), (1350217275,), (1350217276,), (1350217437,), (1350217439,), (1350217716,), (1350217774,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069972 , 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=22069943 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 (22069972) result : ((1350214113,), (1350215878,), (1350217105,), (1350217285,), (1350217779,), (1350217781,), (1350217843,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069973 , 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=22069943 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 (22069973) result : ((1350215926,), (1350215974,), (1350216830,), (1350217006,), (1350217007,), (1350217008,), (1350217094,), (1350217714,), (1350217773,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069974 , 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=22069943 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 (22069974) result : ((1350211178,), (1350214023,), (1350215053,), (1350215865,), (1350215977,), (1350216844,), (1350217038,), (1350217101,), (1350217279,), (1350217447,), (1350217717,), (1350217777,), (1350217778,), (1350217840,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069975 , 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=22069943 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 (22069975) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069976 , 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=22069943 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 (22069976) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069977 , 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=22069943 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 (22069977) result : ((1350213995,), (1350213997,), (1350214713,), (1350214714,), (1350214717,), (1350215858,), (1350215859,), (1350215975,), (1350216838,), (1350216839,), (1350217020,), (1350217024,), (1350217100,), (1350217776,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069978 , 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=22069943 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 (22069978) result : ((1350214104,), (1350214105,), (1350214107,), (1350214108,), (1350215872,), (1350215873,), (1350215874,), (1350215875,), (1350215937,), (1350217049,), (1350217052,), (1350217102,), (1350217103,), (1350217738,), (1350217842,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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 22069979 , 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=22069943 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 (22069979) result : ((1350211158,), (1350213932,), (1350214692,), (1350214693,), (1350214985,), (1350214989,), (1350214994,), (1350214998,), (1350215826,), (1350215920,), (1350216822,), (1350216823,), (1350216996,), (1350216998,), (1350216999,), (1350217002,), (1350217272,), (1350217273,), (1350217428,), (1350217711,), (1350217771,), (1350217836,), (1350217837,), (1350217838,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22069943) result : ((1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,)) 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 (1350217400,1350211400) 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`=22069943 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','kraft','metal','flou','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','papier','cartonnette','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`=22069943 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','kraft','metal','flou','environnement','plastique','Teint_Dans_La_Masse','mal_croppe','papier','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22069943, 'sub_port_id': 22069980, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558312, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'mal_croppe': {'main_port_id': 22069943, 'sub_port_id': 22069981, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558313, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'metal': {'main_port_id': 22069943, 'sub_port_id': 22069982, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558314, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'Carton_gris': {'main_port_id': 22069943, 'sub_port_id': 22069983, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558315, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'kraft': {'main_port_id': 22069943, 'sub_port_id': 22069984, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558316, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'autre_refus': {'main_port_id': 22069943, 'sub_port_id': 22069985, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558317, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'Carton_brun': {'main_port_id': 22069943, 'sub_port_id': 22069986, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558318, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'papier': {'main_port_id': 22069943, 'sub_port_id': 22069987, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558319, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'flou': {'main_port_id': 22069943, 'sub_port_id': 22069988, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558320, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'cartonnette': {'main_port_id': 22069943, 'sub_port_id': 22069989, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558321, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'plastique': {'main_port_id': 22069943, 'sub_port_id': 22069990, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558322, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 3, 46), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}, 'Teint_Dans_La_Masse': {'main_port_id': 22069943, 'sub_port_id': 22069991, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558323, 'last_updated_at': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 10, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 10, 3, 46)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22069991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22069979 lien utilise dans velours : https://www.fotonower.com/velours/22069980,22069981,22069982,22069983,22069984,22069985,22069986,22069987,22069988,22069989,22069990,22069991?tags=environnement,mal_croppe,metal,Carton_gris,kraft,autre_refus,Carton_brun,papier,flou,cartonnette,plastique,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22069943]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350217752] map_info['map_portfolio_photo'] : {22069943: [1350217752, 1350217681, 1350217678, 1350217672, 1350217665, 1350217659, 1350217653, 1350217497, 1350217470, 1350217440, 1350217400, 1350217162, 1350217136, 1350217130, 1350217127, 1350217123, 1350216993, 1350216967, 1350216938, 1350216906, 1350216660, 1350216630, 1350216621, 1350216592, 1350216566, 1350216160, 1350216106, 1350216072, 1350216050, 1350215901, 1350215896, 1350215892, 1350215889, 1350215886, 1350215273, 1350215226, 1350215169, 1350215094, 1350214470, 1350214394, 1350214343, 1350214279, 1350214224, 1350214181, 1350213577, 1350213540, 1350213488, 1350213437, 1350212585, 1350212538, 1350212489, 1350212446, 1350212402, 1350211538, 1350211488, 1350211436, 1350211400, 1350211358, 1350211311, 1350210886, 1350210843, 1350210808, 1350210575, 1350210550, 1350210509, 1350210478, 1350210434, 1350210393, 1350209752, 1350209695]} final : False mtd_id 4302 list_pids : [1350217752] Looping around the photos to save general results len do output : 1 /22069943. 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, '2725351') ('4302', '22069943', '1350217752', None, None, None, None, None, '2725351') 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, '22069943', "{'environnement': 22069968, 'mal_croppe': 22069969, 'metal': 22069970, 'Carton_gris': 22069971, 'kraft': 22069972, 'autre_refus': 22069973, 'Carton_brun': 22069974, 'papier': 22069975, 'flou': 22069976, 'cartonnette': 22069977, 'plastique': 22069978, 'Teint_Dans_La_Masse': 22069979}", None, None, None, None, '2725351'), ('4302', '22069943', '1350217752', None, None, None, None, None, '2725351')] time used for this insertion : 0.013920068740844727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4869847297668457 time spend to save output : 0.014202356338500977 total time spend for step 1 : 0.5011870861053467 step2:final Wed Apr 16 10:19:29 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 (22069943) 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 22069943 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350209752,1350209695,1350210575,1350210550,1350210509,1350210478,1350210434,1350210393,1350210886,1350210843,1350210808,1350211538,1350211488,1350211436,1350211400,1350211358,1350211311,1350212585,1350212538,1350212489,1350212446,1350212402,1350213577,1350213540,1350213488,1350213437,1350214470,1350214394,1350214343,1350214279,1350214224,1350214181,1350215273,1350215226,1350215169,1350215094,1350215901,1350215896,1350215892,1350215889,1350215886,1350216160,1350216106,1350216072,1350216050,1350216660,1350216630,1350216621,1350216592,1350216566,1350216993,1350216967,1350216938,1350216906,1350217162,1350217136,1350217130,1350217127,1350217123,1350217497,1350217470,1350217440,1350217400,1350217681,1350217678,1350217672,1350217665,1350217659,1350217653,1350217752); 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([22069943]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350217752: ('0.048789733604911394',)} new output for save of step final : {1350217752: ('0.048789733604911394',)} [1350217752] map_info['map_portfolio_photo'] : {22069943: [1350217752, 1350217681, 1350217678, 1350217672, 1350217665, 1350217659, 1350217653, 1350217497, 1350217470, 1350217440, 1350217400, 1350217162, 1350217136, 1350217130, 1350217127, 1350217123, 1350216993, 1350216967, 1350216938, 1350216906, 1350216660, 1350216630, 1350216621, 1350216592, 1350216566, 1350216160, 1350216106, 1350216072, 1350216050, 1350215901, 1350215896, 1350215892, 1350215889, 1350215886, 1350215273, 1350215226, 1350215169, 1350215094, 1350214470, 1350214394, 1350214343, 1350214279, 1350214224, 1350214181, 1350213577, 1350213540, 1350213488, 1350213437, 1350212585, 1350212538, 1350212489, 1350212446, 1350212402, 1350211538, 1350211488, 1350211436, 1350211400, 1350211358, 1350211311, 1350210886, 1350210843, 1350210808, 1350210575, 1350210550, 1350210509, 1350210478, 1350210434, 1350210393, 1350209752, 1350209695]} final : False mtd_id 4302 list_pids : [1350217752] Looping around the photos to save general results len do output : 1 /1350217752.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, '2725351') ('4302', '22069943', '1350217752', None, None, None, None, None, '2725351') 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', '22069943', '1350217752', '0.048789733604911394', None, None, None, None, '2725351')] time used for this insertion : 0.01080942153930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07159757614135742 time spend to save output : 0.011156082153320312 total time spend for step 2 : 0.08275365829467773 step3:velours_tree Wed Apr 16 10:19:29 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 : {22069943: [{'environnement': 22069968, 'mal_croppe': 22069969, 'metal': 22069970, 'Carton_gris': 22069971, 'kraft': 22069972, 'autre_refus': 22069973, 'Carton_brun': 22069974, 'papier': 22069975, 'flou': 22069976, 'cartonnette': 22069977, 'plastique': 22069978, 'Teint_Dans_La_Masse': 22069979}]} input_args_next_step : {22069943: ()} output_args : {22069943: [{'environnement': 22069968, 'mal_croppe': 22069969, 'metal': 22069970, 'Carton_gris': 22069971, 'kraft': 22069972, 'autre_refus': 22069973, 'Carton_brun': 22069974, 'papier': 22069975, 'flou': 22069976, 'cartonnette': 22069977, 'plastique': 22069978, 'Teint_Dans_La_Masse': 22069979}]} args : 22069943 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 : ({'environnement': 22069968, 'mal_croppe': 22069969, 'metal': 22069970, 'Carton_gris': 22069971, 'kraft': 22069972, 'autre_refus': 22069973, 'Carton_brun': 22069974, 'papier': 22069975, 'flou': 22069976, 'cartonnette': 22069977, 'plastique': 22069978, 'Teint_Dans_La_Masse': 22069979},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22069943) 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([22069943]) 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.35861897468566895 time spend to save output : 4.4345855712890625e-05 total time spend for step 3 : 0.35866332054138184 step4:send_mail_cod Wed Apr 16 10:19:30 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 : {1350217752: ('0.048789733604911394',)} input_args_next_step : {1350217752: ()} output_args : {1350217752: ('0.048789733604911394',)} args : 1350217752 depend.output_id : 0 complete output_args for input 3 : {22069943: [{'environnement': 22069968, 'mal_croppe': 22069969, 'metal': 22069970, 'Carton_gris': 22069971, 'kraft': 22069972, 'autre_refus': 22069973, 'Carton_brun': 22069974, 'papier': 22069975, 'flou': 22069976, 'cartonnette': 22069977, 'plastique': 22069978, 'Teint_Dans_La_Masse': 22069979}]} input_args_next_step : {1350217752: ('0.048789733604911394',), 22069943: ()} output_args : {22069943: [{'environnement': 22069968, 'mal_croppe': 22069969, 'metal': 22069970, 'Carton_gris': 22069971, 'kraft': 22069972, 'autre_refus': 22069973, 'Carton_brun': 22069974, 'papier': 22069975, 'flou': 22069976, 'cartonnette': 22069977, 'plastique': 22069978, 'Teint_Dans_La_Masse': 22069979}]} args : 22069943 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.048789733604911394',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22069943) 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 (1350217752) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350217752 download finish for photo 1350217752 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220699691744791570/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22069943_16-04-2025_10_19_30.pdf 22069969 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=22069969 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220699691744791570 22069970 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=22069970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350214122: '1744790773_1656522_1350211436_13caa95141ed7beea41019e5df9968e7_rle_crop_3748701376_0.png', 1350215880: '1744790892_1658217_1350211436_13caa95141ed7beea41019e5df9968e7_rle_crop_3748701376_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ff3e29569d58ab557d3c3dd395e3031c_11981759.png change filename to text .imagette220699701744791570/ imagette220699701744791570/1744790773_1656522_1350211436_13caa95141ed7beea41019e5df9968e7_rle_crop_3748701376_0.png.png imagette220699701744791570/1744790892_1658217_1350211436_13caa95141ed7beea41019e5df9968e7_rle_crop_3748701376_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ff3e29569d58ab557d3c3dd395e3031c_9157956.png imagette220699701744791570 22069972 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=22069972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350214113: '1744790773_1656522_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701419_0.png', 1350215878: '1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701419_0.png', 1350217105: '1744791134_1661635_1350213540_5d8652d4da88b45289d509558bf6268c_rle_crop_3748706827_0.png', 1350217285: '1744791192_1662465_1350216906_96b9ed06cda92faa929c6a7f2cb424a1_rle_crop_3748707417_0.png', 1350217779: '1744791373_1665326_1350217440_2b1b147664fd47bfd11f70bc57d39c55_rle_crop_3748707921_0.png', 1350217781: '1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707943_0.png', 1350217843: '1744791422_1666087_1350217130_e93749ed4f6927842c306ef723423bc0_rle_crop_3748709141_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/08d16b129a2ad8b853cd8e111fcc95ff_91205251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/08d16b129a2ad8b853cd8e111fcc95ff_55314466.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c499d6e6e2752a0c249a7e8eb0da368c_46239413.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/95b7fc8d0e2def8893a65847159e7a38_36518276.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e4c4c0c4f7e5e7c485a4debfed6b01eb_66186927.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d5e09c2f65fe49dc90f662a2d19c6960_19887553.png change filename to text .imagette220699721744791570/ imagette220699721744791570/1744791373_1665326_1350217440_2b1b147664fd47bfd11f70bc57d39c55_rle_crop_3748707921_0.png.png imagette220699721744791570/1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701419_0.png.png imagette220699721744791570/1744791192_1662465_1350216906_96b9ed06cda92faa929c6a7f2cb424a1_rle_crop_3748707417_0.png.png imagette220699721744791570/1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707943_0.png.png imagette220699721744791570/1744791422_1666087_1350217130_e93749ed4f6927842c306ef723423bc0_rle_crop_3748709141_0.png.png imagette220699721744791570/1744790773_1656522_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701419_0.png.png imagette220699721744791570/1744791134_1661635_1350213540_5d8652d4da88b45289d509558bf6268c_rle_crop_3748706827_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/28bbbdf93edfb426f052c2d6fa11548b_89856358.png imagette220699721744791570 22069973 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=22069973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350215926: '1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703699_0.png', 1350215974: '1744790941_1659023_1350210393_36fb2c6ec78da11dc82ef0abcd5286b7_rle_crop_3748703772_0.png', 1350216830: '1744791071_1660929_1350215896_6f10cd07555be42f5aa28313a71bae74_rle_crop_3748705987_0.png', 1350217006: '1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706325_0.png', 1350217007: '1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706322_0.png', 1350217008: '1744791107_2450626_1350214181_1875ea2dcbd3e2843d58106a112da643_rle_crop_3748706415_0.png', 1350217094: '1744791134_1661635_1350214470_c8ea997365ba2083024dc615884bd0e2_rle_crop_3748706802_0.png', 1350217714: '1744791314_1663865_1350216106_8a1ea1d2063fcfe3c4ad51f3e3733d39_rle_crop_3748707789_0.png', 1350217773: '1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707940_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d25168b254fe248fcccb05be76eaa8f7_96693546.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4ace0ce55ea30301ad87d75bc4b2bfe1_29909645.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5e944366a91d74090f76bb2d7b836f15_51403712.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5f3a6c6b6619b445b7a2a4aecbcb685f_19799345.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/272d481545f02065f94b18413b9747e9_5579298.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e4ffe5eed68a5e280b181dd335ca621d_53101471.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6eb3d97c8eaef58851459600063b12e4_22297397.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/27718600df2428168c25f2ee06cf8e9b_53048469.png change filename to text .imagette220699731744791570/ imagette220699731744791570/1744790941_1659023_1350210393_36fb2c6ec78da11dc82ef0abcd5286b7_rle_crop_3748703772_0.png.png imagette220699731744791570/1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707940_0.png.png imagette220699731744791570/1744791134_1661635_1350214470_c8ea997365ba2083024dc615884bd0e2_rle_crop_3748706802_0.png.png imagette220699731744791570/1744791107_2450626_1350214181_1875ea2dcbd3e2843d58106a112da643_rle_crop_3748706415_0.png.png imagette220699731744791570/1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706325_0.png.png imagette220699731744791570/1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706322_0.png.png imagette220699731744791570/1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703699_0.png.png imagette220699731744791570/1744791071_1660929_1350215896_6f10cd07555be42f5aa28313a71bae74_rle_crop_3748705987_0.png.png imagette220699731744791570/1744791314_1663865_1350216106_8a1ea1d2063fcfe3c4ad51f3e3733d39_rle_crop_3748707789_0.png.png imagette220699761744791571/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9f3676b491acc898f7ae845c2f745424_26875006.png imagette220699731744791570 22069976 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=22069976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220699761744791571 22069977 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=22069977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350213995: '1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701390_0.png', 1350213997: '1744790773_1656522_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701407_0.png', 1350214713: '1744790831_1657301_1350212489_84dd7dc84f0217222a9f445bf8052792_rle_crop_3748701575_0.png', 1350214714: '1744790831_1657301_1350212446_883bb037e086b8b3c61d297a332eda25_rle_crop_3748701589_0.png', 1350214717: '1744790831_1657301_1350212402_5362a66364305f73ce91fc9d9d202abc_rle_crop_3748701603_0.png', 1350215858: '1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701390_0.png', 1350215859: '1744790892_1658217_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701407_0.png', 1350215975: '1744790941_1659023_1350210434_22b21598a0fb64e727fddd1cf07b9a83_rle_crop_3748703755_0.png', 1350216838: '1744791071_1660929_1350215889_63cff603fada1fe87f28f836f1cd0eef_rle_crop_3748706007_0.png', 1350216839: '1744791071_1660929_1350215886_40a3ea5eb71d6d18af175b52a03182a2_rle_crop_3748706019_0.png', 1350217020: '1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706357_0.png', 1350217024: '1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706356_0.png', 1350217100: '1744791134_1661635_1350213540_5d8652d4da88b45289d509558bf6268c_rle_crop_3748706829_0.png', 1350217776: '1744791373_1665326_1350217470_deb63e65521d0860625ffe47970ef019_rle_crop_3748707911_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c9283031003d8f1347d630c8640136e9_6650544.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e7ef1ae3e3d0ad53f1fc06b1e7c1e96b_908696.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/73bdc3a03c9eb6bbe804179e3314be60_61392799.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/97b4d620f39a9a5c0f20895157722cbd_72843844.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/794b8a055eeaf4bcf71f750d9c4d489c_17973085.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c9283031003d8f1347d630c8640136e9_9918851.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e7ef1ae3e3d0ad53f1fc06b1e7c1e96b_87864543.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3d78a2d6d901656cd2ef84a2ac2f1a84_17669547.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ef82d49098766990d3dbd566f6d2de79_15461039.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/04fae384d3a7fc5ce5f41c0deaf09679_73373005.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8ea70eb5cc513061e10dfd79b844a067_95429646.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/98936f4c4d03a43a3952851bf23868f9_98312636.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/57f5d621b1bf5d0282531630ec1ea5e2_63162665.png change filename to text .imagette220699771744791571/ imagette220699771744791571/1744790773_1656522_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701407_0.png.png imagette220699771744791571/1744791134_1661635_1350213540_5d8652d4da88b45289d509558bf6268c_rle_crop_3748706829_0.png.png imagette220699771744791571/1744790831_1657301_1350212402_5362a66364305f73ce91fc9d9d202abc_rle_crop_3748701603_0.png.png imagette220699771744791571/1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701390_0.png.png imagette220699771744791571/1744791071_1660929_1350215889_63cff603fada1fe87f28f836f1cd0eef_rle_crop_3748706007_0.png.png imagette220699771744791571/1744790831_1657301_1350212446_883bb037e086b8b3c61d297a332eda25_rle_crop_3748701589_0.png.png imagette220699771744791571/1744790831_1657301_1350212489_84dd7dc84f0217222a9f445bf8052792_rle_crop_3748701575_0.png.png imagette220699771744791571/1744791071_1660929_1350215886_40a3ea5eb71d6d18af175b52a03182a2_rle_crop_3748706019_0.png.png imagette220699771744791571/1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706357_0.png.png imagette220699771744791571/1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706356_0.png.png imagette220699771744791571/1744790941_1659023_1350210434_22b21598a0fb64e727fddd1cf07b9a83_rle_crop_3748703755_0.png.png imagette220699771744791571/1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701390_0.png.png imagette220699771744791571/1744790892_1658217_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701407_0.png.png imagette220699771744791571/1744791373_1665326_1350217470_deb63e65521d0860625ffe47970ef019_rle_crop_3748707911_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/879ed9f0c14ac56c51bff29d00fc1aa0_44868704.png imagette220699771744791571 22069978 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=22069978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350214104: '1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701400_0.png', 1350214105: '1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701395_0.png', 1350214107: '1744790773_1656522_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701409_0.png', 1350214108: '1744790773_1656522_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701420_0.png', 1350215872: '1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701400_0.png', 1350215873: '1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701395_0.png', 1350215874: '1744790892_1658217_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701409_0.png', 1350215875: '1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701420_0.png', 1350215937: '1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703693_0.png', 1350217049: '1744791107_2450626_1350215273_200e09fcbd1da91629fc5612e6f677a9_rle_crop_3748706272_0.png', 1350217052: '1744791107_2450626_1350214181_1875ea2dcbd3e2843d58106a112da643_rle_crop_3748706420_0.png', 1350217102: '1744791134_1661635_1350213540_5d8652d4da88b45289d509558bf6268c_rle_crop_3748706832_0.png', 1350217103: '1744791134_1661635_1350213488_73e0092b6eac6f427ee87e27c9da7b0f_rle_crop_3748706843_0.png', 1350217738: '1744791341_2456859_1350217162_316291dd03fccba5bc1f39bd1c06f286_rle_crop_3748707821_0.png', 1350217842: '1744791422_1666087_1350217127_a8b67fbebdeb413cf8855115c9c5159f_rle_crop_3748709145_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cdb6a2e41b8e61e33f011c9f7c93f3f0_44712644.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c8630374362bb4e8b3e1f7a46442ed2e_32454861.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c418dab3642ce24fd837d662a5a68799_94267947.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/fb7f8745298fb3274c1b5b5c3aefba47_91326862.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cdb6a2e41b8e61e33f011c9f7c93f3f0_62664106.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c8630374362bb4e8b3e1f7a46442ed2e_72274242.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c418dab3642ce24fd837d662a5a68799_63302047.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/fb7f8745298fb3274c1b5b5c3aefba47_243647.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a66fa644413ee4eb536c3bdc78ffb436_29501838.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/10bae6891a8e21a43d6a14f6ffc63378_49313825.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3dcdb83566ebdfcf12af328f7dc939e8_76647609.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b8462c8c70b14a3604326c8b424251b8_23644819.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/28f41f011d337d0bf18d9620fd827b5a_63802708.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/94c00f81859b7a5b23853d62c3c6bef6_18419542.png change filename to text .imagette220699781744791572/ imagette220699781744791572/1744791341_2456859_1350217162_316291dd03fccba5bc1f39bd1c06f286_rle_crop_3748707821_0.png.png imagette220699781744791572/1744790892_1658217_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701409_0.png.png imagette220699781744791572/1744790773_1656522_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701420_0.png.png imagette220699781744791572/1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701400_0.png.png imagette220699781744791572/1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701395_0.png.png imagette220699781744791572/1744790773_1656522_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701409_0.png.png imagette220699781744791572/1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701400_0.png.png imagette220699781744791572/1744791107_2450626_1350214181_1875ea2dcbd3e2843d58106a112da643_rle_crop_3748706420_0.png.png imagette220699781744791572/1744791134_1661635_1350213540_5d8652d4da88b45289d509558bf6268c_rle_crop_3748706832_0.png.png imagette220699781744791572/1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703693_0.png.png imagette220699781744791572/1744791107_2450626_1350215273_200e09fcbd1da91629fc5612e6f677a9_rle_crop_3748706272_0.png.png imagette220699781744791572/1744791422_1666087_1350217127_a8b67fbebdeb413cf8855115c9c5159f_rle_crop_3748709145_0.png.png imagette220699781744791572/1744791134_1661635_1350213488_73e0092b6eac6f427ee87e27c9da7b0f_rle_crop_3748706843_0.png.png imagette220699781744791572/1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701420_0.png.png imagette220699781744791572/1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701395_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a954b3b1f965db239b365102703d4165_27099833.png imagette220699781744791572 22069971 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=22069971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350217009: '1744791107_2450626_1350214394_b76141bd135bf8fb5d6f6f8947fac6b3_rle_crop_3748706301_0.png', 1350217774: '1744791373_1665326_1350217440_2b1b147664fd47bfd11f70bc57d39c55_rle_crop_3748707925_0.png', 1350217716: '1744791314_1663865_1350216050_c08e89847f7375bc4546d23123460349_rle_crop_3748707810_0.png', 1350217439: '1744791223_2454252_1350216592_7b6da0400b1953d963d7ae40a6327f2f_rle_crop_3748707550_0.png', 1350217437: '1744791223_2454252_1350216621_01acdac73a8565c819eafe932903c713_rle_crop_3748707538_0.png', 1350217276: '1744791192_1662465_1350216906_96b9ed06cda92faa929c6a7f2cb424a1_rle_crop_3748707425_0.png', 1350217275: '1744791192_1662465_1350216906_96b9ed06cda92faa929c6a7f2cb424a1_rle_crop_3748707422_0.png', 1350217274: '1744791192_1662465_1350216967_03f5820153d0314418eb6f7ca873716c_rle_crop_3748707398_0.png', 1350217097: '1744791134_1661635_1350214470_c8ea997365ba2083024dc615884bd0e2_rle_crop_3748706798_0.png', 1350217012: '1744791107_2450626_1350214224_d9c961a2fea634e8a1fba57f4db28d48_rle_crop_3748706386_0.png', 1350217010: '1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706359_0.png', 1350211168: '1744790593_1654178_1350209695_b7a1ea963d888877b6214994469fa1ad_rle_crop_3748695457_0.png', 1350215933: '1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703694_0.png', 1350215846: '1744790892_1658217_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701412_0.png', 1350215845: '1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701393_0.png', 1350215843: '1744790892_1658217_1350211436_13caa95141ed7beea41019e5df9968e7_rle_crop_3748701377_0.png', 1350215842: '1744790892_1658217_1350211488_903b94b0b92ac505a5c3e86d54d09399_rle_crop_3748701368_0.png', 1350215017: '1744790863_2446647_1350211538_1d998d4b9a02763f63cf9268d5c2da9d_rle_crop_3748701726_0.png', 1350213955: '1744790773_1656522_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701412_0.png', 1350213953: '1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701393_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d1fe141ce07151aeed70e27569a31c0b_93146992.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ab8d05b9bd887bad67071e15661a22d9_56748506.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4c95abd629f2cfcf1bbe4a5493fc500a_44434235.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b6481f36bef7072e320e96ad9243a76d_19237453.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d3171de0124f98bf71d49a6e6a87abc5_34687920.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/61865f443e7186f6973a6f3d81ca8b98_27203963.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/104c93112c90669238aefb4243bfa1e4_51404642.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/21a7ea7f816b08afa3b32cf339a1cfe1_54881896.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b140fc7421c56e350f5560a3f23580f9_7793492.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/bec7fdd3ab22481f22ada4a8009d44bf_52911826.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/15ca63d4647799e7e5f97792c9b44a1b_70922896.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/16eb54e3b6cbbb82e9a94bd71ab0ab16_68158937.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7d1e2bfb4328f9042f05a93b8d8f4db8_86081997.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f609ee1a9764a9c824f769e6e1a51f92_3517118.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8d598ee9a83ab414d3fd2ebf0ffdde79_90408538.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0a5102f842d55f90d2790a5100fd8ef3_22630951.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/eb6df6dc8ea5040b7de8aa951b8d5ba2_35504466.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d2af59318f5a00f80b17fd50293e8267_21772885.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f609ee1a9764a9c824f769e6e1a51f92_75257580.png change filename to text .imagette220699711744791573/ imagette220699711744791573/1744791192_1662465_1350216967_03f5820153d0314418eb6f7ca873716c_rle_crop_3748707398_0.png.png imagette220699711744791573/1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706359_0.png.png imagette220699711744791573/1744791107_2450626_1350214224_d9c961a2fea634e8a1fba57f4db28d48_rle_crop_3748706386_0.png.png imagette220699711744791573/1744790892_1658217_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701393_0.png.png imagette220699711744791573/1744791192_1662465_1350216906_96b9ed06cda92faa929c6a7f2cb424a1_rle_crop_3748707425_0.png.png imagette220699711744791573/1744791192_1662465_1350216906_96b9ed06cda92faa929c6a7f2cb424a1_rle_crop_3748707422_0.png.png imagette220699711744791573/1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703694_0.png.png imagette220699711744791573/1744791223_2454252_1350216621_01acdac73a8565c819eafe932903c713_rle_crop_3748707538_0.png.png imagette220699711744791573/1744790773_1656522_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701412_0.png.png imagette220699711744791573/1744790863_2446647_1350211538_1d998d4b9a02763f63cf9268d5c2da9d_rle_crop_3748701726_0.png.png imagette220699711744791573/1744790593_1654178_1350209695_b7a1ea963d888877b6214994469fa1ad_rle_crop_3748695457_0.png.png imagette220699711744791573/1744790892_1658217_1350211488_903b94b0b92ac505a5c3e86d54d09399_rle_crop_3748701368_0.png.png imagette220699711744791573/1744791373_1665326_1350217440_2b1b147664fd47bfd11f70bc57d39c55_rle_crop_3748707925_0.png.png imagette220699711744791573/1744791107_2450626_1350214394_b76141bd135bf8fb5d6f6f8947fac6b3_rle_crop_3748706301_0.png.png imagette220699711744791573/1744790892_1658217_1350211436_13caa95141ed7beea41019e5df9968e7_rle_crop_3748701377_0.png.png imagette220699711744791573/1744791134_1661635_1350214470_c8ea997365ba2083024dc615884bd0e2_rle_crop_3748706798_0.png.png imagette220699711744791573/1744791314_1663865_1350216050_c08e89847f7375bc4546d23123460349_rle_crop_3748707810_0.png.png imagette220699711744791573/1744790892_1658217_1350211358_d045f9c44a44c4a60495371a718947b7_rle_crop_3748701412_0.png.png imagette220699711744791573/1744790773_1656522_1350211400_d45ac5761b29eddcedba52f826f42db0_rle_crop_3748701393_0.png.png imagette220699711744791573/1744791223_2454252_1350216592_7b6da0400b1953d963d7ae40a6327f2f_rle_crop_3748707550_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8d598ee9a83ab414d3fd2ebf0ffdde79_88976352.png imagette220699711744791573 22069974 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=22069974 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350211178: '1744790593_1654178_1350209695_b7a1ea963d888877b6214994469fa1ad_rle_crop_3748695464_0.png', 1350214023: '1744790773_1656522_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701425_0.png', 1350215053: '1744790863_2446647_1350210808_bc4c315674476af0778f028809f0c619_rle_crop_3748701758_0.png', 1350215865: '1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701425_0.png', 1350215977: '1744790941_1659023_1350210550_d1146d6f4a533db4295c5a87ddb85d3c_rle_crop_3748703714_0.png', 1350216844: '1744791071_1660929_1350215886_40a3ea5eb71d6d18af175b52a03182a2_rle_crop_3748706024_0.png', 1350217038: '1744791107_2450626_1350214224_d9c961a2fea634e8a1fba57f4db28d48_rle_crop_3748706388_0.png', 1350217101: '1744791134_1661635_1350214470_c8ea997365ba2083024dc615884bd0e2_rle_crop_3748706803_0.png', 1350217279: '1744791192_1662465_1350216967_03f5820153d0314418eb6f7ca873716c_rle_crop_3748707400_0.png', 1350217447: '1744791223_2454252_1350216592_7b6da0400b1953d963d7ae40a6327f2f_rle_crop_3748707555_0.png', 1350217717: '1744791314_1663865_1350216072_ea72ef5d561eeb2f79d8e83ed05ee51b_rle_crop_3748707799_0.png', 1350217777: '1744791373_1665326_1350217440_2b1b147664fd47bfd11f70bc57d39c55_rle_crop_3748707922_0.png', 1350217778: '1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707942_0.png', 1350217840: '1744791422_1666087_1350217136_9f707376a15c48eb31cf19bcb09ca579_rle_crop_3748709131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a03ebdebf7b80dd1c65970e46fadf752_25397796.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f116152aa4a9e8016a42aa7c6340afe4_57804530.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c40fbfff4c2b209280f1aafbc23dde82_59629223.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f116152aa4a9e8016a42aa7c6340afe4_9469711.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d06df5e1e1bac42ff8f6fb3851c23f3a_23733819.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/46b0be1baa5136b32931e67856219083_39858559.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/623d3ff968628dfd92ca811399389851_23007978.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2b2f87ac2c2a1b4396edc415f2f315c1_97583302.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4aef4f52a73c3fdd63fc79bf68c66f7f_2558023.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a90c40496a47f353a9014402027068f7_48724723.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9f03a6a92066469825955824978ca0a9_58594472.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/363e89dda500624c2aedc897d191204b_7266862.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a2093e7ab4cb599b7c03e28c2c2c3984_77380503.png change filename to text .imagette220699741744791574/ imagette220699741744791574/1744791192_1662465_1350216967_03f5820153d0314418eb6f7ca873716c_rle_crop_3748707400_0.png.png imagette220699741744791574/1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707942_0.png.png imagette220699741744791574/1744790593_1654178_1350209695_b7a1ea963d888877b6214994469fa1ad_rle_crop_3748695464_0.png.png imagette220699741744791574/1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701425_0.png.png imagette220699741744791574/1744791071_1660929_1350215886_40a3ea5eb71d6d18af175b52a03182a2_rle_crop_3748706024_0.png.png imagette220699741744791574/1744791107_2450626_1350214224_d9c961a2fea634e8a1fba57f4db28d48_rle_crop_3748706388_0.png.png imagette220699741744791574/1744791223_2454252_1350216592_7b6da0400b1953d963d7ae40a6327f2f_rle_crop_3748707555_0.png.png imagette220699741744791574/1744790773_1656522_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701425_0.png.png imagette220699741744791574/1744791314_1663865_1350216072_ea72ef5d561eeb2f79d8e83ed05ee51b_rle_crop_3748707799_0.png.png imagette220699741744791574/1744791134_1661635_1350214470_c8ea997365ba2083024dc615884bd0e2_rle_crop_3748706803_0.png.png imagette220699741744791574/1744790941_1659023_1350210550_d1146d6f4a533db4295c5a87ddb85d3c_rle_crop_3748703714_0.png.png imagette220699741744791574/1744790863_2446647_1350210808_bc4c315674476af0778f028809f0c619_rle_crop_3748701758_0.png.png imagette220699741744791574/1744791422_1666087_1350217136_9f707376a15c48eb31cf19bcb09ca579_rle_crop_3748709131_0.png.png imagette220699741744791574/1744791373_1665326_1350217440_2b1b147664fd47bfd11f70bc57d39c55_rle_crop_3748707922_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/726dbf611d936fcf113794bb002f8cfe_83149855.png imagette220699741744791574 22069979 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=22069979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350216996: '1744791107_2450626_1350214394_b76141bd135bf8fb5d6f6f8947fac6b3_rle_crop_3748706304_0.png', 1350217838: '1744791422_1666087_1350217123_e6eef393bfc114182ff536ed2024aeea_rle_crop_3748709163_0.png', 1350217837: '1744791422_1666087_1350217127_a8b67fbebdeb413cf8855115c9c5159f_rle_crop_3748709148_0.png', 1350217836: '1744791422_1666087_1350217136_9f707376a15c48eb31cf19bcb09ca579_rle_crop_3748709133_0.png', 1350217771: '1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707944_0.png', 1350217711: '1744791314_1663865_1350216660_13a88a44e14d88cd6489bd5f6c0c5f81_rle_crop_3748707757_0.png', 1350217428: '1744791223_2454252_1350216621_01acdac73a8565c819eafe932903c713_rle_crop_3748707539_0.png', 1350217273: '1744791192_1662465_1350216938_ae7c68d2e7cf6b0d56e8be0b5afc0205_rle_crop_3748707409_0.png', 1350217272: '1744791192_1662465_1350216967_03f5820153d0314418eb6f7ca873716c_rle_crop_3748707399_0.png', 1350217002: '1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706366_0.png', 1350216999: '1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706329_0.png', 1350216998: '1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706332_0.png', 1350211158: '1744790593_1654178_1350209695_b7a1ea963d888877b6214994469fa1ad_rle_crop_3748695462_0.png', 1350216823: '1744791071_1660929_1350215889_63cff603fada1fe87f28f836f1cd0eef_rle_crop_3748706009_0.png', 1350216822: '1744791071_1660929_1350215892_8cc60211649f3c480fa76e12f21b2ffe_rle_crop_3748706000_0.png', 1350215920: '1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703698_0.png', 1350215826: '1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701424_0.png', 1350214998: '1744790863_2446647_1350210808_bc4c315674476af0778f028809f0c619_rle_crop_3748701762_0.png', 1350214994: '1744790863_2446647_1350210808_bc4c315674476af0778f028809f0c619_rle_crop_3748701760_0.png', 1350214989: '1744790863_2446647_1350210843_4eabb0a375ecfeaee8a831d4ebf0bd6b_rle_crop_3748701743_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2402e0fd76111b7f7d93b80f2e3f36a7_74135138.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3382a65b5d1b2ce8ba26f1fb5c569370_13533277.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9fd60e9f6e2dca0b5e8d9907cc55069c_19863960.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/eed080df87de2cc32a1c6bebb90b354e_97203639.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b1eb40e62dad8fdbb40e8f14ea7c381c_21940225.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/221839160a7765a4947587faab28640d_18115177.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c410ddcdb78a5ab1ae36d11d4d71099a_27482042.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b26f07be56b0a0101790db6780fe1b24_4725262.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ef3b1259e274145f6064434e40a314f4_40891888.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/249c64d10d83a67f7a8fb5d8c9f2605d_90432473.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d69fbb92015c597b2720c9b67217ba0f_74157045.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9862c984a5e51b79aaa53b658b083b0a_97275354.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/778df733eb25b50d176b403e6aec3937_22228997.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6a7f43ba1f13659e89152cbacfee9706_41496322.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e34382457f0ba31f40163c1228e85d42_6167231.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/758ce3700b78e451030481c590b091cb_97487736.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/789dd148bc7b3a9d98742897e2bbfdea_15050958.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a5ab592004fb4d07976267c5d148c560_892814.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3a6ac5141257bce03d25443696c18208_65895977.png change filename to text .imagette220699791744791574/ imagette220699791744791574/1744791107_2450626_1350214279_efea1c2661781ffd92f9741976b4285d_rle_crop_3748706366_0.png.png imagette220699791744791574/1744791071_1660929_1350215892_8cc60211649f3c480fa76e12f21b2ffe_rle_crop_3748706000_0.png.png imagette220699791744791574/1744790863_2446647_1350210808_bc4c315674476af0778f028809f0c619_rle_crop_3748701760_0.png.png imagette220699791744791574/1744791422_1666087_1350217127_a8b67fbebdeb413cf8855115c9c5159f_rle_crop_3748709148_0.png.png imagette220699791744791574/1744790863_2446647_1350210808_bc4c315674476af0778f028809f0c619_rle_crop_3748701762_0.png.png imagette220699791744791574/1744791192_1662465_1350216938_ae7c68d2e7cf6b0d56e8be0b5afc0205_rle_crop_3748707409_0.png.png imagette220699791744791574/1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706332_0.png.png imagette220699791744791574/1744791107_2450626_1350214394_b76141bd135bf8fb5d6f6f8947fac6b3_rle_crop_3748706304_0.png.png imagette220699791744791574/1744791071_1660929_1350215889_63cff603fada1fe87f28f836f1cd0eef_rle_crop_3748706009_0.png.png imagette220699791744791574/1744791373_1665326_1350217400_a9f7d5a3cb09c61b3273f05de2d984bf_rle_crop_3748707944_0.png.png imagette220699791744791574/1744790863_2446647_1350210843_4eabb0a375ecfeaee8a831d4ebf0bd6b_rle_crop_3748701743_0.png.png imagette220699791744791574/1744791223_2454252_1350216621_01acdac73a8565c819eafe932903c713_rle_crop_3748707539_0.png.png imagette220699791744791574/1744790593_1654178_1350209695_b7a1ea963d888877b6214994469fa1ad_rle_crop_3748695462_0.png.png imagette220699791744791574/1744791192_1662465_1350216967_03f5820153d0314418eb6f7ca873716c_rle_crop_3748707399_0.png.png imagette220699791744791574/1744791107_2450626_1350214343_dab3c28431c7f20ac04215f438ebd6d1_rle_crop_3748706329_0.png.png imagette220699791744791574/1744790951_1659213_1350210575_a4a01d134ac1418d14c490e6f04ea41f_rle_crop_3748703698_0.png.png imagette220699791744791574/1744790892_1658217_1350211311_75ea78e62453a06dfe491ad612c6198b_rle_crop_3748701424_0.png.png imagette220699791744791574/1744791422_1666087_1350217136_9f707376a15c48eb31cf19bcb09ca579_rle_crop_3748709133_0.png.png imagette220699791744791574/1744791422_1666087_1350217123_e6eef393bfc114182ff536ed2024aeea_rle_crop_3748709163_0.png.png imagette220699791744791574/1744791314_1663865_1350216660_13a88a44e14d88cd6489bd5f6c0c5f81_rle_crop_3748707757_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/61c303ae977f5aae2568cac19c358dcb_97818216.png imagette220699791744791574 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22069943 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22069980,22069981,22069982,22069983,22069984,22069985,22069986,22069987,22069988,22069989,22069990,22069991?tags=environnement,mal_croppe,metal,Carton_gris,kraft,autre_refus,Carton_brun,papier,flou,cartonnette,plastique,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1350217752] : ('0.048789733604911394',) no score found for photo 1350217752 We are sending mail with results at report@fotonower.com refus_total : 0.048789733604911394 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=22069943 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_P22069943_16-04-2025_10_19_30.pdf results_Auto_P22069943_16-04-2025_10_19_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.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','22069943','results_Auto_P22069943_16-04-2025_10_19_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.pdf','pdf','','0.27','0.048789733604911394') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22069943]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350217752] map_info['map_portfolio_photo'] : {22069943: [1350217752, 1350217681, 1350217678, 1350217672, 1350217665, 1350217659, 1350217653, 1350217497, 1350217470, 1350217440, 1350217400, 1350217162, 1350217136, 1350217130, 1350217127, 1350217123, 1350216993, 1350216967, 1350216938, 1350216906, 1350216660, 1350216630, 1350216621, 1350216592, 1350216566, 1350216160, 1350216106, 1350216072, 1350216050, 1350215901, 1350215896, 1350215892, 1350215889, 1350215886, 1350215273, 1350215226, 1350215169, 1350215094, 1350214470, 1350214394, 1350214343, 1350214279, 1350214224, 1350214181, 1350213577, 1350213540, 1350213488, 1350213437, 1350212585, 1350212538, 1350212489, 1350212446, 1350212402, 1350211538, 1350211488, 1350211436, 1350211400, 1350211358, 1350211311, 1350210886, 1350210843, 1350210808, 1350210575, 1350210550, 1350210509, 1350210478, 1350210434, 1350210393, 1350209752, 1350209695]} final : False mtd_id 4302 list_pids : [1350217752] 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, '2725351') ('4302', '22069943', '1350217752', None, None, None, None, None, '2725351') 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', '22069943', '1350217752', None, None, None, None, None, '2725351')] time used for this insertion : 0.011770486831665039 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.7550177574157715 time spend to save output : 0.0119476318359375 total time spend for step 4 : 6.766965389251709 step5:split_time_score Wed Apr 16 10:19:36 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 : ['22069943'] 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 : [('22069943',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22069943) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350217752: {'path': 'temp/1744791570_180818_1350217752_d16152594bf76be8b4ed9dd641c97291.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 = 22069943; (('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 = 22069943 group by h (('10', 70),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22069943 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 (22069943) 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 (22069943) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22069943 Nombre de photos uploadées : 70 / 23040 (0%) 16042025 22069943 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 16042025 22069943 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1350209752, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ed8605a7adfe30896c2c83a7173df863.jpg', 'username': None, 'uploaded_at': 1744790467, 'text': 'image_16042025_10_00_14_010218m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350209695, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b7a1ea963d888877b6214994469fa1ad.jpg', 'username': None, 'uploaded_at': 1744790467, 'text': 'image_16042025_10_00_44_010137m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1350210575, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a4a01d134ac1418d14c490e6f04ea41f.jpg', 'username': None, 'uploaded_at': 1744790528, 'text': 'image_16042025_10_00_54_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1350210550, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d1146d6f4a533db4295c5a87ddb85d3c.jpg', 'username': None, 'uploaded_at': 1744790528, 'text': 'image_16042025_10_01_04_010165m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019707679748535156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22069943, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02199244499206543 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726210, 'mtr_portfolio_id': 22068844, 'dashboard_result_id': 9878642, '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_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726210, 'mtr_portfolio_id': 22069355, 'dashboard_result_id': 9878643, '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_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726210, 'mtr_portfolio_id': 22069943, 'dashboard_result_id': 9878644, '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_P22069943_16-04-2025_10_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726210, 'mtr_portfolio_id': 22070661, 'dashboard_result_id': 9878645, '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_P22070661_16-04-2025_10_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, '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 = 22068844 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': 2725257, 'mtr_portfolio_id': 22068844, 'created_at': datetime.datetime(2025, 4, 16, 9, 48, 59), 'result': '0.05742578485414331', 'result_long': None, 'result_double': None}] Qualite : 0.05742578485414331 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22068844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22068844_16-04-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22068844 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_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, 'pht': 3726}}" where mtr_portfolio_id = 22068844 and dashboard_run_id = 1726210 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`=22068844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878642, 0.05742578485414331, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, '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 = 22069355 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': 2725297, 'mtr_portfolio_id': 22069355, 'created_at': datetime.datetime(2025, 4, 16, 10, 2, 58), 'result': '0.046502172647510345', 'result_long': None, 'result_double': None}] Qualite : 0.046502172647510345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22069355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069355_16-04-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22069355 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_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, 'pht': 3726}}" where mtr_portfolio_id = 22069355 and dashboard_run_id = 1726210 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`=22069355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878643, 0.046502172647510345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, '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 = 22069943 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': 2725351, 'mtr_portfolio_id': 22069943, 'created_at': datetime.datetime(2025, 4, 16, 10, 19, 29), 'result': '0.048789733604911394', 'result_long': None, 'result_double': None}] Qualite : 0.048789733604911394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22069943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22069943 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_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, 'pht': 3726}}" where mtr_portfolio_id = 22069943 and dashboard_run_id = 1726210 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`=22069943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878644, 0.048789733604911394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, '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 = 22070661 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': 2725402, 'mtr_portfolio_id': 22070661, 'created_at': datetime.datetime(2025, 4, 16, 10, 19), 'result': '0.08222559591832462', 'result_long': None, 'result_double': None}] Qualite : 0.08222559591832462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22070661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22070661 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_P22070661_16-04-2025_10_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, 'pht': 3726}}" where mtr_portfolio_id = 22070661 and dashboard_run_id = 1726210 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`=22070661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9878645, 0.08222559591832462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, '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 (22068844,22069355,22069943,22070661) result : ((1350203740,), (1350203766,), (1350203789,), (1350203898,), (1350203908,), (1350203912,), (1350203933,), (1350203948,), (1350204005,), (1350204013,), (1350204017,), (1350204020,), (1350204023,), (1350204054,), (1350204076,), (1350204082,), (1350204086,), (1350204091,), (1350204480,), (1350204506,), (1350204541,), (1350204572,), (1350204599,), (1350204966,), (1350204990,), (1350205039,), (1350205064,), (1350205069,), (1350205091,), (1350205255,), (1350205300,), (1350205329,), (1350205730,), (1350205741,), (1350205756,), (1350205770,), (1350205781,), (1350205799,), (1350205993,), (1350206029,), (1350206041,), (1350206069,), (1350206100,), (1350206116,), (1350206391,), (1350206411,), (1350206419,), (1350206427,), (1350206444,), (1350206758,), (1350206864,), (1350206916,), (1350206947,), (1350207044,), (1350207082,), (1350207194,), (1350207200,), (1350207208,), (1350207223,), (1350207542,), (1350207523,), (1350207528,), (1350207531,), (1350207533,), (1350207539,), (1350207704,), (1350207723,), (1350207746,), (1350207770,), (1350207775,), (1350208092,), (1350208188,), (1350208207,), (1350208401,), (1350208405,), (1350208407,), (1350208409,), (1350208416,), (1350208421,), (1350208467,), (1350208475,), (1350208481,), (1350208488,), (1350208496,), (1350208509,), (1350208600,), (1350208606,), (1350208613,), (1350208616,), (1350208708,), (1350208716,), (1350208722,), (1350208727,), (1350208800,), (1350208809,), (1350208816,), (1350208878,), (1350208886,), (1350208891,), (1350208896,), (1350208902,), (1350208907,), (1350208934,), (1350208939,), (1350208946,), (1350208953,), (1350208960,), (1350209140,), (1350209148,), (1350209153,), (1350209158,), (1350209165,), (1350209195,), (1350209200,), (1350209204,), (1350209207,), (1350209213,), (1350209265,), (1350209270,), (1350209275,), (1350209280,), (1350209389,), (1350209395,), (1350209404,), (1350209412,), (1350209420,), (1350209813,), (1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,), (1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22069943]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350217752] map_info['map_portfolio_photo'] : {22069943: [1350217752, 1350217681, 1350217678, 1350217672, 1350217665, 1350217659, 1350217653, 1350217497, 1350217470, 1350217440, 1350217400, 1350217162, 1350217136, 1350217130, 1350217127, 1350217123, 1350216993, 1350216967, 1350216938, 1350216906, 1350216660, 1350216630, 1350216621, 1350216592, 1350216566, 1350216160, 1350216106, 1350216072, 1350216050, 1350215901, 1350215896, 1350215892, 1350215889, 1350215886, 1350215273, 1350215226, 1350215169, 1350215094, 1350214470, 1350214394, 1350214343, 1350214279, 1350214224, 1350214181, 1350213577, 1350213540, 1350213488, 1350213437, 1350212585, 1350212538, 1350212489, 1350212446, 1350212402, 1350211538, 1350211488, 1350211436, 1350211400, 1350211358, 1350211311, 1350210886, 1350210843, 1350210808, 1350210575, 1350210550, 1350210509, 1350210478, 1350210434, 1350210393, 1350209752, 1350209695]} final : True mtd_id 4302 list_pids : [1350217752] Looping around the photos to save general results len do output : 1 /22069943Didn'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, '2725351') ('4302', '22069943', '1350217752', None, None, None, None, None, '2725351') 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, '22069943', 'None', None, None, None, None, '2725351'), ('4302', '22069943', '1350217752', None, None, None, None, None, '2725351')] time used for this insertion : 0.014113664627075195 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.32874226570129395 time spend to save output : 0.014285087585449219 total time spend for step 5 : 0.34302735328674316 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 (2725351) 2.28user 2.00system 0:12.25elapsed 34%CPU (0avgtext+0avgdata 154460maxresident)k 520inputs+14696outputs (20major+76344minor)pagefaults 0swaps