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 : 2030245 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 (2584220) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2584220) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526558 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2584220'] with mtr_portfolio_ids : ['20526558'] and first list_photo_ids : [] new path : /proc/2030245/ Name: python3 Umask: 0002 State: R (running) Tgid: 2030245 Ngid: 0 Pid: 2030245 PPid: 2030244 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2030245 NSpid: 2030245 NSpgid: 2027654 NSsid: 2027654 VmPeak: 1106580 kB VmSize: 1106556 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98988 kB VmRSS: 98988 kB RssAnon: 59732 kB RssFile: 39256 kB RssShmem: 0 kB VmData: 865308 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 63 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2030245', 'Ngid': '0', 'Pid': '2030245', 'PPid': '2030244', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2030245', 'NSpid': '2030245', 'NSpgid': '2027654', 'NSsid': '2027654', 'VmPeak': '1106580 kB', 'VmSize': '1106556 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98988 kB', 'VmRSS': '98988 kB', 'RssAnon': '59732 kB', 'RssFile': '39256 kB', 'RssShmem': '0 kB', 'VmData': '865308 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '63'} ('datou_batch_current', '2030245', '1106580', '0', '1106556', '865308', '98988', b'', 'marlene', '2584220') 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 (20526558) 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 (2584220 ) ) 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 (20526558) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337458855, 'portfolio_id': 20526558}, {'photo_id': 1337458852, 'portfolio_id': 20526558}, {'photo_id': 1337458849, 'portfolio_id': 20526558}, {'photo_id': 1337458847, 'portfolio_id': 20526558}, {'photo_id': 1337458844, 'portfolio_id': 20526558}, {'photo_id': 1337458842, 'portfolio_id': 20526558}, {'photo_id': 1337458827, 'portfolio_id': 20526558}, {'photo_id': 1337458823, 'portfolio_id': 20526558}, {'photo_id': 1337458821, 'portfolio_id': 20526558}, {'photo_id': 1337458819, 'portfolio_id': 20526558}, {'photo_id': 1337458793, 'portfolio_id': 20526558}, {'photo_id': 1337458790, 'portfolio_id': 20526558}, {'photo_id': 1337458786, 'portfolio_id': 20526558}, {'photo_id': 1337458782, 'portfolio_id': 20526558}, {'photo_id': 1337458756, 'portfolio_id': 20526558}, {'photo_id': 1337458743, 'portfolio_id': 20526558}, {'photo_id': 1337458740, 'portfolio_id': 20526558}, {'photo_id': 1337458737, 'portfolio_id': 20526558}, {'photo_id': 1337458736, 'portfolio_id': 20526558}, {'photo_id': 1337458697, 'portfolio_id': 20526558}, {'photo_id': 1337458694, 'portfolio_id': 20526558}, {'photo_id': 1337458691, 'portfolio_id': 20526558}, {'photo_id': 1337458689, 'portfolio_id': 20526558}, {'photo_id': 1337458657, 'portfolio_id': 20526558}, {'photo_id': 1337458656, 'portfolio_id': 20526558}, {'photo_id': 1337458650, 'portfolio_id': 20526558}, {'photo_id': 1337458642, 'portfolio_id': 20526558}, {'photo_id': 1337458640, 'portfolio_id': 20526558}, {'photo_id': 1337458623, 'portfolio_id': 20526558}, {'photo_id': 1337458621, 'portfolio_id': 20526558}, {'photo_id': 1337458619, 'portfolio_id': 20526558}, {'photo_id': 1337458616, 'portfolio_id': 20526558}, {'photo_id': 1337458613, 'portfolio_id': 20526558}, {'photo_id': 1337458611, 'portfolio_id': 20526558}, {'photo_id': 1337458596, 'portfolio_id': 20526558}, {'photo_id': 1337458594, 'portfolio_id': 20526558}, {'photo_id': 1337458592, 'portfolio_id': 20526558}, {'photo_id': 1337458573, 'portfolio_id': 20526558}, {'photo_id': 1337458571, 'portfolio_id': 20526558}, {'photo_id': 1337458569, 'portfolio_id': 20526558}, {'photo_id': 1337458567, 'portfolio_id': 20526558}, {'photo_id': 1337458565, 'portfolio_id': 20526558}, {'photo_id': 1337458561, 'portfolio_id': 20526558}, {'photo_id': 1337458220, 'portfolio_id': 20526558}, {'photo_id': 1337458215, 'portfolio_id': 20526558}, {'photo_id': 1337458211, 'portfolio_id': 20526558}, {'photo_id': 1337458207, 'portfolio_id': 20526558}, {'photo_id': 1337458203, 'portfolio_id': 20526558}, {'photo_id': 1337457610, 'portfolio_id': 20526558}, {'photo_id': 1337457606, 'portfolio_id': 20526558}, {'photo_id': 1337457603, 'portfolio_id': 20526558}, {'photo_id': 1337457587, 'portfolio_id': 20526558}, {'photo_id': 1337457584, 'portfolio_id': 20526558}, {'photo_id': 1337457580, 'portfolio_id': 20526558}, {'photo_id': 1337457576, 'portfolio_id': 20526558}, {'photo_id': 1337457564, 'portfolio_id': 20526558}, {'photo_id': 1337457493, 'portfolio_id': 20526558}, {'photo_id': 1337457474, 'portfolio_id': 20526558}, {'photo_id': 1337457427, 'portfolio_id': 20526558}, {'photo_id': 1337457425, 'portfolio_id': 20526558}] map_portfolio_id_photo_id: {20526558: [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842, 1337458827, 1337458823, 1337458821, 1337458819, 1337458793, 1337458790, 1337458786, 1337458782, 1337458756, 1337458743, 1337458740, 1337458737, 1337458736, 1337458697, 1337458694, 1337458691, 1337458689, 1337458657, 1337458656, 1337458650, 1337458642, 1337458640, 1337458623, 1337458621, 1337458619, 1337458616, 1337458613, 1337458611, 1337458596, 1337458594, 1337458592, 1337458573, 1337458571, 1337458569, 1337458567, 1337458565, 1337458561, 1337458220, 1337458215, 1337458211, 1337458207, 1337458203, 1337457610, 1337457606, 1337457603, 1337457587, 1337457584, 1337457580, 1337457576, 1337457564, 1337457493, 1337457474, 1337457427, 1337457425]} ##### 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.015709400177001953 #### 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 Thu Feb 13 23:14: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 (20526558) 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 : 20526558 get user id for portfolio 20526558 get sub ptf for main ptf 20526558, type 3726 and hashtags ['Carton_brun', 'cartonnette', 'plastique', 'Teint_Dans_La_Masse', 'kraft', 'autre_refus', 'mal_croppe', 'environnement', 'flou', 'Carton_gris', 'papier', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20526558 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','plastique','Teint_Dans_La_Masse','kraft','autre_refus','mal_croppe','environnement','flou','Carton_gris','papier','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20526558 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','plastique','Teint_Dans_La_Masse','kraft','autre_refus','mal_croppe','environnement','flou','Carton_gris','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20526558, 'sub_port_id': 20526560, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193064, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'plastique': {'main_port_id': 20526558, 'sub_port_id': 20526561, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193065, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'mal_croppe': {'main_port_id': 20526558, 'sub_port_id': 20526562, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193066, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'kraft': {'main_port_id': 20526558, 'sub_port_id': 20526563, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193067, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'Carton_gris': {'main_port_id': 20526558, 'sub_port_id': 20526564, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193068, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'flou': {'main_port_id': 20526558, 'sub_port_id': 20526565, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193069, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'autre_refus': {'main_port_id': 20526558, 'sub_port_id': 20526566, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193070, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'papier': {'main_port_id': 20526558, 'sub_port_id': 20526567, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193071, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'metal': {'main_port_id': 20526558, 'sub_port_id': 20526568, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193072, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'environnement': {'main_port_id': 20526558, 'sub_port_id': 20526569, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193073, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'cartonnette': {'main_port_id': 20526558, 'sub_port_id': 20526570, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193074, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}, 'Carton_brun': {'main_port_id': 20526558, 'sub_port_id': 20526571, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193075, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526560 , 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=20526558 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 (20526560) result : ((1337458191,), (1337458216,), (1337458217,), (1337458706,), (1337458717,), (1337458718,), (1337458719,), (1337458720,), (1337458721,), (1337458745,), (1337458746,), (1337458747,), (1337458748,), (1337458749,), (1337458750,), (1337458805,), (1337458806,), (1337458807,), (1337458815,), (1337458875,), (1337458876,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526561 , 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=20526558 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 (20526561) result : ((1337458645,), (1337458655,), (1337458731,), (1337458732,), (1337458759,), (1337458760,), (1337458865,), (1337458866,), (1337458867,), (1337458929,), (1337458930,), (1337458931,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526562 , 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=20526558 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 (20526562) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526563 , 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=20526558 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 (20526563) result : ((1337458202,), (1337458733,), (1337458761,), (1337458762,), (1337458934,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526564 , 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=20526558 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 (20526564) result : ((1337458195,), (1337458196,), (1337458197,), (1337458198,), (1337458646,), (1337458647,), (1337458648,), (1337458649,), (1337458722,), (1337458723,), (1337458724,), (1337458752,), (1337458753,), (1337458754,), (1337458861,), (1337458878,), (1337458879,), (1337458915,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526565 , 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=20526558 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 (20526565) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526566 , 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=20526558 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 (20526566) result : ((1337458192,), (1337458643,), (1337458751,), (1337458860,), (1337458877,), (1337458910,), (1337458911,), (1337458912,), (1337458913,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526567 , 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=20526558 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 (20526567) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526568 , 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=20526558 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 (20526568) result : ((1337458734,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526569 , 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=20526558 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 (20526569) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526570 , 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=20526558 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 (20526570) result : ((1337458199,), (1337458200,), (1337458578,), (1337458652,), (1337458653,), (1337458654,), (1337458707,), (1337458725,), (1337458726,), (1337458727,), (1337458729,), (1337458755,), (1337458808,), (1337458809,), (1337458881,), (1337458882,), (1337458917,), (1337458918,), (1337458919,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20526571 , 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=20526558 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 (20526571) result : ((1337458201,), (1337458709,), (1337458757,), (1337458811,), (1337458813,), (1337458814,), (1337458862,), (1337458863,), (1337458922,), (1337458923,), (1337458924,), (1337458925,), (1337458926,), (1337458927,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20526558) result : ((1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=20526558 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','plastique','Teint_Dans_La_Masse','kraft','autre_refus','mal_croppe','environnement','flou','Carton_gris','papier','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20526558 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','plastique','Teint_Dans_La_Masse','kraft','autre_refus','mal_croppe','environnement','flou','Carton_gris','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20526558, 'sub_port_id': 20526572, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193076, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'plastique': {'main_port_id': 20526558, 'sub_port_id': 20526573, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193077, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'mal_croppe': {'main_port_id': 20526558, 'sub_port_id': 20526574, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193078, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'kraft': {'main_port_id': 20526558, 'sub_port_id': 20526575, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193079, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'Carton_gris': {'main_port_id': 20526558, 'sub_port_id': 20526576, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193080, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'flou': {'main_port_id': 20526558, 'sub_port_id': 20526577, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193081, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'autre_refus': {'main_port_id': 20526558, 'sub_port_id': 20526578, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193082, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'papier': {'main_port_id': 20526558, 'sub_port_id': 20526579, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193083, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'metal': {'main_port_id': 20526558, 'sub_port_id': 20526580, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193084, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'environnement': {'main_port_id': 20526558, 'sub_port_id': 20526581, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193085, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'cartonnette': {'main_port_id': 20526558, 'sub_port_id': 20526582, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193086, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}, 'Carton_brun': {'main_port_id': 20526558, 'sub_port_id': 20526583, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13193087, 'last_updated_at': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 23, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 23, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526561 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526562 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526563 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526564 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20526583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20526571 lien utilise dans velours : https://www.fotonower.com/velours/20526572,20526573,20526574,20526575,20526576,20526577,20526578,20526579,20526580,20526581,20526582,20526583?tags=Teint_Dans_La_Masse,plastique,mal_croppe,kraft,Carton_gris,flou,autre_refus,papier,metal,environnement,cartonnette,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20526558]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] map_info['map_portfolio_photo'] : {20526558: [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842, 1337458827, 1337458823, 1337458821, 1337458819, 1337458793, 1337458790, 1337458786, 1337458782, 1337458756, 1337458743, 1337458740, 1337458737, 1337458736, 1337458697, 1337458694, 1337458691, 1337458689, 1337458657, 1337458656, 1337458650, 1337458642, 1337458640, 1337458623, 1337458621, 1337458619, 1337458616, 1337458613, 1337458611, 1337458596, 1337458594, 1337458592, 1337458573, 1337458571, 1337458569, 1337458567, 1337458565, 1337458561, 1337458220, 1337458215, 1337458211, 1337458207, 1337458203, 1337457610, 1337457606, 1337457603, 1337457587, 1337457584, 1337457580, 1337457576, 1337457564, 1337457493, 1337457474, 1337457427, 1337457425]} final : False mtd_id 4302 list_pids : [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] Looping around the photos to save general results len do output : 1 /20526558. 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, '2584220') ('4302', '20526558', '1337458855', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458852', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458849', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458847', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458844', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458842', None, None, None, None, None, '2584220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20526558', "{'Teint_Dans_La_Masse': 20526560, 'plastique': 20526561, 'mal_croppe': 20526562, 'kraft': 20526563, 'Carton_gris': 20526564, 'flou': 20526565, 'autre_refus': 20526566, 'papier': 20526567, 'metal': 20526568, 'environnement': 20526569, 'cartonnette': 20526570, 'Carton_brun': 20526571}", None, None, None, None, '2584220'), ('4302', '20526558', '1337458855', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458852', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458849', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458847', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458844', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458842', None, None, None, None, None, '2584220')] time used for this insertion : 0.012927532196044922 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3950297832489014 time spend to save output : 0.01325368881225586 total time spend for step 1 : 1.4082834720611572 step2:final Thu Feb 13 23:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20526558) 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 20526558 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337457493,1337457474,1337457427,1337457425,1337457587,1337457584,1337457580,1337457576,1337457564,1337457610,1337457606,1337457603,1337458220,1337458215,1337458211,1337458207,1337458203,1337458573,1337458571,1337458569,1337458567,1337458565,1337458596,1337458561,1337458594,1337458592,1337458623,1337458621,1337458619,1337458616,1337458613,1337458611,1337458657,1337458656,1337458650,1337458642,1337458640,1337458697,1337458694,1337458691,1337458689,1337458756,1337458743,1337458740,1337458737,1337458736,1337458793,1337458790,1337458786,1337458782,1337458827,1337458823,1337458821,1337458819,1337458855,1337458852,1337458849,1337458847,1337458844,1337458842); 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([20526558]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} new output for save of step final : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] map_info['map_portfolio_photo'] : {20526558: [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842, 1337458827, 1337458823, 1337458821, 1337458819, 1337458793, 1337458790, 1337458786, 1337458782, 1337458756, 1337458743, 1337458740, 1337458737, 1337458736, 1337458697, 1337458694, 1337458691, 1337458689, 1337458657, 1337458656, 1337458650, 1337458642, 1337458640, 1337458623, 1337458621, 1337458619, 1337458616, 1337458613, 1337458611, 1337458596, 1337458594, 1337458592, 1337458573, 1337458571, 1337458569, 1337458567, 1337458565, 1337458561, 1337458220, 1337458215, 1337458211, 1337458207, 1337458203, 1337457610, 1337457606, 1337457603, 1337457587, 1337457584, 1337457580, 1337457576, 1337457564, 1337457493, 1337457474, 1337457427, 1337457425]} final : False mtd_id 4302 list_pids : [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] Looping around the photos to save general results len do output : 6 /1337458855.Didn't retrieve data . /1337458852.Didn't retrieve data . /1337458849.Didn't retrieve data . /1337458847.Didn't retrieve data . /1337458844.Didn't retrieve data . /1337458842.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, '2584220') ('4302', '20526558', '1337458855', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458852', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458849', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458847', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458844', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458842', None, None, None, None, None, '2584220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20526558', '1337458855', '0.04866986357058976', None, None, None, None, '2584220'), ('4302', '20526558', '1337458852', '0.04866986357058976', None, None, None, None, '2584220'), ('4302', '20526558', '1337458849', '0.04866986357058976', None, None, None, None, '2584220'), ('4302', '20526558', '1337458847', '0.04866986357058976', None, None, None, None, '2584220'), ('4302', '20526558', '1337458844', '0.04866986357058976', None, None, None, None, '2584220'), ('4302', '20526558', '1337458842', '0.04866986357058976', None, None, None, None, '2584220')] time used for this insertion : 0.012339591979980469 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07318902015686035 time spend to save output : 0.012630701065063477 total time spend for step 2 : 0.08581972122192383 step3:velours_tree Thu Feb 13 23:14: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 : {20526558: [{'Teint_Dans_La_Masse': 20526560, 'plastique': 20526561, 'mal_croppe': 20526562, 'kraft': 20526563, 'Carton_gris': 20526564, 'flou': 20526565, 'autre_refus': 20526566, 'papier': 20526567, 'metal': 20526568, 'environnement': 20526569, 'cartonnette': 20526570, 'Carton_brun': 20526571}]} input_args_next_step : {20526558: ()} output_args : {20526558: [{'Teint_Dans_La_Masse': 20526560, 'plastique': 20526561, 'mal_croppe': 20526562, 'kraft': 20526563, 'Carton_gris': 20526564, 'flou': 20526565, 'autre_refus': 20526566, 'papier': 20526567, 'metal': 20526568, 'environnement': 20526569, 'cartonnette': 20526570, 'Carton_brun': 20526571}]} args : 20526558 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 : ({'Teint_Dans_La_Masse': 20526560, 'plastique': 20526561, 'mal_croppe': 20526562, 'kraft': 20526563, 'Carton_gris': 20526564, 'flou': 20526565, 'autre_refus': 20526566, 'papier': 20526567, 'metal': 20526568, 'environnement': 20526569, 'cartonnette': 20526570, 'Carton_brun': 20526571},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20526558) 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([20526558]) 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.3792715072631836 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.379321813583374 step4:send_mail_cod Thu Feb 13 23:14: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 : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} input_args_next_step : {1337458855: ()} output_args : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} args : 1337458855 depend.output_id : 0 input_args_next_step : {1337458855: ('0.04866986357058976',), 1337458852: ()} output_args : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} args : 1337458852 depend.output_id : 0 input_args_next_step : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ()} output_args : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} args : 1337458849 depend.output_id : 0 input_args_next_step : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ()} output_args : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} args : 1337458847 depend.output_id : 0 input_args_next_step : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ()} output_args : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} args : 1337458844 depend.output_id : 0 input_args_next_step : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ()} output_args : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',)} args : 1337458842 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 : {20526558: [{'Teint_Dans_La_Masse': 20526560, 'plastique': 20526561, 'mal_croppe': 20526562, 'kraft': 20526563, 'Carton_gris': 20526564, 'flou': 20526565, 'autre_refus': 20526566, 'papier': 20526567, 'metal': 20526568, 'environnement': 20526569, 'cartonnette': 20526570, 'Carton_brun': 20526571}]} input_args_next_step : {1337458855: ('0.04866986357058976',), 1337458852: ('0.04866986357058976',), 1337458849: ('0.04866986357058976',), 1337458847: ('0.04866986357058976',), 1337458844: ('0.04866986357058976',), 1337458842: ('0.04866986357058976',), 20526558: ()} output_args : {20526558: [{'Teint_Dans_La_Masse': 20526560, 'plastique': 20526561, 'mal_croppe': 20526562, 'kraft': 20526563, 'Carton_gris': 20526564, 'flou': 20526565, 'autre_refus': 20526566, 'papier': 20526567, 'metal': 20526568, 'environnement': 20526569, 'cartonnette': 20526570, 'Carton_brun': 20526571}]} args : 20526558 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :7, first value : ('0.04866986357058976',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20526558) 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 (1337458855,1337458852,1337458849,1337458847,1337458844,1337458842) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337458842 begin to download photo : 1337458847 begin to download photo : 1337458852 download finish for photo 1337458852 begin to download photo : 1337458855 download finish for photo 1337458842 begin to download photo : 1337458844 download finish for photo 1337458847 begin to download photo : 1337458849 download finish for photo 1337458849 download finish for photo 1337458855 download finish for photo 1337458844 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P20526558_13-02-2025_23_14_59.pdf 20526561 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=20526561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458645: '1739484471_1718909_1337458220_b7f84e81d3724a36c6424b6051527435_rle_crop_3673936107_0.png', 1337458655: '1739484451_1718709_1337458565_41936ce22de45ce5fe288898d82cdc10_rle_crop_3673936075_0.png', 1337458731: '1739484541_1719753_1337458621_123db724c71d58ec67fc5c2e3d2e631a_rle_crop_3673936741_0.png', 1337458732: '1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936767_0.png', 1337458759: '1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936324_0.png', 1337458760: '1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936364_0.png', 1337458865: '1739484793_1722538_1337458823_baa5fb9738cd8affccaa5a78b9bca454_rle_crop_3673938489_0.png', 1337458866: '1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938509_0.png', 1337458867: '1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938504_0.png', 1337458929: '1739484832_1722884_1337458740_1fcc3b336057f21d8040feac83ba928d_rle_crop_3673938954_0.png', 1337458930: '1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938988_0.png', 1337458931: '1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/ea281a2ab540817a60e02dc0d1486b0d_51068900.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/41e57dfe28c585a7dd2098442c0a4a5e_75230227.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/677b08cf3b9ebdbd83749bc525be66df_50916673.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/ef458c98a32c3e137a5da887e15483fb_99148270.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/028b88c3b32253c917af7d68e62cc4c4_37142663.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d330adb6eb4b510220f65b1229add08f_24332350.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/220be46f2036934c94c138ba9d75f663_86817423.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f3646ed102dced778bd028622de2984d_3436939.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0d320537264ff95a7c11de2176dd4f46_10796340.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d29364cbb682f03628a33112371c3950_72957819.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/c1bd5f73485eeac6e489197a56161d90_23348704.png change filename to text .imagette205265611739484899/ imagette205265611739484899/1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938985_0.png.png imagette205265611739484899/1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938988_0.png.png imagette205265611739484899/1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938509_0.png.png imagette205265611739484899/1739484541_1719753_1337458621_123db724c71d58ec67fc5c2e3d2e631a_rle_crop_3673936741_0.png.png imagette205265611739484899/1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936324_0.png.png imagette205265611739484899/1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938504_0.png.png imagette205265611739484899/1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936767_0.png.png imagette205265611739484899/1739484832_1722884_1337458740_1fcc3b336057f21d8040feac83ba928d_rle_crop_3673938954_0.png.png imagette205265611739484899/1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936364_0.png.png imagette205265611739484899/1739484793_1722538_1337458823_baa5fb9738cd8affccaa5a78b9bca454_rle_crop_3673938489_0.png.png imagette205265611739484899/1739484451_1718709_1337458565_41936ce22de45ce5fe288898d82cdc10_rle_crop_3673936075_0.png.png imagette205265611739484899/1739484471_1718909_1337458220_b7f84e81d3724a36c6424b6051527435_rle_crop_3673936107_0.png.png imagette205265621739484900/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/2eb916fc933d5f4d246c1da2108e66c5_52919966.png imagette205265611739484899 20526562 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=20526562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205265621739484900 20526563 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=20526563 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458202: '1739484193_1716768_1337457493_69f2816115a49d1094e7560a55a0dd77_rle_crop_3673934761_0.png', 1337458733: '1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936763_0.png', 1337458761: '1739484573_1720217_1337458573_3afa053cb232342a651fe758a78198ea_rle_crop_3673936308_0.png', 1337458762: '1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936346_0.png', 1337458934: '1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938965_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/8ead6ead4a2b6a95f817b683c79ba2d9_29630116.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a004675ab94a4207d4931201057899a5_11149567.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/56058d8d68a3a7dbe3469b25caca4075_98751598.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/3a2310da815006c6daa403c885a24b8d_53791102.png change filename to text .imagette205265631739484900/ imagette205265631739484900/1739484193_1716768_1337457493_69f2816115a49d1094e7560a55a0dd77_rle_crop_3673934761_0.png.png imagette205265631739484900/1739484573_1720217_1337458573_3afa053cb232342a651fe758a78198ea_rle_crop_3673936308_0.png.png imagette205265631739484900/1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938965_0.png.png imagette205265631739484900/1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936763_0.png.png imagette205265631739484900/1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936346_0.png.png imagette205265651739484900/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/87a933455749805cbf1039f12c954183_13525270.png imagette205265631739484900 20526565 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=20526565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205265651739484900 20526566 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=20526566 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458192: '1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934935_0.png', 1337458643: '1739484451_1718709_1337458565_41936ce22de45ce5fe288898d82cdc10_rle_crop_3673936069_0.png', 1337458751: '1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936326_0.png', 1337458860: '1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938507_0.png', 1337458877: '1739484810_1722687_1337458786_505325ba08dc46b500b86848ff5f6a64_rle_crop_3673938680_0.png', 1337458910: '1739484832_1722884_1337458743_108f31391ed0398cd7dc3eb42ecfaf3d_rle_crop_3673938927_0.png', 1337458911: '1739484832_1722884_1337458740_1fcc3b336057f21d8040feac83ba928d_rle_crop_3673938947_0.png', 1337458912: '1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938974_0.png', 1337458913: '1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938987_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0955a213a9fdbef31a4a180c54261316_27257011.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9228bebe4a593a8428e0bbc1af347228_27009043.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d453173fdfb0ad83eb4af22495f4df20_56048363.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/3f5ee3f4665f40770b60a47281fbb4c9_59597083.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9336c1ce75f51f3cc67a1ed2a6b3022e_19672520.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/fe64548ddde585dd10bd5db407ed8db3_74450075.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/fa89bfbf2ddfb716150de0852873143e_41190023.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/414a36e93464fa1617ab7d63356346fa_80416671.png change filename to text .imagette205265661739484900/ imagette205265661739484900/1739484810_1722687_1337458786_505325ba08dc46b500b86848ff5f6a64_rle_crop_3673938680_0.png.png imagette205265661739484900/1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938974_0.png.png imagette205265661739484900/1739484451_1718709_1337458565_41936ce22de45ce5fe288898d82cdc10_rle_crop_3673936069_0.png.png imagette205265661739484900/1739484832_1722884_1337458743_108f31391ed0398cd7dc3eb42ecfaf3d_rle_crop_3673938927_0.png.png imagette205265661739484900/1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934935_0.png.png imagette205265661739484900/1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936326_0.png.png imagette205265661739484900/1739484832_1722884_1337458740_1fcc3b336057f21d8040feac83ba928d_rle_crop_3673938947_0.png.png imagette205265661739484900/1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938507_0.png.png imagette205265661739484900/1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938987_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9bf2864a002de56b50fca90d65f5ae06_17277311.png imagette205265661739484900 20526568 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=20526568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458734: '1739484541_1719753_1337458611_e906e742e5f102bfe6de43cba125cf91_rle_crop_3673936815_0.png'} change filename to text .imagette205265681739484901/ imagette205265681739484901/1739484541_1719753_1337458611_e906e742e5f102bfe6de43cba125cf91_rle_crop_3673936815_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/7466ec482643b75638f32d7f4786e3df_47291135.png imagette205265681739484901 20526570 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=20526570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458727: '1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936797_0.png', 1337458919: '1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938968_0.png', 1337458918: '1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938910_0.png', 1337458917: '1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938916_0.png', 1337458882: '1739484810_1722687_1337458790_346b403807c8e1803290ccbbbe4c8f7b_rle_crop_3673938671_0.png', 1337458881: '1739484810_1722687_1337458827_6bc1cd41e4efd9f9b06eb2ae9ec1db79_rle_crop_3673938639_0.png', 1337458809: '1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937568_0.png', 1337458808: '1739484673_1721338_1337458642_3e5053ecc37bb94accd6b85e86136ef3_rle_crop_3673937552_0.png', 1337458755: '1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936327_0.png', 1337458729: '1739484541_1719753_1337458611_e906e742e5f102bfe6de43cba125cf91_rle_crop_3673936808_0.png', 1337458199: '1739484193_1716768_1337457427_89b521f8cf2f0aa59e9095839f68ea0a_rle_crop_3673934920_0.png', 1337458726: '1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936796_0.png', 1337458725: '1739484541_1719753_1337458616_b9b5d1b7ad6a8cefaa52b685f357c69b_rle_crop_3673936783_0.png', 1337458707: '1739484553_1719885_1337458623_b0ba6b60738413bbc741fa1c64f3206e_rle_crop_3673936727_0.png', 1337458654: '1739484451_1718709_1337458569_4ec037fa01619892dd48d314adbcc2f2_rle_crop_3673936040_0.png', 1337458653: '1739484451_1718709_1337458569_4ec037fa01619892dd48d314adbcc2f2_rle_crop_3673936041_0.png', 1337458652: '1739484451_1718709_1337458596_ed0f58a8eaed700918a2875490a58e2f_rle_crop_3673935972_0.png', 1337458578: '1739484311_1717676_1337457603_b923200d4065b0350f6c9589447aa862_rle_crop_3673935075_0.png', 1337458200: '1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934941_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/2ceeb4e2fea5fbde876a0c9dc6d388eb_28900858.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/dc2456367870b6ec766394e865367a84_82461467.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/6459a1f370d1ac1badf092f02dd81b8e_59185116.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0cfc055f1fb513652fc35b6a82dd1453_81616130.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0ec9177a17bdf438d9d6c8a5ebe77dce_80431320.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/7b50898caf80bd2dc4b9f9a5cd09ab63_16734026.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9c0cc871f114110083d6b0e550e4fe06_54005635.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f758f2edfbac83c8e8781d49dedcc865_95511771.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/e5d6b84a0436db9a85bfedaa8ffaf71b_20992741.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/970bf05c41e2b8432265358de65f6846_24929243.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/63d981fde7b71121a1686bb3f7f3858c_3758630.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/20e5c4354c6dbc2af3c0cf5e6c6bbb6e_90793317.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/69b07997c2ccd677a0bb7c0a1abdae30_85995748.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d8375910c3ab28950dd32e77ce53c2b3_87195551.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/5c5190e325139099b63aac83c84f599e_32259480.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b53c3a881dbc74a9984d4d048d37e9f0_86340573.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b4f93e4ac4f57f345bd46bd96d51b4aa_36569940.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/1494c6fe470d217ec637fdd7af2b60c7_52007433.png change filename to text .imagette205265701739484901/ imagette205265701739484901/1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934941_0.png.png imagette205265701739484901/1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936797_0.png.png imagette205265701739484901/1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938910_0.png.png imagette205265701739484901/1739484810_1722687_1337458790_346b403807c8e1803290ccbbbe4c8f7b_rle_crop_3673938671_0.png.png imagette205265701739484901/1739484673_1721338_1337458642_3e5053ecc37bb94accd6b85e86136ef3_rle_crop_3673937552_0.png.png imagette205265701739484901/1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936327_0.png.png imagette205265701739484901/1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936796_0.png.png imagette205265701739484901/1739484451_1718709_1337458569_4ec037fa01619892dd48d314adbcc2f2_rle_crop_3673936041_0.png.png imagette205265701739484901/1739484451_1718709_1337458569_4ec037fa01619892dd48d314adbcc2f2_rle_crop_3673936040_0.png.png imagette205265701739484901/1739484193_1716768_1337457427_89b521f8cf2f0aa59e9095839f68ea0a_rle_crop_3673934920_0.png.png imagette205265701739484901/1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937568_0.png.png imagette205265701739484901/1739484553_1719885_1337458623_b0ba6b60738413bbc741fa1c64f3206e_rle_crop_3673936727_0.png.png imagette205265701739484901/1739484541_1719753_1337458611_e906e742e5f102bfe6de43cba125cf91_rle_crop_3673936808_0.png.png imagette205265701739484901/1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938968_0.png.png imagette205265701739484901/1739484311_1717676_1337457603_b923200d4065b0350f6c9589447aa862_rle_crop_3673935075_0.png.png imagette205265701739484901/1739484810_1722687_1337458827_6bc1cd41e4efd9f9b06eb2ae9ec1db79_rle_crop_3673938639_0.png.png imagette205265701739484901/1739484451_1718709_1337458596_ed0f58a8eaed700918a2875490a58e2f_rle_crop_3673935972_0.png.png imagette205265701739484901/1739484541_1719753_1337458616_b9b5d1b7ad6a8cefaa52b685f357c69b_rle_crop_3673936783_0.png.png imagette205265701739484901/1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938916_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d3ff3658703bb9739f490997cb703422_33971526.png imagette205265701739484901 20526560 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=20526560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458746: '1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936338_0.png', 1337458876: '1739484810_1722687_1337458786_505325ba08dc46b500b86848ff5f6a64_rle_crop_3673938685_0.png', 1337458875: '1739484810_1722687_1337458827_6bc1cd41e4efd9f9b06eb2ae9ec1db79_rle_crop_3673938646_0.png', 1337458815: '1739484692_1721456_1337458694_246000d987bc590e87efbeffba68bae7_rle_crop_3673937597_0.png', 1337458807: '1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937575_0.png', 1337458806: '1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937572_0.png', 1337458805: '1739484673_1721338_1337458656_abe0e264cfc7be9305fb59f209ac7c7c_rle_crop_3673937459_0.png', 1337458750: '1739484573_1720217_1337458207_ce46410bb2669a1ed843b247a5c5212a_rle_crop_3673936446_0.png', 1337458749: '1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936357_0.png', 1337458748: '1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936359_0.png', 1337458747: '1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936333_0.png', 1337458191: '1739484193_1716768_1337457587_2ea6d59554a992631325b5a45564fbf5_rle_crop_3673934742_0.png', 1337458745: '1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936328_0.png', 1337458721: '1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936800_0.png', 1337458720: '1739484541_1719753_1337458616_b9b5d1b7ad6a8cefaa52b685f357c69b_rle_crop_3673936785_0.png', 1337458719: '1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936770_0.png', 1337458718: '1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936769_0.png', 1337458717: '1739484541_1719753_1337458621_123db724c71d58ec67fc5c2e3d2e631a_rle_crop_3673936747_0.png', 1337458706: '1739484553_1719885_1337458623_b0ba6b60738413bbc741fa1c64f3206e_rle_crop_3673936728_0.png', 1337458217: '1739484211_1716932_1337457564_dc101606012d668b07c5d23427a3f5ea_rle_crop_3673935021_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d67d9ecab186520e99fe09a53e19b0ce_32444830.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/49638e53b143809df2381ad8a3bbfa1e_47099864.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/37365f409d1f3de9025b85babbb84cc3_72119654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9444c2de96d47da10c92a1d6819c7ab0_31792059.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/47bfa5e60ca8879fde04727b236e1e30_30899094.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/5da4a80786a925d5b57157591b2c949d_19798378.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/22effb653b08ceff13b53d7152dd148a_12299775.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/2ab1ce4d2d4c8f296d6fbd6009a92c13_18238063.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/96906c8fe832e19727968d2f8e241934_50910605.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d42dfaa13626f2e5dc0bf970771a1b8e_67648431.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/687a8ce60e4631574b1a0ba1250ce28d_44776820.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f65eddc1f0c2c8cb8f64a5fc66bbcc8d_29311029.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/186126ee74761e221bb79e455eec7439_58974381.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/51a69b955442727174f26c82abfcdf7b_64405675.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/1836b084b8d7028e1544c6d245826d57_78507230.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0e71bdf6365a602b39dc75b1d4eea3c6_69445168.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b9ca73cb61f029b9520d64b828dc7e68_42852886.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a87697fa6a3d75f318dea183fe88f321_22865804.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/6fe05b4e9e6a698f168e15fe3a97f877_53742951.png change filename to text .imagette205265601739484902/ imagette205265601739484902/1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936338_0.png.png imagette205265601739484902/1739484692_1721456_1337458694_246000d987bc590e87efbeffba68bae7_rle_crop_3673937597_0.png.png imagette205265601739484902/1739484673_1721338_1337458656_abe0e264cfc7be9305fb59f209ac7c7c_rle_crop_3673937459_0.png.png imagette205265601739484902/1739484573_1720217_1337458207_ce46410bb2669a1ed843b247a5c5212a_rle_crop_3673936446_0.png.png imagette205265601739484902/1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936333_0.png.png imagette205265601739484902/1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936359_0.png.png imagette205265601739484902/1739484810_1722687_1337458827_6bc1cd41e4efd9f9b06eb2ae9ec1db79_rle_crop_3673938646_0.png.png imagette205265601739484902/1739484553_1719885_1337458623_b0ba6b60738413bbc741fa1c64f3206e_rle_crop_3673936728_0.png.png imagette205265601739484902/1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936770_0.png.png imagette205265601739484902/1739484810_1722687_1337458786_505325ba08dc46b500b86848ff5f6a64_rle_crop_3673938685_0.png.png imagette205265601739484902/1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936357_0.png.png imagette205265601739484902/1739484541_1719753_1337458616_b9b5d1b7ad6a8cefaa52b685f357c69b_rle_crop_3673936785_0.png.png imagette205265601739484902/1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937575_0.png.png imagette205265601739484902/1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936800_0.png.png imagette205265601739484902/1739484193_1716768_1337457587_2ea6d59554a992631325b5a45564fbf5_rle_crop_3673934742_0.png.png imagette205265601739484902/1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937572_0.png.png imagette205265601739484902/1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936769_0.png.png imagette205265601739484902/1739484211_1716932_1337457564_dc101606012d668b07c5d23427a3f5ea_rle_crop_3673935021_0.png.png imagette205265601739484902/1739484541_1719753_1337458621_123db724c71d58ec67fc5c2e3d2e631a_rle_crop_3673936747_0.png.png imagette205265601739484902/1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936328_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b2c7877edec97e7428416fa13f2cf145_4977117.png imagette205265601739484902 20526564 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=20526564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458723: '1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936765_0.png', 1337458915: '1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938913_0.png', 1337458879: '1739484810_1722687_1337458782_a57865f313c8f81c9bb92ec5b5a33efc_rle_crop_3673938704_0.png', 1337458878: '1739484810_1722687_1337458827_6bc1cd41e4efd9f9b06eb2ae9ec1db79_rle_crop_3673938641_0.png', 1337458861: '1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938510_0.png', 1337458754: '1739484573_1720217_1337458207_ce46410bb2669a1ed843b247a5c5212a_rle_crop_3673936443_0.png', 1337458753: '1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936354_0.png', 1337458752: '1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936325_0.png', 1337458724: '1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936801_0.png', 1337458195: '1739484193_1716768_1337457474_bf03906441139c737e47e7d26c328f0a_rle_crop_3673934908_0.png', 1337458722: '1739484541_1719753_1337458621_123db724c71d58ec67fc5c2e3d2e631a_rle_crop_3673936742_0.png', 1337458649: '1739484451_1718709_1337458561_b21a7cd97b699f8733d5977766d06f39_rle_crop_3673936084_0.png', 1337458648: '1739484451_1718709_1337458567_120be13d344c31b8c2c02da769317312_rle_crop_3673936053_0.png', 1337458647: '1739484451_1718709_1337458567_120be13d344c31b8c2c02da769317312_rle_crop_3673936057_0.png', 1337458646: '1739484451_1718709_1337458596_ed0f58a8eaed700918a2875490a58e2f_rle_crop_3673935977_0.png', 1337458198: '1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934932_0.png', 1337458197: '1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934934_0.png', 1337458196: '1739484193_1716768_1337457427_89b521f8cf2f0aa59e9095839f68ea0a_rle_crop_3673934923_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/27c0e52148872bfd0a57a5f62ff5b0b8_32735044.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/8bbd79021b0d6555db86873eb0eb97e3_97771008.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/84b53351473ee4dbbcb796c6235b6bd5_83550642.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9f960b1b0ae0d0cd3a270ec613b5ebcf_79265199.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/8e6a6ab830100bb4cec15c5ff2e2df72_67294450.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/ba01d3ec20d73e99bda77368da20860d_16150097.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/1d2e7b14be383a44c94f8d402ec6ef18_69783281.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/00a71f39cdd75bf48e3950e595effe5b_90368652.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0df2bfb807d03b2877ee2daa146b9035_83586553.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/90284e58a5cd5c2b2a7b820168b873b3_91801894.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0c02e34951de28ef7763f31e516733ae_31627077.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/13709d4c79cf2deb5289c9b5582ebcd5_88911792.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/fffb610aebd9b12bd041a9aa4c8383aa_25949787.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9bcdcc1e58c4c9350edc4a95cbcb48e7_22881096.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/82b92cc3d99c51aa6d8c48154e042516_58211674.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/c5ea935239182cc9de7c52f2b317b305_73214802.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/98974ee85975b39f6e704c494d81a3c6_60157688.png change filename to text .imagette205265641739484903/ imagette205265641739484903/1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938510_0.png.png imagette205265641739484903/1739484193_1716768_1337457427_89b521f8cf2f0aa59e9095839f68ea0a_rle_crop_3673934923_0.png.png imagette205265641739484903/1739484451_1718709_1337458561_b21a7cd97b699f8733d5977766d06f39_rle_crop_3673936084_0.png.png imagette205265641739484903/1739484573_1720217_1337458215_452e0839c4786ecaf6d1c4c49522990c_rle_crop_3673936325_0.png.png imagette205265641739484903/1739484573_1720217_1337458211_651c82895ebed86b4a7e517fb6342811_rle_crop_3673936354_0.png.png imagette205265641739484903/1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938913_0.png.png imagette205265641739484903/1739484193_1716768_1337457474_bf03906441139c737e47e7d26c328f0a_rle_crop_3673934908_0.png.png imagette205265641739484903/1739484573_1720217_1337458207_ce46410bb2669a1ed843b247a5c5212a_rle_crop_3673936443_0.png.png imagette205265641739484903/1739484810_1722687_1337458782_a57865f313c8f81c9bb92ec5b5a33efc_rle_crop_3673938704_0.png.png imagette205265641739484903/1739484810_1722687_1337458827_6bc1cd41e4efd9f9b06eb2ae9ec1db79_rle_crop_3673938641_0.png.png imagette205265641739484903/1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934934_0.png.png imagette205265641739484903/1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934932_0.png.png imagette205265641739484903/1739484541_1719753_1337458619_4c8c2e6238537bf952e761bfb4f19566_rle_crop_3673936765_0.png.png imagette205265641739484903/1739484451_1718709_1337458596_ed0f58a8eaed700918a2875490a58e2f_rle_crop_3673935977_0.png.png imagette205265641739484903/1739484451_1718709_1337458567_120be13d344c31b8c2c02da769317312_rle_crop_3673936057_0.png.png imagette205265641739484903/1739484541_1719753_1337458621_123db724c71d58ec67fc5c2e3d2e631a_rle_crop_3673936742_0.png.png imagette205265641739484903/1739484541_1719753_1337458613_c4903457fef253f1c339140c323ec4e9_rle_crop_3673936801_0.png.png imagette205265641739484903/1739484451_1718709_1337458567_120be13d344c31b8c2c02da769317312_rle_crop_3673936053_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/2caf284a6d1198c446d871effe904e52_31417663.png imagette205265641739484903 20526571 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=20526571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337458201: '1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934939_0.png', 1337458709: '1739484553_1719885_1337458623_b0ba6b60738413bbc741fa1c64f3206e_rle_crop_3673936729_0.png', 1337458757: '1739484573_1720217_1337458203_c2d038c68cff9ed35db3c434290f3bcf_rle_crop_3673936461_0.png', 1337458811: '1739484673_1721338_1337458697_0243a111f6ed45acb3629fa98e8e76e3_rle_crop_3673937438_0.png', 1337458813: '1739484673_1721338_1337458642_3e5053ecc37bb94accd6b85e86136ef3_rle_crop_3673937554_0.png', 1337458814: '1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937574_0.png', 1337458862: '1739484793_1722538_1337458823_baa5fb9738cd8affccaa5a78b9bca454_rle_crop_3673938490_0.png', 1337458863: '1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938512_0.png', 1337458922: '1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938918_0.png', 1337458923: '1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938915_0.png', 1337458924: '1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938917_0.png', 1337458925: '1739484832_1722884_1337458740_1fcc3b336057f21d8040feac83ba928d_rle_crop_3673938951_0.png', 1337458926: '1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938970_0.png', 1337458927: '1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938992_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/995ec71c314dfe3469b419180221a783_61604578.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/ef2f79d0f23de8f220d3c226566034e0_15696603.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/2d737883b249ed707609819cb7b84dc3_12064719.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b801d32700c2710bfd7841021ecc461f_17447466.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/203ceb1058e6421a788daea5d1bf2143_44703273.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/48b23d5330dca7517eb416a025a55f19_791396.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/ea5e10bb00a21e2d179a5e885d7694d5_56889972.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/73619ac967fac3ca11a986c9fbb9ea55_65904159.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/225fdfcdd2ec98afe0d52d998f3ba238_61910979.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/8e5ceb79b256c5fd2ea68805408da501_60824790.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0c44fc66796c82fb8c57bb6b72c36585_35687109.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/7b4b3535a0f5f081862eefe7f6b9e96a_76379573.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/fbe7434160b11bf2d359bfdd6e87a22d_39781927.png change filename to text .imagette205265711739484904/ imagette205265711739484904/1739484673_1721338_1337458697_0243a111f6ed45acb3629fa98e8e76e3_rle_crop_3673937438_0.png.png imagette205265711739484904/1739484553_1719885_1337458623_b0ba6b60738413bbc741fa1c64f3206e_rle_crop_3673936729_0.png.png imagette205265711739484904/1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938915_0.png.png imagette205265711739484904/1739484832_1722884_1337458736_8bf653ef64518741f8181f80c9e2ae39_rle_crop_3673938992_0.png.png imagette205265711739484904/1739484573_1720217_1337458203_c2d038c68cff9ed35db3c434290f3bcf_rle_crop_3673936461_0.png.png imagette205265711739484904/1739484673_1721338_1337458640_a8ea8968ddf6ad6ba1bd25a3f30f59a1_rle_crop_3673937574_0.png.png imagette205265711739484904/1739484832_1722884_1337458740_1fcc3b336057f21d8040feac83ba928d_rle_crop_3673938951_0.png.png imagette205265711739484904/1739484793_1722538_1337458823_baa5fb9738cd8affccaa5a78b9bca454_rle_crop_3673938490_0.png.png imagette205265711739484904/1739484793_1722538_1337458821_406b61574b59a8cc02b0b46016de4808_rle_crop_3673938512_0.png.png imagette205265711739484904/1739484193_1716768_1337457425_af12cb075ecc1eab2f346aa0cb3bff28_rle_crop_3673934939_0.png.png imagette205265711739484904/1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938918_0.png.png imagette205265711739484904/1739484673_1721338_1337458642_3e5053ecc37bb94accd6b85e86136ef3_rle_crop_3673937554_0.png.png imagette205265711739484904/1739484832_1722884_1337458793_2c1e055d441eaa08fd6998d038f578f4_rle_crop_3673938917_0.png.png imagette205265711739484904/1739484832_1722884_1337458737_bc60325198e7c344c833163390de94b1_rle_crop_3673938970_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/5dc5cf88c1fcfd0b9e808ced979f501f_22237425.png imagette205265711739484904 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20526558 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20526572,20526573,20526574,20526575,20526576,20526577,20526578,20526579,20526580,20526581,20526582,20526583?tags=Teint_Dans_La_Masse,plastique,mal_croppe,kraft,Carton_gris,flou,autre_refus,papier,metal,environnement,cartonnette,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1337458855] : ('0.04866986357058976',) no score found for photo 1337458855 apple ('0.04866986357058976',) We are sending mail with results at report@fotonower.com args[1337458852] : ('0.04866986357058976',) no score found for photo 1337458852 apple ('0.04866986357058976',) We are sending mail with results at report@fotonower.com args[1337458849] : ('0.04866986357058976',) no score found for photo 1337458849 apple ('0.04866986357058976',) We are sending mail with results at report@fotonower.com args[1337458847] : ('0.04866986357058976',) no score found for photo 1337458847 apple ('0.04866986357058976',) We are sending mail with results at report@fotonower.com args[1337458844] : ('0.04866986357058976',) no score found for photo 1337458844 apple ('0.04866986357058976',) We are sending mail with results at report@fotonower.com args[1337458842] : ('0.04866986357058976',) no score found for photo 1337458842 apple ('0.04866986357058976',) We are sending mail with results at report@fotonower.com refus_total : 0.04866986357058976 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=20526558 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_P20526558_13-02-2025_23_14_59.pdf results_Auto_P20526558_13-02-2025_23_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526558_13-02-2025_23_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20526558','results_Auto_P20526558_13-02-2025_23_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526558_13-02-2025_23_14_59.pdf','pdf','','0.35','0.04866986357058976') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20526558]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] map_info['map_portfolio_photo'] : {20526558: [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842, 1337458827, 1337458823, 1337458821, 1337458819, 1337458793, 1337458790, 1337458786, 1337458782, 1337458756, 1337458743, 1337458740, 1337458737, 1337458736, 1337458697, 1337458694, 1337458691, 1337458689, 1337458657, 1337458656, 1337458650, 1337458642, 1337458640, 1337458623, 1337458621, 1337458619, 1337458616, 1337458613, 1337458611, 1337458596, 1337458594, 1337458592, 1337458573, 1337458571, 1337458569, 1337458567, 1337458565, 1337458561, 1337458220, 1337458215, 1337458211, 1337458207, 1337458203, 1337457610, 1337457606, 1337457603, 1337457587, 1337457584, 1337457580, 1337457576, 1337457564, 1337457493, 1337457474, 1337457427, 1337457425]} final : False mtd_id 4302 list_pids : [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] 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, '2584220') ('4302', '20526558', '1337458855', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458852', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458849', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458847', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458844', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458842', None, None, None, None, None, '2584220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20526558', '1337458855', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458852', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458849', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458847', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458844', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458842', None, None, None, None, None, '2584220')] time used for this insertion : 0.012863397598266602 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.153786659240723 time spend to save output : 0.013062715530395508 total time spend for step 4 : 6.166849374771118 step5:split_time_score Thu Feb 13 23:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20526558'] 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 : [('20526558',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20526558) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337458847: {'path': 'temp/1739484899_2030245_1337458847_4f793f2a91e0362a2cedcd580b88b577.jpg', 'extension': 'jpg'}, 1337458849: {'path': 'temp/1739484899_2030245_1337458849_eeaa5192c9b37f46047dbdb0034ec220.jpg', 'extension': 'jpg'}, 1337458852: {'path': 'temp/1739484899_2030245_1337458852_9ac28f03d93ad49c358ed2478e707ddf.jpg', 'extension': 'jpg'}, 1337458855: {'path': 'temp/1739484899_2030245_1337458855_5842e39f3299e0534396518130dead5a.jpg', 'extension': 'jpg'}, 1337458842: {'path': 'temp/1739484899_2030245_1337458842_0d5da1c1887d99d715e944291ac3e3c8.jpg', 'extension': 'jpg'}, 1337458844: {'path': 'temp/1739484899_2030245_1337458844_074cb9a533272c3b23cedaebdf4627c8.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 = 20526558; (('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 = 20526558 group by h (('23', 60),) 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=20526558 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 (20526558) 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 (20526558) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13022025 20526558 Nombre de photos uploadées : 60 / 23040 (0%) 13022025 20526558 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 13022025 20526558 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1337457493, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/69f2816115a49d1094e7560a55a0dd77.jpg', 'username': None, 'uploaded_at': 1739484067, 'text': 'image_13022025_23_00_14_010188m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1337457474, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/bf03906441139c737e47e7d26c328f0a.jpg', 'username': None, 'uploaded_at': 1739484067, 'text': 'image_13022025_23_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337457427, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/89b521f8cf2f0aa59e9095839f68ea0a.jpg', 'username': None, 'uploaded_at': 1739484067, 'text': 'image_13022025_23_00_34_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337457425, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/af12cb075ecc1eab2f346aa0cb3bff28.jpg', 'username': None, 'uploaded_at': 1739484067, 'text': 'image_13022025_23_00_44_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027663707733154297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20526558, '2025-02-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1599443,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.19814085960388184 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= 1599443 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1599443, 'dashboard_run_id': 1609656, 'mtr_portfolio_id': 20524841, 'dashboard_result_id': 8876065, '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_P20524841_13-02-2025_22_33_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20524844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524855, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1609656, 'mtr_portfolio_id': 20525286, 'dashboard_result_id': 8876066, '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_P20525286_13-02-2025_22_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20525291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20525292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20525293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20525294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20525295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20525296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20525297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20525298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20525299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20525300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20525301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20525302, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1609656, 'mtr_portfolio_id': 20526127, 'dashboard_result_id': 8876067, '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_P20526127_13-02-2025_23_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20526130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526141, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1609656, 'mtr_portfolio_id': 20526558, 'dashboard_result_id': 8876068, '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_P20526558_13-02-2025_23_12_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20526567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526571, '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 = 20524841 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': 2584114, 'mtr_portfolio_id': 20524841, 'created_at': datetime.datetime(2025, 2, 13, 22, 33, 29), 'result': '0.05749399874969437', 'result_long': None, 'result_double': None}] Qualite : 0.05749399874969437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20524841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524841_13-02-2025_22_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20524841 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_P20524841_13-02-2025_22_33_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20524844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524855, 'pht': 3726}}" where mtr_portfolio_id = 20524841 and dashboard_run_id = 1609656 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`=20524841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8876065, 0.05749399874969437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524841_13-02-2025_22_33_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20524844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524855, '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 = 20525286 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': 2584141, 'mtr_portfolio_id': 20525286, 'created_at': datetime.datetime(2025, 2, 13, 22, 46, 56), 'result': '0.059493555636541476', 'result_long': None, 'result_double': None}] Qualite : 0.059493555636541476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20525286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20525286_13-02-2025_22_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20525286 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_P20525286_13-02-2025_22_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20525291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20525292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20525293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20525294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20525295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20525296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20525297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20525298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20525299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20525300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20525301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20525302, 'pht': 3726}}" where mtr_portfolio_id = 20525286 and dashboard_run_id = 1609656 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`=20525286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8876066, 0.059493555636541476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20525286_13-02-2025_22_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20525291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20525292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20525293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20525294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20525295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20525296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20525297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20525298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20525299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20525300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20525301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20525302, '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 = 20526127 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': 2584186, 'mtr_portfolio_id': 20526127, 'created_at': datetime.datetime(2025, 2, 13, 23, 2, 58), 'result': '0.04590287569442672', 'result_long': None, 'result_double': None}] Qualite : 0.04590287569442672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20526127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526127_13-02-2025_23_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20526127 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_P20526127_13-02-2025_23_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20526130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526141, 'pht': 3726}}" where mtr_portfolio_id = 20526127 and dashboard_run_id = 1609656 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`=20526127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8876067, 0.04590287569442672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526127_13-02-2025_23_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20526130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526141, '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 = 20526558 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': 2584220, 'mtr_portfolio_id': 20526558, 'created_at': datetime.datetime(2025, 2, 13, 23, 14, 59), 'result': '0.04866986357058976', 'result_long': None, 'result_double': None}] Qualite : 0.04866986357058976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20526558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526558_13-02-2025_23_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20526558 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_P20526558_13-02-2025_23_14_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20526567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526571, 'pht': 3726}}" where mtr_portfolio_id = 20526558 and dashboard_run_id = 1609656 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`=20526558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8876068, 0.04866986357058976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526558_13-02-2025_23_14_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20526567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526571, '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 (20524841,20525286,20526127,20526558) result : ((1337450542,), (1337450543,), (1337450545,), (1337450550,), (1337451228,), (1337451388,), (1337451418,), (1337451543,), (1337451570,), (1337451572,), (1337451623,), (1337451624,), (1337451626,), (1337451628,), (1337451683,), (1337451752,), (1337451753,), (1337451755,), (1337451757,), (1337451758,), (1337451760,), (1337451775,), (1337451777,), (1337451780,), (1337451782,), (1337451783,), (1337451808,), (1337451812,), (1337451817,), (1337451820,), (1337451884,), (1337451887,), (1337451890,), (1337451893,), (1337451938,), (1337451941,), (1337451960,), (1337451973,), (1337451976,), (1337452030,), (1337452168,), (1337452171,), (1337452205,), (1337452208,), (1337452211,), (1337452233,), (1337452249,), (1337452252,), (1337452254,), (1337452256,), (1337452257,), (1337452271,), (1337452275,), (1337452278,), (1337452281,), (1337452284,), (1337452374,), (1337452376,), (1337452379,), (1337452407,), (1337452397,), (1337452399,), (1337452402,), (1337452405,), (1337452579,), (1337452581,), (1337452584,), (1337452587,), (1337452601,), (1337452604,), (1337452607,), (1337452614,), (1337452621,), (1337452653,), (1337452664,), (1337452669,), (1337452672,), (1337452675,), (1337452677,), (1337452704,), (1337452711,), (1337452714,), (1337452717,), (1337452719,), (1337452721,), (1337453652,), (1337453654,), (1337453659,), (1337454262,), (1337454288,), (1337454292,), (1337454296,), (1337454300,), (1337454304,), (1337454312,), (1337454319,), (1337454324,), (1337454331,), (1337454332,), (1337454333,), (1337454352,), (1337454354,), (1337454390,), (1337454393,), (1337454397,), (1337454401,), (1337454411,), (1337454414,), (1337454466,), (1337454482,), (1337454495,), (1337454497,), (1337454548,), (1337454569,), (1337454575,), (1337454584,), (1337454587,), (1337454675,), (1337454679,), (1337454684,), (1337454688,), (1337454689,), (1337454710,), (1337454720,), (1337454733,), (1337454737,), (1337454740,), (1337454741,), (1337454753,), (1337454756,), (1337454759,), (1337454762,), (1337454766,), (1337454868,), (1337454789,), (1337454792,), (1337454796,), (1337454851,), (1337454917,), (1337454923,), (1337454934,), (1337454939,), (1337455017,), (1337455087,), (1337455096,), (1337455103,), (1337455135,), (1337455137,), (1337455141,), (1337455143,), (1337455216,), (1337455219,), (1337455234,), (1337455241,), (1337455243,), (1337456136,), (1337456138,), (1337456141,), (1337456144,), (1337456537,), (1337456541,), (1337456551,), (1337456555,), (1337456616,), (1337456631,), (1337456670,), (1337456672,), (1337456675,), (1337456678,), (1337456680,), (1337456682,), (1337456760,), (1337456762,), (1337456765,), (1337456838,), (1337456840,), (1337456842,), (1337456845,), (1337456849,), (1337456851,), (1337456861,), (1337456864,), (1337456867,), (1337456873,), (1337456880,), (1337456881,), (1337456900,), (1337456903,), (1337456906,), (1337457212,), (1337457214,), (1337457217,), (1337457220,), (1337457222,), (1337457272,), (1337457392,), (1337457394,), (1337457396,), (1337457399,), (1337457402,), (1337457404,), (1337457501,), (1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13022025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20526558]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] map_info['map_portfolio_photo'] : {20526558: [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842, 1337458827, 1337458823, 1337458821, 1337458819, 1337458793, 1337458790, 1337458786, 1337458782, 1337458756, 1337458743, 1337458740, 1337458737, 1337458736, 1337458697, 1337458694, 1337458691, 1337458689, 1337458657, 1337458656, 1337458650, 1337458642, 1337458640, 1337458623, 1337458621, 1337458619, 1337458616, 1337458613, 1337458611, 1337458596, 1337458594, 1337458592, 1337458573, 1337458571, 1337458569, 1337458567, 1337458565, 1337458561, 1337458220, 1337458215, 1337458211, 1337458207, 1337458203, 1337457610, 1337457606, 1337457603, 1337457587, 1337457584, 1337457580, 1337457576, 1337457564, 1337457493, 1337457474, 1337457427, 1337457425]} final : True mtd_id 4302 list_pids : [1337458855, 1337458852, 1337458849, 1337458847, 1337458844, 1337458842] Looping around the photos to save general results len do output : 1 /20526558Didn'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, '2584220') ('4302', '20526558', '1337458855', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458852', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458849', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458847', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458844', None, None, None, None, None, '2584220') ('4302', None, None, None, None, None, None, None, '2584220') ('4302', '20526558', '1337458842', None, None, None, None, None, '2584220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20526558', 'None', None, None, None, None, '2584220'), ('4302', '20526558', '1337458855', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458852', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458849', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458847', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458844', None, None, None, None, None, '2584220'), ('4302', '20526558', '1337458842', None, None, None, None, None, '2584220')] time used for this insertion : 0.013648748397827148 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5195662975311279 time spend to save output : 0.013833999633789062 total time spend for step 5 : 0.533400297164917 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 (2584220) 2.20user 2.53system 0:12.06elapsed 39%CPU (0avgtext+0avgdata 160304maxresident)k 13672inputs+18168outputs (121major+74466minor)pagefaults 0swaps