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 : 2639692 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 (2747737) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2747737) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294892 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2747737'] with mtr_portfolio_ids : ['22294892'] and first list_photo_ids : [] new path : /proc/2639692/ Name: python3 Umask: 0002 State: R (running) Tgid: 2639692 Ngid: 0 Pid: 2639692 PPid: 2639691 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2639692 NSpid: 2639692 NSpgid: 2636308 NSsid: 2636308 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98712 kB VmRSS: 98712 kB RssAnon: 59800 kB RssFile: 38912 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 548 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: 45 nonvoluntary_ctxt_switches: 187 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2639692', 'Ngid': '0', 'Pid': '2639692', 'PPid': '2639691', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2639692', 'NSpid': '2639692', 'NSpgid': '2636308', 'NSsid': '2636308', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98712 kB', 'VmRSS': '98712 kB', 'RssAnon': '59800 kB', 'RssFile': '38912 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '548 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': '45', 'nonvoluntary_ctxt_switches': '187'} ('datou_batch_current', '2639692', '1106936', '0', '1106936', '865684', '98712', b'', 'marlene', '2747737') 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 (22294892) 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 (2747737 ) ) 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 (22294892) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352573745, 'portfolio_id': 22294892}, {'photo_id': 1352573695, 'portfolio_id': 22294892}, {'photo_id': 1352573688, 'portfolio_id': 22294892}, {'photo_id': 1352573681, 'portfolio_id': 22294892}, {'photo_id': 1352573669, 'portfolio_id': 22294892}, {'photo_id': 1352573663, 'portfolio_id': 22294892}, {'photo_id': 1352573656, 'portfolio_id': 22294892}, {'photo_id': 1352573322, 'portfolio_id': 22294892}, {'photo_id': 1352573252, 'portfolio_id': 22294892}, {'photo_id': 1352573250, 'portfolio_id': 22294892}, {'photo_id': 1352573248, 'portfolio_id': 22294892}, {'photo_id': 1352573120, 'portfolio_id': 22294892}, {'photo_id': 1352573118, 'portfolio_id': 22294892}, {'photo_id': 1352573110, 'portfolio_id': 22294892}, {'photo_id': 1352573101, 'portfolio_id': 22294892}, {'photo_id': 1352572983, 'portfolio_id': 22294892}, {'photo_id': 1352572969, 'portfolio_id': 22294892}, {'photo_id': 1352572958, 'portfolio_id': 22294892}, {'photo_id': 1352572824, 'portfolio_id': 22294892}, {'photo_id': 1352572791, 'portfolio_id': 22294892}, {'photo_id': 1352572746, 'portfolio_id': 22294892}, {'photo_id': 1352572743, 'portfolio_id': 22294892}, {'photo_id': 1352572739, 'portfolio_id': 22294892}, {'photo_id': 1352572734, 'portfolio_id': 22294892}, {'photo_id': 1352572701, 'portfolio_id': 22294892}, {'photo_id': 1352572695, 'portfolio_id': 22294892}, {'photo_id': 1352572638, 'portfolio_id': 22294892}, {'photo_id': 1352572633, 'portfolio_id': 22294892}, {'photo_id': 1352572563, 'portfolio_id': 22294892}, {'photo_id': 1352572553, 'portfolio_id': 22294892}, {'photo_id': 1352572548, 'portfolio_id': 22294892}, {'photo_id': 1352572545, 'portfolio_id': 22294892}, {'photo_id': 1352572501, 'portfolio_id': 22294892}, {'photo_id': 1352572497, 'portfolio_id': 22294892}, {'photo_id': 1352572493, 'portfolio_id': 22294892}, {'photo_id': 1352572490, 'portfolio_id': 22294892}, {'photo_id': 1352572487, 'portfolio_id': 22294892}, {'photo_id': 1352572484, 'portfolio_id': 22294892}, {'photo_id': 1352572449, 'portfolio_id': 22294892}, {'photo_id': 1352572444, 'portfolio_id': 22294892}, {'photo_id': 1352572441, 'portfolio_id': 22294892}, {'photo_id': 1352572437, 'portfolio_id': 22294892}, {'photo_id': 1352572432, 'portfolio_id': 22294892}, {'photo_id': 1352572392, 'portfolio_id': 22294892}, {'photo_id': 1352572390, 'portfolio_id': 22294892}, {'photo_id': 1352572387, 'portfolio_id': 22294892}, {'photo_id': 1352572385, 'portfolio_id': 22294892}, {'photo_id': 1352572204, 'portfolio_id': 22294892}, {'photo_id': 1352572200, 'portfolio_id': 22294892}, {'photo_id': 1352572195, 'portfolio_id': 22294892}, {'photo_id': 1352572182, 'portfolio_id': 22294892}, {'photo_id': 1352572173, 'portfolio_id': 22294892}, {'photo_id': 1352572154, 'portfolio_id': 22294892}, {'photo_id': 1352572061, 'portfolio_id': 22294892}, {'photo_id': 1352572051, 'portfolio_id': 22294892}, {'photo_id': 1352572047, 'portfolio_id': 22294892}, {'photo_id': 1352572044, 'portfolio_id': 22294892}, {'photo_id': 1352572041, 'portfolio_id': 22294892}, {'photo_id': 1352572037, 'portfolio_id': 22294892}, {'photo_id': 1352571950, 'portfolio_id': 22294892}, {'photo_id': 1352571946, 'portfolio_id': 22294892}, {'photo_id': 1352571941, 'portfolio_id': 22294892}, {'photo_id': 1352571936, 'portfolio_id': 22294892}, {'photo_id': 1352571739, 'portfolio_id': 22294892}, {'photo_id': 1352571722, 'portfolio_id': 22294892}, {'photo_id': 1352571718, 'portfolio_id': 22294892}, {'photo_id': 1352571703, 'portfolio_id': 22294892}, {'photo_id': 1352571693, 'portfolio_id': 22294892}, {'photo_id': 1352571520, 'portfolio_id': 22294892}, {'photo_id': 1352571508, 'portfolio_id': 22294892}, {'photo_id': 1352571494, 'portfolio_id': 22294892}] map_portfolio_id_photo_id: {22294892: [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656, 1352573322, 1352573252, 1352573250, 1352573248, 1352573120, 1352573118, 1352573110, 1352573101, 1352572983, 1352572969, 1352572958, 1352572824, 1352572791, 1352572746, 1352572743, 1352572739, 1352572734, 1352572701, 1352572695, 1352572638, 1352572633, 1352572563, 1352572553, 1352572548, 1352572545, 1352572501, 1352572497, 1352572493, 1352572490, 1352572487, 1352572484, 1352572449, 1352572444, 1352572441, 1352572437, 1352572432, 1352572392, 1352572390, 1352572387, 1352572385, 1352572204, 1352572200, 1352572195, 1352572182, 1352572173, 1352572154, 1352572061, 1352572051, 1352572047, 1352572044, 1352572041, 1352572037, 1352571950, 1352571946, 1352571941, 1352571936, 1352571739, 1352571722, 1352571718, 1352571703, 1352571693, 1352571520, 1352571508, 1352571494]} ##### 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.015283823013305664 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Apr 22 10:32: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 (22294892) 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 : 22294892 get user id for portfolio 22294892 get sub ptf for main ptf 22294892, type 3726 and hashtags ['Carton_gris', 'autre_refus', 'metal', 'papier', 'Carton_brun', 'mal_croppe', 'flou', 'cartonnette', 'plastique', 'kraft', 'environnement', 'Teint_Dans_La_Masse'] 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`=22294892 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','papier','Carton_brun','mal_croppe','flou','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse')) 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`=22294892 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','papier','Carton_brun','mal_croppe','flou','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22294892, 'sub_port_id': 22294958, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757574, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'metal': {'main_port_id': 22294892, 'sub_port_id': 22294959, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757575, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 22294892, 'sub_port_id': 22294960, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757576, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'plastique': {'main_port_id': 22294892, 'sub_port_id': 22294961, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757577, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'mal_croppe': {'main_port_id': 22294892, 'sub_port_id': 22294962, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757578, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'autre_refus': {'main_port_id': 22294892, 'sub_port_id': 22294963, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757579, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'cartonnette': {'main_port_id': 22294892, 'sub_port_id': 22294964, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757580, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'Carton_brun': {'main_port_id': 22294892, 'sub_port_id': 22294965, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757581, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'kraft': {'main_port_id': 22294892, 'sub_port_id': 22294966, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757582, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'environnement': {'main_port_id': 22294892, 'sub_port_id': 22294967, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757583, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'flou': {'main_port_id': 22294892, 'sub_port_id': 22294968, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757584, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}, 'papier': {'main_port_id': 22294892, 'sub_port_id': 22294969, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757585, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22294958 , 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=22294892 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 (22294958) result : ((1352572108,), (1352572179,), (1352572557,), (1352572558,), (1352572560,), (1352572717,), (1352572718,), (1352572719,), (1352573033,), (1352573034,), (1352573035,), (1352573103,), (1352573104,), (1352573228,), (1352573229,), (1352573230,), (1352573785,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294959 , 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=22294892 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 (22294959) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294960 , 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=22294892 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 (22294960) result : ((1352572103,), (1352572104,), (1352572105,), (1352572106,), (1352572168,), (1352572169,), (1352572170,), (1352572171,), (1352572516,), (1352572517,), (1352572551,), (1352572713,), (1352572714,), (1352573030,), (1352573619,), (1352573780,), (1352573781,), (1352573782,), (1352573783,), (1352573784,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294961 , 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=22294892 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 (22294961) result : ((1352572115,), (1352572190,), (1352572571,), (1352572572,), (1352572725,), (1352573042,), (1352573043,), (1352573044,), (1352573113,), (1352573114,), (1352573115,), (1352573116,), (1352573240,), (1352573241,), (1352573242,), (1352573636,), (1352573637,), (1352573638,), (1352573639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294962 , 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=22294892 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 (22294962) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294963 , 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=22294892 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 (22294963) result : ((1352572177,), (1352572178,), (1352572552,), (1352572554,), (1352572555,), (1352572716,), (1352573222,), (1352573223,), (1352573225,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294964 , 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=22294892 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 (22294964) result : ((1352572180,), (1352572561,), (1352572562,), (1352572720,), (1352573037,), (1352573107,), (1352573232,), (1352573233,), (1352573625,), (1352573626,), (1352573789,), (1352573790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294965 , 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=22294892 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 (22294965) result : ((1352572110,), (1352572111,), (1352572113,), (1352572186,), (1352572187,), (1352572188,), (1352572189,), (1352572519,), (1352572564,), (1352572565,), (1352572566,), (1352572568,), (1352572569,), (1352572721,), (1352572722,), (1352572723,), (1352572727,), (1352572728,), (1352572729,), (1352572730,), (1352572731,), (1352572732,), (1352572733,), (1352573038,), (1352573039,), (1352573111,), (1352573235,), (1352573236,), (1352573237,), (1352573632,), (1352573633,), (1352573793,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294966 , 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=22294892 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 (22294966) result : ((1352572192,), (1352572574,), (1352572575,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294967 , 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=22294892 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 (22294967) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294968 , 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=22294892 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 (22294968) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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 22294969 , 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=22294892 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 (22294969) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22294892) result : ((1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) 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 (1352572200) 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`=22294892 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','papier','Carton_brun','mal_croppe','flou','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse')) 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`=22294892 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','metal','papier','Carton_brun','mal_croppe','flou','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22294892, 'sub_port_id': 22294970, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757586, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'metal': {'main_port_id': 22294892, 'sub_port_id': 22294971, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757587, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22294892, 'sub_port_id': 22294972, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757588, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'plastique': {'main_port_id': 22294892, 'sub_port_id': 22294973, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757589, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'mal_croppe': {'main_port_id': 22294892, 'sub_port_id': 22294974, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757590, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'autre_refus': {'main_port_id': 22294892, 'sub_port_id': 22294975, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757591, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'cartonnette': {'main_port_id': 22294892, 'sub_port_id': 22294976, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757592, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'Carton_brun': {'main_port_id': 22294892, 'sub_port_id': 22294977, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757593, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'kraft': {'main_port_id': 22294892, 'sub_port_id': 22294978, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757594, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'environnement': {'main_port_id': 22294892, 'sub_port_id': 22294979, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757595, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'flou': {'main_port_id': 22294892, 'sub_port_id': 22294980, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757596, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}, 'papier': {'main_port_id': 22294892, 'sub_port_id': 22294981, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14757597, 'last_updated_at': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 10, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 10, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294970,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294971,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294959 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294972,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294960 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294973,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294961 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294974,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294962 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294975,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294963 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294976,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294964 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294977,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294965 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22294981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22294969 lien utilise dans velours : https://www.fotonower.com/velours/22294970,22294971,22294972,22294973,22294974,22294975,22294976,22294977,22294978,22294979,22294980,22294981?tags=Carton_gris,metal,Teint_Dans_La_Masse,plastique,mal_croppe,autre_refus,cartonnette,Carton_brun,kraft,environnement,flou,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22294892]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] map_info['map_portfolio_photo'] : {22294892: [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656, 1352573322, 1352573252, 1352573250, 1352573248, 1352573120, 1352573118, 1352573110, 1352573101, 1352572983, 1352572969, 1352572958, 1352572824, 1352572791, 1352572746, 1352572743, 1352572739, 1352572734, 1352572701, 1352572695, 1352572638, 1352572633, 1352572563, 1352572553, 1352572548, 1352572545, 1352572501, 1352572497, 1352572493, 1352572490, 1352572487, 1352572484, 1352572449, 1352572444, 1352572441, 1352572437, 1352572432, 1352572392, 1352572390, 1352572387, 1352572385, 1352572204, 1352572200, 1352572195, 1352572182, 1352572173, 1352572154, 1352572061, 1352572051, 1352572047, 1352572044, 1352572041, 1352572037, 1352571950, 1352571946, 1352571941, 1352571936, 1352571739, 1352571722, 1352571718, 1352571703, 1352571693, 1352571520, 1352571508, 1352571494]} final : False mtd_id 4302 list_pids : [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] Looping around the photos to save general results len do output : 1 /22294892. 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, '2747737') ('4302', '22294892', '1352573745', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573695', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573688', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573681', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573669', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573663', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573656', None, None, None, None, None, '2747737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22294892', "{'Carton_gris': 22294958, 'metal': 22294959, 'Teint_Dans_La_Masse': 22294960, 'plastique': 22294961, 'mal_croppe': 22294962, 'autre_refus': 22294963, 'cartonnette': 22294964, 'Carton_brun': 22294965, 'kraft': 22294966, 'environnement': 22294967, 'flou': 22294968, 'papier': 22294969}", None, None, None, None, '2747737'), ('4302', '22294892', '1352573745', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573695', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573688', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573681', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573669', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573663', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573656', None, None, None, None, None, '2747737')] time used for this insertion : 0.012692928314208984 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.48975467681884766 time spend to save output : 0.01303243637084961 total time spend for step 1 : 0.5027871131896973 step2:final Tue Apr 22 10:32: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 (22294892) 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 22294892 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352571520,1352571508,1352571494,1352571739,1352571722,1352571718,1352571703,1352571693,1352571950,1352571946,1352571941,1352571936,1352572061,1352572051,1352572047,1352572044,1352572041,1352572037,1352572204,1352572200,1352572195,1352572182,1352572173,1352572154,1352572392,1352572390,1352572387,1352572385,1352572449,1352572444,1352572441,1352572437,1352572432,1352572501,1352572497,1352572493,1352572490,1352572487,1352572484,1352572563,1352572553,1352572548,1352572545,1352572701,1352572695,1352572638,1352572633,1352572746,1352572743,1352572739,1352572734,1352572983,1352572969,1352572958,1352572824,1352572791,1352573120,1352573118,1352573110,1352573101,1352573322,1352573252,1352573250,1352573248,1352573695,1352573688,1352573681,1352573669,1352573663,1352573656,1352573745); 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([22294892]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} new output for save of step final : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] map_info['map_portfolio_photo'] : {22294892: [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656, 1352573322, 1352573252, 1352573250, 1352573248, 1352573120, 1352573118, 1352573110, 1352573101, 1352572983, 1352572969, 1352572958, 1352572824, 1352572791, 1352572746, 1352572743, 1352572739, 1352572734, 1352572701, 1352572695, 1352572638, 1352572633, 1352572563, 1352572553, 1352572548, 1352572545, 1352572501, 1352572497, 1352572493, 1352572490, 1352572487, 1352572484, 1352572449, 1352572444, 1352572441, 1352572437, 1352572432, 1352572392, 1352572390, 1352572387, 1352572385, 1352572204, 1352572200, 1352572195, 1352572182, 1352572173, 1352572154, 1352572061, 1352572051, 1352572047, 1352572044, 1352572041, 1352572037, 1352571950, 1352571946, 1352571941, 1352571936, 1352571739, 1352571722, 1352571718, 1352571703, 1352571693, 1352571520, 1352571508, 1352571494]} final : False mtd_id 4302 list_pids : [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] Looping around the photos to save general results len do output : 7 /1352573745.Didn't retrieve data . /1352573695.Didn't retrieve data . /1352573688.Didn't retrieve data . /1352573681.Didn't retrieve data . /1352573669.Didn't retrieve data . /1352573663.Didn't retrieve data . /1352573656.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, '2747737') ('4302', '22294892', '1352573745', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573695', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573688', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573681', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573669', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573663', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573656', None, None, None, None, None, '2747737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22294892', '1352573745', '0.048718953778101766', None, None, None, None, '2747737'), ('4302', '22294892', '1352573695', '0.048718953778101766', None, None, None, None, '2747737'), ('4302', '22294892', '1352573688', '0.048718953778101766', None, None, None, None, '2747737'), ('4302', '22294892', '1352573681', '0.048718953778101766', None, None, None, None, '2747737'), ('4302', '22294892', '1352573669', '0.048718953778101766', None, None, None, None, '2747737'), ('4302', '22294892', '1352573663', '0.048718953778101766', None, None, None, None, '2747737'), ('4302', '22294892', '1352573656', '0.048718953778101766', None, None, None, None, '2747737')] time used for this insertion : 0.012590169906616211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07296109199523926 time spend to save output : 0.013034820556640625 total time spend for step 2 : 0.08599591255187988 step3:velours_tree Tue Apr 22 10:32: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 : {22294892: [{'Carton_gris': 22294958, 'metal': 22294959, 'Teint_Dans_La_Masse': 22294960, 'plastique': 22294961, 'mal_croppe': 22294962, 'autre_refus': 22294963, 'cartonnette': 22294964, 'Carton_brun': 22294965, 'kraft': 22294966, 'environnement': 22294967, 'flou': 22294968, 'papier': 22294969}]} input_args_next_step : {22294892: ()} output_args : {22294892: [{'Carton_gris': 22294958, 'metal': 22294959, 'Teint_Dans_La_Masse': 22294960, 'plastique': 22294961, 'mal_croppe': 22294962, 'autre_refus': 22294963, 'cartonnette': 22294964, 'Carton_brun': 22294965, 'kraft': 22294966, 'environnement': 22294967, 'flou': 22294968, 'papier': 22294969}]} args : 22294892 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 : ({'Carton_gris': 22294958, 'metal': 22294959, 'Teint_Dans_La_Masse': 22294960, 'plastique': 22294961, 'mal_croppe': 22294962, 'autre_refus': 22294963, 'cartonnette': 22294964, 'Carton_brun': 22294965, 'kraft': 22294966, 'environnement': 22294967, 'flou': 22294968, 'papier': 22294969},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22294892) 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([22294892]) 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.33861732482910156 time spend to save output : 6.103515625e-05 total time spend for step 3 : 0.33867835998535156 step4:send_mail_cod Tue Apr 22 10:32: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 ! complete output_args for input 2 : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} input_args_next_step : {1352573745: ()} output_args : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} args : 1352573745 depend.output_id : 0 input_args_next_step : {1352573745: ('0.048718953778101766',), 1352573695: ()} output_args : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} args : 1352573695 depend.output_id : 0 input_args_next_step : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ()} output_args : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} args : 1352573688 depend.output_id : 0 input_args_next_step : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ()} output_args : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} args : 1352573681 depend.output_id : 0 input_args_next_step : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ()} output_args : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} args : 1352573669 depend.output_id : 0 input_args_next_step : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ()} output_args : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} args : 1352573663 depend.output_id : 0 input_args_next_step : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ()} output_args : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',)} args : 1352573656 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22294892: [{'Carton_gris': 22294958, 'metal': 22294959, 'Teint_Dans_La_Masse': 22294960, 'plastique': 22294961, 'mal_croppe': 22294962, 'autre_refus': 22294963, 'cartonnette': 22294964, 'Carton_brun': 22294965, 'kraft': 22294966, 'environnement': 22294967, 'flou': 22294968, 'papier': 22294969}]} input_args_next_step : {1352573745: ('0.048718953778101766',), 1352573695: ('0.048718953778101766',), 1352573688: ('0.048718953778101766',), 1352573681: ('0.048718953778101766',), 1352573669: ('0.048718953778101766',), 1352573663: ('0.048718953778101766',), 1352573656: ('0.048718953778101766',), 22294892: ()} output_args : {22294892: [{'Carton_gris': 22294958, 'metal': 22294959, 'Teint_Dans_La_Masse': 22294960, 'plastique': 22294961, 'mal_croppe': 22294962, 'autre_refus': 22294963, 'cartonnette': 22294964, 'Carton_brun': 22294965, 'kraft': 22294966, 'environnement': 22294967, 'flou': 22294968, 'papier': 22294969}]} args : 22294892 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :8, first value : ('0.048718953778101766',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22294892) 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 (1352573745,1352573695,1352573688,1352573681,1352573669,1352573663,1352573656) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352573656 begin to download photo : 1352573669 begin to download photo : 1352573688 begin to download photo : 1352573745 download finish for photo 1352573669 begin to download photo : 1352573681 download finish for photo 1352573656 begin to download photo : 1352573663 download finish for photo 1352573688 begin to download photo : 1352573695 download finish for photo 1352573745 download finish for photo 1352573663 download finish for photo 1352573681 download finish for photo 1352573695 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222949591745310750/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P22294892_22-04-2025_10_32_30.pdf 22294959 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=22294959 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222949591745310750 22294961 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=22294961 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352573114: '1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768354_0.png', 1352573639: '1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769233_0.png', 1352573638: '1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769235_0.png', 1352573637: '1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769204_0.png', 1352573636: '1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769198_0.png', 1352573242: '1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767458_0.png', 1352573241: '1745310491_3009205_1352572437_144e50383be03ad2e505d50f650c5947_rle_crop_3762767450_0.png', 1352573240: '1745310491_3009205_1352572441_76239e4c37b1fc0e9f6707af8197ecd4_rle_crop_3762766865_0.png', 1352573116: '1745310463_799598_1352572633_93dd37781e76213008c583ba1859411c_rle_crop_3762768377_0.png', 1352573115: '1745310463_799598_1352572633_93dd37781e76213008c583ba1859411c_rle_crop_3762768376_0.png', 1352572115: '1745309953_3003134_1352571946_e3023ba7dab28b81eb30a7f838df1691_rle_crop_3762758824_0.png', 1352573113: '1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768360_0.png', 1352573044: '1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768070_0.png', 1352573043: '1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768071_0.png', 1352573042: '1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768045_0.png', 1352572725: '1745310342_796175_1352572545_1fa5ce072cd5914423941448f886cba2_rle_crop_3762766151_0.png', 1352572572: '1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764300_0.png', 1352572571: '1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764277_0.png', 1352572190: '1745309983_789492_1352571693_7012fbba7b2d5248c06e1ad87d897c80_rle_crop_3762759067_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/74f1a9fcc8899a51e5bc3a516251c207_84102098.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/92db031cca6418c2461a593689949b6a_88939504.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/04df9068dfdbd1697d8faae8ea55a890_75695544.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/fc1c7598998db4a3e88efced25328af1_57450167.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d6ed9e5727ce202dbbcb9c05eaed823d_83486958.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1f0f2af2a7360814a4cd0523fe99fa2c_2766759.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/cd67910b863d2226d0e498c47cc246a8_15296559.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b1d64ef2aa8121a0d3ad55d77ed62866_38188125.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d15a5c16dc7d4de36c0757cb06c22d79_97116758.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8be0e2d10a9e78667d4d3f2250fdc76f_47471681.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5de424124685777982fa92df7c36298c_95985732.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d0a5d7173d04acbb17431060604ddbee_27773531.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f896da9fa6f551fb082c82760b5dfd38_96242272.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/90410dc3452a1ff50e4f35951e1c49af_11474759.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f2d2ccf8860802c29c5dedf67ad285b4_4100532.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/687e7d4f296b710ae1d16813422e7e49_87793224.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/de46f30b1b126de42083e2287fe1ce75_65393824.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9df04bcf0bcdc80226af65c28261f9df_65960559.png change filename to text .imagette222949611745310750/ imagette222949611745310750/1745309983_789492_1352571693_7012fbba7b2d5248c06e1ad87d897c80_rle_crop_3762759067_0.png.png imagette222949611745310750/1745310491_3009205_1352572441_76239e4c37b1fc0e9f6707af8197ecd4_rle_crop_3762766865_0.png.png imagette222949611745310750/1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768354_0.png.png imagette222949611745310750/1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768045_0.png.png imagette222949611745310750/1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769235_0.png.png imagette222949611745310750/1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764277_0.png.png imagette222949611745310750/1745310463_799598_1352572633_93dd37781e76213008c583ba1859411c_rle_crop_3762768376_0.png.png imagette222949611745310750/1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769233_0.png.png imagette222949611745310750/1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769198_0.png.png imagette222949611745310750/1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767458_0.png.png imagette222949611745310750/1745310463_799598_1352572633_93dd37781e76213008c583ba1859411c_rle_crop_3762768377_0.png.png imagette222949611745310750/1745310491_3009205_1352572437_144e50383be03ad2e505d50f650c5947_rle_crop_3762767450_0.png.png imagette222949611745310750/1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768071_0.png.png imagette222949611745310750/1745310342_796175_1352572545_1fa5ce072cd5914423941448f886cba2_rle_crop_3762766151_0.png.png imagette222949611745310750/1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769204_0.png.png imagette222949611745310750/1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768360_0.png.png imagette222949611745310750/1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768070_0.png.png imagette222949611745310750/1745309953_3003134_1352571946_e3023ba7dab28b81eb30a7f838df1691_rle_crop_3762758824_0.png.png imagette222949611745310750/1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764300_0.png.png imagette222949621745310751/ wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/272c50ec2190152e1d6fcd4ed910ae6c_45606314.png imagette222949611745310750 22294962 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=22294962 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222949621745310751 22294963 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=22294963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352572177: '1745309983_789492_1352571718_6e61ed361bd777d7811baff7471243d4_rle_crop_3762759040_0.png', 1352572178: '1745309983_789492_1352571703_1cae5144af410529642ad304ceaf1bce_rle_crop_3762759053_0.png', 1352572552: '1745310222_793417_1352572392_1b5542df480c93805f54167c656943f0_rle_crop_3762764225_0.png', 1352572554: '1745310222_793417_1352572200_2a63b0846e55345a3db8097f3bcb3ad8_rle_crop_3762764233_0.png', 1352572555: '1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764283_0.png', 1352572716: '1745310311_3007288_1352572493_89ce72f0daa051c9be48ddef18be5749_rle_crop_3762765991_0.png', 1352573222: '1745310491_3009205_1352572444_30d65b2fd66463077848c87fe0dd8c6b_rle_crop_3762766844_0.png', 1352573223: '1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767467_0.png', 1352573225: '1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767459_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/261ccde375ec19a05a33021cc2808532_2583155.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/17403ebafb07afc3762a088736290e78_19131200.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/793aed1046df3fd492015c4d6094da80_76149461.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ca5ef229d35a4eb07e63e8b76ac45179_36640461.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f5e9a59a25c4c78285597d7e3f23ed64_73637586.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/3886adbaf265b12716c881766a8ceea8_58102705.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/0f4e4ed29924492c6783f12b200498d1_17610061.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a6e6efb007bef39fe833ef90b89a8acc_58805206.png change filename to text .imagette222949631745310751/ imagette222949631745310751/1745309983_789492_1352571703_1cae5144af410529642ad304ceaf1bce_rle_crop_3762759053_0.png.png imagette222949631745310751/1745310222_793417_1352572200_2a63b0846e55345a3db8097f3bcb3ad8_rle_crop_3762764233_0.png.png imagette222949631745310751/1745310491_3009205_1352572444_30d65b2fd66463077848c87fe0dd8c6b_rle_crop_3762766844_0.png.png imagette222949631745310751/1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767467_0.png.png imagette222949631745310751/1745309983_789492_1352571718_6e61ed361bd777d7811baff7471243d4_rle_crop_3762759040_0.png.png imagette222949631745310751/1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764283_0.png.png imagette222949631745310751/1745310222_793417_1352572392_1b5542df480c93805f54167c656943f0_rle_crop_3762764225_0.png.png imagette222949631745310751/1745310311_3007288_1352572493_89ce72f0daa051c9be48ddef18be5749_rle_crop_3762765991_0.png.png imagette222949631745310751/1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767459_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/90cd392ff319048b0c11da0f308f5803_11136676.png imagette222949631745310751 22294964 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=22294964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352572180: '1745309983_789492_1352571722_b3f83e6bce4e64a5a7b9441f874d9dc7_rle_crop_3762759028_0.png', 1352572561: '1745310222_793417_1352572182_dce6f89f6090575b78fe0e4e4928c3b8_rle_crop_3762764262_0.png', 1352572562: '1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764284_0.png', 1352572720: '1745310311_3007288_1352572487_355a610faa8614b4e181314579c25c84_rle_crop_3762766061_0.png', 1352573037: '1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768076_0.png', 1352573107: '1745310463_799598_1352572695_bcd78f497539e03f442d2f1ebb1818ae_rle_crop_3762768342_0.png', 1352573232: '1745310491_3009205_1352572441_76239e4c37b1fc0e9f6707af8197ecd4_rle_crop_3762766868_0.png', 1352573233: '1745310491_3009205_1352572437_144e50383be03ad2e505d50f650c5947_rle_crop_3762767446_0.png', 1352573625: '1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769197_0.png', 1352573626: '1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769229_0.png', 1352573789: '1745310673_3011434_1352573250_19356f6454983223665ae3764fda9c50_rle_crop_3762769895_0.png', 1352573790: '1745310673_3011434_1352573248_28d15ff6fd4f16998aa795ba5f1f940f_rle_crop_3762769910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/7fe7a7b4375ede398be8b866d1d71bbd_2842901.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/810a21fee335f30f949cf1e8f0a84a1c_72880670.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5dfc84a86d99982948c4746231775d4a_80682226.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/7853e710bc54eaf691eac3bdbc39cc2e_95511796.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ecd09a70ec2ee4f5b41b13d8df6cd4eb_61575528.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/44773d97b1f21fef42ea90324c16d077_17176558.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b3223df18e8ccc71f85f7fdc3fe830bc_89611178.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/0964d184b08c5083638b124d0a4e7525_13425400.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/be67e0cb510ba5a20949dfb175f3b2b1_11255613.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2759aaa072a567148fe3606cad698e19_41152887.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/6c4f75b4f495f609eb28385b0ef7bda1_88904783.png change filename to text .imagette222949641745310751/ imagette222949641745310751/1745309983_789492_1352571722_b3f83e6bce4e64a5a7b9441f874d9dc7_rle_crop_3762759028_0.png.png imagette222949641745310751/1745310673_3011434_1352573250_19356f6454983223665ae3764fda9c50_rle_crop_3762769895_0.png.png imagette222949641745310751/1745310491_3009205_1352572441_76239e4c37b1fc0e9f6707af8197ecd4_rle_crop_3762766868_0.png.png imagette222949641745310751/1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769197_0.png.png imagette222949641745310751/1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768076_0.png.png imagette222949641745310751/1745310311_3007288_1352572487_355a610faa8614b4e181314579c25c84_rle_crop_3762766061_0.png.png imagette222949641745310751/1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769229_0.png.png imagette222949641745310751/1745310673_3011434_1352573248_28d15ff6fd4f16998aa795ba5f1f940f_rle_crop_3762769910_0.png.png imagette222949641745310751/1745310222_793417_1352572182_dce6f89f6090575b78fe0e4e4928c3b8_rle_crop_3762764262_0.png.png imagette222949641745310751/1745310463_799598_1352572695_bcd78f497539e03f442d2f1ebb1818ae_rle_crop_3762768342_0.png.png imagette222949641745310751/1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764284_0.png.png imagette222949641745310751/1745310491_3009205_1352572437_144e50383be03ad2e505d50f650c5947_rle_crop_3762767446_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5f38beed34d0f9ff867be6d2b78a7624_87429206.png imagette222949641745310751 22294966 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=22294966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352572192: '1745309983_789492_1352571718_6e61ed361bd777d7811baff7471243d4_rle_crop_3762759041_0.png', 1352572574: '1745310222_793417_1352572195_aea20be28a3495976ebe95c2aaceee78_rle_crop_3762764246_0.png', 1352572575: '1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764299_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/11ce322e8a90ec17dc29424e5c6c1fb5_12764883.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a998cdedb86d1c6b8d3b8784f0e87478_81211752.png change filename to text .imagette222949661745310752/ imagette222949661745310752/1745309983_789492_1352571718_6e61ed361bd777d7811baff7471243d4_rle_crop_3762759041_0.png.png imagette222949661745310752/1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764299_0.png.png imagette222949661745310752/1745310222_793417_1352572195_aea20be28a3495976ebe95c2aaceee78_rle_crop_3762764246_0.png.png imagette222949681745310752/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/225b7d00d2eab62640488b14a5aa41c3_88616472.png imagette222949661745310752 22294968 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=22294968 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222949681745310752 22294958 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=22294958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352573033: '1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768030_0.png', 1352573785: '1745310673_3011434_1352573252_b5e0bcb4945d5638ebe8eb766c13edee_rle_crop_3762769872_0.png', 1352573230: '1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767463_0.png', 1352573229: '1745310491_3009205_1352572437_144e50383be03ad2e505d50f650c5947_rle_crop_3762767445_0.png', 1352573228: '1745310491_3009205_1352572501_10be4155150f634865a0deb87718d394_rle_crop_3762766773_0.png', 1352573104: '1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768363_0.png', 1352573103: '1745310463_799598_1352572695_bcd78f497539e03f442d2f1ebb1818ae_rle_crop_3762768341_0.png', 1352573035: '1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768078_0.png', 1352573034: '1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768036_0.png', 1352572108: '1745309964_389486_1352571739_34c3f43e17cb60755918c8c972854881_rle_crop_3762758845_0.png', 1352572719: '1745310311_3007288_1352572490_c61aacb9cbb51e22ee81bbd2d954e2f4_rle_crop_3762766003_0.png', 1352572718: '1745310311_3007288_1352572493_89ce72f0daa051c9be48ddef18be5749_rle_crop_3762765993_0.png', 1352572717: '1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765983_0.png', 1352572560: '1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764294_0.png', 1352572558: '1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764301_0.png', 1352572557: '1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764278_0.png', 1352572179: '1745309983_789492_1352571703_1cae5144af410529642ad304ceaf1bce_rle_crop_3762759052_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/59e3a170ab3f7f692d0f4f35ab3babf9_29344132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/185357c864f92c92078dc416f522b83a_3648147.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/497bb7499901bea714ec794eb1bbc495_56364678.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/69d9b38261079c3b243ead4285e2b1f9_19060004.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/fee8423d4e30dd377be28df4c056b123_37160679.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e7be410b47d5fb0d70f49c8f27128516_1325007.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1b41ee558517a5b1cdbcbbc23e6ca0f6_47225245.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9a82cdab6d82b740684c42f663ea5030_3759859.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9733d4920ee94bf3cca25d79f32f9a47_4283219.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/74fc16d08449466f5e85be48f83a30aa_44744207.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ada51d9affca5c9ef3f78358582c15eb_60398565.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8dddc86ed01ef67242f1635056cdfc6a_35444726.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/154f330a215be7bc784bdedc2c23daa9_53348675.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/4972e1f5dda650940ec9727363e943d7_24846191.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/6930bbf4b73077c51f284e1080b07a33_21460253.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/0bcdbbe6c4b7991b36698175098f6290_39631732.png change filename to text .imagette222949581745310752/ imagette222949581745310752/1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764301_0.png.png imagette222949581745310752/1745310491_3009205_1352572437_144e50383be03ad2e505d50f650c5947_rle_crop_3762767445_0.png.png imagette222949581745310752/1745309983_789492_1352571703_1cae5144af410529642ad304ceaf1bce_rle_crop_3762759052_0.png.png imagette222949581745310752/1745310222_793417_1352572154_27dfbd930f29cd9197305426be7babad_rle_crop_3762764294_0.png.png imagette222949581745310752/1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768030_0.png.png imagette222949581745310752/1745310673_3011434_1352573252_b5e0bcb4945d5638ebe8eb766c13edee_rle_crop_3762769872_0.png.png imagette222949581745310752/1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767463_0.png.png imagette222949581745310752/1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768036_0.png.png imagette222949581745310752/1745310463_799598_1352572695_bcd78f497539e03f442d2f1ebb1818ae_rle_crop_3762768341_0.png.png imagette222949581745310752/1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768078_0.png.png imagette222949581745310752/1745309964_389486_1352571739_34c3f43e17cb60755918c8c972854881_rle_crop_3762758845_0.png.png imagette222949581745310752/1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768363_0.png.png imagette222949581745310752/1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764278_0.png.png imagette222949581745310752/1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765983_0.png.png imagette222949581745310752/1745310311_3007288_1352572493_89ce72f0daa051c9be48ddef18be5749_rle_crop_3762765993_0.png.png imagette222949581745310752/1745310311_3007288_1352572490_c61aacb9cbb51e22ee81bbd2d954e2f4_rle_crop_3762766003_0.png.png imagette222949581745310752/1745310491_3009205_1352572501_10be4155150f634865a0deb87718d394_rle_crop_3762766773_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9c36e55810b77c8556e9793c491b5eaf_27711493.png imagette222949581745310752 22294960 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=22294960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352572551: '1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764279_0.png', 1352573784: '1745310673_3011434_1352573248_28d15ff6fd4f16998aa795ba5f1f940f_rle_crop_3762769914_0.png', 1352573783: '1745310673_3011434_1352573248_28d15ff6fd4f16998aa795ba5f1f940f_rle_crop_3762769912_0.png', 1352573782: '1745310673_3011434_1352573250_19356f6454983223665ae3764fda9c50_rle_crop_3762769903_0.png', 1352573781: '1745310673_3011434_1352573250_19356f6454983223665ae3764fda9c50_rle_crop_3762769899_0.png', 1352573780: '1745310673_3011434_1352573252_b5e0bcb4945d5638ebe8eb766c13edee_rle_crop_3762769870_0.png', 1352573619: '1745310551_3009788_1352573110_4e608d34612d418bd082f5568c832092_rle_crop_3762769220_0.png', 1352573030: '1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768073_0.png', 1352572714: '1745310311_3007288_1352572484_df4856b3ed479c7b133019add3e1c25a_rle_crop_3762766077_0.png', 1352572713: '1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765980_0.png', 1352572103: '1745309953_3003134_1352571946_e3023ba7dab28b81eb30a7f838df1691_rle_crop_3762758826_0.png', 1352572517: '1745310191_3005944_1352572390_6b0369d5d5911e6995626465a4f7f27e_rle_crop_3762764017_0.png', 1352572516: '1745310191_3005944_1352572390_6b0369d5d5911e6995626465a4f7f27e_rle_crop_3762764016_0.png', 1352572171: '1745309983_789492_1352571693_7012fbba7b2d5248c06e1ad87d897c80_rle_crop_3762759071_0.png', 1352572170: '1745309983_789492_1352571693_7012fbba7b2d5248c06e1ad87d897c80_rle_crop_3762759070_0.png', 1352572169: '1745309983_789492_1352571703_1cae5144af410529642ad304ceaf1bce_rle_crop_3762759063_0.png', 1352572168: '1745309983_789492_1352571718_6e61ed361bd777d7811baff7471243d4_rle_crop_3762759046_0.png', 1352572106: '1745309964_389486_1352571739_34c3f43e17cb60755918c8c972854881_rle_crop_3762758854_0.png', 1352572105: '1745309953_3003134_1352571936_eccbde0b5195af6480fd3f7e326643e7_rle_crop_3762758864_0.png', 1352572104: '1745309953_3003134_1352571941_ae8225528b13e60588fc00f659a5b64b_rle_crop_3762758837_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9b4c3d5da4d3936cd7ed34187cf39d08_5346919.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c9485214dba08304384928bf4e5bbffb_72035314.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/fb721de87cbf12d1fb6490679207a046_83107157.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1539d1fe2c187cb02de73291d0880fce_12880783.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e25d68b8ba3d18020706d325e980763d_10145946.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9b9f1b758b52e66c4e91f946db67d141_98547354.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/cb9bb17494bfe248446a133f2ddd2a03_60906081.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/446dce2dfb673e23ffffa3b49f9d5bfe_13780077.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/baf64ac39a418eac96c6fa6fc90b39f2_80345816.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b4fbf5576fdb183db0704374cb382017_70464689.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/10c4dec70607d0cb1645240001573704_82729996.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8fae26c7a245cd3c09417f5f72905d11_56618001.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1a9cddb654187e48e2dc7397a4395ece_95114522.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a1a0cda4e7633c66f477d1db62b5d02c_2178111.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/3443a372f714d7491d0b054afac2db46_26249401.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/91fad4bdd1708ea06b8396d1feeb2b08_7210272.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e93a1ed2300602b0f42068f4d3a569f6_65107005.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8be50c4b9dbd2f7427929f56daa8fbe7_8607389.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/32a785800dc3d9cba07408cb6cdff61c_5053757.png change filename to text .imagette222949601745310753/ imagette222949601745310753/1745309983_789492_1352571693_7012fbba7b2d5248c06e1ad87d897c80_rle_crop_3762759071_0.png.png imagette222949601745310753/1745310311_3007288_1352572484_df4856b3ed479c7b133019add3e1c25a_rle_crop_3762766077_0.png.png imagette222949601745310753/1745309983_789492_1352571703_1cae5144af410529642ad304ceaf1bce_rle_crop_3762759063_0.png.png imagette222949601745310753/1745310673_3011434_1352573250_19356f6454983223665ae3764fda9c50_rle_crop_3762769899_0.png.png imagette222949601745310753/1745309964_389486_1352571739_34c3f43e17cb60755918c8c972854881_rle_crop_3762758854_0.png.png imagette222949601745310753/1745309953_3003134_1352571936_eccbde0b5195af6480fd3f7e326643e7_rle_crop_3762758864_0.png.png imagette222949601745310753/1745310551_3009788_1352573110_4e608d34612d418bd082f5568c832092_rle_crop_3762769220_0.png.png imagette222949601745310753/1745309983_789492_1352571693_7012fbba7b2d5248c06e1ad87d897c80_rle_crop_3762759070_0.png.png imagette222949601745310753/1745310673_3011434_1352573252_b5e0bcb4945d5638ebe8eb766c13edee_rle_crop_3762769870_0.png.png imagette222949601745310753/1745310222_793417_1352572173_0739ec135324e720cabdad6374fef3ff_rle_crop_3762764279_0.png.png imagette222949601745310753/1745310191_3005944_1352572390_6b0369d5d5911e6995626465a4f7f27e_rle_crop_3762764017_0.png.png imagette222949601745310753/1745309983_789492_1352571718_6e61ed361bd777d7811baff7471243d4_rle_crop_3762759046_0.png.png imagette222949601745310753/1745309953_3003134_1352571946_e3023ba7dab28b81eb30a7f838df1691_rle_crop_3762758826_0.png.png imagette222949601745310753/1745310673_3011434_1352573248_28d15ff6fd4f16998aa795ba5f1f940f_rle_crop_3762769912_0.png.png imagette222949601745310753/1745309953_3003134_1352571941_ae8225528b13e60588fc00f659a5b64b_rle_crop_3762758837_0.png.png imagette222949601745310753/1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765980_0.png.png imagette222949601745310753/1745310673_3011434_1352573248_28d15ff6fd4f16998aa795ba5f1f940f_rle_crop_3762769914_0.png.png imagette222949601745310753/1745310191_3005944_1352572390_6b0369d5d5911e6995626465a4f7f27e_rle_crop_3762764016_0.png.png imagette222949601745310753/1745310434_3008477_1352572734_26cc7d3aa562fcaaa44b13dc58f4e2c1_rle_crop_3762768073_0.png.png imagette222949601745310753/1745310673_3011434_1352573250_19356f6454983223665ae3764fda9c50_rle_crop_3762769903_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/3230541c19254735582eb565553426aa_20888403.png imagette222949601745310753 22294965 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=22294965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352572727: '1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765978_0.png', 1352573793: '1745310673_3011434_1352573252_b5e0bcb4945d5638ebe8eb766c13edee_rle_crop_3762769869_0.png', 1352573633: '1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769234_0.png', 1352573632: '1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769203_0.png', 1352573237: '1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767471_0.png', 1352573236: '1745310491_3009205_1352572501_10be4155150f634865a0deb87718d394_rle_crop_3762766778_0.png', 1352573235: '1745310491_3009205_1352572501_10be4155150f634865a0deb87718d394_rle_crop_3762766776_0.png', 1352573111: '1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768364_0.png', 1352573039: '1745310434_3008477_1352572739_c1124a7396d8f5640daee184bfa121b7_rle_crop_3762768057_0.png', 1352573038: '1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768038_0.png', 1352572733: '1745310311_3007288_1352572484_df4856b3ed479c7b133019add3e1c25a_rle_crop_3762766076_0.png', 1352572732: '1745310311_3007288_1352572487_355a610faa8614b4e181314579c25c84_rle_crop_3762766064_0.png', 1352572731: '1745310311_3007288_1352572490_c61aacb9cbb51e22ee81bbd2d954e2f4_rle_crop_3762766004_0.png', 1352572730: '1745310311_3007288_1352572493_89ce72f0daa051c9be48ddef18be5749_rle_crop_3762765997_0.png', 1352572729: '1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765985_0.png', 1352572728: '1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765984_0.png', 1352572110: '1745309953_3003134_1352571941_ae8225528b13e60588fc00f659a5b64b_rle_crop_3762758836_0.png', 1352572723: '1745310342_796175_1352572545_1fa5ce072cd5914423941448f886cba2_rle_crop_3762766157_0.png', 1352572722: '1745310342_796175_1352572548_0764a87bbb76396336dd18706a9b66e9_rle_crop_3762766147_0.png', 1352572721: '1745310342_796175_1352572548_0764a87bbb76396336dd18706a9b66e9_rle_crop_3762766144_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/87031f4867c8c66da3ed672606d2474b_74570784.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9a65ea56f08de85f10a1d916b8b96116_10517142.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/35a2c5c9a693ef6a5522b8b1e41b92f1_60502631.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8f5ca2f4b15f158c6b7b7c227b1d10f7_96713113.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/98e0ecbf95cdda334613c684fc90b9ba_38792744.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/17a9ab900c97db90dcb630afc9957861_54623436.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/14c9be846c04c64906404da1d4348e1b_58935177.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e03d1f7befb877ab4fbea3c6289e1bf0_69059994.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/67a31068e37e0c24332e7f2c9af4e657_75295889.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e615cae9cc3aada218bf91f949d47b36_61105933.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/566f15de33f2f3d71efa0c65be0513d8_36539424.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/3938442b715f46294862630bca7c9ece_94284856.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/fa32a2f536c9da58967d2a883fc537de_85460895.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/bdfc183755c2c6185827e33add5b1ce1_41323712.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/eba3a5d84f4a463aea88f6cfccfda2c0_27922424.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/e1ee6e35949291d9340721723003f731_67810600.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/f7cd7d3cba8d99c80752c45075c7d68b_68996336.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/10244aab25b895a0ba0f46106d09cdfd_85503740.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ce6783f043272f318521e41fbfb81c23_31278213.png change filename to text .imagette222949651745310755/ imagette222949651745310755/1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765978_0.png.png imagette222949651745310755/1745310311_3007288_1352572490_c61aacb9cbb51e22ee81bbd2d954e2f4_rle_crop_3762766004_0.png.png imagette222949651745310755/1745310311_3007288_1352572493_89ce72f0daa051c9be48ddef18be5749_rle_crop_3762765997_0.png.png imagette222949651745310755/1745310311_3007288_1352572484_df4856b3ed479c7b133019add3e1c25a_rle_crop_3762766076_0.png.png imagette222949651745310755/1745310342_796175_1352572548_0764a87bbb76396336dd18706a9b66e9_rle_crop_3762766144_0.png.png imagette222949651745310755/1745310491_3009205_1352572432_b086066d38115b6857a3464105620914_rle_crop_3762767471_0.png.png imagette222949651745310755/1745310551_3009788_1352573101_ebc1fa9bacf3a316d9061b5796c772f9_rle_crop_3762769234_0.png.png imagette222949651745310755/1745310491_3009205_1352572501_10be4155150f634865a0deb87718d394_rle_crop_3762766778_0.png.png imagette222949651745310755/1745310434_3008477_1352572739_c1124a7396d8f5640daee184bfa121b7_rle_crop_3762768057_0.png.png imagette222949651745310755/1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765985_0.png.png imagette222949651745310755/1745310342_796175_1352572548_0764a87bbb76396336dd18706a9b66e9_rle_crop_3762766147_0.png.png imagette222949651745310755/1745310463_799598_1352572638_239569fe33f632c7da9f73d676421eb1_rle_crop_3762768364_0.png.png imagette222949651745310755/1745310673_3011434_1352573252_b5e0bcb4945d5638ebe8eb766c13edee_rle_crop_3762769869_0.png.png imagette222949651745310755/1745310311_3007288_1352572487_355a610faa8614b4e181314579c25c84_rle_crop_3762766064_0.png.png imagette222949651745310755/1745310434_3008477_1352572743_591d407542ae8e62e79f905f1b4a3f3d_rle_crop_3762768038_0.png.png imagette222949651745310755/1745310491_3009205_1352572501_10be4155150f634865a0deb87718d394_rle_crop_3762766776_0.png.png imagette222949651745310755/1745310551_3009788_1352573118_3129a72f25f6755930bdc31ed075f0b6_rle_crop_3762769203_0.png.png imagette222949651745310755/1745310342_796175_1352572545_1fa5ce072cd5914423941448f886cba2_rle_crop_3762766157_0.png.png imagette222949651745310755/1745309953_3003134_1352571941_ae8225528b13e60588fc00f659a5b64b_rle_crop_3762758836_0.png.png imagette222949651745310755/1745310311_3007288_1352572497_407116944655725bb129b9de57740dee_rle_crop_3762765984_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/eb1bf52bb91a0cc7c6bf000f75869d33_40372174.png imagette222949651745310755 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22294892 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22294970,22294971,22294972,22294973,22294974,22294975,22294976,22294977,22294978,22294979,22294980,22294981?tags=Carton_gris,metal,Teint_Dans_La_Masse,plastique,mal_croppe,autre_refus,cartonnette,Carton_brun,kraft,environnement,flou,papier your option no_mail is active, we will not send the real mail to your client args[1352573745] : ('0.048718953778101766',) no score found for photo 1352573745 We are sending mail with results at report@fotonower.com args[1352573695] : ('0.048718953778101766',) no score found for photo 1352573695 We are sending mail with results at report@fotonower.com args[1352573688] : ('0.048718953778101766',) no score found for photo 1352573688 We are sending mail with results at report@fotonower.com args[1352573681] : ('0.048718953778101766',) no score found for photo 1352573681 We are sending mail with results at report@fotonower.com args[1352573669] : ('0.048718953778101766',) no score found for photo 1352573669 We are sending mail with results at report@fotonower.com args[1352573663] : ('0.048718953778101766',) no score found for photo 1352573663 We are sending mail with results at report@fotonower.com args[1352573656] : ('0.048718953778101766',) no score found for photo 1352573656 We are sending mail with results at report@fotonower.com refus_total : 0.048718953778101766 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=22294892 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_P22294892_22-04-2025_10_32_30.pdf results_Auto_P22294892_22-04-2025_10_32_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_22-04-2025_10_32_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','22294892','results_Auto_P22294892_22-04-2025_10_32_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_22-04-2025_10_32_30.pdf','pdf','','0.33','0.048718953778101766') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22294892]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] map_info['map_portfolio_photo'] : {22294892: [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656, 1352573322, 1352573252, 1352573250, 1352573248, 1352573120, 1352573118, 1352573110, 1352573101, 1352572983, 1352572969, 1352572958, 1352572824, 1352572791, 1352572746, 1352572743, 1352572739, 1352572734, 1352572701, 1352572695, 1352572638, 1352572633, 1352572563, 1352572553, 1352572548, 1352572545, 1352572501, 1352572497, 1352572493, 1352572490, 1352572487, 1352572484, 1352572449, 1352572444, 1352572441, 1352572437, 1352572432, 1352572392, 1352572390, 1352572387, 1352572385, 1352572204, 1352572200, 1352572195, 1352572182, 1352572173, 1352572154, 1352572061, 1352572051, 1352572047, 1352572044, 1352572041, 1352572037, 1352571950, 1352571946, 1352571941, 1352571936, 1352571739, 1352571722, 1352571718, 1352571703, 1352571693, 1352571520, 1352571508, 1352571494]} final : False mtd_id 4302 list_pids : [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] 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, '2747737') ('4302', '22294892', '1352573745', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573695', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573688', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573681', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573669', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573663', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573656', None, None, None, None, None, '2747737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22294892', '1352573745', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573695', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573688', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573681', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573669', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573663', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573656', None, None, None, None, None, '2747737')] time used for this insertion : 0.013750791549682617 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.851179838180542 time spend to save output : 0.014000654220581055 total time spend for step 4 : 7.865180492401123 step5:split_time_score Tue Apr 22 10:32:37 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 : ['22294892'] 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 : [('22294892',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22294892) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352573745: {'path': 'temp/1745310749_2639692_1352573745_b6b6d7570fb50832b99c5abca0f7df63.jpg', 'extension': 'jpg'}, 1352573656: {'path': 'temp/1745310749_2639692_1352573656_4e960663dbcebce5dc3d96e35e27c264.jpg', 'extension': 'jpg'}, 1352573663: {'path': 'temp/1745310749_2639692_1352573663_5ba6fac2e09a9e3b818670e17e11c7a2.jpg', 'extension': 'jpg'}, 1352573669: {'path': 'temp/1745310749_2639692_1352573669_543c371c5b02714ab2a266bee77c5e25.jpg', 'extension': 'jpg'}, 1352573681: {'path': 'temp/1745310749_2639692_1352573681_1303f3a187cf8d544a68f0eac4573940.jpg', 'extension': 'jpg'}, 1352573688: {'path': 'temp/1745310749_2639692_1352573688_d44d6a1f7895763009d3fa5ff48ba4a3.jpg', 'extension': 'jpg'}, 1352573695: {'path': 'temp/1745310749_2639692_1352573695_25e61f41c35c0ca7cba76412265a67e4.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 = 22294892; (('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 = 22294892 group by h (('10', 71),) 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=22294892 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 (22294892) 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 (22294892) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22042025 22294892 Nombre de photos uploadées : 71 / 23040 (0%) 22042025 22294892 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 22042025 22294892 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1352571520, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2877c6b5de9a1b7e132a3fc34aee96ee.jpg', 'username': None, 'uploaded_at': 1745309767, 'text': 'image_22042025_10_15_23_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352571508, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/6830108eae95fd85900f62c3b339b67b.jpg', 'username': None, 'uploaded_at': 1745309767, 'text': 'image_22042025_10_15_33_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352571494, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a4f7f1b9423b066a8a35de20eb60cfe3.jpg', 'username': None, 'uploaded_at': 1745309767, 'text': 'image_22042025_10_15_44_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352571739, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/34c3f43e17cb60755918c8c972854881.jpg', 'username': None, 'uploaded_at': 1745309828, 'text': 'image_22042025_10_15_54_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033812522888183594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22294892, '2025-04-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1735821,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023527145385742188 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= 1735821 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1735821, 'dashboard_run_id': 1744588, 'mtr_portfolio_id': 22293696, 'dashboard_result_id': 10020867, '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_P22293696_22-04-2025_10_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1744588, 'mtr_portfolio_id': 22294121, 'dashboard_result_id': 10020868, '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_P22294121_22-04-2025_10_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1744588, 'mtr_portfolio_id': 22294892, 'dashboard_result_id': 10020869, '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_P22294892_22-04-2025_10_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, '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 = 22293696 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': 2747606, 'mtr_portfolio_id': 22293696, 'created_at': datetime.datetime(2025, 4, 22, 10, 3), 'result': '0.05561995408712252', 'result_long': None, 'result_double': None}] Qualite : 0.05561995408712252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22293696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_22-04-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22293696 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_P22293696_22-04-2025_10_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, 'pht': 3726}}" where mtr_portfolio_id = 22293696 and dashboard_run_id = 1744588 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`=22293696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10020867, 0.05561995408712252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_22-04-2025_10_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, '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 = 22294121 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': 2747665, 'mtr_portfolio_id': 22294121, 'created_at': datetime.datetime(2025, 4, 22, 10, 19), 'result': '0.06102612967400454', 'result_long': None, 'result_double': None}] Qualite : 0.06102612967400454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_22-04-2025_10_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294121 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_P22294121_22-04-2025_10_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, 'pht': 3726}}" where mtr_portfolio_id = 22294121 and dashboard_run_id = 1744588 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`=22294121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10020868, 0.06102612967400454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_22-04-2025_10_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, '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 = 22294892 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': 2747737, 'mtr_portfolio_id': 22294892, 'created_at': datetime.datetime(2025, 4, 22, 10, 32, 29), 'result': '0.048718953778101766', 'result_long': None, 'result_double': None}] Qualite : 0.048718953778101766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_22-04-2025_10_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294892 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_P22294892_22-04-2025_10_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, 'pht': 3726}}" where mtr_portfolio_id = 22294892 and dashboard_run_id = 1744588 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`=22294892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10020869, 0.048718953778101766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_22-04-2025_10_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, '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 (22293696,22294121,22294892) result : ((1352564373,), (1352564514,), (1352564523,), (1352564531,), (1352564622,), (1352564651,), (1352564663,), (1352564687,), (1352564695,), (1352564701,), (1352564742,), (1352564752,), (1352564754,), (1352564784,), (1352564790,), (1352564882,), (1352565105,), (1352565108,), (1352565154,), (1352565155,), (1352565158,), (1352565161,), (1352565164,), (1352565169,), (1352565409,), (1352565412,), (1352565420,), (1352565427,), (1352565471,), (1352565478,), (1352565481,), (1352565483,), (1352565485,), (1352565487,), (1352565492,), (1352565496,), (1352565501,), (1352565507,), (1352565527,), (1352565532,), (1352565538,), (1352565544,), (1352565558,), (1352565562,), (1352565565,), (1352565568,), (1352565571,), (1352565617,), (1352565620,), (1352565622,), (1352565625,), (1352565628,), (1352565633,), (1352565685,), (1352565694,), (1352565701,), (1352565728,), (1352565746,), (1352565759,), (1352565788,), (1352565805,), (1352566034,), (1352565913,), (1352565940,), (1352565971,), (1352566001,), (1352566273,), (1352566306,), (1352566341,), (1352566372,), (1352566378,), (1352566532,), (1352566540,), (1352566553,), (1352566579,), (1352566583,), (1352566596,), (1352567342,), (1352567444,), (1352567503,), (1352568333,), (1352568361,), (1352568390,), (1352568420,), (1352568448,), (1352568887,), (1352569017,), (1352569045,), (1352569074,), (1352569103,), (1352569141,), (1352569387,), (1352569391,), (1352569406,), (1352569421,), (1352569543,), (1352569602,), (1352569658,), (1352569717,), (1352569774,), (1352569830,), (1352570101,), (1352570136,), (1352570150,), (1352570389,), (1352570405,), (1352570411,), (1352570414,), (1352570421,), (1352570530,), (1352570534,), (1352570536,), (1352570538,), (1352570584,), (1352570587,), (1352570590,), (1352570724,), (1352570728,), (1352570732,), (1352570735,), (1352570806,), (1352570817,), (1352570948,), (1352570951,), (1352570955,), (1352570957,), (1352570959,), (1352571254,), (1352571319,), (1352571336,), (1352571341,), (1352571363,), (1352571391,), (1352571521,), (1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22042025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22294892]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] map_info['map_portfolio_photo'] : {22294892: [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656, 1352573322, 1352573252, 1352573250, 1352573248, 1352573120, 1352573118, 1352573110, 1352573101, 1352572983, 1352572969, 1352572958, 1352572824, 1352572791, 1352572746, 1352572743, 1352572739, 1352572734, 1352572701, 1352572695, 1352572638, 1352572633, 1352572563, 1352572553, 1352572548, 1352572545, 1352572501, 1352572497, 1352572493, 1352572490, 1352572487, 1352572484, 1352572449, 1352572444, 1352572441, 1352572437, 1352572432, 1352572392, 1352572390, 1352572387, 1352572385, 1352572204, 1352572200, 1352572195, 1352572182, 1352572173, 1352572154, 1352572061, 1352572051, 1352572047, 1352572044, 1352572041, 1352572037, 1352571950, 1352571946, 1352571941, 1352571936, 1352571739, 1352571722, 1352571718, 1352571703, 1352571693, 1352571520, 1352571508, 1352571494]} final : True mtd_id 4302 list_pids : [1352573745, 1352573695, 1352573688, 1352573681, 1352573669, 1352573663, 1352573656] Looping around the photos to save general results len do output : 1 /22294892Didn'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, '2747737') ('4302', '22294892', '1352573745', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573695', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573688', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573681', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573669', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573663', None, None, None, None, None, '2747737') ('4302', None, None, None, None, None, None, None, '2747737') ('4302', '22294892', '1352573656', None, None, None, None, None, '2747737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22294892', 'None', None, None, None, None, '2747737'), ('4302', '22294892', '1352573745', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573695', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573688', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573681', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573669', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573663', None, None, None, None, None, '2747737'), ('4302', '22294892', '1352573656', None, None, None, None, None, '2747737')] time used for this insertion : 0.020923614501953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2977931499481201 time spend to save output : 0.021216392517089844 total time spend for step 5 : 0.31900954246520996 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 (2747737) 2.62user 2.21system 0:12.92elapsed 37%CPU (0avgtext+0avgdata 159812maxresident)k 200inputs+17032outputs (0major+78229minor)pagefaults 0swaps