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 : 557804 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 (2627927) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2627927) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961943 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2627927'] with mtr_portfolio_ids : ['20961943'] and first list_photo_ids : [] new path : /proc/557804/ Name: python3 Umask: 0002 State: R (running) Tgid: 557804 Ngid: 0 Pid: 557804 PPid: 557803 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 557804 NSpid: 557804 NSpgid: 554039 NSsid: 554039 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98320 kB VmRSS: 98320 kB RssAnon: 59764 kB RssFile: 38556 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '557804', 'Ngid': '0', 'Pid': '557804', 'PPid': '557803', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '557804', 'NSpid': '557804', 'NSpgid': '554039', 'NSsid': '554039', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98320 kB', 'VmRSS': '98320 kB', 'RssAnon': '59764 kB', 'RssFile': '38556 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '557804', '1106844', '0', '1106844', '865592', '98320', b'', 'marlene', '2627927') 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 (20961943) 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 (2627927 ) ) 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 (20961943) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340584376, 'portfolio_id': 20961943}, {'photo_id': 1340584333, 'portfolio_id': 20961943}, {'photo_id': 1340584329, 'portfolio_id': 20961943}, {'photo_id': 1340584325, 'portfolio_id': 20961943}, {'photo_id': 1340584319, 'portfolio_id': 20961943}, {'photo_id': 1340584315, 'portfolio_id': 20961943}, {'photo_id': 1340584265, 'portfolio_id': 20961943}, {'photo_id': 1340584261, 'portfolio_id': 20961943}, {'photo_id': 1340584259, 'portfolio_id': 20961943}, {'photo_id': 1340584256, 'portfolio_id': 20961943}, {'photo_id': 1340584254, 'portfolio_id': 20961943}, {'photo_id': 1340584224, 'portfolio_id': 20961943}, {'photo_id': 1340584218, 'portfolio_id': 20961943}, {'photo_id': 1340584212, 'portfolio_id': 20961943}, {'photo_id': 1340584210, 'portfolio_id': 20961943}, {'photo_id': 1340584208, 'portfolio_id': 20961943}, {'photo_id': 1340584207, 'portfolio_id': 20961943}, {'photo_id': 1340584179, 'portfolio_id': 20961943}, {'photo_id': 1340584173, 'portfolio_id': 20961943}, {'photo_id': 1340584168, 'portfolio_id': 20961943}, {'photo_id': 1340584167, 'portfolio_id': 20961943}, {'photo_id': 1340584165, 'portfolio_id': 20961943}, {'photo_id': 1340584143, 'portfolio_id': 20961943}, {'photo_id': 1340584139, 'portfolio_id': 20961943}, {'photo_id': 1340584136, 'portfolio_id': 20961943}, {'photo_id': 1340584135, 'portfolio_id': 20961943}, {'photo_id': 1340584093, 'portfolio_id': 20961943}, {'photo_id': 1340584087, 'portfolio_id': 20961943}, {'photo_id': 1340584085, 'portfolio_id': 20961943}, {'photo_id': 1340584084, 'portfolio_id': 20961943}, {'photo_id': 1340584082, 'portfolio_id': 20961943}, {'photo_id': 1340584057, 'portfolio_id': 20961943}, {'photo_id': 1340584055, 'portfolio_id': 20961943}, {'photo_id': 1340584047, 'portfolio_id': 20961943}, {'photo_id': 1340584036, 'portfolio_id': 20961943}, {'photo_id': 1340584016, 'portfolio_id': 20961943}, {'photo_id': 1340584010, 'portfolio_id': 20961943}, {'photo_id': 1340584004, 'portfolio_id': 20961943}, {'photo_id': 1340584002, 'portfolio_id': 20961943}, {'photo_id': 1340584000, 'portfolio_id': 20961943}, {'photo_id': 1340583999, 'portfolio_id': 20961943}, {'photo_id': 1340583976, 'portfolio_id': 20961943}, {'photo_id': 1340583974, 'portfolio_id': 20961943}, {'photo_id': 1340583972, 'portfolio_id': 20961943}, {'photo_id': 1340583969, 'portfolio_id': 20961943}, {'photo_id': 1340583940, 'portfolio_id': 20961943}, {'photo_id': 1340583936, 'portfolio_id': 20961943}, {'photo_id': 1340583930, 'portfolio_id': 20961943}, {'photo_id': 1340583925, 'portfolio_id': 20961943}, {'photo_id': 1340583923, 'portfolio_id': 20961943}, {'photo_id': 1340583920, 'portfolio_id': 20961943}, {'photo_id': 1340583894, 'portfolio_id': 20961943}, {'photo_id': 1340583893, 'portfolio_id': 20961943}, {'photo_id': 1340583884, 'portfolio_id': 20961943}, {'photo_id': 1340583844, 'portfolio_id': 20961943}, {'photo_id': 1340583836, 'portfolio_id': 20961943}, {'photo_id': 1340583834, 'portfolio_id': 20961943}, {'photo_id': 1340583832, 'portfolio_id': 20961943}, {'photo_id': 1340583830, 'portfolio_id': 20961943}, {'photo_id': 1340583699, 'portfolio_id': 20961943}, {'photo_id': 1340583697, 'portfolio_id': 20961943}, {'photo_id': 1340583635, 'portfolio_id': 20961943}, {'photo_id': 1340583174, 'portfolio_id': 20961943}, {'photo_id': 1340583169, 'portfolio_id': 20961943}, {'photo_id': 1340583167, 'portfolio_id': 20961943}, {'photo_id': 1340583164, 'portfolio_id': 20961943}, {'photo_id': 1340583163, 'portfolio_id': 20961943}, {'photo_id': 1340583138, 'portfolio_id': 20961943}, {'photo_id': 1340583135, 'portfolio_id': 20961943}, {'photo_id': 1340583133, 'portfolio_id': 20961943}] map_portfolio_id_photo_id: {20961943: [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315, 1340584265, 1340584261, 1340584259, 1340584256, 1340584254, 1340584224, 1340584218, 1340584212, 1340584210, 1340584208, 1340584207, 1340584179, 1340584173, 1340584168, 1340584167, 1340584165, 1340584143, 1340584139, 1340584136, 1340584135, 1340584093, 1340584087, 1340584085, 1340584084, 1340584082, 1340584057, 1340584055, 1340584047, 1340584036, 1340584016, 1340584010, 1340584004, 1340584002, 1340584000, 1340583999, 1340583976, 1340583974, 1340583972, 1340583969, 1340583940, 1340583936, 1340583930, 1340583925, 1340583923, 1340583920, 1340583894, 1340583893, 1340583884, 1340583844, 1340583836, 1340583834, 1340583832, 1340583830, 1340583699, 1340583697, 1340583635, 1340583174, 1340583169, 1340583167, 1340583164, 1340583163, 1340583138, 1340583135, 1340583133]} ##### 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.015758752822875977 #### 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 Mon Mar 3 06:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20961943) 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 : 20961943 get user id for portfolio 20961943 get sub ptf for main ptf 20961943, type 3726 and hashtags ['kraft', 'flou', 'Teint_Dans_La_Masse', 'autre_refus', 'mal_croppe', 'papier', 'plastique', 'cartonnette', 'Carton_brun', 'Carton_gris', 'environnement', 'metal'] 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`=20961943 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe','papier','plastique','cartonnette','Carton_brun','Carton_gris','environnement','metal')) 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`=20961943 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe','papier','plastique','cartonnette','Carton_brun','Carton_gris','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20961943, 'sub_port_id': 20961946, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583809, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20961943, 'sub_port_id': 20961947, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583810, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'flou': {'main_port_id': 20961943, 'sub_port_id': 20961948, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583811, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'environnement': {'main_port_id': 20961943, 'sub_port_id': 20961949, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583812, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'autre_refus': {'main_port_id': 20961943, 'sub_port_id': 20961950, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583813, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'papier': {'main_port_id': 20961943, 'sub_port_id': 20961951, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583814, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'plastique': {'main_port_id': 20961943, 'sub_port_id': 20961952, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583815, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'Carton_gris': {'main_port_id': 20961943, 'sub_port_id': 20961953, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583816, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'kraft': {'main_port_id': 20961943, 'sub_port_id': 20961954, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583817, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'cartonnette': {'main_port_id': 20961943, 'sub_port_id': 20961955, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583818, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'mal_croppe': {'main_port_id': 20961943, 'sub_port_id': 20961956, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583819, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}, 'Carton_brun': {'main_port_id': 20961943, 'sub_port_id': 20961957, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583820, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20961946 , 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=20961943 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 (20961946) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961947 , 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=20961943 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 (20961947) result : ((1340583872,), (1340583873,), (1340583874,), (1340583943,), (1340583944,), (1340583963,), (1340584037,), (1340584038,), (1340584039,), (1340584040,), (1340584041,), (1340584106,), (1340584120,), (1340584121,), (1340584190,), (1340584191,), (1340584226,), (1340584227,), (1340584228,), (1340584229,), (1340584278,), (1340584397,), (1340584398,), (1340584420,), (1340584421,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961948 , 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=20961943 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 (20961948) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961949 , 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=20961943 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 (20961949) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961950 , 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=20961943 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 (20961950) result : ((1340583855,), (1340583856,), (1340583857,), (1340583875,), (1340583876,), (1340583877,), (1340583878,), (1340583879,), (1340583880,), (1340583946,), (1340583947,), (1340583948,), (1340583964,), (1340583965,), (1340583966,), (1340583967,), (1340583968,), (1340584025,), (1340584026,), (1340584042,), (1340584043,), (1340584044,), (1340584045,), (1340584046,), (1340584110,), (1340584111,), (1340584112,), (1340584113,), (1340584114,), (1340584115,), (1340584116,), (1340584127,), (1340584128,), (1340584129,), (1340584193,), (1340584194,), (1340584232,), (1340584233,), (1340584234,), (1340584235,), (1340584281,), (1340584282,), (1340584283,), (1340584284,), (1340584285,), (1340584286,), (1340584287,), (1340584301,), (1340584302,), (1340584303,), (1340584304,), (1340584305,), (1340584399,), (1340584400,), (1340584401,), (1340584402,), (1340584425,), (1340584426,), (1340584427,), (1340584428,), (1340584429,), (1340584430,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961951 , 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=20961943 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 (20961951) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961952 , 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=20961943 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 (20961952) result : ((1340583865,), (1340583866,), (1340583867,), (1340583887,), (1340583888,), (1340583953,), (1340584133,), (1340584134,), (1340584240,), (1340584295,), (1340584296,), (1340584446,), (1340584447,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961953 , 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=20961943 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 (20961953) result : ((1340583881,), (1340583950,), (1340583951,), (1340583970,), (1340584028,), (1340584029,), (1340584049,), (1340584050,), (1340584051,), (1340584118,), (1340584119,), (1340584196,), (1340584288,), (1340584289,), (1340584290,), (1340584306,), (1340584403,), (1340584431,), (1340584432,), (1340584433,), (1340584434,), (1340584435,), (1340584436,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961954 , 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=20961943 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 (20961954) result : ((1340583889,), (1340583891,), (1340583892,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961955 , 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=20961943 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 (20961955) result : ((1340583860,), (1340583861,), (1340583862,), (1340583882,), (1340583883,), (1340583971,), (1340584030,), (1340584052,), (1340584123,), (1340584131,), (1340584237,), (1340584291,), (1340584292,), (1340584308,), (1340584309,), (1340584438,), (1340584439,), (1340584440,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961956 , 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=20961943 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 (20961956) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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 20961957 , 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=20961943 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 (20961957) result : ((1340583863,), (1340583885,), (1340583886,), (1340584053,), (1340584054,), (1340584124,), (1340584125,), (1340584126,), (1340584198,), (1340584239,), (1340584293,), (1340584294,), (1340584311,), (1340584404,), (1340584442,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20961943) result : ((1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) 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 (1340584000) 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`=20961943 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe','papier','plastique','cartonnette','Carton_brun','Carton_gris','environnement','metal')) 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`=20961943 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe','papier','plastique','cartonnette','Carton_brun','Carton_gris','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20961943, 'sub_port_id': 20961958, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583821, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20961943, 'sub_port_id': 20961959, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583822, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'flou': {'main_port_id': 20961943, 'sub_port_id': 20961960, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583823, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'environnement': {'main_port_id': 20961943, 'sub_port_id': 20961961, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583824, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'autre_refus': {'main_port_id': 20961943, 'sub_port_id': 20961962, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583825, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'papier': {'main_port_id': 20961943, 'sub_port_id': 20961963, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583826, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'plastique': {'main_port_id': 20961943, 'sub_port_id': 20961964, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583827, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'Carton_gris': {'main_port_id': 20961943, 'sub_port_id': 20961965, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583828, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'kraft': {'main_port_id': 20961943, 'sub_port_id': 20961966, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583829, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'cartonnette': {'main_port_id': 20961943, 'sub_port_id': 20961967, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583830, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'mal_croppe': {'main_port_id': 20961943, 'sub_port_id': 20961968, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583831, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}, 'Carton_brun': {'main_port_id': 20961943, 'sub_port_id': 20961969, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13583832, 'last_updated_at': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 6, 30, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 6, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961967,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961968,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20961969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20961957 lien utilise dans velours : https://www.fotonower.com/velours/20961958,20961959,20961960,20961961,20961962,20961963,20961964,20961965,20961966,20961967,20961968,20961969?tags=metal,Teint_Dans_La_Masse,flou,environnement,autre_refus,papier,plastique,Carton_gris,kraft,cartonnette,mal_croppe,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20961943]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] map_info['map_portfolio_photo'] : {20961943: [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315, 1340584265, 1340584261, 1340584259, 1340584256, 1340584254, 1340584224, 1340584218, 1340584212, 1340584210, 1340584208, 1340584207, 1340584179, 1340584173, 1340584168, 1340584167, 1340584165, 1340584143, 1340584139, 1340584136, 1340584135, 1340584093, 1340584087, 1340584085, 1340584084, 1340584082, 1340584057, 1340584055, 1340584047, 1340584036, 1340584016, 1340584010, 1340584004, 1340584002, 1340584000, 1340583999, 1340583976, 1340583974, 1340583972, 1340583969, 1340583940, 1340583936, 1340583930, 1340583925, 1340583923, 1340583920, 1340583894, 1340583893, 1340583884, 1340583844, 1340583836, 1340583834, 1340583832, 1340583830, 1340583699, 1340583697, 1340583635, 1340583174, 1340583169, 1340583167, 1340583164, 1340583163, 1340583138, 1340583135, 1340583133]} final : False mtd_id 4302 list_pids : [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] Looping around the photos to save general results len do output : 1 /20961943. 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, '2627927') ('4302', '20961943', '1340584376', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584333', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584329', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584325', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584319', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584315', None, None, None, None, None, '2627927') 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', None, '20961943', "{'metal': 20961946, 'Teint_Dans_La_Masse': 20961947, 'flou': 20961948, 'environnement': 20961949, 'autre_refus': 20961950, 'papier': 20961951, 'plastique': 20961952, 'Carton_gris': 20961953, 'kraft': 20961954, 'cartonnette': 20961955, 'mal_croppe': 20961956, 'Carton_brun': 20961957}", None, None, None, None, '2627927'), ('4302', '20961943', '1340584376', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584333', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584329', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584325', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584319', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584315', None, None, None, None, None, '2627927')] time used for this insertion : 0.0657796859741211 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.826291799545288 time spend to save output : 0.06609106063842773 total time spend for step 1 : 1.8923828601837158 step2:final Mon Mar 3 06:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20961943) 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 20961943 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340583138,1340583135,1340583133,1340583174,1340583169,1340583167,1340583164,1340583163,1340583699,1340583697,1340583635,1340583844,1340583836,1340583834,1340583832,1340583830,1340583894,1340583893,1340583884,1340583940,1340583936,1340583930,1340583925,1340583923,1340583920,1340583976,1340583974,1340583972,1340583969,1340584016,1340584010,1340584004,1340584002,1340584000,1340583999,1340584057,1340584055,1340584047,1340584036,1340584093,1340584087,1340584085,1340584084,1340584082,1340584143,1340584139,1340584136,1340584135,1340584179,1340584173,1340584168,1340584167,1340584165,1340584224,1340584218,1340584212,1340584210,1340584208,1340584207,1340584265,1340584261,1340584259,1340584256,1340584254,1340584333,1340584329,1340584325,1340584319,1340584315,1340584376); 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([20961943]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} new output for save of step final : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] map_info['map_portfolio_photo'] : {20961943: [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315, 1340584265, 1340584261, 1340584259, 1340584256, 1340584254, 1340584224, 1340584218, 1340584212, 1340584210, 1340584208, 1340584207, 1340584179, 1340584173, 1340584168, 1340584167, 1340584165, 1340584143, 1340584139, 1340584136, 1340584135, 1340584093, 1340584087, 1340584085, 1340584084, 1340584082, 1340584057, 1340584055, 1340584047, 1340584036, 1340584016, 1340584010, 1340584004, 1340584002, 1340584000, 1340583999, 1340583976, 1340583974, 1340583972, 1340583969, 1340583940, 1340583936, 1340583930, 1340583925, 1340583923, 1340583920, 1340583894, 1340583893, 1340583884, 1340583844, 1340583836, 1340583834, 1340583832, 1340583830, 1340583699, 1340583697, 1340583635, 1340583174, 1340583169, 1340583167, 1340583164, 1340583163, 1340583138, 1340583135, 1340583133]} final : False mtd_id 4302 list_pids : [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] Looping around the photos to save general results len do output : 6 /1340584376.Didn't retrieve data . /1340584333.Didn't retrieve data . /1340584329.Didn't retrieve data . /1340584325.Didn't retrieve data . /1340584319.Didn't retrieve data . /1340584315.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, '2627927') ('4302', '20961943', '1340584376', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584333', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584329', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584325', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584319', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584315', None, None, None, None, None, '2627927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '20961943', '1340584376', '0.08629344349280765', None, None, None, None, '2627927'), ('4302', '20961943', '1340584333', '0.08629344349280765', None, None, None, None, '2627927'), ('4302', '20961943', '1340584329', '0.08629344349280765', None, None, None, None, '2627927'), ('4302', '20961943', '1340584325', '0.08629344349280765', None, None, None, None, '2627927'), ('4302', '20961943', '1340584319', '0.08629344349280765', None, None, None, None, '2627927'), ('4302', '20961943', '1340584315', '0.08629344349280765', None, None, None, None, '2627927')] time used for this insertion : 0.2446730136871338 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4518721103668213 time spend to save output : 0.24501943588256836 total time spend for step 2 : 0.6968915462493896 step3:velours_tree Mon Mar 3 06:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20961943: [{'metal': 20961946, 'Teint_Dans_La_Masse': 20961947, 'flou': 20961948, 'environnement': 20961949, 'autre_refus': 20961950, 'papier': 20961951, 'plastique': 20961952, 'Carton_gris': 20961953, 'kraft': 20961954, 'cartonnette': 20961955, 'mal_croppe': 20961956, 'Carton_brun': 20961957}]} input_args_next_step : {20961943: ()} output_args : {20961943: [{'metal': 20961946, 'Teint_Dans_La_Masse': 20961947, 'flou': 20961948, 'environnement': 20961949, 'autre_refus': 20961950, 'papier': 20961951, 'plastique': 20961952, 'Carton_gris': 20961953, 'kraft': 20961954, 'cartonnette': 20961955, 'mal_croppe': 20961956, 'Carton_brun': 20961957}]} args : 20961943 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 : ({'metal': 20961946, 'Teint_Dans_La_Masse': 20961947, 'flou': 20961948, 'environnement': 20961949, 'autre_refus': 20961950, 'papier': 20961951, 'plastique': 20961952, 'Carton_gris': 20961953, 'kraft': 20961954, 'cartonnette': 20961955, 'mal_croppe': 20961956, 'Carton_brun': 20961957},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20961943) 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([20961943]) 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.2726099491119385 time spend to save output : 3.933906555175781e-05 total time spend for step 3 : 0.27264928817749023 step4:send_mail_cod Mon Mar 3 06:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} input_args_next_step : {1340584376: ()} output_args : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} args : 1340584376 depend.output_id : 0 input_args_next_step : {1340584376: ('0.08629344349280765',), 1340584333: ()} output_args : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} args : 1340584333 depend.output_id : 0 input_args_next_step : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ()} output_args : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} args : 1340584329 depend.output_id : 0 input_args_next_step : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ()} output_args : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} args : 1340584325 depend.output_id : 0 input_args_next_step : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ()} output_args : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} args : 1340584319 depend.output_id : 0 input_args_next_step : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ()} output_args : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',)} args : 1340584315 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 : {20961943: [{'metal': 20961946, 'Teint_Dans_La_Masse': 20961947, 'flou': 20961948, 'environnement': 20961949, 'autre_refus': 20961950, 'papier': 20961951, 'plastique': 20961952, 'Carton_gris': 20961953, 'kraft': 20961954, 'cartonnette': 20961955, 'mal_croppe': 20961956, 'Carton_brun': 20961957}]} input_args_next_step : {1340584376: ('0.08629344349280765',), 1340584333: ('0.08629344349280765',), 1340584329: ('0.08629344349280765',), 1340584325: ('0.08629344349280765',), 1340584319: ('0.08629344349280765',), 1340584315: ('0.08629344349280765',), 20961943: ()} output_args : {20961943: [{'metal': 20961946, 'Teint_Dans_La_Masse': 20961947, 'flou': 20961948, 'environnement': 20961949, 'autre_refus': 20961950, 'papier': 20961951, 'plastique': 20961952, 'Carton_gris': 20961953, 'kraft': 20961954, 'cartonnette': 20961955, 'mal_croppe': 20961956, 'Carton_brun': 20961957}]} args : 20961943 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 :7, first value : ('0.08629344349280765',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20961943) 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 (1340584376,1340584333,1340584329,1340584325,1340584319,1340584315) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340584315 begin to download photo : 1340584325 begin to download photo : 1340584333 download finish for photo 1340584315 begin to download photo : 1340584319 download finish for photo 1340584333 begin to download photo : 1340584376 download finish for photo 1340584325 begin to download photo : 1340584329 download finish for photo 1340584319 download finish for photo 1340584329 download finish for photo 1340584376 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette209619461740979981/ imagette209619481740979981/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P20961943_03-03-2025_06_33_01.pdf 20961946 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=20961946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209619461740979981 20961948 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=20961948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209619481740979981 20961950 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=20961950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340584301: '1740979770_1968760_1340584179_678e4fea639f7adb36c86b6956456c41_rle_crop_3692147134_0.png', 1340584128: '1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146443_0.png', 1340584129: '1740979514_1966128_1340583969_bec07c88f122ebbdb10acff1f1a5eab4_rle_crop_3692146456_0.png', 1340584193: '1740979631_1967218_1340584085_f970232226ac20c0a787927f1c3a3906_rle_crop_3692146602_0.png', 1340584194: '1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146621_0.png', 1340584232: '1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146777_0.png', 1340584233: '1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146786_0.png', 1340584234: '1740979671_1967717_1340584047_b1e104fc5ee64cffbfc68e933f13881b_rle_crop_3692146811_0.png', 1340584235: '1740979671_1967717_1340584036_efed5f7a2be203a07b7a361b25d2b147_rle_crop_3692146823_0.png', 1340584281: '1740979753_1968551_1340584173_03d802185f37952082e3ffac50e04349_rle_crop_3692146969_0.png', 1340584282: '1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147087_0.png', 1340584283: '1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147093_0.png', 1340584284: '1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147096_0.png', 1340584285: '1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147103_0.png', 1340584286: '1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147123_0.png', 1340584287: '1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147120_0.png', 1340584127: '1740979514_1966128_1340584016_3e6a2a50118b5f6317efffd4ef68d1f2_rle_crop_3692146410_0.png', 1340584302: '1740979770_1968760_1340584139_da0c974119a17215a76327ba02d64c84_rle_crop_3692147148_0.png', 1340584303: '1740979770_1968760_1340584136_9ac3540552941f07b6a0b303fd878bf7_rle_crop_3692147151_0.png', 1340584304: '1740979770_1968760_1340584136_9ac3540552941f07b6a0b303fd878bf7_rle_crop_3692147158_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f0b1fb08d32663d1bbc19d87107467dc_44035563.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/071f72df7ebaf4f984f1d521672f504b_55057167.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c4529ca74e7228f59d3f9aeecfbf56fb_22904714.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/484381f3d436fd468f248f418416d227_17071460.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/52d4d6289d93d8bfa73b8e6b868b3f1e_70028659.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/20432041c53ab9c2fe7249842f4f0762_54622190.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7e5ac09d0512cc2d72371ded15ba3651_16499440.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/02ca13e2d3ee4684aa62a5028e1e32a0_7598007.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fe30f08182ded992c829ee864852abc1_36911274.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2a32e65fcce45246cc8ae359adb244f2_44663467.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b6905137b5d535051af108224e6bf3a8_71672256.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/755afe3ebfe392226faa9ffed58b2376_88275761.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/60719b41d4ce9a7befe62615a983b968_1906976.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/49c7168762e519c35300a628d772d95e_72132857.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/eb64fd8081dbf2b14f840c8d1361bd6e_88863579.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0eed4ded30e7ac95f3f436ce307e0445_30799025.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/71722565d5dfc5e5c70e2f2dd7e1b0a4_1154929.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/617d80f08a69fad940d3e869a3841a2a_38510589.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0a9e6fae9bfe468a534d09bec6f6701d_56694650.png change filename to text .imagette209619501740979981/ imagette209619501740979981/1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146777_0.png.png imagette209619501740979981/1740979514_1966128_1340584016_3e6a2a50118b5f6317efffd4ef68d1f2_rle_crop_3692146410_0.png.png imagette209619501740979981/1740979770_1968760_1340584139_da0c974119a17215a76327ba02d64c84_rle_crop_3692147148_0.png.png imagette209619501740979981/1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147093_0.png.png imagette209619501740979981/1740979770_1968760_1340584179_678e4fea639f7adb36c86b6956456c41_rle_crop_3692147134_0.png.png imagette209619501740979981/1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147096_0.png.png imagette209619501740979981/1740979770_1968760_1340584136_9ac3540552941f07b6a0b303fd878bf7_rle_crop_3692147151_0.png.png imagette209619501740979981/1740979514_1966128_1340583969_bec07c88f122ebbdb10acff1f1a5eab4_rle_crop_3692146456_0.png.png imagette209619501740979981/1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147123_0.png.png imagette209619501740979981/1740979671_1967717_1340584047_b1e104fc5ee64cffbfc68e933f13881b_rle_crop_3692146811_0.png.png imagette209619501740979981/1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146786_0.png.png imagette209619501740979981/1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147087_0.png.png imagette209619501740979981/1740979753_1968551_1340584173_03d802185f37952082e3ffac50e04349_rle_crop_3692146969_0.png.png imagette209619501740979981/1740979770_1968760_1340584136_9ac3540552941f07b6a0b303fd878bf7_rle_crop_3692147158_0.png.png imagette209619501740979981/1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146621_0.png.png imagette209619501740979981/1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147120_0.png.png imagette209619501740979981/1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146443_0.png.png imagette209619501740979981/1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147103_0.png.png imagette209619501740979981/1740979631_1967218_1340584085_f970232226ac20c0a787927f1c3a3906_rle_crop_3692146602_0.png.png imagette209619501740979981/1740979671_1967717_1340584036_efed5f7a2be203a07b7a361b25d2b147_rle_crop_3692146823_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f415447a56580f3cd95287e3558f6161_76652973.png imagette209619501740979981 20961952 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=20961952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340583865: '1740979154_1962349_1340583174_4191b244eb0ce68e490b35bc7b6967a1_rle_crop_3692145186_0.png', 1340583866: '1740979154_1962349_1340583138_2529476e6e1a3527d113ed6b71a28343_rle_crop_3692145199_0.png', 1340583867: '1740979154_1962349_1340583133_ccf2556a574934ad2e58331facc6b04e_rle_crop_3692145321_0.png', 1340583887: '1740979173_1962572_1340583167_6d1e9bc24581219797ffbc6efe0416af_rle_crop_3692145349_0.png', 1340583888: '1740979173_1962572_1340583163_e69dd9585985aa19dfd03d9c85ff21cc_rle_crop_3692145373_0.png', 1340583953: '1740979272_1963560_1340583697_cfdd84869af5ad0b186fa427316e3531_rle_crop_3692145554_0.png', 1340584133: '1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146438_0.png', 1340584134: '1740979514_1966128_1340583969_bec07c88f122ebbdb10acff1f1a5eab4_rle_crop_3692146452_0.png', 1340584240: '1740979671_1967717_1340584055_ba25ee4c3542685559cfe9c397553430_rle_crop_3692146793_0.png', 1340584295: '1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147083_0.png', 1340584296: '1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147104_0.png', 1340584446: '1740979890_1970337_1340584218_2898e3be3be11db51f086825aae02021_rle_crop_3692147876_0.png', 1340584447: '1740979890_1970337_1340584207_7e000018cad9a1df5286b6ce323bc8b5_rle_crop_3692147924_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f03b4444088920bddfe8758a8e618052_11679860.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1171f924369a9e927cb7c0d64996683c_82477824.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ffaff356ba24a2b52deb65a420d28662_17224234.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ede8546a02528fa23e7532b0185a0332_89301793.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/eafc90282d4554df5d3e23464ca38408_27371317.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/083e79707c2592d9b6124c92eac30878_74000784.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/79cfc6c63844df445b9dd1a856879192_42264800.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c861a9765ba118bebed967daceda8eb8_84291396.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/339a122d66f57af16e0a159014734a82_82799143.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/39b3ebac67683c1f21f7c2b34e8e7951_4572344.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4c648ed9b240a511d230f5f9bb1ef2e8_78134573.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/604a02e79f66ef8bf62f8af8b72dd3ec_16275543.png change filename to text .imagette209619521740979982/ imagette209619521740979982/1740979154_1962349_1340583138_2529476e6e1a3527d113ed6b71a28343_rle_crop_3692145199_0.png.png imagette209619521740979982/1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146438_0.png.png imagette209619521740979982/1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147083_0.png.png imagette209619521740979982/1740979173_1962572_1340583163_e69dd9585985aa19dfd03d9c85ff21cc_rle_crop_3692145373_0.png.png imagette209619521740979982/1740979272_1963560_1340583697_cfdd84869af5ad0b186fa427316e3531_rle_crop_3692145554_0.png.png imagette209619521740979982/1740979154_1962349_1340583133_ccf2556a574934ad2e58331facc6b04e_rle_crop_3692145321_0.png.png imagette209619521740979982/1740979514_1966128_1340583969_bec07c88f122ebbdb10acff1f1a5eab4_rle_crop_3692146452_0.png.png imagette209619521740979982/1740979890_1970337_1340584218_2898e3be3be11db51f086825aae02021_rle_crop_3692147876_0.png.png imagette209619521740979982/1740979671_1967717_1340584055_ba25ee4c3542685559cfe9c397553430_rle_crop_3692146793_0.png.png imagette209619521740979982/1740979154_1962349_1340583174_4191b244eb0ce68e490b35bc7b6967a1_rle_crop_3692145186_0.png.png imagette209619521740979982/1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147104_0.png.png imagette209619521740979982/1740979173_1962572_1340583167_6d1e9bc24581219797ffbc6efe0416af_rle_crop_3692145349_0.png.png imagette209619521740979982/1740979890_1970337_1340584207_7e000018cad9a1df5286b6ce323bc8b5_rle_crop_3692147924_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e9fac28db4ab109bffee075773d98e91_53945550.png imagette209619521740979982 20961954 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=20961954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340583889: '1740979173_1962572_1340583167_6d1e9bc24581219797ffbc6efe0416af_rle_crop_3692145351_0.png', 1340583891: '1740979173_1962572_1340583164_ab0aca9ef2013e549983f12a0373db6a_rle_crop_3692145364_0.png', 1340583892: '1740979173_1962572_1340583163_e69dd9585985aa19dfd03d9c85ff21cc_rle_crop_3692145377_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bf751d28657fd6ff1aaa89b276d5889c_65532912.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4fc9447df31f61f8763204c3cc7f1466_79825147.png change filename to text .imagette209619541740979983/ imagette209619541740979983/1740979173_1962572_1340583164_ab0aca9ef2013e549983f12a0373db6a_rle_crop_3692145364_0.png.png imagette209619541740979983/1740979173_1962572_1340583163_e69dd9585985aa19dfd03d9c85ff21cc_rle_crop_3692145377_0.png.png imagette209619541740979983/1740979173_1962572_1340583167_6d1e9bc24581219797ffbc6efe0416af_rle_crop_3692145351_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c1b572ca99408e21c92610bb3251281f_18226639.png imagette209619541740979983 20961955 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=20961955 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340584131: '1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146439_0.png', 1340584440: '1740979890_1970337_1340584208_0605113fc8e3ff552079e924b50fad65_rle_crop_3692147914_0.png', 1340584439: '1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147860_0.png', 1340584438: '1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147854_0.png', 1340584309: '1740979770_1968760_1340584135_ed746b79619ad6a0d3f143902c00d5ab_rle_crop_3692147163_0.png', 1340584308: '1740979770_1968760_1340584136_9ac3540552941f07b6a0b303fd878bf7_rle_crop_3692147153_0.png', 1340584292: '1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147116_0.png', 1340584291: '1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147085_0.png', 1340584237: '1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146776_0.png', 1340583860: '1740979154_1962349_1340583174_4191b244eb0ce68e490b35bc7b6967a1_rle_crop_3692145189_0.png', 1340584123: '1740979502_1965973_1340584002_ba710d561a57389c8b22bfa12986deac_rle_crop_3692146370_0.png', 1340584052: '1740979411_1964926_1340583923_3598f6aa3aa802534f0e420442c45628_rle_crop_3692146059_0.png', 1340584030: '1740979392_1964711_1340583884_b2636d04f2a9134ce18506505535a212_rle_crop_3692145835_0.png', 1340583971: '1740979293_1963808_1340583830_89b9f0c76f2a67c2f862d246edeebb91_rle_crop_3692145734_0.png', 1340583883: '1740979173_1962572_1340583167_6d1e9bc24581219797ffbc6efe0416af_rle_crop_3692145348_0.png', 1340583882: '1740979173_1962572_1340583169_2e51a57365ccee6d4421132dbae7d66f_rle_crop_3692145338_0.png', 1340583862: '1740979154_1962349_1340583133_ccf2556a574934ad2e58331facc6b04e_rle_crop_3692145327_0.png', 1340583861: '1740979154_1962349_1340583135_7d2dc9d53a11cf294bdd3348df7f7516_rle_crop_3692145202_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/54ccf4a60b6593534182617b45bb7f68_63686550.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2c12c3d8f78839ca60198e076bfa6fce_50383135.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f5c947d598f9909e895d5c2766a3d423_27675272.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7848ad39048f5257fb383b7fee323372_71831154.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/639cd375dd54c53dc4159ce97c93610a_38061780.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f12f9fd918b5cd2b079c2169ad80ac21_36483887.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e8a9b2648ec06515ab7728837f114d45_44964059.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ba5203b37b2f2fda9606c8ad12d6a648_39177032.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e44968b05d8931df66ba344ea5fa4186_14640302.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/32fa9ca7f876c526a9e0d3041940cd53_24343132.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d327b4945cb2a18091ebae0bb4b73fbc_24396053.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/df0cb8ffc81f6d2ac732b47dea340472_91225236.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d4bfd8133f2076b5c25c2556d43133ea_51091971.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/30a0c26720caca1c5fed82b65a3159e2_59483754.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/aa00a2d52d548448f99dd18915b73ffe_14808733.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9da6461bcf366fac4ab4d02bcaebc8c4_12216926.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9ac8dcc549b013f9b03405b1d4c84217_31344918.png change filename to text .imagette209619551740979983/ imagette209619551740979983/1740979890_1970337_1340584208_0605113fc8e3ff552079e924b50fad65_rle_crop_3692147914_0.png.png imagette209619551740979983/1740979173_1962572_1340583167_6d1e9bc24581219797ffbc6efe0416af_rle_crop_3692145348_0.png.png imagette209619551740979983/1740979154_1962349_1340583174_4191b244eb0ce68e490b35bc7b6967a1_rle_crop_3692145189_0.png.png imagette209619551740979983/1740979293_1963808_1340583830_89b9f0c76f2a67c2f862d246edeebb91_rle_crop_3692145734_0.png.png imagette209619551740979983/1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146439_0.png.png imagette209619551740979983/1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147860_0.png.png imagette209619551740979983/1740979392_1964711_1340583884_b2636d04f2a9134ce18506505535a212_rle_crop_3692145835_0.png.png imagette209619551740979983/1740979154_1962349_1340583133_ccf2556a574934ad2e58331facc6b04e_rle_crop_3692145327_0.png.png imagette209619551740979983/1740979411_1964926_1340583923_3598f6aa3aa802534f0e420442c45628_rle_crop_3692146059_0.png.png imagette209619551740979983/1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147854_0.png.png imagette209619551740979983/1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147116_0.png.png imagette209619551740979983/1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146776_0.png.png imagette209619551740979983/1740979173_1962572_1340583169_2e51a57365ccee6d4421132dbae7d66f_rle_crop_3692145338_0.png.png imagette209619551740979983/1740979753_1968551_1340584168_cc3cb8296b3cd5c6d391f775345fefe2_rle_crop_3692147085_0.png.png imagette209619551740979983/1740979770_1968760_1340584136_9ac3540552941f07b6a0b303fd878bf7_rle_crop_3692147153_0.png.png imagette209619551740979983/1740979502_1965973_1340584002_ba710d561a57389c8b22bfa12986deac_rle_crop_3692146370_0.png.png imagette209619551740979983/1740979154_1962349_1340583135_7d2dc9d53a11cf294bdd3348df7f7516_rle_crop_3692145202_0.png.png imagette209619551740979983/1740979770_1968760_1340584135_ed746b79619ad6a0d3f143902c00d5ab_rle_crop_3692147163_0.png.png imagette209619561740979984/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/69fab5a4a2714a34c4d0408c4d17bb06_25395996.png imagette209619551740979983 20961956 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=20961956 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209619561740979984 20961947 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=20961947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340584120: '1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146444_0.png', 1340584421: '1740979890_1970337_1340584208_0605113fc8e3ff552079e924b50fad65_rle_crop_3692147913_0.png', 1340584420: '1740979890_1970337_1340584212_6476146442a19381fba5a25f9b43e52b_rle_crop_3692147886_0.png', 1340584398: '1740979872_1970086_1340584254_3029d8116ee75014efb9ef6615f4e9cb_rle_crop_3692147728_0.png', 1340584397: '1740979872_1970086_1340584261_cc0c59888f5d7322169a55ee611af53a_rle_crop_3692147520_0.png', 1340584278: '1740979753_1968551_1340584173_03d802185f37952082e3ffac50e04349_rle_crop_3692146971_0.png', 1340584229: '1740979671_1967717_1340584036_efed5f7a2be203a07b7a361b25d2b147_rle_crop_3692146826_0.png', 1340584228: '1740979671_1967717_1340584047_b1e104fc5ee64cffbfc68e933f13881b_rle_crop_3692146814_0.png', 1340584227: '1740979671_1967717_1340584047_b1e104fc5ee64cffbfc68e933f13881b_rle_crop_3692146807_0.png', 1340584226: '1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146787_0.png', 1340584191: '1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146618_0.png', 1340584190: '1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146620_0.png', 1340584121: '1740979514_1966128_1340583969_bec07c88f122ebbdb10acff1f1a5eab4_rle_crop_3692146454_0.png', 1340583872: '1740979173_1962572_1340583169_2e51a57365ccee6d4421132dbae7d66f_rle_crop_3692145335_0.png', 1340584106: '1740979502_1965973_1340584000_bb964c85b6629f5c55284bdb7e49dcfe_rle_crop_3692146391_0.png', 1340584041: '1740979411_1964926_1340583925_76378953f6f8a864ff8588034784125a_rle_crop_3692146043_0.png', 1340584040: '1740979411_1964926_1340583930_0fc409c2fd0ecc074e5ad19f136485af_rle_crop_3692146031_0.png', 1340584039: '1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146009_0.png', 1340584038: '1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146014_0.png', 1340584037: '1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146017_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a3d4a27ae9b511a544821d3fd4ca43da_73714080.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f4eb8e683c724c89d1e3191ba540fedc_53771241.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bceea69b03de72ad46b1c721826496cc_85669920.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/47a101fb7eecbb47ebfd4b28fffac21b_25763763.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4ac1b32650bd10ac1ea8e9820e76a51f_5502972.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/010a0571e3f2eb4effbcef43d93814be_75023788.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/976277f281048bb6a41b7e7d15b0689e_23121295.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5bfb67873bdc428a547c5cc64fb15fb1_25739218.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/949437e82744d6d0f406c5f953ddc975_19614481.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f5aa15f80d2c678d918b91d3abb865cc_54008396.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fa9eda099413932ca282e86810efa4f9_24596128.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/80b2b0ce132f662c614fb44f2798fabe_32504234.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5501db515898b313687832ab8de8e12f_77217749.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/531916436231dfca384c18ff04bf1217_57136605.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/263cc1685769b08055da0f5371e0c377_3946387.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4affdb7e2160d14a71dc69444c70ca7a_66060079.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e3a11fc5f66fb9748384ed722eeac68d_45772873.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6b718b3ab70d2d6baaadf4e261ddf647_30513141.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b6bfdf42d32a07df8c8ada9d88c9a7fc_92089989.png change filename to text .imagette209619471740979984/ imagette209619471740979984/1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146618_0.png.png imagette209619471740979984/1740979502_1965973_1340584000_bb964c85b6629f5c55284bdb7e49dcfe_rle_crop_3692146391_0.png.png imagette209619471740979984/1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146017_0.png.png imagette209619471740979984/1740979671_1967717_1340584047_b1e104fc5ee64cffbfc68e933f13881b_rle_crop_3692146814_0.png.png imagette209619471740979984/1740979872_1970086_1340584261_cc0c59888f5d7322169a55ee611af53a_rle_crop_3692147520_0.png.png imagette209619471740979984/1740979890_1970337_1340584208_0605113fc8e3ff552079e924b50fad65_rle_crop_3692147913_0.png.png imagette209619471740979984/1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146014_0.png.png imagette209619471740979984/1740979411_1964926_1340583925_76378953f6f8a864ff8588034784125a_rle_crop_3692146043_0.png.png imagette209619471740979984/1740979671_1967717_1340584036_efed5f7a2be203a07b7a361b25d2b147_rle_crop_3692146826_0.png.png imagette209619471740979984/1740979753_1968551_1340584173_03d802185f37952082e3ffac50e04349_rle_crop_3692146971_0.png.png imagette209619471740979984/1740979411_1964926_1340583930_0fc409c2fd0ecc074e5ad19f136485af_rle_crop_3692146031_0.png.png imagette209619471740979984/1740979173_1962572_1340583169_2e51a57365ccee6d4421132dbae7d66f_rle_crop_3692145335_0.png.png imagette209619471740979984/1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146620_0.png.png imagette209619471740979984/1740979872_1970086_1340584254_3029d8116ee75014efb9ef6615f4e9cb_rle_crop_3692147728_0.png.png imagette209619471740979984/1740979514_1966128_1340583969_bec07c88f122ebbdb10acff1f1a5eab4_rle_crop_3692146454_0.png.png imagette209619471740979984/1740979890_1970337_1340584212_6476146442a19381fba5a25f9b43e52b_rle_crop_3692147886_0.png.png imagette209619471740979984/1740979514_1966128_1340583974_1c1107d59515fc19636755ef64fe58be_rle_crop_3692146444_0.png.png imagette209619471740979984/1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146787_0.png.png imagette209619471740979984/1740979671_1967717_1340584047_b1e104fc5ee64cffbfc68e933f13881b_rle_crop_3692146807_0.png.png imagette209619471740979984/1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146009_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/71091410e3c2655c4baf965fa392a71b_8362309.png imagette209619471740979984 20961953 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=20961953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340584196: '1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146615_0.png', 1340584436: '1740979890_1970337_1340584207_7e000018cad9a1df5286b6ce323bc8b5_rle_crop_3692147932_0.png', 1340584435: '1740979890_1970337_1340584207_7e000018cad9a1df5286b6ce323bc8b5_rle_crop_3692147929_0.png', 1340584434: '1740979890_1970337_1340584210_cd4be8c9a109fadf8e206043614f5c35_rle_crop_3692147900_0.png', 1340584433: '1740979890_1970337_1340584210_cd4be8c9a109fadf8e206043614f5c35_rle_crop_3692147898_0.png', 1340584432: '1740979890_1970337_1340584212_6476146442a19381fba5a25f9b43e52b_rle_crop_3692147880_0.png', 1340584431: '1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147853_0.png', 1340584403: '1740979872_1970086_1340584256_8dfb3a5c2f2164e22507df9b7bc08f8d_rle_crop_3692147703_0.png', 1340584306: '1740979770_1968760_1340584139_da0c974119a17215a76327ba02d64c84_rle_crop_3692147143_0.png', 1340584290: '1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147117_0.png', 1340584289: '1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147118_0.png', 1340584288: '1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147112_0.png', 1340583881: '1740979173_1962572_1340583164_ab0aca9ef2013e549983f12a0373db6a_rle_crop_3692145356_0.png', 1340584119: '1740979502_1965973_1340584000_bb964c85b6629f5c55284bdb7e49dcfe_rle_crop_3692146384_0.png', 1340584118: '1740979502_1965973_1340584004_6fffcf9b18bd78aa68da55c77ba85c6c_rle_crop_3692146356_0.png', 1340584051: '1740979411_1964926_1340583920_a080a782de597ec26d5ee0f7373ac3aa_rle_crop_3692146075_0.png', 1340584050: '1740979411_1964926_1340583923_3598f6aa3aa802534f0e420442c45628_rle_crop_3692146060_0.png', 1340584049: '1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146010_0.png', 1340584029: '1740979392_1964711_1340583893_66e3092c2376b5bba73876cfec5554b8_rle_crop_3692145819_0.png', 1340584028: '1740979392_1964711_1340583893_66e3092c2376b5bba73876cfec5554b8_rle_crop_3692145820_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4737d23d60bf00be57803c5ae0e13284_96056618.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/682869fe56d7297984feeee1388589a2_26622044.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ae4d976ba0ba02d66e2c8f03bf73dacc_98811493.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/17f5c0211825a35cc8359e8c499eb6f6_62520541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a69be0c0132de07c9eec24402779e1e9_37524042.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a9e0df9402ee661d37c6c74d5073a2b1_93295550.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/eeaebc9d06047036d589da9cc02cbdfd_27510620.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8d347970eff3eca02cd9a81b1df492a4_76462550.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7860f1cefbc24c1e4455def3bbed0f23_57792260.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0299c76c0e6c56e38914cfc4895cf78e_51973886.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/23b5408354912d886f19040d7d8e32f9_26909359.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/dabf00943d7442d6059f36c0a82bcc01_82936136.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5742f365bc75977c35943fde6ffc037d_39974093.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/36a3b9c8ad264c31b67e79d2a7ba2ab5_60463821.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0f6071bbd793dc53d7b9cb283508f40d_49321969.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4cc332621b58b0b52f5726505fb6c4e5_52113943.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/740a24e5c025f3a368926102aa6a17a2_62174350.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/75e7941599c7891bb03ad9e16a6c3ed0_74530680.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b3fc3403b29f757a9f6adf3da83797dd_84583085.png change filename to text .imagette209619531740979985/ imagette209619531740979985/1740979173_1962572_1340583164_ab0aca9ef2013e549983f12a0373db6a_rle_crop_3692145356_0.png.png imagette209619531740979985/1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147112_0.png.png imagette209619531740979985/1740979392_1964711_1340583893_66e3092c2376b5bba73876cfec5554b8_rle_crop_3692145819_0.png.png imagette209619531740979985/1740979890_1970337_1340584207_7e000018cad9a1df5286b6ce323bc8b5_rle_crop_3692147929_0.png.png imagette209619531740979985/1740979890_1970337_1340584212_6476146442a19381fba5a25f9b43e52b_rle_crop_3692147880_0.png.png imagette209619531740979985/1740979631_1967218_1340584084_45e5427f391a73dea932d1c36938764a_rle_crop_3692146615_0.png.png imagette209619531740979985/1740979411_1964926_1340583923_3598f6aa3aa802534f0e420442c45628_rle_crop_3692146060_0.png.png imagette209619531740979985/1740979411_1964926_1340583936_ba27eb3225800d634a285ea227e917a8_rle_crop_3692146010_0.png.png imagette209619531740979985/1740979770_1968760_1340584139_da0c974119a17215a76327ba02d64c84_rle_crop_3692147143_0.png.png imagette209619531740979985/1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147853_0.png.png imagette209619531740979985/1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147118_0.png.png imagette209619531740979985/1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147117_0.png.png imagette209619531740979985/1740979392_1964711_1340583893_66e3092c2376b5bba73876cfec5554b8_rle_crop_3692145820_0.png.png imagette209619531740979985/1740979890_1970337_1340584207_7e000018cad9a1df5286b6ce323bc8b5_rle_crop_3692147932_0.png.png imagette209619531740979985/1740979502_1965973_1340584004_6fffcf9b18bd78aa68da55c77ba85c6c_rle_crop_3692146356_0.png.png imagette209619531740979985/1740979872_1970086_1340584256_8dfb3a5c2f2164e22507df9b7bc08f8d_rle_crop_3692147703_0.png.png imagette209619531740979985/1740979890_1970337_1340584210_cd4be8c9a109fadf8e206043614f5c35_rle_crop_3692147900_0.png.png imagette209619531740979985/1740979411_1964926_1340583920_a080a782de597ec26d5ee0f7373ac3aa_rle_crop_3692146075_0.png.png imagette209619531740979985/1740979890_1970337_1340584210_cd4be8c9a109fadf8e206043614f5c35_rle_crop_3692147898_0.png.png imagette209619531740979985/1740979502_1965973_1340584000_bb964c85b6629f5c55284bdb7e49dcfe_rle_crop_3692146384_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/862b680e6c23a5d12e386b8f840c9368_3882370.png imagette209619531740979985 20961957 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=20961957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340583863: '1740979154_1962349_1340583133_ccf2556a574934ad2e58331facc6b04e_rle_crop_3692145324_0.png', 1340583885: '1740979173_1962572_1340583169_2e51a57365ccee6d4421132dbae7d66f_rle_crop_3692145334_0.png', 1340583886: '1740979173_1962572_1340583164_ab0aca9ef2013e549983f12a0373db6a_rle_crop_3692145359_0.png', 1340584053: '1740979411_1964926_1340583930_0fc409c2fd0ecc074e5ad19f136485af_rle_crop_3692146027_0.png', 1340584054: '1740979411_1964926_1340583930_0fc409c2fd0ecc074e5ad19f136485af_rle_crop_3692146029_0.png', 1340584124: '1740979502_1965973_1340584010_cd63976e67af98ba236cce0ac960ff80_rle_crop_3692146345_0.png', 1340584125: '1740979502_1965973_1340584004_6fffcf9b18bd78aa68da55c77ba85c6c_rle_crop_3692146361_0.png', 1340584126: '1740979502_1965973_1340584000_bb964c85b6629f5c55284bdb7e49dcfe_rle_crop_3692146395_0.png', 1340584198: '1740979631_1967218_1340584087_3041af7a5cad6095386485644537d3d7_rle_crop_3692146583_0.png', 1340584239: '1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146778_0.png', 1340584293: '1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147101_0.png', 1340584294: '1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147121_0.png', 1340584311: '1740979770_1968760_1340584135_ed746b79619ad6a0d3f143902c00d5ab_rle_crop_3692147170_0.png', 1340584404: '1740979872_1970086_1340584254_3029d8116ee75014efb9ef6615f4e9cb_rle_crop_3692147715_0.png', 1340584442: '1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147857_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/62cd823bc2dd31beb92669452e726eb0_8653673.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b01e0b287e7ecabd75d3a52ccca7948e_44913956.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c897dd0763066f0dca5b7066a2400cee_98796639.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3bd0aab67cbec714f147fb91137e5f5f_95644093.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/125c77c20a77dbb95bb5eb2edfa8fee1_85370654.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bb64723ac8dfa8f8e9caa2c2b29c1d53_20424501.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/df2ae0d20e51264aef3e83d78b50685c_58547758.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d4d9f3e14fbcfa5d62dba44aff94180e_96325166.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9f068c80f7fea17ce983e744f2303c63_64709351.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d0c7c25f3d38e04ffb9bdc7d184c925e_77464991.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8c9b7d7bfa802832a94d4cfec93d180f_99340767.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f88e2c02bb8c1a194e11539920f0a044_62562991.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2b1188f689f76ed155aaea53b86276a7_19622913.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c5b47b93a1ed6f5ba3693c41d03ad8f9_87825902.png change filename to text .imagette209619571740979986/ imagette209619571740979986/1740979502_1965973_1340584000_bb964c85b6629f5c55284bdb7e49dcfe_rle_crop_3692146395_0.png.png imagette209619571740979986/1740979154_1962349_1340583133_ccf2556a574934ad2e58331facc6b04e_rle_crop_3692145324_0.png.png imagette209619571740979986/1740979502_1965973_1340584010_cd63976e67af98ba236cce0ac960ff80_rle_crop_3692146345_0.png.png imagette209619571740979986/1740979770_1968760_1340584135_ed746b79619ad6a0d3f143902c00d5ab_rle_crop_3692147170_0.png.png imagette209619571740979986/1740979173_1962572_1340583164_ab0aca9ef2013e549983f12a0373db6a_rle_crop_3692145359_0.png.png imagette209619571740979986/1740979631_1967218_1340584087_3041af7a5cad6095386485644537d3d7_rle_crop_3692146583_0.png.png imagette209619571740979986/1740979502_1965973_1340584004_6fffcf9b18bd78aa68da55c77ba85c6c_rle_crop_3692146361_0.png.png imagette209619571740979986/1740979872_1970086_1340584254_3029d8116ee75014efb9ef6615f4e9cb_rle_crop_3692147715_0.png.png imagette209619571740979986/1740979411_1964926_1340583930_0fc409c2fd0ecc074e5ad19f136485af_rle_crop_3692146029_0.png.png imagette209619571740979986/1740979173_1962572_1340583169_2e51a57365ccee6d4421132dbae7d66f_rle_crop_3692145334_0.png.png imagette209619571740979986/1740979753_1968551_1340584167_a122ac7e073d7fe31185f2f8202f7bbb_rle_crop_3692147101_0.png.png imagette209619571740979986/1740979671_1967717_1340584093_a2e2439cf401cff8548d84275b5d7b4b_rle_crop_3692146778_0.png.png imagette209619571740979986/1740979753_1968551_1340584165_de657dc9932da42910775791ced29dc4_rle_crop_3692147121_0.png.png imagette209619571740979986/1740979890_1970337_1340584265_b987a4ad4bab203c74f2f4165c8de902_rle_crop_3692147857_0.png.png imagette209619571740979986/1740979411_1964926_1340583930_0fc409c2fd0ecc074e5ad19f136485af_rle_crop_3692146027_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4711de460558883e988f61c0c8e5ba1b_72495989.png imagette209619571740979986 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20961943 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20961958,20961959,20961960,20961961,20961962,20961963,20961964,20961965,20961966,20961967,20961968,20961969?tags=metal,Teint_Dans_La_Masse,flou,environnement,autre_refus,papier,plastique,Carton_gris,kraft,cartonnette,mal_croppe,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1340584376] : ('0.08629344349280765',) no score found for photo 1340584376 We are sending mail with results at report@fotonower.com args[1340584333] : ('0.08629344349280765',) no score found for photo 1340584333 We are sending mail with results at report@fotonower.com args[1340584329] : ('0.08629344349280765',) no score found for photo 1340584329 We are sending mail with results at report@fotonower.com args[1340584325] : ('0.08629344349280765',) no score found for photo 1340584325 We are sending mail with results at report@fotonower.com args[1340584319] : ('0.08629344349280765',) no score found for photo 1340584319 We are sending mail with results at report@fotonower.com args[1340584315] : ('0.08629344349280765',) no score found for photo 1340584315 We are sending mail with results at report@fotonower.com refus_total : 0.08629344349280765 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=20961943 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_P20961943_03-03-2025_06_33_01.pdf results_Auto_P20961943_03-03-2025_06_33_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20961943','results_Auto_P20961943_03-03-2025_06_33_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf','pdf','','0.37','0.08629344349280765') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20961943]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] map_info['map_portfolio_photo'] : {20961943: [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315, 1340584265, 1340584261, 1340584259, 1340584256, 1340584254, 1340584224, 1340584218, 1340584212, 1340584210, 1340584208, 1340584207, 1340584179, 1340584173, 1340584168, 1340584167, 1340584165, 1340584143, 1340584139, 1340584136, 1340584135, 1340584093, 1340584087, 1340584085, 1340584084, 1340584082, 1340584057, 1340584055, 1340584047, 1340584036, 1340584016, 1340584010, 1340584004, 1340584002, 1340584000, 1340583999, 1340583976, 1340583974, 1340583972, 1340583969, 1340583940, 1340583936, 1340583930, 1340583925, 1340583923, 1340583920, 1340583894, 1340583893, 1340583884, 1340583844, 1340583836, 1340583834, 1340583832, 1340583830, 1340583699, 1340583697, 1340583635, 1340583174, 1340583169, 1340583167, 1340583164, 1340583163, 1340583138, 1340583135, 1340583133]} final : False mtd_id 4302 list_pids : [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] 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, '2627927') ('4302', '20961943', '1340584376', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584333', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584329', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584325', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584319', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584315', None, None, None, None, None, '2627927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '20961943', '1340584376', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584333', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584329', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584325', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584319', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584315', None, None, None, None, None, '2627927')] time used for this insertion : 0.015825271606445312 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.857978105545044 time spend to save output : 0.016039133071899414 total time spend for step 4 : 6.874017238616943 step5:split_time_score Mon Mar 3 06:33:08 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 : ['20961943'] 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 : [('20961943',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20961943) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340584315: {'path': 'temp/1740979981_557804_1340584315_f250130b560c7575b718e24e07b2642f.jpg', 'extension': 'jpg'}, 1340584319: {'path': 'temp/1740979981_557804_1340584319_b5558f0ba6815de99e2e40f978c2c508.jpg', 'extension': 'jpg'}, 1340584325: {'path': 'temp/1740979981_557804_1340584325_7940531d4807bfec71383e72f611f165.jpg', 'extension': 'jpg'}, 1340584329: {'path': 'temp/1740979981_557804_1340584329_62f8b7db9e4b26b413c4afa4afdd5adb.jpg', 'extension': 'jpg'}, 1340584333: {'path': 'temp/1740979981_557804_1340584333_e7f3ed369244a8c8d5d4df2685747e61.jpg', 'extension': 'jpg'}, 1340584376: {'path': 'temp/1740979981_557804_1340584376_b91d033086dda0d047ebf41e147228c2.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 = 20961943; (('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 = 20961943 group by h (('06', 70),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20961943 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 (20961943) 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 (20961943) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20961943 Nombre de photos uploadées : 70 / 23040 (0%) 03032025 20961943 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 03032025 20961943 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1340583138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2529476e6e1a3527d113ed6b71a28343.jpg', 'username': None, 'uploaded_at': 1740978978, 'text': 'image_03032025_06_15_23_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340583135, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7d2dc9d53a11cf294bdd3348df7f7516.jpg', 'username': None, 'uploaded_at': 1740978978, 'text': 'image_03032025_06_15_33_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340583133, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ccf2556a574934ad2e58331facc6b04e.jpg', 'username': None, 'uploaded_at': 1740978978, 'text': 'image_03032025_06_15_44_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340583174, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4191b244eb0ce68e490b35bc7b6967a1.jpg', 'username': None, 'uploaded_at': 1740979039, 'text': 'image_03032025_06_15_54_010143m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032835006713867188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20961943, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029890775680541992 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= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1641641, 'mtr_portfolio_id': 20961064, 'dashboard_result_id': 9157785, '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_P20961064_03-03-2025_06_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20961066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961077, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1641641, 'mtr_portfolio_id': 20961514, 'dashboard_result_id': 9157786, '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_P20961514_03-03-2025_06_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961529, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1641641, 'mtr_portfolio_id': 20961943, 'dashboard_result_id': 9157787, '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_P20961943_03-03-2025_06_30_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20961946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961957, '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 = 20961064 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': 2627854, 'mtr_portfolio_id': 20961064, 'created_at': datetime.datetime(2025, 3, 3, 6, 2, 31), 'result': '0.07413185946192856', 'result_long': None, 'result_double': None}] Qualite : 0.07413185946192856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20961064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961064_03-03-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20961064 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_P20961064_03-03-2025_06_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20961066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961077, 'pht': 3726}}" where mtr_portfolio_id = 20961064 and dashboard_run_id = 1641641 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`=20961064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9157785, 0.07413185946192856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961064_03-03-2025_06_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20961066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961077, '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 = 20961514 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': 2627897, 'mtr_portfolio_id': 20961514, 'created_at': datetime.datetime(2025, 3, 3, 6, 19), 'result': '0.08101553880303618', 'result_long': None, 'result_double': None}] Qualite : 0.08101553880303618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20961514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961514_03-03-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20961514 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_P20961514_03-03-2025_06_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961529, 'pht': 3726}}" where mtr_portfolio_id = 20961514 and dashboard_run_id = 1641641 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`=20961514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9157786, 0.08101553880303618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961514_03-03-2025_06_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961529, '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 = 20961943 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': 2627927, 'mtr_portfolio_id': 20961943, 'created_at': datetime.datetime(2025, 3, 3, 6, 33), 'result': '0.08629344349280765', 'result_long': None, 'result_double': None}] Qualite : 0.08629344349280765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20961943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20961943 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_P20961943_03-03-2025_06_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20961946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961957, 'pht': 3726}}" where mtr_portfolio_id = 20961943 and dashboard_run_id = 1641641 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`=20961943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9157787, 0.08629344349280765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20961946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961957, '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 (20961064,20961514,20961943) result : ((1340581625,), (1340581626,), (1340581627,), (1340581628,), (1340581633,), (1340581652,), (1340581658,), (1340581664,), (1340581693,), (1340581694,), (1340581716,), (1340581717,), (1340581724,), (1340581729,), (1340581734,), (1340581751,), (1340581752,), (1340581753,), (1340581754,), (1340581777,), (1340581778,), (1340581779,), (1340581780,), (1340581791,), (1340581797,), (1340581819,), (1340581830,), (1340581836,), (1340581838,), (1340581856,), (1340581858,), (1340581860,), (1340581862,), (1340581866,), (1340581877,), (1340581904,), (1340581906,), (1340581908,), (1340581909,), (1340581913,), (1340581932,), (1340581934,), (1340581937,), (1340581938,), (1340581942,), (1340581976,), (1340581987,), (1340581993,), (1340581994,), (1340581998,), (1340582002,), (1340582019,), (1340582021,), (1340582024,), (1340582025,), (1340582066,), (1340582070,), (1340582073,), (1340582074,), (1340582077,), (1340582079,), (1340582126,), (1340582137,), (1340582142,), (1340582147,), (1340582149,), (1340582152,), (1340582154,), (1340582155,), (1340582157,), (1340582184,), (1340582168,), (1340582172,), (1340582175,), (1340582180,), (1340582486,), (1340582511,), (1340582514,), (1340582547,), (1340582567,), (1340582571,), (1340582572,), (1340582574,), (1340582580,), (1340582586,), (1340582609,), (1340582622,), (1340582627,), (1340582629,), (1340582635,), (1340582658,), (1340582659,), (1340582661,), (1340582663,), (1340582713,), (1340582714,), (1340582717,), (1340582719,), (1340582724,), (1340582741,), (1340582744,), (1340582745,), (1340582750,), (1340582781,), (1340582794,), (1340582801,), (1340582805,), (1340582809,), (1340582813,), (1340582828,), (1340582831,), (1340582834,), (1340582839,), (1340582853,), (1340582883,), (1340582885,), (1340582887,), (1340582890,), (1340582894,), (1340582912,), (1340582914,), (1340582915,), (1340582917,), (1340582923,), (1340582954,), (1340582956,), (1340582958,), (1340582962,), (1340583004,), (1340583005,), (1340583007,), (1340583009,), (1340583014,), (1340583021,), (1340583049,), (1340583053,), (1340583055,), (1340583057,), (1340583062,), (1340583080,), (1340583081,), (1340583084,), (1340583087,), (1340583093,), (1340583097,), (1340583139,), (1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20961943]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] map_info['map_portfolio_photo'] : {20961943: [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315, 1340584265, 1340584261, 1340584259, 1340584256, 1340584254, 1340584224, 1340584218, 1340584212, 1340584210, 1340584208, 1340584207, 1340584179, 1340584173, 1340584168, 1340584167, 1340584165, 1340584143, 1340584139, 1340584136, 1340584135, 1340584093, 1340584087, 1340584085, 1340584084, 1340584082, 1340584057, 1340584055, 1340584047, 1340584036, 1340584016, 1340584010, 1340584004, 1340584002, 1340584000, 1340583999, 1340583976, 1340583974, 1340583972, 1340583969, 1340583940, 1340583936, 1340583930, 1340583925, 1340583923, 1340583920, 1340583894, 1340583893, 1340583884, 1340583844, 1340583836, 1340583834, 1340583832, 1340583830, 1340583699, 1340583697, 1340583635, 1340583174, 1340583169, 1340583167, 1340583164, 1340583163, 1340583138, 1340583135, 1340583133]} final : True mtd_id 4302 list_pids : [1340584376, 1340584333, 1340584329, 1340584325, 1340584319, 1340584315] Looping around the photos to save general results len do output : 1 /20961943Didn'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, '2627927') ('4302', '20961943', '1340584376', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584333', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584329', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584325', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584319', None, None, None, None, None, '2627927') ('4302', None, None, None, None, None, None, None, '2627927') ('4302', '20961943', '1340584315', None, None, None, None, None, '2627927') 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', None, '20961943', 'None', None, None, None, None, '2627927'), ('4302', '20961943', '1340584376', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584333', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584329', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584325', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584319', None, None, None, None, None, '2627927'), ('4302', '20961943', '1340584315', None, None, None, None, None, '2627927')] time used for this insertion : 0.013275384902954102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2963402271270752 time spend to save output : 0.013441324234008789 total time spend for step 5 : 0.309781551361084 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 (2627927) 2.26user 2.69system 0:14.06elapsed 35%CPU (0avgtext+0avgdata 158872maxresident)k 240inputs+17904outputs (3major+71481minor)pagefaults 0swaps