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 : 3827018 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 (2654917) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2654917) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229167 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2654917'] with mtr_portfolio_ids : ['21229167'] and first list_photo_ids : [] new path : /proc/3827018/ Name: python3 Umask: 0002 State: R (running) Tgid: 3827018 Ngid: 0 Pid: 3827018 PPid: 3827017 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3827018 NSpid: 3827018 NSpgid: 3825735 NSsid: 3825735 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99668 kB VmRSS: 99668 kB RssAnon: 59756 kB RssFile: 39912 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 80 nonvoluntary_ctxt_switches: 152 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3827018', 'Ngid': '0', 'Pid': '3827018', 'PPid': '3827017', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3827018', 'NSpid': '3827018', 'NSpgid': '3825735', 'NSsid': '3825735', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99668 kB', 'VmRSS': '99668 kB', 'RssAnon': '59756 kB', 'RssFile': '39912 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '80', 'nonvoluntary_ctxt_switches': '152'} ('datou_batch_current', '3827018', '1106840', '0', '1106840', '865588', '99668', b'', 'marlene', '2654917') 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 (21229167) 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 (2654917 ) ) 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 (21229167) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342581144, 'portfolio_id': 21229167}, {'photo_id': 1342580936, 'portfolio_id': 21229167}, {'photo_id': 1342580930, 'portfolio_id': 21229167}, {'photo_id': 1342580924, 'portfolio_id': 21229167}, {'photo_id': 1342580917, 'portfolio_id': 21229167}, {'photo_id': 1342580909, 'portfolio_id': 21229167}, {'photo_id': 1342580888, 'portfolio_id': 21229167}, {'photo_id': 1342580885, 'portfolio_id': 21229167}, {'photo_id': 1342580879, 'portfolio_id': 21229167}, {'photo_id': 1342580874, 'portfolio_id': 21229167}, {'photo_id': 1342580869, 'portfolio_id': 21229167}, {'photo_id': 1342580861, 'portfolio_id': 21229167}, {'photo_id': 1342580819, 'portfolio_id': 21229167}, {'photo_id': 1342580774, 'portfolio_id': 21229167}, {'photo_id': 1342580716, 'portfolio_id': 21229167}, {'photo_id': 1342580696, 'portfolio_id': 21229167}, {'photo_id': 1342580692, 'portfolio_id': 21229167}, {'photo_id': 1342580672, 'portfolio_id': 21229167}, {'photo_id': 1342580578, 'portfolio_id': 21229167}, {'photo_id': 1342580565, 'portfolio_id': 21229167}, {'photo_id': 1342580562, 'portfolio_id': 21229167}, {'photo_id': 1342580518, 'portfolio_id': 21229167}, {'photo_id': 1342580301, 'portfolio_id': 21229167}, {'photo_id': 1342580227, 'portfolio_id': 21229167}, {'photo_id': 1342580137, 'portfolio_id': 21229167}, {'photo_id': 1342580120, 'portfolio_id': 21229167}, {'photo_id': 1342580116, 'portfolio_id': 21229167}, {'photo_id': 1342580074, 'portfolio_id': 21229167}, {'photo_id': 1342580071, 'portfolio_id': 21229167}, {'photo_id': 1342580066, 'portfolio_id': 21229167}, {'photo_id': 1342580061, 'portfolio_id': 21229167}, {'photo_id': 1342580056, 'portfolio_id': 21229167}, {'photo_id': 1342580053, 'portfolio_id': 21229167}, {'photo_id': 1342579425, 'portfolio_id': 21229167}, {'photo_id': 1342579338, 'portfolio_id': 21229167}, {'photo_id': 1342579161, 'portfolio_id': 21229167}, {'photo_id': 1342579144, 'portfolio_id': 21229167}, {'photo_id': 1342579130, 'portfolio_id': 21229167}, {'photo_id': 1342579096, 'portfolio_id': 21229167}, {'photo_id': 1342579092, 'portfolio_id': 21229167}, {'photo_id': 1342579087, 'portfolio_id': 21229167}, {'photo_id': 1342579079, 'portfolio_id': 21229167}, {'photo_id': 1342579070, 'portfolio_id': 21229167}, {'photo_id': 1342579061, 'portfolio_id': 21229167}, {'photo_id': 1342578945, 'portfolio_id': 21229167}, {'photo_id': 1342578938, 'portfolio_id': 21229167}, {'photo_id': 1342578894, 'portfolio_id': 21229167}, {'photo_id': 1342578883, 'portfolio_id': 21229167}, {'photo_id': 1342578879, 'portfolio_id': 21229167}, {'photo_id': 1342578875, 'portfolio_id': 21229167}, {'photo_id': 1342578872, 'portfolio_id': 21229167}, {'photo_id': 1342578858, 'portfolio_id': 21229167}, {'photo_id': 1342578719, 'portfolio_id': 21229167}, {'photo_id': 1342578674, 'portfolio_id': 21229167}, {'photo_id': 1342578629, 'portfolio_id': 21229167}, {'photo_id': 1342578585, 'portfolio_id': 21229167}, {'photo_id': 1342578527, 'portfolio_id': 21229167}, {'photo_id': 1342578484, 'portfolio_id': 21229167}, {'photo_id': 1342578110, 'portfolio_id': 21229167}, {'photo_id': 1342578060, 'portfolio_id': 21229167}, {'photo_id': 1342578031, 'portfolio_id': 21229167}, {'photo_id': 1342578027, 'portfolio_id': 21229167}, {'photo_id': 1342577963, 'portfolio_id': 21229167}, {'photo_id': 1342577960, 'portfolio_id': 21229167}, {'photo_id': 1342577940, 'portfolio_id': 21229167}, {'photo_id': 1342577924, 'portfolio_id': 21229167}, {'photo_id': 1342577887, 'portfolio_id': 21229167}] map_portfolio_id_photo_id: {21229167: [1342581144, 1342580936, 1342580930, 1342580924, 1342580917, 1342580909, 1342580888, 1342580885, 1342580879, 1342580874, 1342580869, 1342580861, 1342580819, 1342580774, 1342580716, 1342580696, 1342580692, 1342580672, 1342580578, 1342580565, 1342580562, 1342580518, 1342580301, 1342580227, 1342580137, 1342580120, 1342580116, 1342580074, 1342580071, 1342580066, 1342580061, 1342580056, 1342580053, 1342579425, 1342579338, 1342579161, 1342579144, 1342579130, 1342579096, 1342579092, 1342579087, 1342579079, 1342579070, 1342579061, 1342578945, 1342578938, 1342578894, 1342578883, 1342578879, 1342578875, 1342578872, 1342578858, 1342578719, 1342578674, 1342578629, 1342578585, 1342578527, 1342578484, 1342578110, 1342578060, 1342578031, 1342578027, 1342577963, 1342577960, 1342577940, 1342577924, 1342577887]} ##### 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.04560041427612305 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 10 17:19:31 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 (21229167) 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 : 21229167 get user id for portfolio 21229167 get sub ptf for main ptf 21229167, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'papier', 'metal', 'kraft', 'Carton_gris', 'autre_refus', 'Carton_brun', 'cartonnette', 'mal_croppe', 'plastique', 'environnement'] 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`=21229167 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','metal','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','mal_croppe','plastique','environnement')) 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`=21229167 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','metal','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','mal_croppe','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21229167, 'sub_port_id': 21229184, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819634, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'metal': {'main_port_id': 21229167, 'sub_port_id': 21229185, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819635, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'mal_croppe': {'main_port_id': 21229167, 'sub_port_id': 21229186, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819636, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'autre_refus': {'main_port_id': 21229167, 'sub_port_id': 21229187, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819637, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'plastique': {'main_port_id': 21229167, 'sub_port_id': 21229188, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819638, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'Carton_gris': {'main_port_id': 21229167, 'sub_port_id': 21229189, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819639, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'flou': {'main_port_id': 21229167, 'sub_port_id': 21229190, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819640, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21229167, 'sub_port_id': 21229191, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819641, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'papier': {'main_port_id': 21229167, 'sub_port_id': 21229192, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819642, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'cartonnette': {'main_port_id': 21229167, 'sub_port_id': 21229193, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819643, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'kraft': {'main_port_id': 21229167, 'sub_port_id': 21229194, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819644, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}, 'environnement': {'main_port_id': 21229167, 'sub_port_id': 21229195, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819645, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 8, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21229184 , 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=21229167 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 (21229184) result : ((1342579139,), (1342579140,), (1342579277,), (1342579279,), (1342579768,), (1342580047,), (1342580048,), (1342580049,), (1342580816,), (1342580817,), (1342580818,), (1342580857,), (1342580858,), (1342580859,), (1342580863,), (1342580864,), (1342580963,), (1342580964,), (1342581175,), (1342581176,), (1342581177,), (1342581178,), (1342581179,), (1342581669,), (1342581670,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229185 , 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=21229167 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 (21229185) result : ((1342580830,), (1342580978,), (1342581693,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229186 , 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=21229167 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 (21229186) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229187 , 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=21229167 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 (21229187) result : ((1342579149,), (1342579151,), (1342579152,), (1342579153,), (1342579154,), (1342579564,), (1342579576,), (1342579580,), (1342579591,), (1342579602,), (1342579612,), (1342580030,), (1342580031,), (1342580032,), (1342580033,), (1342580034,), (1342580035,), (1342580036,), (1342580037,), (1342580038,), (1342580581,), (1342580582,), (1342580583,), (1342580737,), (1342580739,), (1342580741,), (1342580743,), (1342580745,), (1342580829,), (1342580838,), (1342580839,), (1342580840,), (1342580841,), (1342580842,), (1342580843,), (1342580844,), (1342580845,), (1342580883,), (1342580884,), (1342580920,), (1342580921,), (1342580949,), (1342580950,), (1342580951,), (1342580952,), (1342580953,), (1342580965,), (1342581098,), (1342581099,), (1342581100,), (1342581101,), (1342581102,), (1342581103,), (1342581104,), (1342581105,), (1342581155,), (1342581156,), (1342581157,), (1342581158,), (1342581159,), (1342581394,), (1342581395,), (1342581396,), (1342581397,), (1342581398,), (1342581400,), (1342581401,), (1342581623,), (1342581624,), (1342581625,), (1342581626,), (1342581627,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229188 , 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=21229167 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 (21229188) result : ((1342579325,), (1342579327,), (1342579805,), (1342580051,), (1342580596,), (1342580600,), (1342580821,), (1342580822,), (1342580823,), (1342580828,), (1342580867,), (1342580970,), (1342580971,), (1342580972,), (1342580973,), (1342581180,), (1342581678,), (1342581680,), (1342581681,), (1342581682,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229189 , 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=21229167 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 (21229189) result : ((1342579136,), (1342579155,), (1342579654,), (1342580040,), (1342580041,), (1342580584,), (1342580585,), (1342580771,), (1342580773,), (1342580846,), (1342580922,), (1342580956,), (1342580957,), (1342580958,), (1342580959,), (1342580968,), (1342580969,), (1342581106,), (1342581170,), (1342581408,), (1342581409,), (1342581638,), (1342581639,), (1342581640,), (1342581641,), (1342581642,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229190 , 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=21229167 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 (21229190) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229191 , 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=21229167 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 (21229191) result : ((1342579135,), (1342579145,), (1342579503,), (1342580020,), (1342580021,), (1342580022,), (1342580023,), (1342580024,), (1342580025,), (1342580026,), (1342580824,), (1342580915,), (1342580943,), (1342580944,), (1342580945,), (1342580946,), (1342581092,), (1342581093,), (1342581107,), (1342581374,), (1342581375,), (1342581376,), (1342581614,), (1342581616,), (1342581617,), (1342581618,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229192 , 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=21229167 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 (21229192) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229193 , 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=21229167 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 (21229193) result : ((1342579227,), (1342579229,), (1342579714,), (1342579726,), (1342580042,), (1342580043,), (1342580044,), (1342580779,), (1342580780,), (1342580781,), (1342580851,), (1342580852,), (1342580853,), (1342580854,), (1342580855,), (1342580856,), (1342580961,), (1342580962,), (1342580974,), (1342581148,), (1342581149,), (1342581150,), (1342581151,), (1342581152,), (1342581153,), (1342581171,), (1342581172,), (1342581429,), (1342581430,), (1342581663,), (1342581664,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229194 , 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=21229167 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 (21229194) result : ((1342579142,), (1342580975,), (1342581686,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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 21229195 , 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=21229167 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 (21229195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21229167) result : ((1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,)) 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`=21229167 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','metal','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','mal_croppe','plastique','environnement')) 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`=21229167 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','metal','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','mal_croppe','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21229167, 'sub_port_id': 21229196, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819646, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'metal': {'main_port_id': 21229167, 'sub_port_id': 21229197, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819647, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'mal_croppe': {'main_port_id': 21229167, 'sub_port_id': 21229198, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819648, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'autre_refus': {'main_port_id': 21229167, 'sub_port_id': 21229199, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819649, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'plastique': {'main_port_id': 21229167, 'sub_port_id': 21229200, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819650, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'Carton_gris': {'main_port_id': 21229167, 'sub_port_id': 21229201, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819651, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'flou': {'main_port_id': 21229167, 'sub_port_id': 21229202, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819652, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 21229167, 'sub_port_id': 21229203, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819653, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'papier': {'main_port_id': 21229167, 'sub_port_id': 21229204, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819654, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'cartonnette': {'main_port_id': 21229167, 'sub_port_id': 21229205, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819655, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'kraft': {'main_port_id': 21229167, 'sub_port_id': 21229206, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819656, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 9, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}, 'environnement': {'main_port_id': 21229167, 'sub_port_id': 21229207, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13819657, 'last_updated_at': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 17, 17, 3), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 17, 9, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229196,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229184 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229197,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229185 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229198,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229191 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21229207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21229195 lien utilise dans velours : https://www.fotonower.com/velours/21229196,21229197,21229198,21229199,21229200,21229201,21229202,21229203,21229204,21229205,21229206,21229207?tags=Carton_brun,metal,mal_croppe,autre_refus,plastique,Carton_gris,flou,Teint_Dans_La_Masse,papier,cartonnette,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21229167]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342581144] map_info['map_portfolio_photo'] : {21229167: [1342581144, 1342580936, 1342580930, 1342580924, 1342580917, 1342580909, 1342580888, 1342580885, 1342580879, 1342580874, 1342580869, 1342580861, 1342580819, 1342580774, 1342580716, 1342580696, 1342580692, 1342580672, 1342580578, 1342580565, 1342580562, 1342580518, 1342580301, 1342580227, 1342580137, 1342580120, 1342580116, 1342580074, 1342580071, 1342580066, 1342580061, 1342580056, 1342580053, 1342579425, 1342579338, 1342579161, 1342579144, 1342579130, 1342579096, 1342579092, 1342579087, 1342579079, 1342579070, 1342579061, 1342578945, 1342578938, 1342578894, 1342578883, 1342578879, 1342578875, 1342578872, 1342578858, 1342578719, 1342578674, 1342578629, 1342578585, 1342578527, 1342578484, 1342578110, 1342578060, 1342578031, 1342578027, 1342577963, 1342577960, 1342577940, 1342577924, 1342577887]} final : False mtd_id 4302 list_pids : [1342581144] Looping around the photos to save general results len do output : 1 /21229167. 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, '2654917') ('4302', '21229167', '1342581144', None, None, None, None, None, '2654917') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21229167', "{'Carton_brun': 21229184, 'metal': 21229185, 'mal_croppe': 21229186, 'autre_refus': 21229187, 'plastique': 21229188, 'Carton_gris': 21229189, 'flou': 21229190, 'Teint_Dans_La_Masse': 21229191, 'papier': 21229192, 'cartonnette': 21229193, 'kraft': 21229194, 'environnement': 21229195}", None, None, None, None, '2654917'), ('4302', '21229167', '1342581144', None, None, None, None, None, '2654917')] time used for this insertion : 0.027750253677368164 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.502404689788818 time spend to save output : 0.02803349494934082 total time spend for step 1 : 5.530438184738159 step2:final Mon Mar 10 17:19:36 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (21229167) 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 21229167 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342577963,1342577960,1342577940,1342577924,1342577887,1342578110,1342578060,1342578031,1342578027,1342578719,1342578674,1342578629,1342578585,1342578527,1342578484,1342578894,1342578883,1342578858,1342578879,1342578875,1342578872,1342578945,1342578938,1342579096,1342579092,1342579087,1342579079,1342579070,1342579061,1342579425,1342579338,1342579161,1342579144,1342579130,1342580074,1342580071,1342580066,1342580061,1342580056,1342580053,1342580301,1342580227,1342580137,1342580120,1342580116,1342580578,1342580565,1342580562,1342580518,1342580819,1342580774,1342580716,1342580696,1342580692,1342580672,1342580888,1342580885,1342580879,1342580874,1342580869,1342580861,1342580936,1342580930,1342580924,1342580917,1342580909,1342581144); 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([21229167]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342581144: ('0.07781920176515993',)} new output for save of step final : {1342581144: ('0.07781920176515993',)} [1342581144] map_info['map_portfolio_photo'] : {21229167: [1342581144, 1342580936, 1342580930, 1342580924, 1342580917, 1342580909, 1342580888, 1342580885, 1342580879, 1342580874, 1342580869, 1342580861, 1342580819, 1342580774, 1342580716, 1342580696, 1342580692, 1342580672, 1342580578, 1342580565, 1342580562, 1342580518, 1342580301, 1342580227, 1342580137, 1342580120, 1342580116, 1342580074, 1342580071, 1342580066, 1342580061, 1342580056, 1342580053, 1342579425, 1342579338, 1342579161, 1342579144, 1342579130, 1342579096, 1342579092, 1342579087, 1342579079, 1342579070, 1342579061, 1342578945, 1342578938, 1342578894, 1342578883, 1342578879, 1342578875, 1342578872, 1342578858, 1342578719, 1342578674, 1342578629, 1342578585, 1342578527, 1342578484, 1342578110, 1342578060, 1342578031, 1342578027, 1342577963, 1342577960, 1342577940, 1342577924, 1342577887]} final : False mtd_id 4302 list_pids : [1342581144] Looping around the photos to save general results len do output : 1 /1342581144.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, '2654917') ('4302', '21229167', '1342581144', None, None, None, None, None, '2654917') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21229167', '1342581144', '0.07781920176515993', None, None, None, None, '2654917')] time used for this insertion : 0.025671720504760742 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.15740704536437988 time spend to save output : 0.02592754364013672 total time spend for step 2 : 0.1833345890045166 step3:velours_tree Mon Mar 10 17:19:36 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21229167: [{'Carton_brun': 21229184, 'metal': 21229185, 'mal_croppe': 21229186, 'autre_refus': 21229187, 'plastique': 21229188, 'Carton_gris': 21229189, 'flou': 21229190, 'Teint_Dans_La_Masse': 21229191, 'papier': 21229192, 'cartonnette': 21229193, 'kraft': 21229194, 'environnement': 21229195}]} input_args_next_step : {21229167: ()} output_args : {21229167: [{'Carton_brun': 21229184, 'metal': 21229185, 'mal_croppe': 21229186, 'autre_refus': 21229187, 'plastique': 21229188, 'Carton_gris': 21229189, 'flou': 21229190, 'Teint_Dans_La_Masse': 21229191, 'papier': 21229192, 'cartonnette': 21229193, 'kraft': 21229194, 'environnement': 21229195}]} args : 21229167 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 21229184, 'metal': 21229185, 'mal_croppe': 21229186, 'autre_refus': 21229187, 'plastique': 21229188, 'Carton_gris': 21229189, 'flou': 21229190, 'Teint_Dans_La_Masse': 21229191, 'papier': 21229192, 'cartonnette': 21229193, 'kraft': 21229194, 'environnement': 21229195},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21229167) 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([21229167]) 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.3613717555999756 time spend to save output : 5.340576171875e-05 total time spend for step 3 : 0.36142516136169434 step4:send_mail_cod Mon Mar 10 17:19:37 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1342581144: ('0.07781920176515993',)} input_args_next_step : {1342581144: ()} output_args : {1342581144: ('0.07781920176515993',)} args : 1342581144 depend.output_id : 0 complete output_args for input 3 : {21229167: [{'Carton_brun': 21229184, 'metal': 21229185, 'mal_croppe': 21229186, 'autre_refus': 21229187, 'plastique': 21229188, 'Carton_gris': 21229189, 'flou': 21229190, 'Teint_Dans_La_Masse': 21229191, 'papier': 21229192, 'cartonnette': 21229193, 'kraft': 21229194, 'environnement': 21229195}]} input_args_next_step : {1342581144: ('0.07781920176515993',), 21229167: ()} output_args : {21229167: [{'Carton_brun': 21229184, 'metal': 21229185, 'mal_croppe': 21229186, 'autre_refus': 21229187, 'plastique': 21229188, 'Carton_gris': 21229189, 'flou': 21229190, 'Teint_Dans_La_Masse': 21229191, 'papier': 21229192, 'cartonnette': 21229193, 'kraft': 21229194, 'environnement': 21229195}]} args : 21229167 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.07781920176515993',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21229167) 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 (1342581144) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342581144 download finish for photo 1342581144 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21229167_10-03-2025_17_19_37.pdf 21229185 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=21229185 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342580830: '1741623215_3908538_1342578945_104618170ee986214cfe3a5b40842622_rle_crop_3703068137_0.png', 1342580978: '1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070127_0.png', 1342581693: '1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070127_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b4a028aa9c46696504717f5363f8f7e6_86339935.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5c1d741e8b52ba3e14b09ac310968318_10891097.png change filename to text .imagette212291851741623577/ imagette212291851741623577/1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070127_0.png.png imagette212291851741623577/1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070127_0.png.png imagette212291851741623577/1741623215_3908538_1342578945_104618170ee986214cfe3a5b40842622_rle_crop_3703068137_0.png.png imagette212291861741623577/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5c1d741e8b52ba3e14b09ac310968318_72779641.png imagette212291851741623577 21229186 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=21229186 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212291861741623577 21229187 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=21229187 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342580953: '1741623274_3909272_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071301_0.png', 1342581104: '1741623313_3909690_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068161_0.png', 1342581103: '1741623313_3909690_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068150_0.png', 1342581102: '1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068126_0.png', 1342581101: '1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068110_0.png', 1342581100: '1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068100_0.png', 1342581099: '1741623313_3909690_1342579092_48979947e5725d25196281018ffb79b8_rle_crop_3703068093_0.png', 1342581098: '1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068074_0.png', 1342580965: '1741623334_3909983_1342579096_ebc67edaf93977886d93c944bdd7c51f_rle_crop_3703068013_0.png', 1342581105: '1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068182_0.png', 1342580952: '1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071269_0.png', 1342580951: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070594_0.png', 1342580950: '1741623274_3909272_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070238_0.png', 1342580949: '1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070129_0.png', 1342580921: '1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070023_0.png', 1342580920: '1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070033_0.png', 1342580884: '1741623265_50659_1342580565_4ee55ff8c9fcc25a1ac0d9e74bc43853_rle_crop_3703068855_0.png', 1342580883: '1741623265_50659_1342580565_4ee55ff8c9fcc25a1ac0d9e74bc43853_rle_crop_3703068856_0.png', 1342581397: '1741623433_3913908_1342580716_be1c217c62cc87e0c4b58fdf5b725f70_rle_crop_3703075350_0.png', 1342581627: '1741623472_3914359_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071301_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9cf1ef83e55ae9b562b86c1438077138_55941241.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cbcc1ef8793cdc78489771ab7dca0958_37081903.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4c94a98cc79b8e818b50b080e4c625a4_31580772.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/45d48d50c1edd6d8e3387b006aad4a71_13677134.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b7c1f3105868746a5121c983b5f0b45a_3295934.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9fd933f6a9cd71bb57b448aa84071604_24617145.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9b0034cff2f90bc598c5f429f7f5bd3e_37616002.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0ef6d88d22c24f7e81d6aab428447619_87242737.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f358a277f8739d95fffaa8f5da710f38_97618105.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/159f12d4949548c4a5b30a8151a15c6a_31904205.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/32ae6c693f6f8e587ebc95f39550311e_94232687.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5e2948f9cea11500706977bfd8c840ff_79145290.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d8a22b92a2c327f6d52d0430be90a43d_1135375.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2fb587363d1e5c1c1fbf5da94dc5b09c_65557439.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e562a899fc0d730f056388ebef3a738c_43334938.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bd3648e2446c2b23260db199ff1c62bc_65748122.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/878f6b9ef495e38b33aff897e8387cd4_30652624.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/50ef699a265122b77c92d88a16fb6eb7_51544583.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0e187e22fd1e47750ddecb4272074668_21207966.png change filename to text .imagette212291871741623577/ imagette212291871741623577/1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068110_0.png.png imagette212291871741623577/1741623313_3909690_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068161_0.png.png imagette212291871741623577/1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068182_0.png.png imagette212291871741623577/1741623313_3909690_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068150_0.png.png imagette212291871741623577/1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070129_0.png.png imagette212291871741623577/1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068126_0.png.png imagette212291871741623577/1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068100_0.png.png imagette212291871741623577/1741623472_3914359_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071301_0.png.png imagette212291871741623577/1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070033_0.png.png imagette212291871741623577/1741623274_3909272_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070238_0.png.png imagette212291871741623577/1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071269_0.png.png imagette212291871741623577/1741623433_3913908_1342580716_be1c217c62cc87e0c4b58fdf5b725f70_rle_crop_3703075350_0.png.png imagette212291871741623577/1741623334_3909983_1342579096_ebc67edaf93977886d93c944bdd7c51f_rle_crop_3703068013_0.png.png imagette212291871741623577/1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070023_0.png.png imagette212291871741623577/1741623274_3909272_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071301_0.png.png imagette212291871741623577/1741623313_3909690_1342579092_48979947e5725d25196281018ffb79b8_rle_crop_3703068093_0.png.png imagette212291871741623577/1741623265_50659_1342580565_4ee55ff8c9fcc25a1ac0d9e74bc43853_rle_crop_3703068856_0.png.png imagette212291871741623577/1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068074_0.png.png imagette212291871741623577/1741623265_50659_1342580565_4ee55ff8c9fcc25a1ac0d9e74bc43853_rle_crop_3703068855_0.png.png imagette212291871741623577/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070594_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9cf1ef83e55ae9b562b86c1438077138_23714308.png imagette212291871741623577 21229188 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=21229188 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342580867: '1741623172_3908126_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068071_0.png', 1342581682: '1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071274_0.png', 1342581681: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070596_0.png', 1342581680: '1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070135_0.png', 1342581678: '1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070133_0.png', 1342581180: '1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068071_0.png', 1342580973: '1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071274_0.png', 1342580972: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070596_0.png', 1342580971: '1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070135_0.png', 1342580970: '1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070133_0.png', 1342579325: '1741622933_3905483_1342578879_9c419b86680242234020cade2fb3cbaf_rle_crop_3703057365_0.png', 1342580828: '1741623153_3907853_1342579130_3641a7cba8dd91016bf71a03858fcbba_rle_crop_3703067994_0.png', 1342580823: '1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067986_0.png', 1342580822: '1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067989_0.png', 1342580821: '1741623153_3907853_1342579338_75f32265fc9ca9a7a0c490ad88da6c2d_rle_crop_3703067894_0.png', 1342580600: '1741623148_47664_1342580056_b936a93ca372c4f85e2459001a597f66_rle_crop_3703065239_0.png', 1342580596: '1741623148_47664_1342580061_b0cfb58905bbb7155cf4bff006521cdb_rle_crop_3703065221_0.png', 1342580051: '1741622954_3905771_1342578674_506f68b4a638fcb42dd6d701e6d5c35a_rle_crop_3703058094_0.png', 1342579805: '1741622967_44655_1342578110_82713d1947bc78eede048fd04592968c_rle_crop_3703057929_0.png', 1342579327: '1741622933_3905483_1342578858_b8b8fbf89238fd0db5ea4154cd598515_rle_crop_3703057762_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8dbfbcb3aec5d0c81fa268981353209f_33347560.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/92c42fb26f1c03387f15bc347220aadb_59245425.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0695d57821dd432f2c8ef6d19406f963_24672421.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4a7afdd782cbc2b455e59b16d04e7b14_18395248.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/df8b464a50af055e4133dda81f9e71c3_90758264.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8dbfbcb3aec5d0c81fa268981353209f_92417973.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/92c42fb26f1c03387f15bc347220aadb_59853561.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0695d57821dd432f2c8ef6d19406f963_37929139.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4a7afdd782cbc2b455e59b16d04e7b14_49603882.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/df8b464a50af055e4133dda81f9e71c3_74321550.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cd12d76124b42429099fb5c8dcf891e5_25674359.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fd9f7482187b0f3a516327070ef2f99c_41036561.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5c51e9d6339afc659c15dac9936c3f96_33284636.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/492a2c5919db13378bb8022f2f497ec8_8085688.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/595dcc1d191bb9dbbff7c3e2c1564a01_13256725.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a7111e232b212799f276c330a9dc959d_7998310.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/aec6bf3b3673fa38f4052262bf37a1fd_1228503.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e145fe3ec6abc85ba415515df929f037_34779163.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7190eaa63bf0b8b1f63db91c279c46b8_65205634.png change filename to text .imagette212291881741623578/ imagette212291881741623578/1741623153_3907853_1342579338_75f32265fc9ca9a7a0c490ad88da6c2d_rle_crop_3703067894_0.png.png imagette212291881741623578/1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071274_0.png.png imagette212291881741623578/1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067989_0.png.png imagette212291881741623578/1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071274_0.png.png imagette212291881741623578/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070596_0.png.png imagette212291881741623578/1741623153_3907853_1342579130_3641a7cba8dd91016bf71a03858fcbba_rle_crop_3703067994_0.png.png imagette212291881741623578/1741623148_47664_1342580056_b936a93ca372c4f85e2459001a597f66_rle_crop_3703065239_0.png.png imagette212291881741623578/1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068071_0.png.png imagette212291881741623578/1741622933_3905483_1342578858_b8b8fbf89238fd0db5ea4154cd598515_rle_crop_3703057762_0.png.png imagette212291881741623578/1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067986_0.png.png imagette212291881741623578/1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070133_0.png.png imagette212291881741623578/1741622967_44655_1342578110_82713d1947bc78eede048fd04592968c_rle_crop_3703057929_0.png.png imagette212291881741623578/1741622933_3905483_1342578879_9c419b86680242234020cade2fb3cbaf_rle_crop_3703057365_0.png.png imagette212291881741623578/1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070135_0.png.png imagette212291881741623578/1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070135_0.png.png imagette212291881741623578/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070596_0.png.png imagette212291881741623578/1741623148_47664_1342580061_b0cfb58905bbb7155cf4bff006521cdb_rle_crop_3703065221_0.png.png imagette212291881741623578/1741623172_3908126_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068071_0.png.png imagette212291881741623578/1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070133_0.png.png imagette212291881741623578/1741622954_3905771_1342578674_506f68b4a638fcb42dd6d701e6d5c35a_rle_crop_3703058094_0.png.png imagette212291901741623579/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8ada3549a1d1f3dab82bdcacb9652dc9_6585244.png imagette212291881741623578 21229190 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=21229190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212291901741623579 21229193 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=21229193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342580856: '1741623172_3908126_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068151_0.png', 1342581664: '1741623472_3914359_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070233_0.png', 1342581663: '1741623472_3914359_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070234_0.png', 1342581430: '1741623433_3913908_1342580672_b3af9a036d3dba9283bea0acc44e292e_rle_crop_3703075385_0.png', 1342581429: '1741623433_3913908_1342580888_c1fa6df8b37cb4e3ac37a4cd23894f0f_rle_crop_3703075134_0.png', 1342581172: '1741623387_53631_1342580861_20ef59418b8b1ac345084fcd16a4b270_rle_crop_3703073893_0.png', 1342581171: '1741623387_53631_1342580869_014d6480b960042cdfee9f7e909a6a8c_rle_crop_3703073862_0.png', 1342581153: '1741623313_3909690_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068151_0.png', 1342581152: '1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068121_0.png', 1342581151: '1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068124_0.png', 1342581150: '1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068104_0.png', 1342581149: '1741623313_3909690_1342579092_48979947e5725d25196281018ffb79b8_rle_crop_3703068086_0.png', 1342581148: '1741623313_3909690_1342579092_48979947e5725d25196281018ffb79b8_rle_crop_3703068089_0.png', 1342580974: '1741623334_3909983_1342579096_ebc67edaf93977886d93c944bdd7c51f_rle_crop_3703068012_0.png', 1342580962: '1741623274_3909272_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070233_0.png', 1342580961: '1741623274_3909272_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070234_0.png', 1342579227: '1741622933_3905483_1342578883_21cacce4a6b4d0349e549ee19ca483f9_rle_crop_3703057335_0.png', 1342580855: '1741623172_3908126_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068121_0.png', 1342580854: '1741623172_3908126_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068124_0.png', 1342580853: '1741623172_3908126_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068104_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/532b86fcdf91f044b044c9159d0619bf_73918845.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bc082f8e4089c0c6ca2928768075c5dc_47723735.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c1a3ee3a0dd74001ce3d4738933f36b5_27121008.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/211b204deb7c789dfed990b70060f5ef_8193339.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4af6d5fe18357bbcd8504ed6062c9275_70048423.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/028260071f96dfba3a92e0c81c010c4f_19094928.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/40b0ae29ddfd9375d6990906296c29a6_75796772.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/532b86fcdf91f044b044c9159d0619bf_76976233.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/660b34b55fb5f2c1b63c68386da80ed6_24567141.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a6733735f8d37e3ccbcbcd0d4875e2b3_54696307.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/633581588ac8e196b0477b0f0e19832e_53667674.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/965316345a2ee7f65c2917ca035f47e8_26027778.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7b575a3ac46722a40dbc1e4eb8de660f_36552613.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/714fb3802a700c694482b32dbcf69cd8_56638933.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bc082f8e4089c0c6ca2928768075c5dc_48015337.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c1a3ee3a0dd74001ce3d4738933f36b5_91382960.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/672dac97aff076c8c5329c2215e16440_46469102.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/660b34b55fb5f2c1b63c68386da80ed6_9104195.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a6733735f8d37e3ccbcbcd0d4875e2b3_14449385.png change filename to text .imagette212291931741623579/ imagette212291931741623579/1741623387_53631_1342580869_014d6480b960042cdfee9f7e909a6a8c_rle_crop_3703073862_0.png.png imagette212291931741623579/1741623172_3908126_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068151_0.png.png imagette212291931741623579/1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068104_0.png.png imagette212291931741623579/1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068121_0.png.png imagette212291931741623579/1741623472_3914359_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070234_0.png.png imagette212291931741623579/1741623313_3909690_1342579070_85f811c05127b405aeaeed5c35abfe5c_rle_crop_3703068151_0.png.png imagette212291931741623579/1741623433_3913908_1342580672_b3af9a036d3dba9283bea0acc44e292e_rle_crop_3703075385_0.png.png imagette212291931741623579/1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068124_0.png.png imagette212291931741623579/1741623274_3909272_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070234_0.png.png imagette212291931741623579/1741623172_3908126_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068121_0.png.png imagette212291931741623579/1741623433_3913908_1342580888_c1fa6df8b37cb4e3ac37a4cd23894f0f_rle_crop_3703075134_0.png.png imagette212291931741623579/1741623387_53631_1342580861_20ef59418b8b1ac345084fcd16a4b270_rle_crop_3703073893_0.png.png imagette212291931741623579/1741623172_3908126_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068124_0.png.png imagette212291931741623579/1741623313_3909690_1342579092_48979947e5725d25196281018ffb79b8_rle_crop_3703068089_0.png.png imagette212291931741623579/1741623313_3909690_1342579092_48979947e5725d25196281018ffb79b8_rle_crop_3703068086_0.png.png imagette212291931741623579/1741622933_3905483_1342578883_21cacce4a6b4d0349e549ee19ca483f9_rle_crop_3703057335_0.png.png imagette212291931741623579/1741623334_3909983_1342579096_ebc67edaf93977886d93c944bdd7c51f_rle_crop_3703068012_0.png.png imagette212291931741623579/1741623274_3909272_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070233_0.png.png imagette212291931741623579/1741623472_3914359_1342580227_cdb487b80defea7fe910e18dcd464a35_rle_crop_3703070233_0.png.png imagette212291931741623579/1741623172_3908126_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068104_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/633581588ac8e196b0477b0f0e19832e_70719871.png imagette212291931741623579 21229194 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=21229194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342579142: '1741622941_3905590_1342578060_2045d3f85c4e90339f76d691ebf61936_rle_crop_3703057344_0.png', 1342580975: '1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071263_0.png', 1342581686: '1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071263_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d46e8e266a205e4ffd4678ceb1eb285a_2692731.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f61d9a9520c1b225fa5b5ea4b6c9448c_28567778.png change filename to text .imagette212291941741623581/ imagette212291941741623581/1741622941_3905590_1342578060_2045d3f85c4e90339f76d691ebf61936_rle_crop_3703057344_0.png.png imagette212291941741623581/1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071263_0.png.png imagette212291941741623581/1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071263_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f61d9a9520c1b225fa5b5ea4b6c9448c_29532619.png imagette212291941741623581 21229184 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=21229184 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342580858: '1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068180_0.png', 1342581670: '1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071267_0.png', 1342581669: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070593_0.png', 1342581179: '1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068175_0.png', 1342581178: '1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068172_0.png', 1342581177: '1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068178_0.png', 1342581176: '1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068180_0.png', 1342581175: '1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068072_0.png', 1342580964: '1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071267_0.png', 1342580963: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070593_0.png', 1342580864: '1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068175_0.png', 1342580863: '1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068172_0.png', 1342580859: '1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068178_0.png', 1342579139: '1741622941_3905590_1342578031_2dc4b4f119d3d10a0b9dd3e24cc1a030_rle_crop_3703057524_0.png', 1342580857: '1741623172_3908126_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068072_0.png', 1342580818: '1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067981_0.png', 1342580817: '1741623153_3907853_1342579338_75f32265fc9ca9a7a0c490ad88da6c2d_rle_crop_3703067890_0.png', 1342580816: '1741623153_3907853_1342579338_75f32265fc9ca9a7a0c490ad88da6c2d_rle_crop_3703067891_0.png', 1342580049: '1741622954_3905771_1342578585_9aeee0e7df921e9993d3e3a066af0390_rle_crop_3703058187_0.png', 1342580048: '1741622954_3905771_1342578585_9aeee0e7df921e9993d3e3a066af0390_rle_crop_3703058181_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/25c8bc9d0e22e181220cebb96d6b245c_70173155.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dadd4309951a84192f7afdcff2959cbb_94433709.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a86b3bf2324231a50218aeb772264250_84966983.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bb88170471d1d4b3b9e058541b790804_12951760.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/15cafbd2d82de5cf6b92d813794cc19d_53347044.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a08c82bfb3cc759357db12f2f7630352_72694841.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/25c8bc9d0e22e181220cebb96d6b245c_57237380.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fbf43024c76e1d12182e8572c462b32c_84410417.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dadd4309951a84192f7afdcff2959cbb_42758548.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a86b3bf2324231a50218aeb772264250_18868424.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bb88170471d1d4b3b9e058541b790804_88622260.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/15cafbd2d82de5cf6b92d813794cc19d_75071084.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a08c82bfb3cc759357db12f2f7630352_63557994.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/556903f9ea98d3a6b47cf909dcc5a343_85378962.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fbf43024c76e1d12182e8572c462b32c_81554637.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3631c562a4164a24d76007c4c26c8935_653135.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dec6b2a560d30b3b5ca367f770aec1f4_10702109.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8c7c4a2cdeadb9fb499dbe90ebf2c961_88402072.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cabd3dd613642ba9cc643ee5dce1f09a_74472639.png change filename to text .imagette212291841741623581/ imagette212291841741623581/1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068172_0.png.png imagette212291841741623581/1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068178_0.png.png imagette212291841741623581/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070593_0.png.png imagette212291841741623581/1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071267_0.png.png imagette212291841741623581/1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068072_0.png.png imagette212291841741623581/1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068175_0.png.png imagette212291841741623581/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070593_0.png.png imagette212291841741623581/1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068180_0.png.png imagette212291841741623581/1741623172_3908126_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068178_0.png.png imagette212291841741623581/1741623172_3908126_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068072_0.png.png imagette212291841741623581/1741623153_3907853_1342579338_75f32265fc9ca9a7a0c490ad88da6c2d_rle_crop_3703067891_0.png.png imagette212291841741623581/1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071267_0.png.png imagette212291841741623581/1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067981_0.png.png imagette212291841741623581/1741623153_3907853_1342579338_75f32265fc9ca9a7a0c490ad88da6c2d_rle_crop_3703067890_0.png.png imagette212291841741623581/1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068172_0.png.png imagette212291841741623581/1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068175_0.png.png imagette212291841741623581/1741622941_3905590_1342578031_2dc4b4f119d3d10a0b9dd3e24cc1a030_rle_crop_3703057524_0.png.png imagette212291841741623581/1741622954_3905771_1342578585_9aeee0e7df921e9993d3e3a066af0390_rle_crop_3703058187_0.png.png imagette212291841741623581/1741623313_3909690_1342579061_395dce9902ee1d83a035f1735a0e2c5f_rle_crop_3703068180_0.png.png imagette212291841741623581/1741622954_3905771_1342578585_9aeee0e7df921e9993d3e3a066af0390_rle_crop_3703058181_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/86ad56a1e80052d54a2a09f773176694_30390513.png imagette212291841741623581 21229189 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=21229189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342580958: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070582_0.png', 1342581642: '1741623472_3914359_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071299_0.png', 1342581641: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703075699_0.png', 1342581640: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_bib_crop_3703070582_0.jpg', 1342581639: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070584_0.png', 1342581638: '1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070126_0.png', 1342581409: '1741623433_3913908_1342580692_a1026cd67fbebb8eb61811afb060a5e0_rle_crop_3703075367_0.png', 1342581408: '1741623433_3913908_1342580692_a1026cd67fbebb8eb61811afb060a5e0_rle_crop_3703075369_0.png', 1342581170: '1741623387_53631_1342580869_014d6480b960042cdfee9f7e909a6a8c_rle_crop_3703073860_0.png', 1342581106: '1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068118_0.png', 1342580969: '1741623334_3909983_1342578938_1b9985b7ac1772bcedad68f5c204383c_rle_crop_3703068016_0.png', 1342580968: '1741623334_3909983_1342579096_ebc67edaf93977886d93c944bdd7c51f_rle_crop_3703068008_0.png', 1342580959: '1741623274_3909272_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071299_0.png', 1342579136: '1741622941_3905590_1342578027_d26e40e178524bd17c79130946ef0b5b_rle_crop_3703057726_0.png', 1342580957: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070584_0.png', 1342580956: '1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070126_0.png', 1342580922: '1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070029_0.png', 1342580846: '1741623172_3908126_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068118_0.png', 1342580773: '1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067978_0.png', 1342580771: '1741623153_3907853_1342580074_bf586993ea566e21e0cab1a36312595a_rle_crop_3703067754_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/105841a9459916e35ef7a03adce1c8b3_42926091.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/50906b0d27010854fda85cd52ee5f63b_65364419.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3cd200cd3a0e31d4313c9492599ee138_97056313.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5585566fae7b47468ffceab65b9d9b0e_30134742.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6a6de7f2320d298a58319f571cd0bafc_98172700.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2f098b91f8ce533901a498d65a48263f_69663478.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4daec1d67fd896eb24e0b94c8f7902f0_16942360.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/77748fd473634eb5c61cfc6d3cc1bc4c_97613574.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a85372c41d7a39b8de269811327aec49_82427339.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dd370b6e0a243d42c552ead242a6f6f0_98444448.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/47eb66f3ae08c6f67d9d9b69124c2f2a_43278589.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d31f5a41febef9cf7b492892d7e7123c_28590012.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/50906b0d27010854fda85cd52ee5f63b_69965656.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/10a7f6178b487237eb389bd9b0192404_14819951.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6a6de7f2320d298a58319f571cd0bafc_28656293.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2f098b91f8ce533901a498d65a48263f_61945964.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f7a4eb2ee982c57e4320978371f150ce_64122779.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dd370b6e0a243d42c552ead242a6f6f0_77728547.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b0970c1efdac8cca6c3582df53b099fc_98353358.png change filename to text .imagette212291891741623589/ imagette212291891741623589/1741623153_3907853_1342580074_bf586993ea566e21e0cab1a36312595a_rle_crop_3703067754_0.png.png imagette212291891741623589/1741623387_53631_1342580869_014d6480b960042cdfee9f7e909a6a8c_rle_crop_3703073860_0.png.png imagette212291891741623589/1741623313_3909690_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068118_0.png.png imagette212291891741623589/1741623472_3914359_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070126_0.png.png imagette212291891741623589/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_bib_crop_3703070582_0.jpg.jpg imagette212291891741623589/1741623433_3913908_1342580692_a1026cd67fbebb8eb61811afb060a5e0_rle_crop_3703075369_0.png.png imagette212291891741623589/1741623472_3914359_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071299_0.png.png imagette212291891741623589/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070584_0.png.png imagette212291891741623589/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070584_0.png.png imagette212291891741623589/1741623153_3907853_1342579144_f55e57bea83c19f514e63809e1619563_rle_crop_3703067978_0.png.png imagette212291891741623589/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703075699_0.png.png imagette212291891741623589/1741623274_3909272_1342580116_bb934e70ba40b3e1d467d10db7233813_rle_crop_3703071299_0.png.png imagette212291891741623589/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070582_0.png.png imagette212291891741623589/1741623334_3909983_1342578938_1b9985b7ac1772bcedad68f5c204383c_rle_crop_3703068016_0.png.png imagette212291891741623589/1741623433_3913908_1342580692_a1026cd67fbebb8eb61811afb060a5e0_rle_crop_3703075367_0.png.png imagette212291891741623589/1741623172_3908126_1342579079_36687e13ca751d6a55ac2ea89141f42e_rle_crop_3703068118_0.png.png imagette212291891741623589/1741622941_3905590_1342578027_d26e40e178524bd17c79130946ef0b5b_rle_crop_3703057726_0.png.png imagette212291891741623589/1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070029_0.png.png imagette212291891741623589/1741623274_3909272_1342580578_17f7a337eab701fa076696307159b36d_rle_crop_3703070126_0.png.png imagette212291891741623589/1741623334_3909983_1342579096_ebc67edaf93977886d93c944bdd7c51f_rle_crop_3703068008_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6fe7f417c1b708292c3ec0c6cc932d54_40018645.png imagette212291891741623589 21229191 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=21229191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342580944: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070587_0.png', 1342581618: '1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071270_0.png', 1342581617: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070592_0.png', 1342581616: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070587_0.png', 1342581614: '1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070588_0.png', 1342581376: '1741623433_3913908_1342580696_a5ad0ebb7e4ed14141771799ae4abac9_rle_crop_3703075355_0.png', 1342581375: '1741623433_3913908_1342580888_c1fa6df8b37cb4e3ac37a4cd23894f0f_rle_crop_3703075140_0.png', 1342581374: '1741623433_3913908_1342580888_c1fa6df8b37cb4e3ac37a4cd23894f0f_rle_crop_3703075139_0.png', 1342581107: '1741623387_53631_1342580885_25f2b1e4efc84b8d86aef487ee188acf_rle_crop_3703073766_0.png', 1342581093: '1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068101_0.png', 1342581092: '1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068073_0.png', 1342580946: '1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071270_0.png', 1342580945: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070592_0.png', 1342579135: '1741622941_3905590_1342578031_2dc4b4f119d3d10a0b9dd3e24cc1a030_rle_crop_3703057521_0.png', 1342580943: '1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070588_0.png', 1342580915: '1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070026_0.png', 1342580824: '1741623215_3908538_1342578945_104618170ee986214cfe3a5b40842622_rle_crop_3703068140_0.png', 1342580026: '1741622954_3905771_1342578484_693ae35312943027579edfcc5975001c_rle_crop_3703058262_0.png', 1342580025: '1741622954_3905771_1342578484_693ae35312943027579edfcc5975001c_rle_crop_3703058266_0.png', 1342580024: '1741622954_3905771_1342578527_eef565dea2dfe706910457ce2c71f3a6_rle_crop_3703058213_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f4a43c34e2824c19920c7cfcbf6cb51d_68094266.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c8c0dbc66b5fce4831e0adf7dc7096ed_66073866.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/880d78a8bd147d073f93d5f392ef68bd_59612079.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f4a43c34e2824c19920c7cfcbf6cb51d_76167530.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b17b4ba8e74800eb2edccaa745d20239_25386451.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1d407fe43e92fef1e67d497e02b7bc0b_64109943.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/77710d4dcbf5b2f48f01d7adf865030a_3727300.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/efd0d06c78f3a10f88cf82d26865f503_12850040.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9aec1e0e95c21f9f493bf956e88ce7b5_64684514.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1bb9a7994798c02096b4ca98aadc7c75_17275793.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0b36221ca6e9813bb4152a230e9a9045_1192608.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c8c0dbc66b5fce4831e0adf7dc7096ed_54781809.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/880d78a8bd147d073f93d5f392ef68bd_9325781.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7de542ad481d02cb2a3a5906b9adee42_59776914.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b17b4ba8e74800eb2edccaa745d20239_71657496.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/388053030e0e588b92c9cd6ed3078463_90542021.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/81b4b6fe8ffd87eb4c93ec18c3c86fa4_55701011.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/538e71933d51a76dae140adab6151299_83499972.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8bf13c13a6506200618cd0489317adaa_77638264.png change filename to text .imagette212291911741623592/ imagette212291911741623592/1741622954_3905771_1342578484_693ae35312943027579edfcc5975001c_rle_crop_3703058262_0.png.png imagette212291911741623592/1741622954_3905771_1342578484_693ae35312943027579edfcc5975001c_rle_crop_3703058266_0.png.png imagette212291911741623592/1741623274_3909272_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071270_0.png.png imagette212291911741623592/1741623313_3909690_1342579425_0713927efd71594adbf136a32ec3251c_rle_crop_3703068073_0.png.png imagette212291911741623592/1741623313_3909690_1342579087_b6cea23ea7f4f8587e267c3fce24bbe6_rle_crop_3703068101_0.png.png imagette212291911741623592/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070587_0.png.png imagette212291911741623592/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070588_0.png.png imagette212291911741623592/1741623292_3909404_1342580301_5601bb17fa928a6fa322fae6b192467a_rle_crop_3703070026_0.png.png imagette212291911741623592/1741623387_53631_1342580885_25f2b1e4efc84b8d86aef487ee188acf_rle_crop_3703073766_0.png.png imagette212291911741623592/1741623215_3908538_1342578945_104618170ee986214cfe3a5b40842622_rle_crop_3703068140_0.png.png imagette212291911741623592/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070588_0.png.png imagette212291911741623592/1741623433_3913908_1342580696_a5ad0ebb7e4ed14141771799ae4abac9_rle_crop_3703075355_0.png.png imagette212291911741623592/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070592_0.png.png imagette212291911741623592/1741623433_3913908_1342580888_c1fa6df8b37cb4e3ac37a4cd23894f0f_rle_crop_3703075139_0.png.png imagette212291911741623592/1741622941_3905590_1342578031_2dc4b4f119d3d10a0b9dd3e24cc1a030_rle_crop_3703057521_0.png.png imagette212291911741623592/1741623472_3914359_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070592_0.png.png imagette212291911741623592/1741622954_3905771_1342578527_eef565dea2dfe706910457ce2c71f3a6_rle_crop_3703058213_0.png.png imagette212291911741623592/1741623274_3909272_1342580137_36dc31e06b191d899097afdf3233efb9_rle_crop_3703070587_0.png.png imagette212291911741623592/1741623472_3914359_1342580120_aaa1c89ae6fb4353807526646d249141_rle_crop_3703071270_0.png.png imagette212291911741623592/1741623433_3913908_1342580888_c1fa6df8b37cb4e3ac37a4cd23894f0f_rle_crop_3703075140_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7e06c534824b43e010754df3ad81d712_89139772.png imagette212291911741623592 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21229167 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21229196,21229197,21229198,21229199,21229200,21229201,21229202,21229203,21229204,21229205,21229206,21229207?tags=Carton_brun,metal,mal_croppe,autre_refus,plastique,Carton_gris,flou,Teint_Dans_La_Masse,papier,cartonnette,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1342581144] : ('0.07781920176515993',) no score found for photo 1342581144 We are sending mail with results at report@fotonower.com refus_total : 0.07781920176515993 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=21229167 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_P21229167_10-03-2025_17_19_37.pdf results_Auto_P21229167_10-03-2025_17_19_37.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229167_10-03-2025_17_19_37.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','21229167','results_Auto_P21229167_10-03-2025_17_19_37.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229167_10-03-2025_17_19_37.pdf','pdf','','0.32','0.07781920176515993') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21229167]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342581144] map_info['map_portfolio_photo'] : {21229167: [1342581144, 1342580936, 1342580930, 1342580924, 1342580917, 1342580909, 1342580888, 1342580885, 1342580879, 1342580874, 1342580869, 1342580861, 1342580819, 1342580774, 1342580716, 1342580696, 1342580692, 1342580672, 1342580578, 1342580565, 1342580562, 1342580518, 1342580301, 1342580227, 1342580137, 1342580120, 1342580116, 1342580074, 1342580071, 1342580066, 1342580061, 1342580056, 1342580053, 1342579425, 1342579338, 1342579161, 1342579144, 1342579130, 1342579096, 1342579092, 1342579087, 1342579079, 1342579070, 1342579061, 1342578945, 1342578938, 1342578894, 1342578883, 1342578879, 1342578875, 1342578872, 1342578858, 1342578719, 1342578674, 1342578629, 1342578585, 1342578527, 1342578484, 1342578110, 1342578060, 1342578031, 1342578027, 1342577963, 1342577960, 1342577940, 1342577924, 1342577887]} final : False mtd_id 4302 list_pids : [1342581144] 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, '2654917') ('4302', '21229167', '1342581144', None, None, None, None, None, '2654917') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21229167', '1342581144', None, None, None, None, None, '2654917')] time used for this insertion : 0.020696640014648438 save_final save missing photos in datou_result : time spend for datou_step_exec : 17.983285188674927 time spend to save output : 0.02089691162109375 total time spend for step 4 : 18.00418210029602 step5:split_time_score Mon Mar 10 17:19:55 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 : ['21229167'] 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 : [('21229167',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21229167) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342581144: {'path': 'temp/1741623577_3827018_1342581144_87f56570e90b920e736593f56d27e06a.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 = 21229167; (('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 = 21229167 group by h (('17', 67),) 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=21229167 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 (21229167) 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 (21229167) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10032025 21229167 Nombre de photos uploadées : 67 / 23040 (0%) 10032025 21229167 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 10032025 21229167 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1342577963, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b9573d6117edeec538db1cae813faf00.jpg', 'username': None, 'uploaded_at': 1741622617, 'text': 'image_10032025_17_02_04_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342577960, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b130958ed48a1f10f3d3755902cce1a0.jpg', 'username': None, 'uploaded_at': 1741622617, 'text': 'image_10032025_17_02_14_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342577940, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/069af87112f602fa777761ebff7459b5.jpg', 'username': None, 'uploaded_at': 1741622617, 'text': 'image_10032025_17_02_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342577924, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/627f7f1edc75199c78564c22b2b75d49.jpg', 'username': None, 'uploaded_at': 1741622617, 'text': 'image_10032025_17_02_35_010141m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003237009048461914 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21229167, '2025-03-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1654691,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.040979862213134766 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= 1654691 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1654691, 'dashboard_run_id': 1662965, 'mtr_portfolio_id': 21227642, 'dashboard_result_id': 9314129, '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_P21227642_10-03-2025_16_55_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21227679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21227680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21227686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21227694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21227696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21227708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21227709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21227710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21227711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21227712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21227713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21227714, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1662965, 'mtr_portfolio_id': 21228123, 'dashboard_result_id': 9314131, '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_P21228123_10-03-2025_17_05_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21228230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21228231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21228232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21228233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21228234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21228235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21228236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21228237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21228238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21228239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21228240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21228241, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1662965, 'mtr_portfolio_id': 21229167, 'dashboard_result_id': 9314132, '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_P21229167_10-03-2025_17_17_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229195, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1662965, 'mtr_portfolio_id': 21229599, 'dashboard_result_id': 9314134, '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_P21229599_10-03-2025_17_19_09.pdf'}"}] 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 = 21227642 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': 2654811, 'mtr_portfolio_id': 21227642, 'created_at': datetime.datetime(2025, 3, 10, 16, 55, 31), 'result': '0.07656148551135905', 'result_long': None, 'result_double': None}] Qualite : 0.07656148551135905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21227642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21227642_10-03-2025_16_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21227642 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_P21227642_10-03-2025_16_55_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21227679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21227680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21227686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21227694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21227696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21227708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21227709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21227710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21227711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21227712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21227713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21227714, 'pht': 3726}}" where mtr_portfolio_id = 21227642 and dashboard_run_id = 1662965 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`=21227642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9314129, 0.07656148551135905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21227642_10-03-2025_16_55_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21227679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21227680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21227686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21227694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21227696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21227708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21227709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21227710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21227711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21227712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21227713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21227714, '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 = 21228123 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': 2654864, 'mtr_portfolio_id': 21228123, 'created_at': datetime.datetime(2025, 3, 10, 17, 5, 2), 'result': '0.07246077982881656', 'result_long': None, 'result_double': None}] Qualite : 0.07246077982881656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21228123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21228123_10-03-2025_17_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21228123 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_P21228123_10-03-2025_17_05_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21228230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21228231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21228232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21228233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21228234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21228235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21228236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21228237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21228238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21228239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21228240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21228241, 'pht': 3726}}" where mtr_portfolio_id = 21228123 and dashboard_run_id = 1662965 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`=21228123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9314131, 0.07246077982881656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21228123_10-03-2025_17_05_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21228230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21228231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21228232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21228233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21228234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21228235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21228236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21228237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21228238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21228239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21228240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21228241, '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 = 21229167 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': 2654917, 'mtr_portfolio_id': 21229167, 'created_at': datetime.datetime(2025, 3, 10, 17, 19, 36), 'result': '0.07781920176515993', 'result_long': None, 'result_double': None}] Qualite : 0.07781920176515993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21229167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229167_10-03-2025_17_19_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21229167 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_P21229167_10-03-2025_17_19_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229195, 'pht': 3726}}" where mtr_portfolio_id = 21229167 and dashboard_run_id = 1662965 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`=21229167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9314132, 0.07781920176515993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229167_10-03-2025_17_19_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21229184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21229185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21229186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21229187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21229188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21229189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21229190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21229191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21229192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21229193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21229194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21229195, '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 = 21229599 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 21229599 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21229599 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21229599 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21229599 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21229599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21229599_10-03-2025_17_19_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21229599 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_P21229599_10-03-2025_17_19_09.pdf'}" where mtr_portfolio_id = 21229599 and dashboard_run_id = 1662965 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21227642,21228123,21229167,21229599) result : ((1342570678,), (1342570682,), (1342570686,), (1342570713,), (1342570799,), (1342570813,), (1342570819,), (1342570824,), (1342570836,), (1342570848,), (1342570940,), (1342570946,), (1342570965,), (1342570971,), (1342571062,), (1342571082,), (1342571121,), (1342571136,), (1342571142,), (1342571143,), (1342571223,), (1342571232,), (1342571238,), (1342571244,), (1342571248,), (1342571250,), (1342571254,), (1342571259,), (1342571265,), (1342571271,), (1342571279,), (1342571400,), (1342571847,), (1342571851,), (1342571855,), (1342571865,), (1342571872,), (1342571911,), (1342571915,), (1342571920,), (1342572076,), (1342572089,), (1342572093,), (1342572186,), (1342572190,), (1342572370,), (1342572422,), (1342572499,), (1342572512,), (1342572623,), (1342572649,), (1342572679,), (1342572683,), (1342572804,), (1342572807,), (1342573159,), (1342573162,), (1342573166,), (1342573171,), (1342573173,), (1342573174,), (1342573200,), (1342573223,), (1342573230,), (1342573231,), (1342573238,), (1342573261,), (1342573263,), (1342573265,), (1342573273,), (1342573300,), (1342573304,), (1342573318,), (1342573376,), (1342573381,), (1342573432,), (1342573441,), (1342573451,), (1342573460,), (1342573516,), (1342573523,), (1342573527,), (1342573532,), (1342573536,), (1342573539,), (1342573552,), (1342573558,), (1342573560,), (1342573566,), (1342573571,), (1342573575,), (1342573862,), (1342573864,), (1342573940,), (1342573943,), (1342573946,), (1342573953,), (1342573959,), (1342573964,), (1342574023,), (1342574046,), (1342574110,), (1342574132,), (1342574144,), (1342574176,), (1342574185,), (1342574188,), (1342574266,), (1342574399,), (1342574616,), (1342574725,), (1342574778,), (1342573738,), (1342573739,), (1342573770,), (1342573771,), (1342573777,), (1342573797,), (1342573799,), (1342573802,), (1342573805,), (1342573806,), (1342573877,), (1342573881,), (1342573886,), (1342573890,), (1342573893,), (1342573907,), (1342573973,), (1342573975,), (1342573977,), (1342573993,), (1342574226,), (1342574232,), (1342574238,), (1342574245,), (1342574259,), (1342574279,), (1342574290,), (1342574306,), (1342574334,), (1342574359,), (1342574466,), (1342574487,), (1342574506,), (1342574557,), (1342574577,), (1342574852,), (1342574859,), (1342574993,), (1342574998,), (1342575003,), (1342575366,), (1342575886,), (1342576049,), (1342576061,), (1342576933,), (1342576987,), (1342577107,), (1342577146,), (1342577985,), (1342577887,), (1342577924,), (1342577940,), (1342577960,), (1342577963,), (1342578027,), (1342578031,), (1342578060,), (1342578110,), (1342578484,), (1342578527,), (1342578585,), (1342578629,), (1342578674,), (1342578719,), (1342578858,), (1342578872,), (1342578875,), (1342578879,), (1342578883,), (1342578894,), (1342578938,), (1342578945,), (1342579061,), (1342579070,), (1342579079,), (1342579087,), (1342579092,), (1342579096,), (1342579130,), (1342579144,), (1342579161,), (1342579338,), (1342579425,), (1342580053,), (1342580056,), (1342580061,), (1342580066,), (1342580071,), (1342580074,), (1342580116,), (1342580120,), (1342580137,), (1342580227,), (1342580301,), (1342580518,), (1342580562,), (1342580565,), (1342580578,), (1342580672,), (1342580692,), (1342580696,), (1342580716,), (1342580774,), (1342580819,), (1342580861,), (1342580869,), (1342580874,), (1342580879,), (1342580885,), (1342580888,), (1342580909,), (1342580917,), (1342580924,), (1342580930,), (1342580936,), (1342581144,), (1342580983,), (1342580987,), (1342580991,), (1342581057,), (1342581094,), (1342581251,), (1342581256,), (1342581263,), (1342581268,), (1342581272,), (1342581277,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10032025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21229167]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342581144] map_info['map_portfolio_photo'] : {21229167: [1342581144, 1342580936, 1342580930, 1342580924, 1342580917, 1342580909, 1342580888, 1342580885, 1342580879, 1342580874, 1342580869, 1342580861, 1342580819, 1342580774, 1342580716, 1342580696, 1342580692, 1342580672, 1342580578, 1342580565, 1342580562, 1342580518, 1342580301, 1342580227, 1342580137, 1342580120, 1342580116, 1342580074, 1342580071, 1342580066, 1342580061, 1342580056, 1342580053, 1342579425, 1342579338, 1342579161, 1342579144, 1342579130, 1342579096, 1342579092, 1342579087, 1342579079, 1342579070, 1342579061, 1342578945, 1342578938, 1342578894, 1342578883, 1342578879, 1342578875, 1342578872, 1342578858, 1342578719, 1342578674, 1342578629, 1342578585, 1342578527, 1342578484, 1342578110, 1342578060, 1342578031, 1342578027, 1342577963, 1342577960, 1342577940, 1342577924, 1342577887]} final : True mtd_id 4302 list_pids : [1342581144] Looping around the photos to save general results len do output : 1 /21229167Didn'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, '2654917') ('4302', '21229167', '1342581144', None, None, None, None, None, '2654917') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21229167', 'None', None, None, None, None, '2654917'), ('4302', '21229167', '1342581144', None, None, None, None, None, '2654917')] time used for this insertion : 0.020982980728149414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9255406856536865 time spend to save output : 0.02118062973022461 total time spend for step 5 : 0.9467213153839111 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 (2654917) 2.36user 2.04system 0:29.81elapsed 14%CPU (0avgtext+0avgdata 157656maxresident)k 4520inputs+21320outputs (72major+74996minor)pagefaults 0swaps