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 : 729504 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 (2614860) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2614860) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826103 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2614860'] with mtr_portfolio_ids : ['20826103'] and first list_photo_ids : [] new path : /proc/729504/ Name: python3 Umask: 0002 State: R (running) Tgid: 729504 Ngid: 0 Pid: 729504 PPid: 729502 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 729504 NSpid: 729504 NSpgid: 724364 NSsid: 724364 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98416 kB VmRSS: 98416 kB RssAnon: 59768 kB RssFile: 38648 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 49 nonvoluntary_ctxt_switches: 63 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '729504', 'Ngid': '0', 'Pid': '729504', 'PPid': '729502', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '729504', 'NSpid': '729504', 'NSpgid': '724364', 'NSsid': '724364', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98416 kB', 'VmRSS': '98416 kB', 'RssAnon': '59768 kB', 'RssFile': '38648 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '49', 'nonvoluntary_ctxt_switches': '63'} ('datou_batch_current', '729504', '1106844', '0', '1106844', '865592', '98416', b'', 'marlene', '2614860') 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 (20826103) 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 (2614860 ) ) 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 (20826103) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339677682, 'portfolio_id': 20826103}, {'photo_id': 1339677649, 'portfolio_id': 20826103}, {'photo_id': 1339677646, 'portfolio_id': 20826103}, {'photo_id': 1339677642, 'portfolio_id': 20826103}, {'photo_id': 1339677638, 'portfolio_id': 20826103}, {'photo_id': 1339677634, 'portfolio_id': 20826103}, {'photo_id': 1339677625, 'portfolio_id': 20826103}, {'photo_id': 1339677623, 'portfolio_id': 20826103}, {'photo_id': 1339677621, 'portfolio_id': 20826103}, {'photo_id': 1339677619, 'portfolio_id': 20826103}, {'photo_id': 1339677596, 'portfolio_id': 20826103}, {'photo_id': 1339677594, 'portfolio_id': 20826103}, {'photo_id': 1339677591, 'portfolio_id': 20826103}, {'photo_id': 1339677582, 'portfolio_id': 20826103}, {'photo_id': 1339677570, 'portfolio_id': 20826103}, {'photo_id': 1339677567, 'portfolio_id': 20826103}, {'photo_id': 1339677526, 'portfolio_id': 20826103}, {'photo_id': 1339677522, 'portfolio_id': 20826103}, {'photo_id': 1339677520, 'portfolio_id': 20826103}, {'photo_id': 1339677518, 'portfolio_id': 20826103}, {'photo_id': 1339677494, 'portfolio_id': 20826103}, {'photo_id': 1339677492, 'portfolio_id': 20826103}, {'photo_id': 1339677489, 'portfolio_id': 20826103}, {'photo_id': 1339677486, 'portfolio_id': 20826103}, {'photo_id': 1339677484, 'portfolio_id': 20826103}, {'photo_id': 1339677481, 'portfolio_id': 20826103}, {'photo_id': 1339677469, 'portfolio_id': 20826103}, {'photo_id': 1339677467, 'portfolio_id': 20826103}, {'photo_id': 1339677464, 'portfolio_id': 20826103}, {'photo_id': 1339677461, 'portfolio_id': 20826103}, {'photo_id': 1339677458, 'portfolio_id': 20826103}, {'photo_id': 1339677456, 'portfolio_id': 20826103}, {'photo_id': 1339677426, 'portfolio_id': 20826103}, {'photo_id': 1339677423, 'portfolio_id': 20826103}, {'photo_id': 1339677421, 'portfolio_id': 20826103}, {'photo_id': 1339677418, 'portfolio_id': 20826103}, {'photo_id': 1339677404, 'portfolio_id': 20826103}, {'photo_id': 1339677402, 'portfolio_id': 20826103}, {'photo_id': 1339677400, 'portfolio_id': 20826103}, {'photo_id': 1339677397, 'portfolio_id': 20826103}, {'photo_id': 1339677394, 'portfolio_id': 20826103}, {'photo_id': 1339677392, 'portfolio_id': 20826103}, {'photo_id': 1339677298, 'portfolio_id': 20826103}, {'photo_id': 1339677296, 'portfolio_id': 20826103}, {'photo_id': 1339677294, 'portfolio_id': 20826103}, {'photo_id': 1339677292, 'portfolio_id': 20826103}, {'photo_id': 1339677277, 'portfolio_id': 20826103}, {'photo_id': 1339677276, 'portfolio_id': 20826103}, {'photo_id': 1339677275, 'portfolio_id': 20826103}, {'photo_id': 1339677273, 'portfolio_id': 20826103}, {'photo_id': 1339677271, 'portfolio_id': 20826103}, {'photo_id': 1339677269, 'portfolio_id': 20826103}, {'photo_id': 1339677242, 'portfolio_id': 20826103}, {'photo_id': 1339677236, 'portfolio_id': 20826103}, {'photo_id': 1339677224, 'portfolio_id': 20826103}, {'photo_id': 1339677222, 'portfolio_id': 20826103}, {'photo_id': 1339677206, 'portfolio_id': 20826103}, {'photo_id': 1339677205, 'portfolio_id': 20826103}, {'photo_id': 1339677200, 'portfolio_id': 20826103}, {'photo_id': 1339677196, 'portfolio_id': 20826103}, {'photo_id': 1339677193, 'portfolio_id': 20826103}, {'photo_id': 1339677189, 'portfolio_id': 20826103}, {'photo_id': 1339677176, 'portfolio_id': 20826103}, {'photo_id': 1339677172, 'portfolio_id': 20826103}, {'photo_id': 1339677162, 'portfolio_id': 20826103}, {'photo_id': 1339677145, 'portfolio_id': 20826103}, {'photo_id': 1339677140, 'portfolio_id': 20826103}, {'photo_id': 1339677137, 'portfolio_id': 20826103}, {'photo_id': 1339677128, 'portfolio_id': 20826103}, {'photo_id': 1339677125, 'portfolio_id': 20826103}, {'photo_id': 1339677121, 'portfolio_id': 20826103}, {'photo_id': 1339677115, 'portfolio_id': 20826103}, {'photo_id': 1339677098, 'portfolio_id': 20826103}, {'photo_id': 1339677057, 'portfolio_id': 20826103}, {'photo_id': 1339677053, 'portfolio_id': 20826103}, {'photo_id': 1339677050, 'portfolio_id': 20826103}, {'photo_id': 1339677044, 'portfolio_id': 20826103}, {'photo_id': 1339677040, 'portfolio_id': 20826103}] map_portfolio_id_photo_id: {20826103: [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567, 1339677526, 1339677522, 1339677520, 1339677518, 1339677494, 1339677492, 1339677489, 1339677486, 1339677484, 1339677481, 1339677469, 1339677467, 1339677464, 1339677461, 1339677458, 1339677456, 1339677426, 1339677423, 1339677421, 1339677418, 1339677404, 1339677402, 1339677400, 1339677397, 1339677394, 1339677392, 1339677298, 1339677296, 1339677294, 1339677292, 1339677277, 1339677276, 1339677275, 1339677273, 1339677271, 1339677269, 1339677242, 1339677236, 1339677224, 1339677222, 1339677206, 1339677205, 1339677200, 1339677196, 1339677193, 1339677189, 1339677176, 1339677172, 1339677162, 1339677145, 1339677140, 1339677137, 1339677128, 1339677125, 1339677121, 1339677115, 1339677098, 1339677057, 1339677053, 1339677050, 1339677044, 1339677040]} ##### 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.028534650802612305 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 26 07:02:57 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 (20826103) 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 : 20826103 get user id for portfolio 20826103 get sub ptf for main ptf 20826103, type 3726 and hashtags ['environnement', 'metal', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'kraft', 'plastique', 'Carton_brun', 'papier', 'mal_croppe', 'flou', 'Carton_gris'] 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`=20826103 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','kraft','plastique','Carton_brun','papier','mal_croppe','flou','Carton_gris')) 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`=20826103 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','kraft','plastique','Carton_brun','papier','mal_croppe','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20826103, 'sub_port_id': 20826131, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462019, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'flou': {'main_port_id': 20826103, 'sub_port_id': 20826132, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462020, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20826103, 'sub_port_id': 20826133, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462021, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'plastique': {'main_port_id': 20826103, 'sub_port_id': 20826134, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462022, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'mal_croppe': {'main_port_id': 20826103, 'sub_port_id': 20826135, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462023, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'autre_refus': {'main_port_id': 20826103, 'sub_port_id': 20826136, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462024, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'Carton_brun': {'main_port_id': 20826103, 'sub_port_id': 20826137, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462025, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'cartonnette': {'main_port_id': 20826103, 'sub_port_id': 20826138, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462026, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'kraft': {'main_port_id': 20826103, 'sub_port_id': 20826139, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462027, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'papier': {'main_port_id': 20826103, 'sub_port_id': 20826140, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462028, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'environnement': {'main_port_id': 20826103, 'sub_port_id': 20826141, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462029, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}, 'metal': {'main_port_id': 20826103, 'sub_port_id': 20826142, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462030, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 49, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20826131 , 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=20826103 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 (20826131) result : ((1339677376,), (1339677377,), (1339677378,), (1339677433,), (1339677434,), (1339677438,), (1339677500,), (1339677501,), (1339677502,), (1339677503,), (1339677555,), (1339677583,), (1339677584,), (1339677585,), (1339677586,), (1339677587,), (1339677708,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826132 , 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=20826103 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 (20826132) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826133 , 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=20826103 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 (20826133) result : ((1339677244,), (1339677258,), (1339677259,), (1339677260,), (1339677261,), (1339677262,), (1339677366,), (1339677367,), (1339677368,), (1339677369,), (1339677370,), (1339677431,), (1339677436,), (1339677495,), (1339677496,), (1339677540,), (1339677541,), (1339677543,), (1339677544,), (1339677545,), (1339677546,), (1339677571,), (1339677572,), (1339677573,), (1339677574,), (1339677575,), (1339677640,), (1339677653,), (1339677654,), (1339677702,), (1339677703,), (1339677704,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826134 , 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=20826103 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 (20826134) result : ((1339677251,), (1339677266,), (1339677267,), (1339677381,), (1339677505,), (1339677563,), (1339677564,), (1339677590,), (1339677664,), (1339677665,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826135 , 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=20826103 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 (20826135) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826136 , 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=20826103 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 (20826136) result : ((1339677245,), (1339677246,), (1339677247,), (1339677263,), (1339677357,), (1339677371,), (1339677372,), (1339677432,), (1339677497,), (1339677498,), (1339677547,), (1339677548,), (1339677549,), (1339677550,), (1339677551,), (1339677552,), (1339677577,), (1339677578,), (1339677579,), (1339677580,), (1339677657,), (1339677658,), (1339677659,), (1339677705,), (1339677706,), (1339677707,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826137 , 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=20826103 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 (20826137) result : ((1339677249,), (1339677358,), (1339677380,), (1339677440,), (1339677441,), (1339677442,), (1339677443,), (1339677444,), (1339677559,), (1339677560,), (1339677561,), (1339677562,), (1339677589,), (1339677661,), (1339677662,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826138 , 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=20826103 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 (20826138) result : ((1339677248,), (1339677264,), (1339677265,), (1339677379,), (1339677435,), (1339677439,), (1339677504,), (1339677557,), (1339677558,), (1339677660,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826139 , 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=20826103 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 (20826139) result : ((1339677446,), (1339677506,), (1339677668,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826140 , 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=20826103 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 (20826140) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826141 , 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=20826103 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 (20826141) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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 20826142 , 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=20826103 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 (20826142) result : ((1339677508,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20826103) result : ((1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) 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 (1339677200,1339677400) 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`=20826103 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','kraft','plastique','Carton_brun','papier','mal_croppe','flou','Carton_gris')) 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`=20826103 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','autre_refus','Teint_Dans_La_Masse','cartonnette','kraft','plastique','Carton_brun','papier','mal_croppe','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20826103, 'sub_port_id': 20826143, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462031, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'flou': {'main_port_id': 20826103, 'sub_port_id': 20826144, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462032, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'Teint_Dans_La_Masse': {'main_port_id': 20826103, 'sub_port_id': 20826145, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462033, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'plastique': {'main_port_id': 20826103, 'sub_port_id': 20826146, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462034, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'mal_croppe': {'main_port_id': 20826103, 'sub_port_id': 20826147, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462035, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'autre_refus': {'main_port_id': 20826103, 'sub_port_id': 20826148, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462036, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'Carton_brun': {'main_port_id': 20826103, 'sub_port_id': 20826149, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462037, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'cartonnette': {'main_port_id': 20826103, 'sub_port_id': 20826150, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462038, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'kraft': {'main_port_id': 20826103, 'sub_port_id': 20826151, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462039, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'papier': {'main_port_id': 20826103, 'sub_port_id': 20826152, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462040, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'environnement': {'main_port_id': 20826103, 'sub_port_id': 20826153, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462041, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}, 'metal': {'main_port_id': 20826103, 'sub_port_id': 20826154, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13462042, 'last_updated_at': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 6, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 6, 50)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826143,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826131 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826144,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826132 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826145,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826133 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826146,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826134 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20826154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20826142 lien utilise dans velours : https://www.fotonower.com/velours/20826143,20826144,20826145,20826146,20826147,20826148,20826149,20826150,20826151,20826152,20826153,20826154?tags=Carton_gris,flou,Teint_Dans_La_Masse,plastique,mal_croppe,autre_refus,Carton_brun,cartonnette,kraft,papier,environnement,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20826103]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] map_info['map_portfolio_photo'] : {20826103: [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567, 1339677526, 1339677522, 1339677520, 1339677518, 1339677494, 1339677492, 1339677489, 1339677486, 1339677484, 1339677481, 1339677469, 1339677467, 1339677464, 1339677461, 1339677458, 1339677456, 1339677426, 1339677423, 1339677421, 1339677418, 1339677404, 1339677402, 1339677400, 1339677397, 1339677394, 1339677392, 1339677298, 1339677296, 1339677294, 1339677292, 1339677277, 1339677276, 1339677275, 1339677273, 1339677271, 1339677269, 1339677242, 1339677236, 1339677224, 1339677222, 1339677206, 1339677205, 1339677200, 1339677196, 1339677193, 1339677189, 1339677176, 1339677172, 1339677162, 1339677145, 1339677140, 1339677137, 1339677128, 1339677125, 1339677121, 1339677115, 1339677098, 1339677057, 1339677053, 1339677050, 1339677044, 1339677040]} final : False mtd_id 4302 list_pids : [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] Looping around the photos to save general results len do output : 1 /20826103. 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, '2614860') ('4302', '20826103', '1339677682', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677649', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677646', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677642', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677638', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677634', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677625', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677623', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677621', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677619', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677596', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677594', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677591', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677582', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677570', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677567', None, None, None, None, None, '2614860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '20826103', "{'Carton_gris': 20826131, 'flou': 20826132, 'Teint_Dans_La_Masse': 20826133, 'plastique': 20826134, 'mal_croppe': 20826135, 'autre_refus': 20826136, 'Carton_brun': 20826137, 'cartonnette': 20826138, 'kraft': 20826139, 'papier': 20826140, 'environnement': 20826141, 'metal': 20826142}", None, None, None, None, '2614860'), ('4302', '20826103', '1339677682', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677649', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677646', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677642', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677638', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677634', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677625', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677623', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677621', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677619', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677596', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677594', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677591', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677582', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677570', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677567', None, None, None, None, None, '2614860')] time used for this insertion : 0.13658785820007324 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9483358860015869 time spend to save output : 0.13700556755065918 total time spend for step 1 : 1.085341453552246 step2:final Wed Feb 26 07:02: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 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 (20826103) 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 20826103 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339677057,1339677053,1339677050,1339677044,1339677040,1339677128,1339677125,1339677121,1339677115,1339677176,1339677098,1339677172,1339677162,1339677145,1339677140,1339677137,1339677206,1339677205,1339677200,1339677196,1339677193,1339677189,1339677242,1339677236,1339677224,1339677222,1339677277,1339677276,1339677275,1339677273,1339677271,1339677269,1339677298,1339677296,1339677294,1339677292,1339677404,1339677402,1339677400,1339677397,1339677394,1339677392,1339677426,1339677423,1339677421,1339677418,1339677469,1339677467,1339677464,1339677461,1339677458,1339677456,1339677494,1339677492,1339677489,1339677486,1339677484,1339677481,1339677526,1339677522,1339677520,1339677518,1339677596,1339677594,1339677591,1339677582,1339677570,1339677567,1339677625,1339677623,1339677621,1339677619,1339677649,1339677646,1339677642,1339677638,1339677634,1339677682); 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([20826103]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} new output for save of step final : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] map_info['map_portfolio_photo'] : {20826103: [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567, 1339677526, 1339677522, 1339677520, 1339677518, 1339677494, 1339677492, 1339677489, 1339677486, 1339677484, 1339677481, 1339677469, 1339677467, 1339677464, 1339677461, 1339677458, 1339677456, 1339677426, 1339677423, 1339677421, 1339677418, 1339677404, 1339677402, 1339677400, 1339677397, 1339677394, 1339677392, 1339677298, 1339677296, 1339677294, 1339677292, 1339677277, 1339677276, 1339677275, 1339677273, 1339677271, 1339677269, 1339677242, 1339677236, 1339677224, 1339677222, 1339677206, 1339677205, 1339677200, 1339677196, 1339677193, 1339677189, 1339677176, 1339677172, 1339677162, 1339677145, 1339677140, 1339677137, 1339677128, 1339677125, 1339677121, 1339677115, 1339677098, 1339677057, 1339677053, 1339677050, 1339677044, 1339677040]} final : False mtd_id 4302 list_pids : [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] Looping around the photos to save general results len do output : 16 /1339677682.Didn't retrieve data . /1339677649.Didn't retrieve data . /1339677646.Didn't retrieve data . /1339677642.Didn't retrieve data . /1339677638.Didn't retrieve data . /1339677634.Didn't retrieve data . /1339677625.Didn't retrieve data . /1339677623.Didn't retrieve data . /1339677621.Didn't retrieve data . /1339677619.Didn't retrieve data . /1339677596.Didn't retrieve data . /1339677594.Didn't retrieve data . /1339677591.Didn't retrieve data . /1339677582.Didn't retrieve data . /1339677570.Didn't retrieve data . /1339677567.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, '2614860') ('4302', '20826103', '1339677682', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677649', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677646', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677642', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677638', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677634', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677625', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677623', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677621', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677619', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677596', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677594', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677591', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677582', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677570', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677567', None, None, None, None, None, '2614860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '20826103', '1339677682', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677649', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677646', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677642', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677638', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677634', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677625', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677623', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677621', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677619', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677596', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677594', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677591', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677582', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677570', '0.09778675087806922', None, None, None, None, '2614860'), ('4302', '20826103', '1339677567', '0.09778675087806922', None, None, None, None, '2614860')] time used for this insertion : 0.10240411758422852 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.19584250450134277 time spend to save output : 0.10300850868225098 total time spend for step 2 : 0.29885101318359375 step3:velours_tree Wed Feb 26 07:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20826103: [{'Carton_gris': 20826131, 'flou': 20826132, 'Teint_Dans_La_Masse': 20826133, 'plastique': 20826134, 'mal_croppe': 20826135, 'autre_refus': 20826136, 'Carton_brun': 20826137, 'cartonnette': 20826138, 'kraft': 20826139, 'papier': 20826140, 'environnement': 20826141, 'metal': 20826142}]} input_args_next_step : {20826103: ()} output_args : {20826103: [{'Carton_gris': 20826131, 'flou': 20826132, 'Teint_Dans_La_Masse': 20826133, 'plastique': 20826134, 'mal_croppe': 20826135, 'autre_refus': 20826136, 'Carton_brun': 20826137, 'cartonnette': 20826138, 'kraft': 20826139, 'papier': 20826140, 'environnement': 20826141, 'metal': 20826142}]} args : 20826103 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20826131, 'flou': 20826132, 'Teint_Dans_La_Masse': 20826133, 'plastique': 20826134, 'mal_croppe': 20826135, 'autre_refus': 20826136, 'Carton_brun': 20826137, 'cartonnette': 20826138, 'kraft': 20826139, 'papier': 20826140, 'environnement': 20826141, 'metal': 20826142},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20826103) 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([20826103]) 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.40390539169311523 time spend to save output : 5.7697296142578125e-05 total time spend for step 3 : 0.4039630889892578 step4:send_mail_cod Wed Feb 26 07:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} input_args_next_step : {1339677682: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677682 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677649 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677646 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677642 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677638 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677634 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677625 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677623 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677621 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677619 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677596 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677594 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677591 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677582 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677570 depend.output_id : 0 input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ()} output_args : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',)} args : 1339677567 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 : {20826103: [{'Carton_gris': 20826131, 'flou': 20826132, 'Teint_Dans_La_Masse': 20826133, 'plastique': 20826134, 'mal_croppe': 20826135, 'autre_refus': 20826136, 'Carton_brun': 20826137, 'cartonnette': 20826138, 'kraft': 20826139, 'papier': 20826140, 'environnement': 20826141, 'metal': 20826142}]} input_args_next_step : {1339677682: ('0.09778675087806922',), 1339677649: ('0.09778675087806922',), 1339677646: ('0.09778675087806922',), 1339677642: ('0.09778675087806922',), 1339677638: ('0.09778675087806922',), 1339677634: ('0.09778675087806922',), 1339677625: ('0.09778675087806922',), 1339677623: ('0.09778675087806922',), 1339677621: ('0.09778675087806922',), 1339677619: ('0.09778675087806922',), 1339677596: ('0.09778675087806922',), 1339677594: ('0.09778675087806922',), 1339677591: ('0.09778675087806922',), 1339677582: ('0.09778675087806922',), 1339677570: ('0.09778675087806922',), 1339677567: ('0.09778675087806922',), 20826103: ()} output_args : {20826103: [{'Carton_gris': 20826131, 'flou': 20826132, 'Teint_Dans_La_Masse': 20826133, 'plastique': 20826134, 'mal_croppe': 20826135, 'autre_refus': 20826136, 'Carton_brun': 20826137, 'cartonnette': 20826138, 'kraft': 20826139, 'papier': 20826140, 'environnement': 20826141, 'metal': 20826142}]} args : 20826103 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 :17, first value : ('0.09778675087806922',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20826103) 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 (1339677682,1339677649,1339677646,1339677642,1339677638,1339677634,1339677625,1339677623,1339677621,1339677619,1339677596,1339677594,1339677591,1339677582,1339677570,1339677567) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339677567 begin to download photo : 1339677594 begin to download photo : 1339677623 begin to download photo : 1339677642 download finish for photo 1339677623 begin to download photo : 1339677625 download finish for photo 1339677594 begin to download photo : 1339677596 download finish for photo 1339677642 begin to download photo : 1339677646 download finish for photo 1339677567 begin to download photo : 1339677570 download finish for photo 1339677625 begin to download photo : 1339677634 download finish for photo 1339677596 begin to download photo : 1339677619 download finish for photo 1339677646 begin to download photo : 1339677649 download finish for photo 1339677570 begin to download photo : 1339677582 download finish for photo 1339677634 begin to download photo : 1339677638 download finish for photo 1339677649 begin to download photo : 1339677682 download finish for photo 1339677582 begin to download photo : 1339677591 download finish for photo 1339677619 begin to download photo : 1339677621 download finish for photo 1339677638 download finish for photo 1339677682 download finish for photo 1339677621 download finish for photo 1339677591 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208261321740549780/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P20826103_26-02-2025_07_03_00.pdf 20826132 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=20826132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208261321740549780 20826134 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=20826134 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677251: '1740549014_2416212_1339677115_6e9c177b93e1afa6b4147f20524a995c_rle_crop_3687174154_0.png', 1339677266: '1740549033_2416540_1339677162_3db7e4e2ce7bd9b2cf5901d7bd440f75_rle_crop_3687174175_0.png', 1339677267: '1740549033_2416540_1339677137_dadc7d8604c51f43385e9565ad0396f9_rle_crop_3687174219_0.png', 1339677381: '1740549133_2417609_1339677189_06a41c708f85baed8f102bcea8f7d4fb_rle_crop_3687174686_0.png', 1339677505: '1740549370_2420144_1339677394_f20942dcc470607db0019a7da1142ec2_rle_crop_3687175594_0.png', 1339677563: '1740549452_2421128_1339677467_b1867c0698889f4a6888e702438c3a6f_rle_crop_3687175964_0.png', 1339677564: '1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176069_0.png', 1339677590: '1740549472_2421337_1339677492_828174c657300da9ca241ac0c325def4_rle_crop_3687176129_0.png', 1339677664: '1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178549_0.png', 1339677665: '1740549613_2422601_1339677570_490d87db579fd80bda2c5f162ebd470e_rle_crop_3687178702_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c76f0288d63d4e54bdb7917947142211_89904589.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2ee867b72935f06cce155a6c417b50d5_81436038.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f24aa5562a17665d4a69d84facca4f72_34381986.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f82d3cf4333bc65b15d8684dfbe4518e_21549631.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c29743bf08eae36ab1d133f8db02db5f_86601503.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9e2ba2a29b37561d7b3899069407ea24_64166163.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9a0534f6aeafbbf99b6581a41c61badc_82579007.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/461a1de9961307ddc1206c9136ff0a61_23144039.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a4a511d08ad624a1c03541ce9e8eb475_30126513.png change filename to text .imagette208261341740549780/ imagette208261341740549780/1740549472_2421337_1339677492_828174c657300da9ca241ac0c325def4_rle_crop_3687176129_0.png.png imagette208261341740549780/1740549033_2416540_1339677162_3db7e4e2ce7bd9b2cf5901d7bd440f75_rle_crop_3687174175_0.png.png imagette208261341740549780/1740549613_2422601_1339677570_490d87db579fd80bda2c5f162ebd470e_rle_crop_3687178702_0.png.png imagette208261341740549780/1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178549_0.png.png imagette208261341740549780/1740549452_2421128_1339677467_b1867c0698889f4a6888e702438c3a6f_rle_crop_3687175964_0.png.png imagette208261341740549780/1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176069_0.png.png imagette208261341740549780/1740549033_2416540_1339677137_dadc7d8604c51f43385e9565ad0396f9_rle_crop_3687174219_0.png.png imagette208261341740549780/1740549370_2420144_1339677394_f20942dcc470607db0019a7da1142ec2_rle_crop_3687175594_0.png.png imagette208261341740549780/1740549014_2416212_1339677115_6e9c177b93e1afa6b4147f20524a995c_rle_crop_3687174154_0.png.png imagette208261341740549780/1740549133_2417609_1339677189_06a41c708f85baed8f102bcea8f7d4fb_rle_crop_3687174686_0.png.png imagette208261351740549780/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/91501854e5fd384e55d97e7072ded936_41723042.png imagette208261341740549780 20826135 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=20826135 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208261351740549780 20826136 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=20826136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677550: '1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176117_0.png', 1339677707: '1740549673_2423966_1339677518_8ba394aaaf52e8ce4901f167ac17d74b_rle_crop_3687180191_0.png', 1339677706: '1740549673_2423966_1339677518_8ba394aaaf52e8ce4901f167ac17d74b_rle_crop_3687180193_0.png', 1339677705: '1740549673_2423966_1339677596_b9e686da3842496265624802e45ba14e_bib_crop_3687179596_0.jpg', 1339677659: '1740549613_2422601_1339677570_490d87db579fd80bda2c5f162ebd470e_rle_crop_3687178700_0.png', 1339677658: '1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178547_0.png', 1339677657: '1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178543_0.png', 1339677580: '1740549472_2421337_1339677481_3e23d51413d921a83c876fcc37089fa3_rle_crop_3687176203_0.png', 1339677579: '1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176163_0.png', 1339677578: '1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176146_0.png', 1339677577: '1740549472_2421337_1339677492_828174c657300da9ca241ac0c325def4_rle_crop_3687176134_0.png', 1339677552: '1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176115_0.png', 1339677551: '1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176119_0.png', 1339677245: '1740549014_2416212_1339677125_44cf268893a13e2be0af6f830014ae0d_rle_crop_3687173985_0.png', 1339677549: '1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176112_0.png', 1339677548: '1740549452_2421128_1339677467_b1867c0698889f4a6888e702438c3a6f_rle_crop_3687175960_0.png', 1339677547: '1740549452_2421128_1339677494_e8d564d16dc4660d4c99c59063b60613_rle_crop_3687175862_0.png', 1339677498: '1740549370_2420144_1339677400_da2d4397631a2ce47f257cb2c78e33f6_rle_crop_3687175551_0.png', 1339677497: '1740549370_2420144_1339677402_06a2de4bd77c112061fb1f10a27a8d7e_rle_crop_3687175538_0.png', 1339677432: '1740549271_2419110_1339677296_da0424c30fa127e820c71f76837293fa_rle_crop_3687174959_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4a9aa41e9c2e928226a7cfd5f393910b_47057818.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/84da33358a70f3060edffe917bf37451_54756582.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2263eb9e01d833dc7e830765831839d8_60248276.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/597093e46e5cf6745dc42a6a99fe6e16_31416982.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f83ada1e02ca9c1f0376ca3c53325bc2_22905369.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/76f0abe4831f6d4a2b3a453c40c577c6_57813293.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bdeb85a201b0f3893d11c35790641411_96096163.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/58064b9c4d3890e8e083d53773666e5b_4775561.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ff3738134f95c500ed6b14aac09c1471_70357516.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/516dcfe5762d5cb33fb55c4d3c37017f_58530355.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9d1b6c9314b37901e2133fa99bbac536_83401002.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/50175720f7d1b8c7e37c322444973f48_20567908.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ae2c2eb9246a5feb16e9e6c02fb76ab3_33238251.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/462e8909fe775978593e826e02c4cf24_65330607.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5e422fb6fe01be005c9fd1948c7a38fa_41466420.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6fd68ea14f977511cda93149b67ebfd0_74852594.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e3bb751210126cf3625618be0ba40f6c_11153658.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a044fd27c00f9d797e3ea28546ae1cc6_48116085.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d510db07287e7d38f1615fe7bf30772c_82796898.png change filename to text .imagette208261361740549780/ imagette208261361740549780/1740549452_2421128_1339677467_b1867c0698889f4a6888e702438c3a6f_rle_crop_3687175960_0.png.png imagette208261361740549780/1740549014_2416212_1339677125_44cf268893a13e2be0af6f830014ae0d_rle_crop_3687173985_0.png.png imagette208261361740549780/1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178547_0.png.png imagette208261361740549780/1740549613_2422601_1339677570_490d87db579fd80bda2c5f162ebd470e_rle_crop_3687178700_0.png.png imagette208261361740549780/1740549472_2421337_1339677481_3e23d51413d921a83c876fcc37089fa3_rle_crop_3687176203_0.png.png imagette208261361740549780/1740549370_2420144_1339677402_06a2de4bd77c112061fb1f10a27a8d7e_rle_crop_3687175538_0.png.png imagette208261361740549780/1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176117_0.png.png imagette208261361740549780/1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176163_0.png.png imagette208261361740549780/1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176115_0.png.png imagette208261361740549780/1740549271_2419110_1339677296_da0424c30fa127e820c71f76837293fa_rle_crop_3687174959_0.png.png imagette208261361740549780/1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176146_0.png.png imagette208261361740549780/1740549370_2420144_1339677400_da2d4397631a2ce47f257cb2c78e33f6_rle_crop_3687175551_0.png.png imagette208261361740549780/1740549673_2423966_1339677596_b9e686da3842496265624802e45ba14e_bib_crop_3687179596_0.jpg.jpg imagette208261361740549780/1740549452_2421128_1339677494_e8d564d16dc4660d4c99c59063b60613_rle_crop_3687175862_0.png.png imagette208261361740549780/1740549673_2423966_1339677518_8ba394aaaf52e8ce4901f167ac17d74b_rle_crop_3687180193_0.png.png imagette208261361740549780/1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176119_0.png.png imagette208261361740549780/1740549452_2421128_1339677456_ed4fe460e92ab5c088e1c3cc2d5bc963_rle_crop_3687176112_0.png.png imagette208261361740549780/1740549472_2421337_1339677492_828174c657300da9ca241ac0c325def4_rle_crop_3687176134_0.png.png imagette208261361740549780/1740549673_2423966_1339677518_8ba394aaaf52e8ce4901f167ac17d74b_rle_crop_3687180191_0.png.png imagette208261361740549780/1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178543_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0c39b00aa64bb552da5de1b935992f20_69073512.png imagette208261361740549780 20826138 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=20826138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677248: '1740549014_2416212_1339677125_44cf268893a13e2be0af6f830014ae0d_rle_crop_3687173983_0.png', 1339677264: '1740549033_2416540_1339677162_3db7e4e2ce7bd9b2cf5901d7bd440f75_rle_crop_3687174179_0.png', 1339677265: '1740549033_2416540_1339677140_a6f11103ab4cb7b53f42c87968fb69aa_rle_crop_3687174204_0.png', 1339677379: '1740549133_2417609_1339677196_f2d53ad04baecd58053728ccc1d8858b_rle_crop_3687174653_0.png', 1339677435: '1740549271_2419110_1339677296_da0424c30fa127e820c71f76837293fa_rle_crop_3687174960_0.png', 1339677439: '1740549253_2418762_1339677271_b0188b7b0279fc6a114be0c84483908b_rle_crop_3687175014_0.png', 1339677504: '1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175625_0.png', 1339677557: '1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176095_0.png', 1339677558: '1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176096_0.png', 1339677660: '1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178544_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/1fa6f64affdf983951ce4145752f204f_56412976.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8d665a5ee57c5619d9aa1b63c2ffbc8e_39579667.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2274ef58ad75ba20da3b10ac6ed91ec2_51860564.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/1a0a03efbe6ef746fb923d2ce8706306_39177926.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0753cd2b7b2f65d2ca0502daa72e8225_66170145.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/546bc4b7b237e06147274d9415c51d42_25335982.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/05a23e4545db51260a70917137901952_99137979.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4ee2c706b094dfc5655ab5a032549c28_74705080.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/10e08dade4088674bc8464e0a513e12a_81180915.png change filename to text .imagette208261381740549781/ imagette208261381740549781/1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176096_0.png.png imagette208261381740549781/1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175625_0.png.png imagette208261381740549781/1740549014_2416212_1339677125_44cf268893a13e2be0af6f830014ae0d_rle_crop_3687173983_0.png.png imagette208261381740549781/1740549613_2422601_1339677594_3db921211f520f3f9eee70381a11f9b7_rle_crop_3687178544_0.png.png imagette208261381740549781/1740549253_2418762_1339677271_b0188b7b0279fc6a114be0c84483908b_rle_crop_3687175014_0.png.png imagette208261381740549781/1740549033_2416540_1339677162_3db7e4e2ce7bd9b2cf5901d7bd440f75_rle_crop_3687174179_0.png.png imagette208261381740549781/1740549033_2416540_1339677140_a6f11103ab4cb7b53f42c87968fb69aa_rle_crop_3687174204_0.png.png imagette208261381740549781/1740549271_2419110_1339677296_da0424c30fa127e820c71f76837293fa_rle_crop_3687174960_0.png.png imagette208261381740549781/1740549133_2417609_1339677196_f2d53ad04baecd58053728ccc1d8858b_rle_crop_3687174653_0.png.png imagette208261381740549781/1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176095_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4912cd035c7fdd6f18e20b0b6e58b2ca_36817824.png imagette208261381740549781 20826139 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=20826139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677446: '1740549253_2418762_1339677273_fcedabf781b9848e50197aacba388c09_rle_crop_3687175007_0.png', 1339677506: '1740549370_2420144_1339677402_06a2de4bd77c112061fb1f10a27a8d7e_rle_crop_3687175543_0.png', 1339677668: '1740549613_2422601_1339677567_effe2ba308dd0bcfdffe79363e320724_rle_crop_3687178714_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8411dc0fc5a75d917700270449d11c2c_73618596.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2dfaaad878c0662fd3e22fb45e97ae66_11997044.png change filename to text .imagette208261391740549782/ imagette208261391740549782/1740549613_2422601_1339677567_effe2ba308dd0bcfdffe79363e320724_rle_crop_3687178714_0.png.png imagette208261391740549782/1740549370_2420144_1339677402_06a2de4bd77c112061fb1f10a27a8d7e_rle_crop_3687175543_0.png.png imagette208261391740549782/1740549253_2418762_1339677273_fcedabf781b9848e50197aacba388c09_rle_crop_3687175007_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e00d7caf274a11353879e9de4eb13bb5_38597242.png imagette208261391740549782 20826142 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=20826142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677508: '1740549370_2420144_1339677426_6c5969b437e017710e8ca9dd16424b46_rle_crop_3687175526_0.png'} change filename to text .imagette208261421740549782/ imagette208261421740549782/1740549370_2420144_1339677426_6c5969b437e017710e8ca9dd16424b46_rle_crop_3687175526_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/172f5cd1bcc54d4db399dcf9af9f9210_65549532.png imagette208261421740549782 20826131 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=20826131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677502: '1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175636_0.png', 1339677708: '1740549673_2423966_1339677520_1592ea386146b6df1f11e01636ca30ad_bib_crop_3687180173_0.jpg', 1339677587: '1740549472_2421337_1339677484_116c33292a6a640344b96759b094289b_rle_crop_3687176191_0.png', 1339677586: '1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176176_0.png', 1339677585: '1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176170_0.png', 1339677584: '1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176168_0.png', 1339677583: '1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176149_0.png', 1339677555: '1740549452_2421128_1339677494_e8d564d16dc4660d4c99c59063b60613_rle_crop_3687175854_0.png', 1339677503: '1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175627_0.png', 1339677376: '1740549133_2417609_1339677242_a55499d4eda7da91a37eb93e8d105d0e_rle_crop_3687174579_0.png', 1339677501: '1740549370_2420144_1339677394_f20942dcc470607db0019a7da1142ec2_rle_crop_3687175602_0.png', 1339677500: '1740549370_2420144_1339677426_6c5969b437e017710e8ca9dd16424b46_rle_crop_3687175532_0.png', 1339677438: '1740549253_2418762_1339677298_01e276163341fc52bc2b79650217162c_rle_crop_3687174940_0.png', 1339677434: '1740549271_2419110_1339677292_2e4dcf01a1956d9d34610e3df6cd4213_rle_crop_3687174988_0.png', 1339677433: '1740549271_2419110_1339677296_da0424c30fa127e820c71f76837293fa_rle_crop_3687174966_0.png', 1339677378: '1740549133_2417609_1339677193_94196d8e266cbe17c61c6c55f9eb35ff_rle_crop_3687174664_0.png', 1339677377: '1740549133_2417609_1339677205_bcf168e95b8f63513701bcd02d3e14f6_rle_crop_3687174596_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8f43d0179598a2382e3eaa3d6720d732_56164192.png change filename to text .wget -O 2.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/48331c19a25bc2c07b46f2d3475bdf00_71146907.jpg change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/574b5a8474fb661dcab65f31f48af31c_53665757.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ccd80b02af621366c1f620d40249b48e_59867787.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6d4a17718aff3cf8546c27ca7373e931_55705096.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/79e647e194e3b6c800a62c1529ecd11f_20690346.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0e810c27014dc1957ea147e4317c7e1d_39057341.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ad5989d67a34807de4cf3604671c4261_44879409.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5af7fb78e5a97bf3cbb4aa16811b0e12_6407907.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4ce95c8a087450703318e9b213074a9a_61654562.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/aef4df0a9d74ec6b3d3060e0d4206c9d_16264438.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8a13f6e34c71e5a6e5ce70c9865d8bf8_42738874.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/aa0cdb2e6f0cb3383480307f479ac65f_28090873.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6b65b0f997d803db59bd08d8f0dd204c_11059769.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/520e29999a9bb76ad2eca345c18cd8c9_54409203.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7765820f276cb79e81da470b79d420ad_95237609.png change filename to text .imagette208261311740549782/ imagette208261311740549782/1740549370_2420144_1339677426_6c5969b437e017710e8ca9dd16424b46_rle_crop_3687175532_0.png.png imagette208261311740549782/1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176149_0.png.png imagette208261311740549782/1740549370_2420144_1339677394_f20942dcc470607db0019a7da1142ec2_rle_crop_3687175602_0.png.png imagette208261311740549782/1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176176_0.png.png imagette208261311740549782/1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176168_0.png.png imagette208261311740549782/1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175627_0.png.png imagette208261311740549782/1740549133_2417609_1339677205_bcf168e95b8f63513701bcd02d3e14f6_rle_crop_3687174596_0.png.png imagette208261311740549782/1740549271_2419110_1339677292_2e4dcf01a1956d9d34610e3df6cd4213_rle_crop_3687174988_0.png.png imagette208261311740549782/1740549673_2423966_1339677520_1592ea386146b6df1f11e01636ca30ad_bib_crop_3687180173_0.jpg.jpg imagette208261311740549782/1740549472_2421337_1339677484_116c33292a6a640344b96759b094289b_rle_crop_3687176191_0.png.png imagette208261311740549782/1740549253_2418762_1339677298_01e276163341fc52bc2b79650217162c_rle_crop_3687174940_0.png.png imagette208261311740549782/1740549271_2419110_1339677296_da0424c30fa127e820c71f76837293fa_rle_crop_3687174966_0.png.png imagette208261311740549782/1740549133_2417609_1339677242_a55499d4eda7da91a37eb93e8d105d0e_rle_crop_3687174579_0.png.png imagette208261311740549782/1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176170_0.png.png imagette208261311740549782/1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175636_0.png.png imagette208261311740549782/1740549133_2417609_1339677193_94196d8e266cbe17c61c6c55f9eb35ff_rle_crop_3687174664_0.png.png imagette208261311740549782/1740549452_2421128_1339677494_e8d564d16dc4660d4c99c59063b60613_rle_crop_3687175854_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5bd816c0c262904777865eb651c6736b_95820159.png imagette208261311740549782 20826133 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=20826133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677541: '1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176061_0.png', 1339677704: '1740549673_2423966_1339677518_8ba394aaaf52e8ce4901f167ac17d74b_rle_crop_3687180202_0.png', 1339677703: '1740549673_2423966_1339677522_ae354e60be1741008ba9e555ad4b48e9_bib_crop_3687179972_0.jpg', 1339677702: '1740549673_2423966_1339677596_b9e686da3842496265624802e45ba14e_bib_crop_3687179602_0.jpg', 1339677654: '1740549613_2422601_1339677582_847e35c797a50963b6e687152840cfb1_rle_crop_3687178585_0.png', 1339677653: '1740549613_2422601_1339677591_4e31fc4895b2f9a430490c45d91dfdb7_rle_crop_3687178572_0.png', 1339677640: '1740549631_2423056_1339677526_ea90214623f5e2c7d48c4509dd725435_rle_crop_3687176384_0.png', 1339677575: '1740549472_2421337_1339677481_3e23d51413d921a83c876fcc37089fa3_rle_crop_3687176205_0.png', 1339677574: '1740549472_2421337_1339677481_3e23d51413d921a83c876fcc37089fa3_rle_crop_3687176209_0.png', 1339677573: '1740549472_2421337_1339677484_116c33292a6a640344b96759b094289b_rle_crop_3687176189_0.png', 1339677572: '1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176175_0.png', 1339677571: '1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176153_0.png', 1339677546: '1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176104_0.png', 1339677545: '1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176099_0.png', 1339677544: '1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176089_0.png', 1339677543: '1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176088_0.png', 1339677244: '1740549014_2416212_1339677125_44cf268893a13e2be0af6f830014ae0d_rle_crop_3687173989_0.png', 1339677540: '1740549452_2421128_1339677467_b1867c0698889f4a6888e702438c3a6f_rle_crop_3687175967_0.png', 1339677496: '1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175626_0.png', 1339677495: '1740549370_2420144_1339677400_da2d4397631a2ce47f257cb2c78e33f6_rle_crop_3687175557_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4ee2b1b34a9e986a9040b8085127cd9c_61054629.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/eaad481206fbeebdd3a26d6d472114c6_34975270.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e7c583bd6bfad00c8bfbbbf37e39521d_51213540.jpg change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8927c3f332e490e1439a3430135a19a7_89465861.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c4f4dc669fc9cc98db76970393707a68_30320317.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/af2cff186bec43def31138cc756007e7_49022700.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/50214fd40bf35bcd02a47ac16624db31_77631539.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/833e70350aacbb88dca31c40d43bf0ac_27108576.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/33ddf66a4a0b4c7d5525046de95307e7_61542207.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2561bc76c8e6f6e47ceb9156fc0bf561_70020539.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/3f30a1d0a47a9747ab2d8af77de49efd_70626058.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/10e9a19b4a5255355e50b63f124cda3a_1790174.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/67cf58bd9afc2ed1bace75f0cbba5b6b_82594364.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5870d72d1f10bc70dba4c8a40e456251_7025966.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/afad9f3edf35c30f82c41f91d742662d_3446496.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/660d3179e75413064eb5d0baefcfc53a_34321547.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9c8ca1eb51f5009213cf200a6ee2ec7b_9354559.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/640453b3f66697ee4207978870c8fdb4_53450416.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a029d02efb6aa529e457f8c743da1e80_48501986.png change filename to text .imagette208261331740549783/ imagette208261331740549783/1740549014_2416212_1339677125_44cf268893a13e2be0af6f830014ae0d_rle_crop_3687173989_0.png.png imagette208261331740549783/1740549673_2423966_1339677596_b9e686da3842496265624802e45ba14e_bib_crop_3687179602_0.jpg.jpg imagette208261331740549783/1740549370_2420144_1339677392_66dd9b004de6eb8171e9a01030b3e2a8_rle_crop_3687175626_0.png.png imagette208261331740549783/1740549613_2422601_1339677591_4e31fc4895b2f9a430490c45d91dfdb7_rle_crop_3687178572_0.png.png imagette208261331740549783/1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176089_0.png.png imagette208261331740549783/1740549472_2421337_1339677481_3e23d51413d921a83c876fcc37089fa3_rle_crop_3687176205_0.png.png imagette208261331740549783/1740549472_2421337_1339677481_3e23d51413d921a83c876fcc37089fa3_rle_crop_3687176209_0.png.png imagette208261331740549783/1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176153_0.png.png imagette208261331740549783/1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176104_0.png.png imagette208261331740549783/1740549452_2421128_1339677467_b1867c0698889f4a6888e702438c3a6f_rle_crop_3687175967_0.png.png imagette208261331740549783/1740549673_2423966_1339677522_ae354e60be1741008ba9e555ad4b48e9_bib_crop_3687179972_0.jpg.jpg imagette208261331740549783/1740549673_2423966_1339677518_8ba394aaaf52e8ce4901f167ac17d74b_rle_crop_3687180202_0.png.png imagette208261331740549783/1740549472_2421337_1339677484_116c33292a6a640344b96759b094289b_rle_crop_3687176189_0.png.png imagette208261331740549783/1740549631_2423056_1339677526_ea90214623f5e2c7d48c4509dd725435_rle_crop_3687176384_0.png.png imagette208261331740549783/1740549452_2421128_1339677458_14ac4abdc8ac9bc41a333014ce7a215b_rle_crop_3687176099_0.png.png imagette208261331740549783/1740549370_2420144_1339677400_da2d4397631a2ce47f257cb2c78e33f6_rle_crop_3687175557_0.png.png imagette208261331740549783/1740549613_2422601_1339677582_847e35c797a50963b6e687152840cfb1_rle_crop_3687178585_0.png.png imagette208261331740549783/1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176088_0.png.png imagette208261331740549783/1740549472_2421337_1339677486_fdc40ab52e9360cd788bce7346256abe_rle_crop_3687176175_0.png.png imagette208261331740549783/1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176061_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0949d59c344a75462f056931b5f56145_12474222.png imagette208261331740549783 20826137 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=20826137 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339677249: '1740549014_2416212_1339677121_f6e544ab9b3183ec52ed3bd804209739_rle_crop_3687174139_0.png', 1339677358: '1740549152_2417807_1339677222_2999be340f44e84079c0e6e9cbaec750_rle_crop_3687174616_0.png', 1339677380: '1740549133_2417609_1339677242_a55499d4eda7da91a37eb93e8d105d0e_rle_crop_3687174581_0.png', 1339677440: '1740549253_2418762_1339677298_01e276163341fc52bc2b79650217162c_rle_crop_3687174938_0.png', 1339677441: '1740549253_2418762_1339677275_96295866ee8bc6cf217e583925a09d4f_rle_crop_3687174975_0.png', 1339677442: '1740549253_2418762_1339677275_96295866ee8bc6cf217e583925a09d4f_rle_crop_3687174977_0.png', 1339677443: '1740549253_2418762_1339677271_b0188b7b0279fc6a114be0c84483908b_rle_crop_3687175021_0.png', 1339677444: '1740549253_2418762_1339677271_b0188b7b0279fc6a114be0c84483908b_rle_crop_3687175017_0.png', 1339677559: '1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176062_0.png', 1339677560: '1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176064_0.png', 1339677561: '1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176083_0.png', 1339677562: '1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176086_0.png', 1339677589: '1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176150_0.png', 1339677661: '1740549613_2422601_1339677591_4e31fc4895b2f9a430490c45d91dfdb7_rle_crop_3687178566_0.png', 1339677662: '1740549613_2422601_1339677567_effe2ba308dd0bcfdffe79363e320724_rle_crop_3687178715_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7af1e317c2f7f2d610c61a57d893b093_30924227.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/df412882b684ea8ca18d2e51fc13d76a_30430118.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/53c34793652ad486ba3443444ed4dc12_38165896.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/21301c7366ee458b1423253ec244ba90_52518758.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b6f52313b9f152ea14f82c961f1117ae_39818866.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/45eabe09c38f6a86741d9fd5cbfa4a82_64387784.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2a2e5fb0a3f92432be5b1d263140d699_70246572.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/487187daefefa8db7a2d918b29317a67_63631824.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9e5cd2a38c3abcf4b70b479dbeba45ca_83193278.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7e9140fbe60f8935c8f3626cd0712e64_4440082.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4a69dd05d1a42c2cde4c32864a559290_74894599.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/3aa87987677aee24e7f4686e53fac71f_48526312.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9ae3990d486f87a1e8c5a0db9fdba380_92497235.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/68975eea3348d0727b0d435987f6f773_89784726.png change filename to text .imagette208261371740549784/ imagette208261371740549784/1740549613_2422601_1339677567_effe2ba308dd0bcfdffe79363e320724_rle_crop_3687178715_0.png.png imagette208261371740549784/1740549472_2421337_1339677489_0c4e26a907a817861908ca23d7be9e87_rle_crop_3687176150_0.png.png imagette208261371740549784/1740549253_2418762_1339677271_b0188b7b0279fc6a114be0c84483908b_rle_crop_3687175017_0.png.png imagette208261371740549784/1740549613_2422601_1339677591_4e31fc4895b2f9a430490c45d91dfdb7_rle_crop_3687178566_0.png.png imagette208261371740549784/1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176083_0.png.png imagette208261371740549784/1740549253_2418762_1339677271_b0188b7b0279fc6a114be0c84483908b_rle_crop_3687175021_0.png.png imagette208261371740549784/1740549014_2416212_1339677121_f6e544ab9b3183ec52ed3bd804209739_rle_crop_3687174139_0.png.png imagette208261371740549784/1740549133_2417609_1339677242_a55499d4eda7da91a37eb93e8d105d0e_rle_crop_3687174581_0.png.png imagette208261371740549784/1740549253_2418762_1339677275_96295866ee8bc6cf217e583925a09d4f_rle_crop_3687174977_0.png.png imagette208261371740549784/1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176064_0.png.png imagette208261371740549784/1740549452_2421128_1339677464_f5cc567a729de5f1bbd73bd1b82427b4_rle_crop_3687176062_0.png.png imagette208261371740549784/1740549152_2417807_1339677222_2999be340f44e84079c0e6e9cbaec750_rle_crop_3687174616_0.png.png imagette208261371740549784/1740549452_2421128_1339677461_de8a66d2b6687a4834efcb6f150eedd3_rle_crop_3687176086_0.png.png imagette208261371740549784/1740549253_2418762_1339677298_01e276163341fc52bc2b79650217162c_rle_crop_3687174938_0.png.png imagette208261371740549784/1740549253_2418762_1339677275_96295866ee8bc6cf217e583925a09d4f_rle_crop_3687174975_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c461aaa300a633eeed097deb0d56dfe5_5187096.png imagette208261371740549784 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20826103 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20826143,20826144,20826145,20826146,20826147,20826148,20826149,20826150,20826151,20826152,20826153,20826154?tags=Carton_gris,flou,Teint_Dans_La_Masse,plastique,mal_croppe,autre_refus,Carton_brun,cartonnette,kraft,papier,environnement,metal your option no_mail is active, we will not send the real mail to your client args[1339677682] : ('0.09778675087806922',) no score found for photo 1339677682 We are sending mail with results at report@fotonower.com args[1339677649] : ('0.09778675087806922',) no score found for photo 1339677649 We are sending mail with results at report@fotonower.com args[1339677646] : ('0.09778675087806922',) no score found for photo 1339677646 We are sending mail with results at report@fotonower.com args[1339677642] : ('0.09778675087806922',) no score found for photo 1339677642 We are sending mail with results at report@fotonower.com args[1339677638] : ('0.09778675087806922',) no score found for photo 1339677638 We are sending mail with results at report@fotonower.com args[1339677634] : ('0.09778675087806922',) no score found for photo 1339677634 We are sending mail with results at report@fotonower.com args[1339677625] : ('0.09778675087806922',) no score found for photo 1339677625 We are sending mail with results at report@fotonower.com args[1339677623] : ('0.09778675087806922',) no score found for photo 1339677623 We are sending mail with results at report@fotonower.com args[1339677621] : ('0.09778675087806922',) no score found for photo 1339677621 We are sending mail with results at report@fotonower.com args[1339677619] : ('0.09778675087806922',) no score found for photo 1339677619 We are sending mail with results at report@fotonower.com args[1339677596] : ('0.09778675087806922',) no score found for photo 1339677596 We are sending mail with results at report@fotonower.com args[1339677594] : ('0.09778675087806922',) no score found for photo 1339677594 We are sending mail with results at report@fotonower.com args[1339677591] : ('0.09778675087806922',) no score found for photo 1339677591 We are sending mail with results at report@fotonower.com args[1339677582] : ('0.09778675087806922',) no score found for photo 1339677582 We are sending mail with results at report@fotonower.com args[1339677570] : ('0.09778675087806922',) no score found for photo 1339677570 We are sending mail with results at report@fotonower.com args[1339677567] : ('0.09778675087806922',) no score found for photo 1339677567 We are sending mail with results at report@fotonower.com refus_total : 0.09778675087806922 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=20826103 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_P20826103_26-02-2025_07_03_00.pdf results_Auto_P20826103_26-02-2025_07_03_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.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','20826103','results_Auto_P20826103_26-02-2025_07_03_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.pdf','pdf','','0.41','0.09778675087806922') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20826103]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] map_info['map_portfolio_photo'] : {20826103: [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567, 1339677526, 1339677522, 1339677520, 1339677518, 1339677494, 1339677492, 1339677489, 1339677486, 1339677484, 1339677481, 1339677469, 1339677467, 1339677464, 1339677461, 1339677458, 1339677456, 1339677426, 1339677423, 1339677421, 1339677418, 1339677404, 1339677402, 1339677400, 1339677397, 1339677394, 1339677392, 1339677298, 1339677296, 1339677294, 1339677292, 1339677277, 1339677276, 1339677275, 1339677273, 1339677271, 1339677269, 1339677242, 1339677236, 1339677224, 1339677222, 1339677206, 1339677205, 1339677200, 1339677196, 1339677193, 1339677189, 1339677176, 1339677172, 1339677162, 1339677145, 1339677140, 1339677137, 1339677128, 1339677125, 1339677121, 1339677115, 1339677098, 1339677057, 1339677053, 1339677050, 1339677044, 1339677040]} final : False mtd_id 4302 list_pids : [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] 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, '2614860') ('4302', '20826103', '1339677682', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677649', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677646', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677642', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677638', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677634', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677625', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677623', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677621', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677619', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677596', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677594', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677591', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677582', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677570', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677567', None, None, None, None, None, '2614860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '20826103', '1339677682', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677649', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677646', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677642', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677638', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677634', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677625', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677623', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677621', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677619', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677596', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677594', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677591', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677582', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677570', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677567', None, None, None, None, None, '2614860')] time used for this insertion : 0.1313917636871338 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.508994102478027 time spend to save output : 0.13173627853393555 total time spend for step 4 : 7.640730381011963 step5:split_time_score Wed Feb 26 07:03:07 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 : ['20826103'] 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 : [('20826103',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20826103) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339677623: {'path': 'temp/1740549779_729504_1339677623_7610eb893654304f56351e4b89a27574.jpg', 'extension': 'jpg'}, 1339677625: {'path': 'temp/1740549779_729504_1339677625_707063cd8462628eabd0fb2f184d6886.jpg', 'extension': 'jpg'}, 1339677634: {'path': 'temp/1740549779_729504_1339677634_d9dd0a4ef30163390714fc317056f88e.jpg', 'extension': 'jpg'}, 1339677638: {'path': 'temp/1740549779_729504_1339677638_0a9f73b16fdda3b73dc0b38ca1561422.jpg', 'extension': 'jpg'}, 1339677642: {'path': 'temp/1740549779_729504_1339677642_2808974785768b685b39f41049b48500.jpg', 'extension': 'jpg'}, 1339677646: {'path': 'temp/1740549779_729504_1339677646_64580980d99acc652ff20105bf8edf1f.jpg', 'extension': 'jpg'}, 1339677649: {'path': 'temp/1740549779_729504_1339677649_d0c26f2ff605f5a74d5ba17acd969eec.jpg', 'extension': 'jpg'}, 1339677682: {'path': 'temp/1740549779_729504_1339677682_b241681082bb6934475f2caa650bdbad.jpg', 'extension': 'jpg'}, 1339677594: {'path': 'temp/1740549779_729504_1339677594_3db921211f520f3f9eee70381a11f9b7.jpg', 'extension': 'jpg'}, 1339677596: {'path': 'temp/1740549779_729504_1339677596_b9e686da3842496265624802e45ba14e.jpg', 'extension': 'jpg'}, 1339677619: {'path': 'temp/1740549779_729504_1339677619_8c78bb75b1c3bdbbfe8171546da24a54.jpg', 'extension': 'jpg'}, 1339677621: {'path': 'temp/1740549779_729504_1339677621_e53c46d46350f399e89f7b3d5b27c4a3.jpg', 'extension': 'jpg'}, 1339677567: {'path': 'temp/1740549779_729504_1339677567_effe2ba308dd0bcfdffe79363e320724.jpg', 'extension': 'jpg'}, 1339677570: {'path': 'temp/1740549779_729504_1339677570_490d87db579fd80bda2c5f162ebd470e.jpg', 'extension': 'jpg'}, 1339677582: {'path': 'temp/1740549779_729504_1339677582_847e35c797a50963b6e687152840cfb1.jpg', 'extension': 'jpg'}, 1339677591: {'path': 'temp/1740549779_729504_1339677591_4e31fc4895b2f9a430490c45d91dfdb7.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 = 20826103; (('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 = 20826103 group by h (('06', 78),) 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=20826103 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 (20826103) 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 (20826103) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26022025 20826103 Nombre de photos uploadées : 78 / 23040 (0%) 26022025 20826103 Nombre de photos taguées (types de déchets): 0 / 78 (0%) 26022025 20826103 Nombre de photos taguées (volume) : 0 / 78 (0%) [{'photo_id': 1339677057, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f19064a07f841000c89cce6e39171657.jpg', 'username': None, 'uploaded_at': 1740548795, 'text': 'image_26022025_06_45_04_10145.jpg'}, {'photo_id': 1339677053, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/75008817071583d9e7359523bf3fdb05.jpg', 'username': None, 'uploaded_at': 1740548795, 'text': 'image_26022025_06_45_13_9122.jpg'}, {'photo_id': 1339677050, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/95d4d2f0adc1576c3b68fa28fb1159c5.jpg', 'username': None, 'uploaded_at': 1740548795, 'text': 'image_26022025_06_45_23_10133.jpg'}, {'photo_id': 1339677044, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b7658d2e075bf170b0dfcd8476ab2a69.jpg', 'username': None, 'uploaded_at': 1740548795, 'text': 'image_26022025_06_45_34_10147.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ?????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0037331581115722656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20826103, '2025-02-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1624425,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03040909767150879 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= 1624425 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1624425, 'dashboard_run_id': 1632562, 'mtr_portfolio_id': 20825065, 'dashboard_result_id': 9065111, '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_P20825065_26-02-2025_06_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20825120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825125, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1632562, 'mtr_portfolio_id': 20825658, 'dashboard_result_id': 9065112, '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_P20825658_26-02-2025_06_49_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20825659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825670, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1632562, 'mtr_portfolio_id': 20826103, 'dashboard_result_id': 9065113, '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_P20826103_26-02-2025_06_59_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826142, '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 = 20825065 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': 2614796, 'mtr_portfolio_id': 20825065, 'created_at': datetime.datetime(2025, 2, 26, 6, 32, 58), 'result': '0.09624337592425238', 'result_long': None, 'result_double': None}] Qualite : 0.09624337592425238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20825065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825065_26-02-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20825065 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_P20825065_26-02-2025_06_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20825120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825125, 'pht': 3726}}" where mtr_portfolio_id = 20825065 and dashboard_run_id = 1632562 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`=20825065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9065111, 0.09624337592425238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825065_26-02-2025_06_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20825120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825125, '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 = 20825658 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': 2614832, 'mtr_portfolio_id': 20825658, 'created_at': datetime.datetime(2025, 2, 26, 6, 49, 31), 'result': '0.08817757645894735', 'result_long': None, 'result_double': None}] Qualite : 0.08817757645894735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20825658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825658_26-02-2025_06_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20825658 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_P20825658_26-02-2025_06_49_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20825659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825670, 'pht': 3726}}" where mtr_portfolio_id = 20825658 and dashboard_run_id = 1632562 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`=20825658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9065112, 0.08817757645894735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20825658_26-02-2025_06_49_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20825659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20825660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20825661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20825662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20825663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20825664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20825665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20825666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20825667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20825668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20825669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20825670, '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 = 20826103 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': 2614860, 'mtr_portfolio_id': 20826103, 'created_at': datetime.datetime(2025, 2, 26, 7, 2, 59), 'result': '0.09778675087806922', 'result_long': None, 'result_double': None}] Qualite : 0.09778675087806922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20826103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20826103 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_P20826103_26-02-2025_07_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826142, 'pht': 3726}}" where mtr_portfolio_id = 20826103 and dashboard_run_id = 1632562 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`=20826103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9065113, 0.09778675087806922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20826103_26-02-2025_07_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20826131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20826132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20826133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20826134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20826135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20826136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20826137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20826138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20826139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20826140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20826141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20826142, '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 (20825065,20825658,20826103) result : ((1339674687,), (1339674779,), (1339674782,), (1339674800,), (1339674846,), (1339674873,), (1339674878,), (1339674881,), (1339674884,), (1339674886,), (1339674903,), (1339674905,), (1339674908,), (1339674924,), (1339674931,), (1339674948,), (1339674950,), (1339674953,), (1339674956,), (1339674959,), (1339674961,), (1339674985,), (1339674992,), (1339674995,), (1339674997,), (1339675004,), (1339675092,), (1339675121,), (1339675124,), (1339675136,), (1339675208,), (1339675393,), (1339675396,), (1339675399,), (1339675402,), (1339675403,), (1339675423,), (1339675426,), (1339675429,), (1339675431,), (1339675437,), (1339675441,), (1339675445,), (1339675447,), (1339675451,), (1339675457,), (1339675479,), (1339675483,), (1339675486,), (1339675490,), (1339675492,), (1339675506,), (1339675508,), (1339675511,), (1339675514,), (1339675517,), (1339675519,), (1339675526,), (1339675528,), (1339675531,), (1339675537,), (1339675561,), (1339675564,), (1339675567,), (1339675570,), (1339675572,), (1339675574,), (1339675578,), (1339675586,), (1339675589,), (1339675591,), (1339675592,), (1339675608,), (1339675611,), (1339675614,), (1339675616,), (1339675657,), (1339675625,), (1339675636,), (1339675643,), (1339675647,), (1339675650,), (1339675671,), (1339675676,), (1339675680,), (1339675685,), (1339675709,), (1339675800,), (1339675954,), (1339676114,), (1339676246,), (1339676268,), (1339676406,), (1339676409,), (1339676450,), (1339676454,), (1339676476,), (1339676478,), (1339676483,), (1339676492,), (1339676498,), (1339676500,), (1339676507,), (1339676510,), (1339676514,), (1339676518,), (1339676522,), (1339676549,), (1339676553,), (1339676557,), (1339676561,), (1339676565,), (1339676568,), (1339676571,), (1339676581,), (1339676585,), (1339676588,), (1339676610,), (1339676615,), (1339676619,), (1339676623,), (1339676627,), (1339676629,), (1339676656,), (1339676658,), (1339676661,), (1339676664,), (1339676802,), (1339676805,), (1339676808,), (1339676811,), (1339676813,), (1339676815,), (1339676841,), (1339676844,), (1339676847,), (1339676853,), (1339676854,), (1339676880,), (1339676883,), (1339676886,), (1339676889,), (1339676891,), (1339676905,), (1339676907,), (1339676910,), (1339676913,), (1339676917,), (1339676924,), (1339676938,), (1339676952,), (1339676959,), (1339676971,), (1339677059,), (1339677040,), (1339677044,), (1339677050,), (1339677053,), (1339677057,), (1339677098,), (1339677115,), (1339677121,), (1339677125,), (1339677128,), (1339677137,), (1339677140,), (1339677145,), (1339677162,), (1339677172,), (1339677176,), (1339677189,), (1339677193,), (1339677196,), (1339677200,), (1339677205,), (1339677206,), (1339677222,), (1339677224,), (1339677236,), (1339677242,), (1339677269,), (1339677271,), (1339677273,), (1339677275,), (1339677276,), (1339677277,), (1339677292,), (1339677294,), (1339677296,), (1339677298,), (1339677392,), (1339677394,), (1339677397,), (1339677400,), (1339677402,), (1339677404,), (1339677418,), (1339677421,), (1339677423,), (1339677426,), (1339677456,), (1339677458,), (1339677461,), (1339677464,), (1339677467,), (1339677469,), (1339677481,), (1339677484,), (1339677486,), (1339677489,), (1339677492,), (1339677494,), (1339677518,), (1339677520,), (1339677522,), (1339677526,), (1339677567,), (1339677570,), (1339677582,), (1339677591,), (1339677594,), (1339677596,), (1339677619,), (1339677621,), (1339677623,), (1339677625,), (1339677634,), (1339677638,), (1339677642,), (1339677646,), (1339677649,), (1339677682,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26022025': {'nb_upload': 78, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20826103]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] map_info['map_portfolio_photo'] : {20826103: [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567, 1339677526, 1339677522, 1339677520, 1339677518, 1339677494, 1339677492, 1339677489, 1339677486, 1339677484, 1339677481, 1339677469, 1339677467, 1339677464, 1339677461, 1339677458, 1339677456, 1339677426, 1339677423, 1339677421, 1339677418, 1339677404, 1339677402, 1339677400, 1339677397, 1339677394, 1339677392, 1339677298, 1339677296, 1339677294, 1339677292, 1339677277, 1339677276, 1339677275, 1339677273, 1339677271, 1339677269, 1339677242, 1339677236, 1339677224, 1339677222, 1339677206, 1339677205, 1339677200, 1339677196, 1339677193, 1339677189, 1339677176, 1339677172, 1339677162, 1339677145, 1339677140, 1339677137, 1339677128, 1339677125, 1339677121, 1339677115, 1339677098, 1339677057, 1339677053, 1339677050, 1339677044, 1339677040]} final : True mtd_id 4302 list_pids : [1339677682, 1339677649, 1339677646, 1339677642, 1339677638, 1339677634, 1339677625, 1339677623, 1339677621, 1339677619, 1339677596, 1339677594, 1339677591, 1339677582, 1339677570, 1339677567] Looping around the photos to save general results len do output : 1 /20826103Didn'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, '2614860') ('4302', '20826103', '1339677682', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677649', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677646', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677642', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677638', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677634', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677625', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677623', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677621', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677619', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677596', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677594', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677591', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677582', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677570', None, None, None, None, None, '2614860') ('4302', None, None, None, None, None, None, None, '2614860') ('4302', '20826103', '1339677567', None, None, None, None, None, '2614860') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '20826103', 'None', None, None, None, None, '2614860'), ('4302', '20826103', '1339677682', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677649', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677646', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677642', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677638', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677634', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677625', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677623', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677621', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677619', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677596', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677594', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677591', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677582', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677570', None, None, None, None, None, '2614860'), ('4302', '20826103', '1339677567', None, None, None, None, None, '2614860')] time used for this insertion : 0.1040201187133789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3607933521270752 time spend to save output : 0.10436582565307617 total time spend for step 5 : 0.46515917778015137 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 (2614860) 2.49user 2.40system 0:12.02elapsed 40%CPU (0avgtext+0avgdata 161328maxresident)k 29928inputs+21848outputs (107major+75708minor)pagefaults 0swaps