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 : 3077371 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 (4116687) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4116687) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900036 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4116687'] with mtr_portfolio_ids : ['28900036'] and first list_photo_ids : [] new path : /proc/3077371/ Name: python3 Umask: 0002 State: R (running) Tgid: 3077371 Ngid: 0 Pid: 3077371 PPid: 3077370 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3077371 NSpid: 3077371 NSpgid: 3077028 NSsid: 3077028 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97888 kB VmRSS: 97888 kB RssAnon: 59904 kB RssFile: 37984 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 47 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3077371', 'Ngid': '0', 'Pid': '3077371', 'PPid': '3077370', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3077371', 'NSpid': '3077371', 'NSpgid': '3077028', 'NSsid': '3077028', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97888 kB', 'VmRSS': '97888 kB', 'RssAnon': '59904 kB', 'RssFile': '37984 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '47', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '3077371', '1106908', '0', '1106884', '865636', '97888', b'', 'marlene', '4116687') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28900036) 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 (4116687 ) ) 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 (28900036) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396165805, 'portfolio_id': 28900036}, {'photo_id': 1396165772, 'portfolio_id': 28900036}, {'photo_id': 1396165736, 'portfolio_id': 28900036}, {'photo_id': 1396165702, 'portfolio_id': 28900036}, {'photo_id': 1396165670, 'portfolio_id': 28900036}, {'photo_id': 1396165638, 'portfolio_id': 28900036}, {'photo_id': 1396165318, 'portfolio_id': 28900036}, {'photo_id': 1396165317, 'portfolio_id': 28900036}, {'photo_id': 1396165298, 'portfolio_id': 28900036}, {'photo_id': 1396165293, 'portfolio_id': 28900036}, {'photo_id': 1396165286, 'portfolio_id': 28900036}, {'photo_id': 1396165282, 'portfolio_id': 28900036}, {'photo_id': 1396165280, 'portfolio_id': 28900036}, {'photo_id': 1396165270, 'portfolio_id': 28900036}, {'photo_id': 1396165269, 'portfolio_id': 28900036}, {'photo_id': 1396165268, 'portfolio_id': 28900036}, {'photo_id': 1396165267, 'portfolio_id': 28900036}, {'photo_id': 1396165263, 'portfolio_id': 28900036}, {'photo_id': 1396165260, 'portfolio_id': 28900036}, {'photo_id': 1396165257, 'portfolio_id': 28900036}, {'photo_id': 1396165254, 'portfolio_id': 28900036}, {'photo_id': 1396165253, 'portfolio_id': 28900036}, {'photo_id': 1396165251, 'portfolio_id': 28900036}, {'photo_id': 1396165137, 'portfolio_id': 28900036}, {'photo_id': 1396165136, 'portfolio_id': 28900036}, {'photo_id': 1396165111, 'portfolio_id': 28900036}, {'photo_id': 1396165074, 'portfolio_id': 28900036}, {'photo_id': 1396164899, 'portfolio_id': 28900036}, {'photo_id': 1396164897, 'portfolio_id': 28900036}, {'photo_id': 1396164895, 'portfolio_id': 28900036}, {'photo_id': 1396164893, 'portfolio_id': 28900036}, {'photo_id': 1396164524, 'portfolio_id': 28900036}, {'photo_id': 1396164490, 'portfolio_id': 28900036}, {'photo_id': 1396164459, 'portfolio_id': 28900036}, {'photo_id': 1396164427, 'portfolio_id': 28900036}, {'photo_id': 1396164394, 'portfolio_id': 28900036}, {'photo_id': 1396163937, 'portfolio_id': 28900036}, {'photo_id': 1396163898, 'portfolio_id': 28900036}, {'photo_id': 1396163854, 'portfolio_id': 28900036}, {'photo_id': 1396163806, 'portfolio_id': 28900036}, {'photo_id': 1396163545, 'portfolio_id': 28900036}, {'photo_id': 1396163511, 'portfolio_id': 28900036}, {'photo_id': 1396163473, 'portfolio_id': 28900036}, {'photo_id': 1396163437, 'portfolio_id': 28900036}, {'photo_id': 1396163420, 'portfolio_id': 28900036}, {'photo_id': 1396163411, 'portfolio_id': 28900036}, {'photo_id': 1396163388, 'portfolio_id': 28900036}, {'photo_id': 1396163385, 'portfolio_id': 28900036}, {'photo_id': 1396163368, 'portfolio_id': 28900036}, {'photo_id': 1396163346, 'portfolio_id': 28900036}, {'photo_id': 1396163327, 'portfolio_id': 28900036}, {'photo_id': 1396163325, 'portfolio_id': 28900036}, {'photo_id': 1396163043, 'portfolio_id': 28900036}, {'photo_id': 1396163041, 'portfolio_id': 28900036}, {'photo_id': 1396163040, 'portfolio_id': 28900036}, {'photo_id': 1396162911, 'portfolio_id': 28900036}, {'photo_id': 1396162879, 'portfolio_id': 28900036}, {'photo_id': 1396162845, 'portfolio_id': 28900036}, {'photo_id': 1396162803, 'portfolio_id': 28900036}, {'photo_id': 1396162375, 'portfolio_id': 28900036}, {'photo_id': 1396162337, 'portfolio_id': 28900036}, {'photo_id': 1396162303, 'portfolio_id': 28900036}, {'photo_id': 1396162245, 'portfolio_id': 28900036}, {'photo_id': 1396162195, 'portfolio_id': 28900036}] map_portfolio_id_photo_id: {28900036: [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638, 1396165318, 1396165317, 1396165298, 1396165293, 1396165286, 1396165282, 1396165280, 1396165270, 1396165269, 1396165268, 1396165267, 1396165263, 1396165260, 1396165257, 1396165254, 1396165253, 1396165251, 1396165137, 1396165136, 1396165111, 1396165074, 1396164899, 1396164897, 1396164895, 1396164893, 1396164524, 1396164490, 1396164459, 1396164427, 1396164394, 1396163937, 1396163898, 1396163854, 1396163806, 1396163545, 1396163511, 1396163473, 1396163437, 1396163420, 1396163411, 1396163388, 1396163385, 1396163368, 1396163346, 1396163327, 1396163325, 1396163043, 1396163041, 1396163040, 1396162911, 1396162879, 1396162845, 1396162803, 1396162375, 1396162337, 1396162303, 1396162245, 1396162195]} ##### 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.020236730575561523 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 26 00:59:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28900036) 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 : 28900036 get user id for portfolio 28900036 get sub ptf for main ptf 28900036, type 3726 and hashtags ['flou', 'Carton_gris', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'papier', 'cartonnette', 'environnement', 'kraft', 'Carton_brun', 'mal_croppe', 'autre_refus'] 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`=28900036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier','cartonnette','environnement','kraft','Carton_brun','mal_croppe','autre_refus')) 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`=28900036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier','cartonnette','environnement','kraft','Carton_brun','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28900036, 'sub_port_id': 28900057, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621680, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'Carton_gris': {'main_port_id': 28900036, 'sub_port_id': 28900058, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621681, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'cartonnette': {'main_port_id': 28900036, 'sub_port_id': 28900059, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621682, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'kraft': {'main_port_id': 28900036, 'sub_port_id': 28900060, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621683, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28900036, 'sub_port_id': 28900061, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621684, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'plastique': {'main_port_id': 28900036, 'sub_port_id': 28900062, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621685, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'environnement': {'main_port_id': 28900036, 'sub_port_id': 28900063, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621686, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'mal_croppe': {'main_port_id': 28900036, 'sub_port_id': 28900064, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621687, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'Carton_brun': {'main_port_id': 28900036, 'sub_port_id': 28900065, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621688, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'metal': {'main_port_id': 28900036, 'sub_port_id': 28900066, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621689, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'papier': {'main_port_id': 28900036, 'sub_port_id': 28900067, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621690, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}, 'autre_refus': {'main_port_id': 28900036, 'sub_port_id': 28900068, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621691, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28900057 , 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=28900036 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 (28900057) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900058 , 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=28900036 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 (28900058) result : ((1396164311,), (1396164313,), (1396164315,), (1396165062,), (1396165064,), (1396165066,), (1396165068,), (1396165070,), (1396166000,), (1396166002,), (1396166004,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900059 , 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=28900036 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 (28900059) result : ((1396164324,), (1396164326,), (1396165082,), (1396165084,), (1396165345,), (1396165347,), (1396166013,), (1396166015,), (1396166096,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900060 , 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=28900036 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 (28900060) result : ((1396166048,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900061 , 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=28900036 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 (28900061) result : ((1396164283,), (1396165046,), (1396165331,), (1396165333,), (1396165986,), (1396165987,), (1396165989,), (1396166082,), (1396166083,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900062 , 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=28900036 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 (28900062) result : ((1396165110,), (1396165113,), (1396165115,), (1396166037,), (1396166039,), (1396166041,), (1396166043,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900063 , 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=28900036 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 (28900063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900064 , 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=28900036 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 (28900064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900065 , 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=28900036 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 (28900065) result : ((1396164335,), (1396165095,), (1396165097,), (1396165099,), (1396165361,), (1396165363,), (1396166023,), (1396166106,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900066 , 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=28900036 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 (28900066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900067 , 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=28900036 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 (28900067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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 28900068 , 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=28900036 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 (28900068) result : ((1396164293,), (1396164295,), (1396164298,), (1396166084,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28900036) result : ((1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,)) 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`=28900036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier','cartonnette','environnement','kraft','Carton_brun','mal_croppe','autre_refus')) 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`=28900036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier','cartonnette','environnement','kraft','Carton_brun','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28900036, 'sub_port_id': 28900081, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621704, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'Carton_gris': {'main_port_id': 28900036, 'sub_port_id': 28900082, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621705, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'cartonnette': {'main_port_id': 28900036, 'sub_port_id': 28900083, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621706, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'kraft': {'main_port_id': 28900036, 'sub_port_id': 28900084, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621707, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28900036, 'sub_port_id': 28900085, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621708, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'plastique': {'main_port_id': 28900036, 'sub_port_id': 28900086, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621709, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'environnement': {'main_port_id': 28900036, 'sub_port_id': 28900087, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621710, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'mal_croppe': {'main_port_id': 28900036, 'sub_port_id': 28900088, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621711, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'Carton_brun': {'main_port_id': 28900036, 'sub_port_id': 28900089, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621712, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'metal': {'main_port_id': 28900036, 'sub_port_id': 28900090, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621713, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'papier': {'main_port_id': 28900036, 'sub_port_id': 28900091, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621714, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}, 'autre_refus': {'main_port_id': 28900036, 'sub_port_id': 28900092, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19621715, 'last_updated_at': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 0, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 0, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28900092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28900068 lien utilise dans velours : https://marlene.fotonower.com/velours/28900081,28900082,28900083,28900084,28900085,28900086,28900087,28900088,28900089,28900090,28900091,28900092?tags=flou,Carton_gris,cartonnette,kraft,Teint_Dans_La_Masse,plastique,environnement,mal_croppe,Carton_brun,metal,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28900036]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] map_info['map_portfolio_photo'] : {28900036: [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638, 1396165318, 1396165317, 1396165298, 1396165293, 1396165286, 1396165282, 1396165280, 1396165270, 1396165269, 1396165268, 1396165267, 1396165263, 1396165260, 1396165257, 1396165254, 1396165253, 1396165251, 1396165137, 1396165136, 1396165111, 1396165074, 1396164899, 1396164897, 1396164895, 1396164893, 1396164524, 1396164490, 1396164459, 1396164427, 1396164394, 1396163937, 1396163898, 1396163854, 1396163806, 1396163545, 1396163511, 1396163473, 1396163437, 1396163420, 1396163411, 1396163388, 1396163385, 1396163368, 1396163346, 1396163327, 1396163325, 1396163043, 1396163041, 1396163040, 1396162911, 1396162879, 1396162845, 1396162803, 1396162375, 1396162337, 1396162303, 1396162245, 1396162195]} final : False mtd_id 4302 list_pids : [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] Looping around the photos to save general results len do output : 1 /28900036. 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, '4116687') ('4302', '28900036', '1396165805', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165772', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165736', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165702', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165670', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165638', None, None, None, None, None, '4116687') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28900036', "{'flou': 28900057, 'Carton_gris': 28900058, 'cartonnette': 28900059, 'kraft': 28900060, 'Teint_Dans_La_Masse': 28900061, 'plastique': 28900062, 'environnement': 28900063, 'mal_croppe': 28900064, 'Carton_brun': 28900065, 'metal': 28900066, 'papier': 28900067, 'autre_refus': 28900068}", None, None, None, None, '4116687'), ('4302', '28900036', '1396165805', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165772', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165736', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165702', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165670', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165638', None, None, None, None, None, '4116687')] time used for this insertion : 0.017220020294189453 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8401100635528564 time spend to save output : 0.017472028732299805 total time spend for step 1 : 1.8575820922851562 step2:final Wed Nov 26 00:59:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28900036) 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 28900036 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396162375,1396162337,1396162303,1396162245,1396162195,1396162911,1396162879,1396162845,1396162803,1396163043,1396163041,1396163040,1396163388,1396163385,1396163368,1396163346,1396163327,1396163325,1396163545,1396163511,1396163473,1396163411,1396163437,1396163420,1396163937,1396163898,1396163854,1396163806,1396164524,1396164490,1396164459,1396164427,1396164394,1396164899,1396164897,1396164895,1396164893,1396165137,1396165270,1396165136,1396165269,1396165111,1396165268,1396165074,1396165267,1396165263,1396165260,1396165257,1396165254,1396165253,1396165251,1396165298,1396165293,1396165286,1396165282,1396165280,1396165318,1396165317,1396165805,1396165772,1396165736,1396165702,1396165670,1396165638); 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([28900036]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} new output for save of step final : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] map_info['map_portfolio_photo'] : {28900036: [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638, 1396165318, 1396165317, 1396165298, 1396165293, 1396165286, 1396165282, 1396165280, 1396165270, 1396165269, 1396165268, 1396165267, 1396165263, 1396165260, 1396165257, 1396165254, 1396165253, 1396165251, 1396165137, 1396165136, 1396165111, 1396165074, 1396164899, 1396164897, 1396164895, 1396164893, 1396164524, 1396164490, 1396164459, 1396164427, 1396164394, 1396163937, 1396163898, 1396163854, 1396163806, 1396163545, 1396163511, 1396163473, 1396163437, 1396163420, 1396163411, 1396163388, 1396163385, 1396163368, 1396163346, 1396163327, 1396163325, 1396163043, 1396163041, 1396163040, 1396162911, 1396162879, 1396162845, 1396162803, 1396162375, 1396162337, 1396162303, 1396162245, 1396162195]} final : False mtd_id 4302 list_pids : [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] Looping around the photos to save general results len do output : 6 /1396165805.Didn't retrieve data . /1396165772.Didn't retrieve data . /1396165736.Didn't retrieve data . /1396165702.Didn't retrieve data . /1396165670.Didn't retrieve data . /1396165638.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, '4116687') ('4302', '28900036', '1396165805', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165772', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165736', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165702', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165670', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165638', None, None, None, None, None, '4116687') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28900036', '1396165805', '0.05792365237864239', None, None, None, None, '4116687'), ('4302', '28900036', '1396165772', '0.05792365237864239', None, None, None, None, '4116687'), ('4302', '28900036', '1396165736', '0.05792365237864239', None, None, None, None, '4116687'), ('4302', '28900036', '1396165702', '0.05792365237864239', None, None, None, None, '4116687'), ('4302', '28900036', '1396165670', '0.05792365237864239', None, None, None, None, '4116687'), ('4302', '28900036', '1396165638', '0.05792365237864239', None, None, None, None, '4116687')] time used for this insertion : 0.013844013214111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07957768440246582 time spend to save output : 0.014195442199707031 total time spend for step 2 : 0.09377312660217285 step3:velours_tree Wed Nov 26 00:59:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28900036: [{'flou': 28900057, 'Carton_gris': 28900058, 'cartonnette': 28900059, 'kraft': 28900060, 'Teint_Dans_La_Masse': 28900061, 'plastique': 28900062, 'environnement': 28900063, 'mal_croppe': 28900064, 'Carton_brun': 28900065, 'metal': 28900066, 'papier': 28900067, 'autre_refus': 28900068}]} input_args_next_step : {28900036: ()} output_args : {28900036: [{'flou': 28900057, 'Carton_gris': 28900058, 'cartonnette': 28900059, 'kraft': 28900060, 'Teint_Dans_La_Masse': 28900061, 'plastique': 28900062, 'environnement': 28900063, 'mal_croppe': 28900064, 'Carton_brun': 28900065, 'metal': 28900066, 'papier': 28900067, 'autre_refus': 28900068}]} args : 28900036 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 : ({'flou': 28900057, 'Carton_gris': 28900058, 'cartonnette': 28900059, 'kraft': 28900060, 'Teint_Dans_La_Masse': 28900061, 'plastique': 28900062, 'environnement': 28900063, 'mal_croppe': 28900064, 'Carton_brun': 28900065, 'metal': 28900066, 'papier': 28900067, 'autre_refus': 28900068},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28900036) 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([28900036]) 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.27357959747314453 time spend to save output : 3.838539123535156e-05 total time spend for step 3 : 0.2736179828643799 step4:send_mail_cod Wed Nov 26 00:59:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} input_args_next_step : {1396165805: ()} output_args : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} args : 1396165805 depend.output_id : 0 input_args_next_step : {1396165805: ('0.05792365237864239',), 1396165772: ()} output_args : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} args : 1396165772 depend.output_id : 0 input_args_next_step : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ()} output_args : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} args : 1396165736 depend.output_id : 0 input_args_next_step : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ()} output_args : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} args : 1396165702 depend.output_id : 0 input_args_next_step : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ()} output_args : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} args : 1396165670 depend.output_id : 0 input_args_next_step : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ()} output_args : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',)} args : 1396165638 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {28900036: [{'flou': 28900057, 'Carton_gris': 28900058, 'cartonnette': 28900059, 'kraft': 28900060, 'Teint_Dans_La_Masse': 28900061, 'plastique': 28900062, 'environnement': 28900063, 'mal_croppe': 28900064, 'Carton_brun': 28900065, 'metal': 28900066, 'papier': 28900067, 'autre_refus': 28900068}]} input_args_next_step : {1396165805: ('0.05792365237864239',), 1396165772: ('0.05792365237864239',), 1396165736: ('0.05792365237864239',), 1396165702: ('0.05792365237864239',), 1396165670: ('0.05792365237864239',), 1396165638: ('0.05792365237864239',), 28900036: ()} output_args : {28900036: [{'flou': 28900057, 'Carton_gris': 28900058, 'cartonnette': 28900059, 'kraft': 28900060, 'Teint_Dans_La_Masse': 28900061, 'plastique': 28900062, 'environnement': 28900063, 'mal_croppe': 28900064, 'Carton_brun': 28900065, 'metal': 28900066, 'papier': 28900067, 'autre_refus': 28900068}]} args : 28900036 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :7, first value : ('0.05792365237864239',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28900036) 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_view ph WHERE photo_id IN (1396165805,1396165772,1396165736,1396165702,1396165670,1396165638) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396165638 begin to download photo : 1396165702 begin to download photo : 1396165772 download finish for photo 1396165772 begin to download photo : 1396165805 download finish for photo 1396165702 begin to download photo : 1396165736 download finish for photo 1396165638 begin to download photo : 1396165670 download finish for photo 1396165805 download finish for photo 1396165736 download finish for photo 1396165670 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette289000571764115200/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P28900036_26-11-2025_01_00_00.pdf 28900057 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289000571764115200 28900059 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396164324: '1764114686_3047801_1396163043_845e01d4d9958060ac3a75e7d920839d_rle_crop_4045567904_0.png', 1396164326: '1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567947_0.png', 1396165082: '1764114787_3050737_1396162375_c2c44555313266631a59c0676cf6fc07_rle_crop_4045568295_0.png', 1396165084: '1764114787_3050737_1396162375_c2c44555313266631a59c0676cf6fc07_rle_crop_4045568299_0.png', 1396165345: '1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573128_0.png', 1396165347: '1764115026_3056645_1396165111_d58d23604f373c7d7c084c9e0d455912_rle_crop_4045573139_0.png', 1396166013: '1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576043_0.png', 1396166015: '1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576064_0.png', 1396166096: '1764115146_3061044_1396164459_e0462d306781b902882ec6c6508a6d60_rle_crop_4045576245_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/407450c39670af2f79d00f9789d30a8b_46491043.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/a3031f904210f0396f8439fb6bf8f5ab_40977693.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/de1c861f72bd52921eadf6b0ddeb9237_42344403.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/328f9467f939f576c9135e888cb6b1ce_64316012.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/9cd54497d49933ff1c4bd8d26ff046a4_71997019.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/62d5945d96b45b216ff49644fce94a2b_34344633.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/b35b87d777d9c0bfdbec5a15566eb556_67774625.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/3650814c931ea85a3d1e7e8d0cb92ace_86626872.png change filename to text .imagette289000591764115200/ imagette289000591764115200/1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576043_0.png.png imagette289000591764115200/1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567947_0.png.png imagette289000591764115200/1764114787_3050737_1396162375_c2c44555313266631a59c0676cf6fc07_rle_crop_4045568299_0.png.png imagette289000591764115200/1764114686_3047801_1396163043_845e01d4d9958060ac3a75e7d920839d_rle_crop_4045567904_0.png.png imagette289000591764115200/1764115026_3056645_1396165111_d58d23604f373c7d7c084c9e0d455912_rle_crop_4045573139_0.png.png imagette289000591764115200/1764114787_3050737_1396162375_c2c44555313266631a59c0676cf6fc07_rle_crop_4045568295_0.png.png imagette289000591764115200/1764115146_3061044_1396164459_e0462d306781b902882ec6c6508a6d60_rle_crop_4045576245_0.png.png imagette289000591764115200/1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573128_0.png.png imagette289000591764115200/1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576064_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f05bafc5a38e85b94f457a142ee145ea_34891590.png imagette289000591764115200 28900060 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396166048: '1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576048_0.png'} change filename to text .imagette289000601764115200/ imagette289000601764115200/1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576048_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/03dc9feb6511558ec04a8462a2c5ef8f_14472285.png imagette289000601764115200 28900062 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396165110: '1764114787_3050737_1396162375_c2c44555313266631a59c0676cf6fc07_rle_crop_4045568302_0.png', 1396165113: '1764114787_3050737_1396162245_8fd92913a1e457710f24e562cd2ebe69_rle_crop_4045568356_0.png', 1396165115: '1764114787_3050737_1396162195_2cf05a89eee7b82a618eb4c1ba58d534_rle_crop_4045568373_0.png', 1396166037: '1764115107_3060584_1396165260_2e98be2f23017006abd4cf1c7775a819_rle_crop_4045576032_0.png', 1396166039: '1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576047_0.png', 1396166041: '1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576077_0.png', 1396166043: '1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/e50c662bfa99e66d40eaa1213e4de1ea_48670142.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/48278bc1cf3106e2ce9bfc29a0a662c7_33086817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/946fc8248c946a228fb6bbcef7350ef0_13488201.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/de91235d88c4eb802662d9015c2f294b_50921717.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/7b1973e007959fa36c67ccc820fecd5b_62932639.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/b6dc4f9312730e8660873cd9a96ee9c6_50082701.png change filename to text .imagette289000621764115200/ imagette289000621764115200/1764114787_3050737_1396162195_2cf05a89eee7b82a618eb4c1ba58d534_rle_crop_4045568373_0.png.png imagette289000621764115200/1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576077_0.png.png imagette289000621764115200/1764115107_3060584_1396165260_2e98be2f23017006abd4cf1c7775a819_rle_crop_4045576032_0.png.png imagette289000621764115200/1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576068_0.png.png imagette289000621764115200/1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576047_0.png.png imagette289000621764115200/1764114787_3050737_1396162245_8fd92913a1e457710f24e562cd2ebe69_rle_crop_4045568356_0.png.png imagette289000621764115200/1764114787_3050737_1396162375_c2c44555313266631a59c0676cf6fc07_rle_crop_4045568302_0.png.png imagette289000641764115201/ imagette289000661764115201/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/5b339a58fb3687a5937282227d14bd4e_47466739.png imagette289000621764115200 28900064 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289000641764115201 28900066 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289000661764115201 28900068 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396164293: '1764114686_3047801_1396162879_745bb02bce49d0bd18d6b27c83e84138_rle_crop_4045567923_0.png', 1396164295: '1764114686_3047801_1396162879_745bb02bce49d0bd18d6b27c83e84138_rle_crop_4045567920_0.png', 1396164298: '1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567943_0.png', 1396166084: '1764115146_3061044_1396164459_e0462d306781b902882ec6c6508a6d60_rle_crop_4045576244_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/88432219be8d9944b21ac9a2d891ae2a_54405465.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f1a40a12609db9296f36bc60a0e78e17_21551538.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/31e511d9059e342ea0efc81389927f00_53776645.png change filename to text .imagette289000681764115201/ imagette289000681764115201/1764114686_3047801_1396162879_745bb02bce49d0bd18d6b27c83e84138_rle_crop_4045567920_0.png.png imagette289000681764115201/1764114686_3047801_1396162879_745bb02bce49d0bd18d6b27c83e84138_rle_crop_4045567923_0.png.png imagette289000681764115201/1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567943_0.png.png imagette289000681764115201/1764115146_3061044_1396164459_e0462d306781b902882ec6c6508a6d60_rle_crop_4045576244_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c0d262795d94cf3009926276a5be0d86_28766213.png imagette289000681764115201 28900058 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396164311: '1764114686_3047801_1396163043_845e01d4d9958060ac3a75e7d920839d_rle_crop_4045567909_0.png', 1396164313: '1764114686_3047801_1396162845_05f2af72fd9fad412639fa5539faad7e_rle_crop_4045567928_0.png', 1396164315: '1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567955_0.png', 1396165062: '1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568319_0.png', 1396165064: '1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568317_0.png', 1396165066: '1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568323_0.png', 1396165068: '1764114787_3050737_1396162303_2f665cf7989087caa24d6ff35e6a61cc_rle_crop_4045568335_0.png', 1396165070: '1764114787_3050737_1396162195_2cf05a89eee7b82a618eb4c1ba58d534_rle_crop_4045568369_0.png', 1396166000: '1764115107_3060584_1396165260_2e98be2f23017006abd4cf1c7775a819_rle_crop_4045576031_0.png', 1396166002: '1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576040_0.png', 1396166004: '1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576052_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/850907f9405c0631326cdc8082591c1c_19325138.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/264a935bad59baa6c750175b3a5429a5_41217074.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/2bf75536f68070016774fc2541fa6f20_14968731.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/9e0ab0cd3a2e7e2fade22bfd6cf34bc1_32712774.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/3f3e2e94ff1f23f68beb61c093732310_4797863.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/5acad4a1692923a02311b430456d3f7a_25706373.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/9650ce0cf71fefa7c45654b58f8a39b6_76266166.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/01b8a0170aba3c0d963d9aacc6268a12_29963565.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/fb2ddb6b02bd6e4b832c4bc0dd099226_5313104.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/5891c3ad59d72d980148f9118b559342_58697508.png change filename to text .imagette289000581764115201/ imagette289000581764115201/1764115107_3060584_1396165260_2e98be2f23017006abd4cf1c7775a819_rle_crop_4045576031_0.png.png imagette289000581764115201/1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568317_0.png.png imagette289000581764115201/1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568323_0.png.png imagette289000581764115201/1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567955_0.png.png imagette289000581764115201/1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568319_0.png.png imagette289000581764115201/1764114686_3047801_1396162845_05f2af72fd9fad412639fa5539faad7e_rle_crop_4045567928_0.png.png imagette289000581764115201/1764114787_3050737_1396162303_2f665cf7989087caa24d6ff35e6a61cc_rle_crop_4045568335_0.png.png imagette289000581764115201/1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576052_0.png.png imagette289000581764115201/1764115107_3060584_1396165257_90202efb0a1d0dafd17c6d50e183166b_rle_crop_4045576040_0.png.png imagette289000581764115201/1764114787_3050737_1396162195_2cf05a89eee7b82a618eb4c1ba58d534_rle_crop_4045568369_0.png.png imagette289000581764115201/1764114686_3047801_1396163043_845e01d4d9958060ac3a75e7d920839d_rle_crop_4045567909_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/cc3460e7cdef56f8a23066faf4bc8df4_37568939.png imagette289000581764115201 28900061 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396164283: '1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567953_0.png', 1396165046: '1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568321_0.png', 1396165331: '1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573135_0.png', 1396165333: '1764115026_3056645_1396165111_d58d23604f373c7d7c084c9e0d455912_rle_crop_4045573141_0.png', 1396165986: '1764115107_3060584_1396165260_2e98be2f23017006abd4cf1c7775a819_rle_crop_4045576029_0.png', 1396165987: '1764115107_3060584_1396165253_f9295d20f67ce034f9d66e4d7d3c142e_rle_crop_4045576091_0.png', 1396165989: '1764115107_3060584_1396165251_93fc90f382edc8594d64f22163bfadc8_rle_crop_4045576221_0.png', 1396166082: '1764115146_3061044_1396164899_09a267a2d2f1745190c37de82125dd0b_rle_crop_4045576232_0.png', 1396166083: '1764115146_3061044_1396164899_09a267a2d2f1745190c37de82125dd0b_rle_crop_4045576229_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c41d94237b6254d0595453a32e88e5d9_86266933.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/3b5b08add1d4681fe70bc4ac7fec250e_3334310.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/259535ce58af8998b48ab34df8a2eac2_42921701.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/7f55d7588dfa17265e1b905e32f18c33_3451410.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ff262ee8164fd1a47258e4e6d0d0113d_16442340.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/5decd5a141d1792c241cb09d6c1f5045_85222330.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ed444fcef33c9a7459e71cda217e4383_7305428.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/433e4c47f8eaef8e002c4b52956dd218_99153251.png change filename to text .imagette289000611764115202/ imagette289000611764115202/1764115146_3061044_1396164899_09a267a2d2f1745190c37de82125dd0b_rle_crop_4045576232_0.png.png imagette289000611764115202/1764114686_3047801_1396162803_41f551b711f3293ff0b19b10afc67d0e_rle_crop_4045567953_0.png.png imagette289000611764115202/1764115146_3061044_1396164899_09a267a2d2f1745190c37de82125dd0b_rle_crop_4045576229_0.png.png imagette289000611764115202/1764115107_3060584_1396165260_2e98be2f23017006abd4cf1c7775a819_rle_crop_4045576029_0.png.png imagette289000611764115202/1764115107_3060584_1396165251_93fc90f382edc8594d64f22163bfadc8_rle_crop_4045576221_0.png.png imagette289000611764115202/1764115026_3056645_1396165111_d58d23604f373c7d7c084c9e0d455912_rle_crop_4045573141_0.png.png imagette289000611764115202/1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573135_0.png.png imagette289000611764115202/1764114787_3050737_1396162337_a155dbf253dad835d798f5286754a5b0_rle_crop_4045568321_0.png.png imagette289000611764115202/1764115107_3060584_1396165253_f9295d20f67ce034f9d66e4d7d3c142e_rle_crop_4045576091_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ac49f0c4fb7991ff276be3f3e98454ca_67121569.png imagette289000611764115202 28900065 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396164335: '1764114686_3047801_1396162845_05f2af72fd9fad412639fa5539faad7e_rle_crop_4045567935_0.png', 1396165095: '1764114787_3050737_1396162911_f8f86308ae89d9b5461f19d05b9a475c_rle_crop_4045568285_0.png', 1396165097: '1764114787_3050737_1396162911_f8f86308ae89d9b5461f19d05b9a475c_rle_crop_4045568284_0.png', 1396165099: '1764114787_3050737_1396162303_2f665cf7989087caa24d6ff35e6a61cc_rle_crop_4045568337_0.png', 1396165361: '1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573133_0.png', 1396165363: '1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573134_0.png', 1396166023: '1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576066_0.png', 1396166106: '1764115146_3061044_1396164459_e0462d306781b902882ec6c6508a6d60_rle_crop_4045576252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/04306afc2a709456bb24968b9a3c378c_65407177.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/b3a57f9b1b78ce86e76d5aa2e7bf8ffe_28105044.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/5dceb4d655d4ab34eabb2a9d56762952_5389160.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/fa098e14ff04de3c085769c4fb328163_87749569.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/de6c476c8ea9ef0dcce090cbaf6f65a4_67017713.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/1f1f852a3045fb1d8c6fa0bb96be196b_70149492.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f9d3bae4fc24cfd69c50bf04f8232838_27895416.png change filename to text .imagette289000651764115203/ imagette289000651764115203/1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573133_0.png.png imagette289000651764115203/1764115107_3060584_1396165254_4d019c910f7da38aaab325335310a568_rle_crop_4045576066_0.png.png imagette289000651764115203/1764115146_3061044_1396164459_e0462d306781b902882ec6c6508a6d60_rle_crop_4045576252_0.png.png imagette289000651764115203/1764114787_3050737_1396162303_2f665cf7989087caa24d6ff35e6a61cc_rle_crop_4045568337_0.png.png imagette289000651764115203/1764115026_3056645_1396165136_160a3c6bfca85ed88fbeb6d33123f50e_rle_crop_4045573134_0.png.png imagette289000651764115203/1764114787_3050737_1396162911_f8f86308ae89d9b5461f19d05b9a475c_rle_crop_4045568284_0.png.png imagette289000651764115203/1764114686_3047801_1396162845_05f2af72fd9fad412639fa5539faad7e_rle_crop_4045567935_0.png.png imagette289000651764115203/1764114787_3050737_1396162911_f8f86308ae89d9b5461f19d05b9a475c_rle_crop_4045568285_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/b5682885a88942b4fa23b1912022a37d_44395153.png imagette289000651764115203 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28900036 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28900081,28900082,28900083,28900084,28900085,28900086,28900087,28900088,28900089,28900090,28900091,28900092?tags=flou,Carton_gris,cartonnette,kraft,Teint_Dans_La_Masse,plastique,environnement,mal_croppe,Carton_brun,metal,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1396165805] : ('0.05792365237864239',) no score found for photo 1396165805 We are sending mail with results at report@fotonower.com args[1396165772] : ('0.05792365237864239',) no score found for photo 1396165772 We are sending mail with results at report@fotonower.com args[1396165736] : ('0.05792365237864239',) no score found for photo 1396165736 We are sending mail with results at report@fotonower.com args[1396165702] : ('0.05792365237864239',) no score found for photo 1396165702 We are sending mail with results at report@fotonower.com args[1396165670] : ('0.05792365237864239',) no score found for photo 1396165670 We are sending mail with results at report@fotonower.com args[1396165638] : ('0.05792365237864239',) no score found for photo 1396165638 We are sending mail with results at report@fotonower.com refus_total : 0.05792365237864239 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28900036 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_P28900036_26-11-2025_01_00_00.pdf results_Auto_P28900036_26-11-2025_01_00_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28900036_26-11-2025_01_00_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28900036','results_Auto_P28900036_26-11-2025_01_00_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28900036_26-11-2025_01_00_00.pdf','pdf','','0.2','0.05792365237864239') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28900036]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] map_info['map_portfolio_photo'] : {28900036: [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638, 1396165318, 1396165317, 1396165298, 1396165293, 1396165286, 1396165282, 1396165280, 1396165270, 1396165269, 1396165268, 1396165267, 1396165263, 1396165260, 1396165257, 1396165254, 1396165253, 1396165251, 1396165137, 1396165136, 1396165111, 1396165074, 1396164899, 1396164897, 1396164895, 1396164893, 1396164524, 1396164490, 1396164459, 1396164427, 1396164394, 1396163937, 1396163898, 1396163854, 1396163806, 1396163545, 1396163511, 1396163473, 1396163437, 1396163420, 1396163411, 1396163388, 1396163385, 1396163368, 1396163346, 1396163327, 1396163325, 1396163043, 1396163041, 1396163040, 1396162911, 1396162879, 1396162845, 1396162803, 1396162375, 1396162337, 1396162303, 1396162245, 1396162195]} final : False mtd_id 4302 list_pids : [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] 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, '4116687') ('4302', '28900036', '1396165805', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165772', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165736', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165702', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165670', None, None, None, None, None, '4116687') ('4302', None, None, None, None, None, None, None, '4116687') ('4302', '28900036', '1396165638', None, None, None, None, None, '4116687') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28900036', '1396165805', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165772', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165736', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165702', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165670', None, None, None, None, None, '4116687'), ('4302', '28900036', '1396165638', None, None, None, None, None, '4116687')] time used for this insertion : 0.013885259628295898 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.92282772064209 time spend to save output : 0.014183282852172852 total time spend for step 4 : 5.937011003494263 step5:split_time_score Wed Nov 26 01:00:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28900036'] 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 : [('28900036',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28900036) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396165772: {'path': 'temp/1764115199_3077371_1396165772_5d3f5126e404ab4fedfe24bf5998f3b3.jpg', 'extension': 'jpg'}, 1396165805: {'path': 'temp/1764115199_3077371_1396165805_7e2f89950547916a55a0fed836e3ee81.jpg', 'extension': 'jpg'}, 1396165702: {'path': 'temp/1764115199_3077371_1396165702_91d71bac329e4d3959902accb59979cf.jpg', 'extension': 'jpg'}, 1396165736: {'path': 'temp/1764115199_3077371_1396165736_dd876d4a583ae6c2c6ecc24e98fdc76b.jpg', 'extension': 'jpg'}, 1396165638: {'path': 'temp/1764115199_3077371_1396165638_6e0e0d9188039743eef6e83cecd50934.jpg', 'extension': 'jpg'}, 1396165670: {'path': 'temp/1764115199_3077371_1396165670_ac9a148b7ce15c777bc04938d9236d09.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 = 28900036; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',)) dashboard list : (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',)) can't retrive data from the dashboard with the suffix, please check suffix After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28900036]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] map_info['map_portfolio_photo'] : {28900036: [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638, 1396165318, 1396165317, 1396165298, 1396165293, 1396165286, 1396165282, 1396165280, 1396165270, 1396165269, 1396165268, 1396165267, 1396165263, 1396165260, 1396165257, 1396165254, 1396165253, 1396165251, 1396165137, 1396165136, 1396165111, 1396165074, 1396164899, 1396164897, 1396164895, 1396164893, 1396164524, 1396164490, 1396164459, 1396164427, 1396164394, 1396163937, 1396163898, 1396163854, 1396163806, 1396163545, 1396163511, 1396163473, 1396163437, 1396163420, 1396163411, 1396163388, 1396163385, 1396163368, 1396163346, 1396163327, 1396163325, 1396163043, 1396163041, 1396163040, 1396162911, 1396162879, 1396162845, 1396162803, 1396162375, 1396162337, 1396162303, 1396162245, 1396162195]} final : True mtd_id 4302 list_pids : [1396165805, 1396165772, 1396165736, 1396165702, 1396165670, 1396165638] Looping around the photos to save general results object of type 'int' has no len() begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28900036', '1396165805', '0', '0', '-1.0', '501120777', '1.0', '4116687'), ('4302', '28900036', '1396165772', '0', '0', '-1.0', '501120777', '1.0', '4116687'), ('4302', '28900036', '1396165736', '0', '0', '-1.0', '501120777', '1.0', '4116687'), ('4302', '28900036', '1396165702', '0', '0', '-1.0', '501120777', '1.0', '4116687'), ('4302', '28900036', '1396165670', '0', '0', '-1.0', '501120777', '1.0', '4116687'), ('4302', '28900036', '1396165638', '0', '0', '-1.0', '501120777', '1.0', '4116687')] time used for this insertion : 0.013585805892944336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.028665781021118164 time spend to save output : 0.013772726058959961 total time spend for step 5 : 0.042438507080078125 UPDATE MTRPhoto.mtr_datou_current SET state=-11, hostname='marlene' WHERE id in (4116687) 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 (4116687) 2.00user 2.49system 0:10.37elapsed 43%CPU (0avgtext+0avgdata 158048maxresident)k 456inputs+9864outputs (1major+63849minor)pagefaults 0swaps