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 : 3249191 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 (2720434) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2720434) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021391 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2720434'] with mtr_portfolio_ids : ['22021391'] and first list_photo_ids : [] new path : /proc/3249191/ Name: python3 Umask: 0002 State: R (running) Tgid: 3249191 Ngid: 0 Pid: 3249191 PPid: 3249190 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3249191 NSpid: 3249191 NSpgid: 3244095 NSsid: 3244095 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98696 kB VmRSS: 98696 kB RssAnon: 59760 kB RssFile: 38936 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3249191', 'Ngid': '0', 'Pid': '3249191', 'PPid': '3249190', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3249191', 'NSpid': '3249191', 'NSpgid': '3244095', 'NSsid': '3244095', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98696 kB', 'VmRSS': '98696 kB', 'RssAnon': '59760 kB', 'RssFile': '38936 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '3249191', '1106928', '0', '1106928', '865676', '98696', b'', 'marlene', '2720434') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22021391) 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 (2720434 ) ) 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 (22021391) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349794164, 'portfolio_id': 22021391}, {'photo_id': 1349794088, 'portfolio_id': 22021391}, {'photo_id': 1349794084, 'portfolio_id': 22021391}, {'photo_id': 1349794081, 'portfolio_id': 22021391}, {'photo_id': 1349794078, 'portfolio_id': 22021391}, {'photo_id': 1349794047, 'portfolio_id': 22021391}, {'photo_id': 1349794042, 'portfolio_id': 22021391}, {'photo_id': 1349794034, 'portfolio_id': 22021391}, {'photo_id': 1349794019, 'portfolio_id': 22021391}, {'photo_id': 1349794014, 'portfolio_id': 22021391}, {'photo_id': 1349794009, 'portfolio_id': 22021391}, {'photo_id': 1349793985, 'portfolio_id': 22021391}, {'photo_id': 1349793976, 'portfolio_id': 22021391}, {'photo_id': 1349793971, 'portfolio_id': 22021391}, {'photo_id': 1349793969, 'portfolio_id': 22021391}, {'photo_id': 1349793966, 'portfolio_id': 22021391}, {'photo_id': 1349793964, 'portfolio_id': 22021391}, {'photo_id': 1349793926, 'portfolio_id': 22021391}, {'photo_id': 1349793915, 'portfolio_id': 22021391}, {'photo_id': 1349793889, 'portfolio_id': 22021391}, {'photo_id': 1349793807, 'portfolio_id': 22021391}, {'photo_id': 1349793798, 'portfolio_id': 22021391}, {'photo_id': 1349793787, 'portfolio_id': 22021391}, {'photo_id': 1349793784, 'portfolio_id': 22021391}, {'photo_id': 1349793781, 'portfolio_id': 22021391}, {'photo_id': 1349793779, 'portfolio_id': 22021391}, {'photo_id': 1349793689, 'portfolio_id': 22021391}, {'photo_id': 1349793675, 'portfolio_id': 22021391}, {'photo_id': 1349793670, 'portfolio_id': 22021391}, {'photo_id': 1349793666, 'portfolio_id': 22021391}, {'photo_id': 1349793661, 'portfolio_id': 22021391}, {'photo_id': 1349793656, 'portfolio_id': 22021391}, {'photo_id': 1349793604, 'portfolio_id': 22021391}, {'photo_id': 1349793599, 'portfolio_id': 22021391}, {'photo_id': 1349793570, 'portfolio_id': 22021391}, {'photo_id': 1349793568, 'portfolio_id': 22021391}, {'photo_id': 1349793564, 'portfolio_id': 22021391}, {'photo_id': 1349793559, 'portfolio_id': 22021391}, {'photo_id': 1349793553, 'portfolio_id': 22021391}, {'photo_id': 1349793540, 'portfolio_id': 22021391}, {'photo_id': 1349793455, 'portfolio_id': 22021391}, {'photo_id': 1349793449, 'portfolio_id': 22021391}, {'photo_id': 1349793440, 'portfolio_id': 22021391}, {'photo_id': 1349793437, 'portfolio_id': 22021391}, {'photo_id': 1349793410, 'portfolio_id': 22021391}, {'photo_id': 1349793408, 'portfolio_id': 22021391}, {'photo_id': 1349793406, 'portfolio_id': 22021391}, {'photo_id': 1349793402, 'portfolio_id': 22021391}, {'photo_id': 1349793399, 'portfolio_id': 22021391}, {'photo_id': 1349793394, 'portfolio_id': 22021391}, {'photo_id': 1349793318, 'portfolio_id': 22021391}, {'photo_id': 1349793313, 'portfolio_id': 22021391}, {'photo_id': 1349793309, 'portfolio_id': 22021391}, {'photo_id': 1349793232, 'portfolio_id': 22021391}, {'photo_id': 1349793218, 'portfolio_id': 22021391}, {'photo_id': 1349793191, 'portfolio_id': 22021391}, {'photo_id': 1349793153, 'portfolio_id': 22021391}, {'photo_id': 1349793150, 'portfolio_id': 22021391}, {'photo_id': 1349793139, 'portfolio_id': 22021391}, {'photo_id': 1349793057, 'portfolio_id': 22021391}, {'photo_id': 1349793051, 'portfolio_id': 22021391}, {'photo_id': 1349793045, 'portfolio_id': 22021391}, {'photo_id': 1349793039, 'portfolio_id': 22021391}, {'photo_id': 1349792923, 'portfolio_id': 22021391}, {'photo_id': 1349792917, 'portfolio_id': 22021391}, {'photo_id': 1349792907, 'portfolio_id': 22021391}, {'photo_id': 1349792901, 'portfolio_id': 22021391}, {'photo_id': 1349792895, 'portfolio_id': 22021391}, {'photo_id': 1349792847, 'portfolio_id': 22021391}, {'photo_id': 1349792841, 'portfolio_id': 22021391}, {'photo_id': 1349792838, 'portfolio_id': 22021391}, {'photo_id': 1349792833, 'portfolio_id': 22021391}, {'photo_id': 1349792826, 'portfolio_id': 22021391}] map_portfolio_id_photo_id: {22021391: [1349794164, 1349794088, 1349794084, 1349794081, 1349794078, 1349794047, 1349794042, 1349794034, 1349794019, 1349794014, 1349794009, 1349793985, 1349793976, 1349793971, 1349793969, 1349793966, 1349793964, 1349793926, 1349793915, 1349793889, 1349793807, 1349793798, 1349793787, 1349793784, 1349793781, 1349793779, 1349793689, 1349793675, 1349793670, 1349793666, 1349793661, 1349793656, 1349793604, 1349793599, 1349793570, 1349793568, 1349793564, 1349793559, 1349793553, 1349793540, 1349793455, 1349793449, 1349793440, 1349793437, 1349793410, 1349793408, 1349793406, 1349793402, 1349793399, 1349793394, 1349793318, 1349793313, 1349793309, 1349793232, 1349793218, 1349793191, 1349793153, 1349793150, 1349793139, 1349793057, 1349793051, 1349793045, 1349793039, 1349792923, 1349792917, 1349792907, 1349792901, 1349792895, 1349792847, 1349792841, 1349792838, 1349792833, 1349792826]} ##### 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.01605844497680664 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 3 11:49:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22021391) 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 : 22021391 get user id for portfolio 22021391 get sub ptf for main ptf 22021391, type 3726 and hashtags ['mal_croppe', 'kraft', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_gris', 'Carton_brun', 'metal', 'papier', 'cartonnette', 'flou', 'plastique', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22021391 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','Carton_gris','Carton_brun','metal','papier','cartonnette','flou','plastique','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22021391 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','Carton_gris','Carton_brun','metal','papier','cartonnette','flou','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22021391, 'sub_port_id': 22021410, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515539, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'plastique': {'main_port_id': 22021391, 'sub_port_id': 22021411, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515540, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'Carton_brun': {'main_port_id': 22021391, 'sub_port_id': 22021412, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515541, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'flou': {'main_port_id': 22021391, 'sub_port_id': 22021413, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515542, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'Carton_gris': {'main_port_id': 22021391, 'sub_port_id': 22021414, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515543, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22021391, 'sub_port_id': 22021415, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515544, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'kraft': {'main_port_id': 22021391, 'sub_port_id': 22021416, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515545, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'environnement': {'main_port_id': 22021391, 'sub_port_id': 22021417, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515546, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'cartonnette': {'main_port_id': 22021391, 'sub_port_id': 22021418, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515547, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'metal': {'main_port_id': 22021391, 'sub_port_id': 22021419, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515548, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'autre_refus': {'main_port_id': 22021391, 'sub_port_id': 22021420, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515549, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}, 'papier': {'main_port_id': 22021391, 'sub_port_id': 22021421, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515550, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22021410 , 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=22021391 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 (22021410) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021411 , 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=22021391 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 (22021411) result : ((1349793149,), (1349793212,), (1349793377,), (1349793529,), (1349793554,), (1349793636,), (1349793655,), (1349793878,), (1349793879,), (1349793880,), (1349793881,), (1349793882,), (1349793883,), (1349793884,), (1349794039,), (1349794374,), (1349794375,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021412 , 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=22021391 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 (22021412) result : ((1349793144,), (1349793145,), (1349793146,), (1349793147,), (1349793148,), (1349793207,), (1349793467,), (1349793468,), (1349793549,), (1349793550,), (1349793551,), (1349793652,), (1349793872,), (1349793873,), (1349793874,), (1349793875,), (1349793876,), (1349794035,), (1349794036,), (1349794037,), (1349794127,), (1349794268,), (1349794283,), (1349794370,), (1349794371,), (1349794372,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021413 , 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=22021391 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 (22021413) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021414 , 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=22021391 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 (22021414) result : ((1349793137,), (1349793138,), (1349793527,), (1349793545,), (1349793546,), (1349793647,), (1349793648,), (1349793649,), (1349793863,), (1349793864,), (1349793865,), (1349793866,), (1349793867,), (1349794028,), (1349794029,), (1349794030,), (1349794065,), (1349794067,), (1349794120,), (1349794277,), (1349794366,), (1349794367,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021415 , 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=22021391 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 (22021415) result : ((1349793131,), (1349793132,), (1349793189,), (1349793374,), (1349793533,), (1349793534,), (1349793535,), (1349793536,), (1349793627,), (1349793628,), (1349793640,), (1349793641,), (1349793642,), (1349793643,), (1349794020,), (1349794021,), (1349794022,), (1349794023,), (1349794024,), (1349794062,), (1349794063,), (1349794064,), (1349794119,), (1349794276,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021416 , 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=22021391 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 (22021416) result : ((1349793885,), (1349793886,), (1349794130,), (1349794131,), (1349794133,), (1349794272,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021417 , 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=22021391 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 (22021417) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021418 , 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=22021391 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 (22021418) result : ((1349793141,), (1349793205,), (1349793634,), (1349793635,), (1349793651,), (1349793869,), (1349793870,), (1349794013,), (1349794032,), (1349794122,), (1349794123,), (1349794124,), (1349794125,), (1349794265,), (1349794280,), (1349794281,), (1349794368,), (1349794369,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021419 , 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=22021391 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 (22021419) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021420 , 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=22021391 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 (22021420) result : ((1349793135,), (1349793376,), (1349793539,), (1349793541,), (1349793543,), (1349793544,), (1349793630,), (1349793631,), (1349793644,), (1349793645,), (1349793646,), (1349793860,), (1349793861,), (1349794025,), (1349794026,), (1349794363,), (1349794364,), (1349794365,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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 22021421 , 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=22021391 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 (22021421) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021391) result : ((1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,)) 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`=22021391 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','Carton_gris','Carton_brun','metal','papier','cartonnette','flou','plastique','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22021391 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','Carton_gris','Carton_brun','metal','papier','cartonnette','flou','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22021391, 'sub_port_id': 22021422, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515551, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'plastique': {'main_port_id': 22021391, 'sub_port_id': 22021423, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515552, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'Carton_brun': {'main_port_id': 22021391, 'sub_port_id': 22021424, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515553, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'flou': {'main_port_id': 22021391, 'sub_port_id': 22021425, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515554, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'Carton_gris': {'main_port_id': 22021391, 'sub_port_id': 22021426, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515555, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22021391, 'sub_port_id': 22021427, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515556, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'kraft': {'main_port_id': 22021391, 'sub_port_id': 22021428, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515557, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'environnement': {'main_port_id': 22021391, 'sub_port_id': 22021429, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515558, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'cartonnette': {'main_port_id': 22021391, 'sub_port_id': 22021430, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515559, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'metal': {'main_port_id': 22021391, 'sub_port_id': 22021431, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515560, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'autre_refus': {'main_port_id': 22021391, 'sub_port_id': 22021432, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515561, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}, 'papier': {'main_port_id': 22021391, 'sub_port_id': 22021433, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14515562, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 47), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 47), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021412 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021425,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021413 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021426,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021414 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021427,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021415 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021428,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021416 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021429,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021417 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021430,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021418 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021431,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021419 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021421 lien utilise dans velours : https://www.fotonower.com/velours/22021422,22021423,22021424,22021425,22021426,22021427,22021428,22021429,22021430,22021431,22021432,22021433?tags=mal_croppe,plastique,Carton_brun,flou,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,cartonnette,metal,autre_refus,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22021391]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349794164] map_info['map_portfolio_photo'] : {22021391: [1349794164, 1349794088, 1349794084, 1349794081, 1349794078, 1349794047, 1349794042, 1349794034, 1349794019, 1349794014, 1349794009, 1349793985, 1349793976, 1349793971, 1349793969, 1349793966, 1349793964, 1349793926, 1349793915, 1349793889, 1349793807, 1349793798, 1349793787, 1349793784, 1349793781, 1349793779, 1349793689, 1349793675, 1349793670, 1349793666, 1349793661, 1349793656, 1349793604, 1349793599, 1349793570, 1349793568, 1349793564, 1349793559, 1349793553, 1349793540, 1349793455, 1349793449, 1349793440, 1349793437, 1349793410, 1349793408, 1349793406, 1349793402, 1349793399, 1349793394, 1349793318, 1349793313, 1349793309, 1349793232, 1349793218, 1349793191, 1349793153, 1349793150, 1349793139, 1349793057, 1349793051, 1349793045, 1349793039, 1349792923, 1349792917, 1349792907, 1349792901, 1349792895, 1349792847, 1349792841, 1349792838, 1349792833, 1349792826]} final : False mtd_id 4302 list_pids : [1349794164] Looping around the photos to save general results len do output : 1 /22021391. 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, '2720434') ('4302', '22021391', '1349794164', None, None, None, None, None, '2720434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22021391', "{'mal_croppe': 22021410, 'plastique': 22021411, 'Carton_brun': 22021412, 'flou': 22021413, 'Carton_gris': 22021414, 'Teint_Dans_La_Masse': 22021415, 'kraft': 22021416, 'environnement': 22021417, 'cartonnette': 22021418, 'metal': 22021419, 'autre_refus': 22021420, 'papier': 22021421}", None, None, None, None, '2720434'), ('4302', '22021391', '1349794164', None, None, None, None, None, '2720434')] time used for this insertion : 0.015062093734741211 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7317705154418945 time spend to save output : 0.015324592590332031 total time spend for step 1 : 1.7470951080322266 step2:final Thu Apr 3 11:49:02 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 (22021391) 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 22021391 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349792847,1349792841,1349792838,1349792833,1349792826,1349792923,1349792917,1349792907,1349792901,1349792895,1349793057,1349793051,1349793045,1349793039,1349793232,1349793218,1349793191,1349793153,1349793150,1349793139,1349793318,1349793313,1349793309,1349793410,1349793408,1349793406,1349793402,1349793399,1349793394,1349793455,1349793449,1349793440,1349793437,1349793570,1349793568,1349793564,1349793559,1349793553,1349793540,1349793604,1349793599,1349793689,1349793675,1349793670,1349793666,1349793661,1349793656,1349793807,1349793798,1349793787,1349793784,1349793781,1349793779,1349793926,1349793889,1349793915,1349793985,1349793976,1349793971,1349793969,1349793966,1349793964,1349794047,1349794042,1349794034,1349794019,1349794014,1349794009,1349794088,1349794084,1349794081,1349794078,1349794164); 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([22021391]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349794164: ('0.05990675342103159',)} new output for save of step final : {1349794164: ('0.05990675342103159',)} [1349794164] map_info['map_portfolio_photo'] : {22021391: [1349794164, 1349794088, 1349794084, 1349794081, 1349794078, 1349794047, 1349794042, 1349794034, 1349794019, 1349794014, 1349794009, 1349793985, 1349793976, 1349793971, 1349793969, 1349793966, 1349793964, 1349793926, 1349793915, 1349793889, 1349793807, 1349793798, 1349793787, 1349793784, 1349793781, 1349793779, 1349793689, 1349793675, 1349793670, 1349793666, 1349793661, 1349793656, 1349793604, 1349793599, 1349793570, 1349793568, 1349793564, 1349793559, 1349793553, 1349793540, 1349793455, 1349793449, 1349793440, 1349793437, 1349793410, 1349793408, 1349793406, 1349793402, 1349793399, 1349793394, 1349793318, 1349793313, 1349793309, 1349793232, 1349793218, 1349793191, 1349793153, 1349793150, 1349793139, 1349793057, 1349793051, 1349793045, 1349793039, 1349792923, 1349792917, 1349792907, 1349792901, 1349792895, 1349792847, 1349792841, 1349792838, 1349792833, 1349792826]} final : False mtd_id 4302 list_pids : [1349794164] Looping around the photos to save general results len do output : 1 /1349794164.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, '2720434') ('4302', '22021391', '1349794164', None, None, None, None, None, '2720434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22021391', '1349794164', '0.05990675342103159', None, None, None, None, '2720434')] time used for this insertion : 0.014758110046386719 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07579708099365234 time spend to save output : 0.015013456344604492 total time spend for step 2 : 0.09081053733825684 step3:velours_tree Thu Apr 3 11:49:02 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 : {22021391: [{'mal_croppe': 22021410, 'plastique': 22021411, 'Carton_brun': 22021412, 'flou': 22021413, 'Carton_gris': 22021414, 'Teint_Dans_La_Masse': 22021415, 'kraft': 22021416, 'environnement': 22021417, 'cartonnette': 22021418, 'metal': 22021419, 'autre_refus': 22021420, 'papier': 22021421}]} input_args_next_step : {22021391: ()} output_args : {22021391: [{'mal_croppe': 22021410, 'plastique': 22021411, 'Carton_brun': 22021412, 'flou': 22021413, 'Carton_gris': 22021414, 'Teint_Dans_La_Masse': 22021415, 'kraft': 22021416, 'environnement': 22021417, 'cartonnette': 22021418, 'metal': 22021419, 'autre_refus': 22021420, 'papier': 22021421}]} args : 22021391 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 : ({'mal_croppe': 22021410, 'plastique': 22021411, 'Carton_brun': 22021412, 'flou': 22021413, 'Carton_gris': 22021414, 'Teint_Dans_La_Masse': 22021415, 'kraft': 22021416, 'environnement': 22021417, 'cartonnette': 22021418, 'metal': 22021419, 'autre_refus': 22021420, 'papier': 22021421},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22021391) 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([22021391]) 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.3335609436035156 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.33361029624938965 step4:send_mail_cod Thu Apr 3 11:49:02 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 : {1349794164: ('0.05990675342103159',)} input_args_next_step : {1349794164: ()} output_args : {1349794164: ('0.05990675342103159',)} args : 1349794164 depend.output_id : 0 complete output_args for input 3 : {22021391: [{'mal_croppe': 22021410, 'plastique': 22021411, 'Carton_brun': 22021412, 'flou': 22021413, 'Carton_gris': 22021414, 'Teint_Dans_La_Masse': 22021415, 'kraft': 22021416, 'environnement': 22021417, 'cartonnette': 22021418, 'metal': 22021419, 'autre_refus': 22021420, 'papier': 22021421}]} input_args_next_step : {1349794164: ('0.05990675342103159',), 22021391: ()} output_args : {22021391: [{'mal_croppe': 22021410, 'plastique': 22021411, 'Carton_brun': 22021412, 'flou': 22021413, 'Carton_gris': 22021414, 'Teint_Dans_La_Masse': 22021415, 'kraft': 22021416, 'environnement': 22021417, 'cartonnette': 22021418, 'metal': 22021419, 'autre_refus': 22021420, 'papier': 22021421}]} args : 22021391 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.05990675342103159',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22021391) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1349794164) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349794164 download finish for photo 1349794164 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220214101743673742/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22021391_03-04-2025_11_49_02.pdf 22021410 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220214101743673742 22021411 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349793879: '1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099897_0.png', 1349794375: '1743673671_2196083_1349794034_f344633424b32fdf3cbe3b4ae9dd3f00_rle_crop_3746104408_0.png', 1349794374: '1743673671_2196083_1349794042_f830080e2cc157176bf897cb5485af51_rle_crop_3746104393_0.png', 1349794039: '1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100293_0.png', 1349793884: '1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099947_0.png', 1349793883: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099913_0.png', 1349793882: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099919_0.png', 1349793881: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099920_0.png', 1349793880: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099926_0.png', 1349793149: '1743672806_629649_1349792838_ebe13cdd73eb9c247e7437878a1f5909_rle_crop_3746097066_0.png', 1349793878: '1743673262_2191349_1349793604_fda29ceccbf9303c0a612a465da33024_rle_crop_3746099862_0.png', 1349793655: '1743673166_634280_1349793394_52e4afca510b302e0ebf1b33891a9ec7_rle_crop_3746098718_0.png', 1349793636: '1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098591_0.png', 1349793554: '1743673045_2099322_1349793318_2377bef944eebed8a555eeaafe4417d2_rle_crop_3746098181_0.png', 1349793529: '1743673052_2189168_1349793232_f1f8799c001d3a45f3308d7473ca79ad_rle_crop_3746098174_0.png', 1349793377: '1743672913_2187981_1349793039_50c5247385a70ca9c499909ea86504fe_rle_crop_3746097588_0.png', 1349793212: '1743672812_2186911_1349792917_c2392b0c1511c46d4a73c77f53f4e395_rle_crop_3746097193_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b20bd2f8fee4ccc56d22c9a60220000d_2216423.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f8b2f2afafb8d7699216b15be4c954e1_40307187.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/60b87c2dfed2d070fe2bbbaf0ac6ce15_72855983.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/856c06ba94d670b017bcb7c9956ca05b_1257481.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c37ffa6768f1fa07c9fff7ab424448f5_43404064.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/56daf89b539ddcbaec1016a2e701e887_58657757.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0083901a6bb9e996b7fd89299c0ad735_50295498.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b899e99cbda1be305f1d1937a3279914_78496361.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/58ac28eccabe950a90fb270549c8b193_12943851.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/155343e811ba436c201b4f8845c59600_35165301.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/09d720414e2f4106dc217691f4c4b8b6_10699474.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/208a406b6498946ab9238bfd2039ee83_93978164.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4da9097623106e81d6d06794670ab885_47764665.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0f8885d2edaffab2f6ab4e48c236450d_52228427.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/77d0a5756590ab010cca010a23d807c4_18852049.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/16e58b6b8ee67e5904155ce7e4bf4ea6_44671713.png change filename to text .imagette220214111743673742/ imagette220214111743673742/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099913_0.png.png imagette220214111743673742/1743673166_634280_1349793394_52e4afca510b302e0ebf1b33891a9ec7_rle_crop_3746098718_0.png.png imagette220214111743673742/1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100293_0.png.png imagette220214111743673742/1743673045_2099322_1349793318_2377bef944eebed8a555eeaafe4417d2_rle_crop_3746098181_0.png.png imagette220214111743673742/1743673262_2191349_1349793604_fda29ceccbf9303c0a612a465da33024_rle_crop_3746099862_0.png.png imagette220214111743673742/1743673671_2196083_1349794042_f830080e2cc157176bf897cb5485af51_rle_crop_3746104393_0.png.png imagette220214111743673742/1743672812_2186911_1349792917_c2392b0c1511c46d4a73c77f53f4e395_rle_crop_3746097193_0.png.png imagette220214111743673742/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099919_0.png.png imagette220214111743673742/1743673052_2189168_1349793232_f1f8799c001d3a45f3308d7473ca79ad_rle_crop_3746098174_0.png.png imagette220214111743673742/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099920_0.png.png imagette220214111743673742/1743672806_629649_1349792838_ebe13cdd73eb9c247e7437878a1f5909_rle_crop_3746097066_0.png.png imagette220214111743673742/1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099897_0.png.png imagette220214111743673742/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099926_0.png.png imagette220214111743673742/1743673671_2196083_1349794034_f344633424b32fdf3cbe3b4ae9dd3f00_rle_crop_3746104408_0.png.png imagette220214111743673742/1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098591_0.png.png imagette220214111743673742/1743672913_2187981_1349793039_50c5247385a70ca9c499909ea86504fe_rle_crop_3746097588_0.png.png imagette220214111743673742/1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099947_0.png.png imagette220214131743673743/ wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3d1541db2bb10c78e94523b309bc2e5b_82254082.png imagette220214111743673742 22021413 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021413 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220214131743673743 22021416 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021416 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349793885: '1743673262_2191349_1349793604_fda29ceccbf9303c0a612a465da33024_rle_crop_3746099867_0.png', 1349793886: '1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099892_0.png', 1349794130: '1743673526_637685_1349793971_2da7dc00a3d39c5c04cfc9b5ff30c5cb_rle_crop_3746100909_0.png', 1349794131: '1743673526_637685_1349793969_c545c63058d39dc7b14396213b6b06d3_rle_crop_3746100918_0.png', 1349794133: '1743673526_637685_1349793966_bc70607ed6e2cb93549f86ebd8e7792b_rle_crop_3746100931_0.png', 1349794272: '1743673648_640459_1349794047_adb579e422edd12d59a31da6fd75cb73_rle_crop_3746103129_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2372211e62060a8bdc6d8591f010f0d1_59548242.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/40ac6d9591e333df800482fbaa060dad_45968707.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4d6acd7d86f94778b0d4e7f986a910c1_59715413.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c87839321255303aa678fc34328ac94b_32586976.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b97bf1b66afa813238f6af5336589af9_16462723.png change filename to text .imagette220214161743673743/ imagette220214161743673743/1743673648_640459_1349794047_adb579e422edd12d59a31da6fd75cb73_rle_crop_3746103129_0.png.png imagette220214161743673743/1743673526_637685_1349793971_2da7dc00a3d39c5c04cfc9b5ff30c5cb_rle_crop_3746100909_0.png.png imagette220214161743673743/1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099892_0.png.png imagette220214161743673743/1743673526_637685_1349793966_bc70607ed6e2cb93549f86ebd8e7792b_rle_crop_3746100931_0.png.png imagette220214161743673743/1743673262_2191349_1349793604_fda29ceccbf9303c0a612a465da33024_rle_crop_3746099867_0.png.png imagette220214161743673743/1743673526_637685_1349793969_c545c63058d39dc7b14396213b6b06d3_rle_crop_3746100918_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a0db9d9682968b99267f1a78bf033108_36758097.png imagette220214161743673743 22021418 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021418 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794122: '1743673526_637685_1349793969_c545c63058d39dc7b14396213b6b06d3_rle_crop_3746100917_0.png', 1349794369: '1743673671_2196083_1349794034_f344633424b32fdf3cbe3b4ae9dd3f00_rle_crop_3746104404_0.png', 1349794368: '1743673671_2196083_1349794088_28ce3f4dd5859a425c2fb8f1a1ce794b_rle_crop_3746104374_0.png', 1349794281: '1743673651_2195800_1349794078_52be10debcdccf81aa44ba2ece15ed7c_rle_crop_3746103304_0.png', 1349794280: '1743673651_2195800_1349794081_0a56d92593d2530fc9b76c2c350dee66_rle_crop_3746103261_0.png', 1349794265: '1743673648_640459_1349794047_adb579e422edd12d59a31da6fd75cb73_rle_crop_3746103137_0.png', 1349794125: '1743673526_637685_1349793964_694153aba1dd1ac40e6c3a673f2d8048_rle_crop_3746100942_0.png', 1349794124: '1743673526_637685_1349793964_694153aba1dd1ac40e6c3a673f2d8048_rle_crop_3746100951_0.png', 1349794123: '1743673526_637685_1349793966_bc70607ed6e2cb93549f86ebd8e7792b_rle_crop_3746100929_0.png', 1349793141: '1743672806_629649_1349792841_c8b743b24fa64172ba16b37481d94680_rle_crop_3746097056_0.png', 1349794032: '1743673412_2192542_1349793798_d727b09113b82b28239f76adb98c7df5_rle_crop_3746100264_0.png', 1349794013: '1743673431_2192717_1349793889_1651017083dcc9c3e2ec539e6cd358af_rle_crop_3746100333_0.png', 1349793870: '1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099948_0.png', 1349793869: '1743673262_2191349_1349793553_db3d8422ca5d9f4fc163a5288ea6d61e_rle_crop_3746099932_0.png', 1349793651: '1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098684_0.png', 1349793635: '1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098599_0.png', 1349793634: '1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098594_0.png', 1349793205: '1743672812_2186911_1349792895_b901e8f0546ec2bf8af6f345d7725151_rle_crop_3746097227_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/224ea46d8acce52450464308e1a18895_53047540.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/aaafc4b2dabe694bdd39182dd27952a4_5200469.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/00ec0a33573cbb4dd6a66a76fa4c6f6d_29235834.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/db4b0fb5afc40a341d7ad3f2ecc08e3a_10284315.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5a0c3e2bc1d1439992f6fde9b72c4849_9070320.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3ba774fdc3ab0382c99c61ccae9dbab2_45178075.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/765427d97c59c46c96c283e7d9ef26cd_53690055.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cf9f1d226126a5cb4e7970b5bb6188d6_15132243.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a065d0e159512d5c55327f2345d63b52_79188401.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6bbdd712454781c267de47450a77bb78_55658263.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6d28f689d71c0a5dae24f885c6ce4a43_83765363.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a5176033d3fd8a326ae46e7c7dffd94f_11070542.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/77eccf0b1c1fb15d5badaa82d1f19e91_19277779.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f1597289d4e2d67771b2976ea9c4d7ba_3035472.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0aa943e7e5b20df2887cd85a96d6dde3_24801728.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1b0ae58feb7d3a59dafdfc0392ca17ed_45195048.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ec0bda1a3f0ca66b1f7eb7d3e4209246_61184553.png change filename to text .imagette220214181743673744/ imagette220214181743673744/1743673412_2192542_1349793798_d727b09113b82b28239f76adb98c7df5_rle_crop_3746100264_0.png.png imagette220214181743673744/1743673648_640459_1349794047_adb579e422edd12d59a31da6fd75cb73_rle_crop_3746103137_0.png.png imagette220214181743673744/1743672806_629649_1349792841_c8b743b24fa64172ba16b37481d94680_rle_crop_3746097056_0.png.png imagette220214181743673744/1743673671_2196083_1349794034_f344633424b32fdf3cbe3b4ae9dd3f00_rle_crop_3746104404_0.png.png imagette220214181743673744/1743673526_637685_1349793964_694153aba1dd1ac40e6c3a673f2d8048_rle_crop_3746100951_0.png.png imagette220214181743673744/1743673526_637685_1349793969_c545c63058d39dc7b14396213b6b06d3_rle_crop_3746100917_0.png.png imagette220214181743673744/1743673651_2195800_1349794078_52be10debcdccf81aa44ba2ece15ed7c_rle_crop_3746103304_0.png.png imagette220214181743673744/1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098594_0.png.png imagette220214181743673744/1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098599_0.png.png imagette220214181743673744/1743673671_2196083_1349794088_28ce3f4dd5859a425c2fb8f1a1ce794b_rle_crop_3746104374_0.png.png imagette220214181743673744/1743673526_637685_1349793964_694153aba1dd1ac40e6c3a673f2d8048_rle_crop_3746100942_0.png.png imagette220214181743673744/1743673431_2192717_1349793889_1651017083dcc9c3e2ec539e6cd358af_rle_crop_3746100333_0.png.png imagette220214181743673744/1743673262_2191349_1349793553_db3d8422ca5d9f4fc163a5288ea6d61e_rle_crop_3746099932_0.png.png imagette220214181743673744/1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098684_0.png.png imagette220214181743673744/1743672812_2186911_1349792895_b901e8f0546ec2bf8af6f345d7725151_rle_crop_3746097227_0.png.png imagette220214181743673744/1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099948_0.png.png imagette220214181743673744/1743673651_2195800_1349794081_0a56d92593d2530fc9b76c2c350dee66_rle_crop_3746103261_0.png.png imagette220214181743673744/1743673526_637685_1349793966_bc70607ed6e2cb93549f86ebd8e7792b_rle_crop_3746100929_0.png.png imagette220214191743673745/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b4b46cb86c89399d36943d4625bf28ff_96465131.png imagette220214181743673744 22021419 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021419 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220214191743673745 22021420 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021420 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349793645: '1743673166_634280_1349793406_2ce41cb84bab0a9174acabf072d55c82_rle_crop_3746098669_0.png', 1349794365: '1743673671_2196083_1349794014_47364ebfd39ce6149f26c5479a5c979a_rle_crop_3746104426_0.png', 1349794364: '1743673671_2196083_1349794034_f344633424b32fdf3cbe3b4ae9dd3f00_rle_crop_3746104403_0.png', 1349794363: '1743673671_2196083_1349794088_28ce3f4dd5859a425c2fb8f1a1ce794b_rle_crop_3746104377_0.png', 1349794026: '1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100345_0.png', 1349794025: '1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100351_0.png', 1349793861: '1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099894_0.png', 1349793860: '1743673262_2191349_1349793568_6eb01230d74a758d204a4472a8a901f4_rle_crop_3746099876_0.png', 1349793646: '1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098682_0.png', 1349793135: '1743672806_629649_1349792847_405feddec6fba616462f83afdcb47717_rle_crop_3746097032_0.png', 1349793644: '1743673166_634280_1349793455_5a5abc6db35985e1eff37d567038145e_rle_crop_3746098647_0.png', 1349793631: '1743673153_2190009_1349793440_a9c63164038a6285ca61ce1b1f44e9c4_rle_crop_3746098615_0.png', 1349793630: '1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098600_0.png', 1349793544: '1743673045_2099322_1349793150_12a0a6ca762c95966b23d92b75dc1d1f_rle_crop_3746098237_0.png', 1349793543: '1743673045_2099322_1349793153_739de3143e2a8d5cbc221ce2ab871b31_rle_crop_3746098223_0.png', 1349793541: '1743673045_2099322_1349793191_641e5525ee08ba7955d7b8019e4091a0_rle_crop_3746098213_0.png', 1349793539: '1743673045_2099322_1349793218_e6bd3888c69a5298e5fd042bcbdb215c_rle_crop_3746098206_0.png', 1349793376: '1743672913_2187981_1349793039_50c5247385a70ca9c499909ea86504fe_rle_crop_3746097583_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a0dcd099c300fbff27a8f1f56eff1917_8162228.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/18b3d94458c825713821a36401b613a9_73007489.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c43d3ee3190ccc08463ea52dd8dd7ca0_1907566.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f5fd0d41bc9fb3144bbd12daca1acc11_57380652.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/151ffc1a83659782d56797a76dcdb460_21034616.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/58da3c0be138fc73c16fd5feb77591b5_43789008.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5ab0a39384316782e95b1c2d270153b0_65216116.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f5000a09b677956acd7fe4bc30c4dc0f_76400490.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6ee1d3829443fd075b22856ab2c0e2f0_15454799.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f3972d10659c8e8b74fe403a818cff8b_43046176.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f188818cb9d6a5195f9dc7d506579b01_53675858.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/aa9d5e46df044a0cb83373bd0a2f98df_69576081.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7ad30d76f4933f6dd33d3ea1f89c4dc0_40957739.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cfc41c11657e6d71461daf85fcf9138d_41362730.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/490bf343ce91fd1541b0d9d4ebde4825_54724443.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8b3d3524ceb1336f33941d550c6b77b5_34542867.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f2d52c0d0877c73b8ccdc7fabf033a89_67882576.png change filename to text .imagette220214201743673745/ imagette220214201743673745/1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100345_0.png.png imagette220214201743673745/1743673045_2099322_1349793150_12a0a6ca762c95966b23d92b75dc1d1f_rle_crop_3746098237_0.png.png imagette220214201743673745/1743673153_2190009_1349793440_a9c63164038a6285ca61ce1b1f44e9c4_rle_crop_3746098615_0.png.png imagette220214201743673745/1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098600_0.png.png imagette220214201743673745/1743673671_2196083_1349794088_28ce3f4dd5859a425c2fb8f1a1ce794b_rle_crop_3746104377_0.png.png imagette220214201743673745/1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099894_0.png.png imagette220214201743673745/1743672913_2187981_1349793039_50c5247385a70ca9c499909ea86504fe_rle_crop_3746097583_0.png.png imagette220214201743673745/1743673671_2196083_1349794014_47364ebfd39ce6149f26c5479a5c979a_rle_crop_3746104426_0.png.png imagette220214201743673745/1743673045_2099322_1349793153_739de3143e2a8d5cbc221ce2ab871b31_rle_crop_3746098223_0.png.png imagette220214201743673745/1743673166_634280_1349793406_2ce41cb84bab0a9174acabf072d55c82_rle_crop_3746098669_0.png.png imagette220214201743673745/1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098682_0.png.png imagette220214201743673745/1743672806_629649_1349792847_405feddec6fba616462f83afdcb47717_rle_crop_3746097032_0.png.png imagette220214201743673745/1743673671_2196083_1349794034_f344633424b32fdf3cbe3b4ae9dd3f00_rle_crop_3746104403_0.png.png imagette220214201743673745/1743673045_2099322_1349793191_641e5525ee08ba7955d7b8019e4091a0_rle_crop_3746098213_0.png.png imagette220214201743673745/1743673045_2099322_1349793218_e6bd3888c69a5298e5fd042bcbdb215c_rle_crop_3746098206_0.png.png imagette220214201743673745/1743673166_634280_1349793455_5a5abc6db35985e1eff37d567038145e_rle_crop_3746098647_0.png.png imagette220214201743673745/1743673262_2191349_1349793568_6eb01230d74a758d204a4472a8a901f4_rle_crop_3746099876_0.png.png imagette220214201743673745/1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100351_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/05f2c6447fe9a788022671b55655b02d_93883567.png imagette220214201743673745 22021412 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021412 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349793873: '1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099899_0.png', 1349794372: '1743673671_2196083_1349794019_59867d50f40116d607b676b62f7b195e_rle_crop_3746104421_0.png', 1349794371: '1743673671_2196083_1349794042_f830080e2cc157176bf897cb5485af51_rle_crop_3746104397_0.png', 1349794370: '1743673671_2196083_1349794088_28ce3f4dd5859a425c2fb8f1a1ce794b_rle_crop_3746104381_0.png', 1349794283: '1743673651_2195800_1349794081_0a56d92593d2530fc9b76c2c350dee66_rle_crop_3746103260_0.png', 1349794268: '1743673648_640459_1349794047_adb579e422edd12d59a31da6fd75cb73_rle_crop_3746103133_0.png', 1349794127: '1743673526_637685_1349793964_694153aba1dd1ac40e6c3a673f2d8048_rle_crop_3746100946_0.png', 1349794037: '1743673412_2192542_1349793784_24b28f6e864f8c76468f091600f00c2c_rle_crop_3746100308_0.png', 1349794036: '1743673412_2192542_1349793784_24b28f6e864f8c76468f091600f00c2c_rle_crop_3746100309_0.png', 1349794035: '1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100282_0.png', 1349793876: '1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099953_0.png', 1349793875: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099917_0.png', 1349793874: '1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099902_0.png', 1349793144: '1743672806_629649_1349792923_4550fe697190b229171609646248de19_rle_crop_3746097025_0.png', 1349793872: '1743673262_2191349_1349793568_6eb01230d74a758d204a4472a8a901f4_rle_crop_3746099877_0.png', 1349793652: '1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098685_0.png', 1349793551: '1743673045_2099322_1349793139_430f038f9566d909648a4d5f862dfa48_rle_crop_3746098261_0.png', 1349793550: '1743673045_2099322_1349793150_12a0a6ca762c95966b23d92b75dc1d1f_rle_crop_3746098239_0.png', 1349793549: '1743673045_2099322_1349793218_e6bd3888c69a5298e5fd042bcbdb215c_rle_crop_3746098203_0.png', 1349793468: '1743673032_2188948_1349793313_f94a0c0e6a343d651de759aacbd8361b_rle_crop_3746097934_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/34f2851fcabaf8984e1c3c26522b1695_41979501.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/282f6d959be41f60e45727ff8fdc5989_60093378.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/db1b43ce2ab52a06b8ace937562a2d55_97808542.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f4af52ac9605c5d97a0b027919a7a3ba_4426226.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/85ceb49d0b8a35e4674a6116c65bb90e_86886413.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/977797cd552b3dea261f80ef1c6e3ea4_72177485.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/75411d6024c183c50c972ddca88867b0_26240704.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/14fbdb67099ec1af8644472fba8a7f7c_4783282.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a44a45cf84e53ebf0f0bf850e7d5345f_82474654.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f061ae9840717cb6a782a2fa04e61f8c_44998709.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1177eb56acdd00dd36bd62c4f25b848c_74972110.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/af396ab5c7fc471261f76f490e3e3887_93818263.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4242b4f37a942a5cc80f1a3fd972089a_62660103.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6fd31146747da384e809c52881077fc6_71031126.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e3b38aeaf85c53128b8b23795e512b28_6883094.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cdfb5b6d11df4f07139bbf18552f322c_33222287.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6bbd1466a66dac078ca23339ef304a23_78168377.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ec560ccae7001d95d27400fb8c81c2a7_40257437.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ae0452a0a31c2de410868b8f94f2030f_14369942.png change filename to text .imagette220214121743673746/ imagette220214121743673746/1743673648_640459_1349794047_adb579e422edd12d59a31da6fd75cb73_rle_crop_3746103133_0.png.png imagette220214121743673746/1743673671_2196083_1349794088_28ce3f4dd5859a425c2fb8f1a1ce794b_rle_crop_3746104381_0.png.png imagette220214121743673746/1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099899_0.png.png imagette220214121743673746/1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099902_0.png.png imagette220214121743673746/1743673412_2192542_1349793784_24b28f6e864f8c76468f091600f00c2c_rle_crop_3746100309_0.png.png imagette220214121743673746/1743673045_2099322_1349793218_e6bd3888c69a5298e5fd042bcbdb215c_rle_crop_3746098203_0.png.png imagette220214121743673746/1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099953_0.png.png imagette220214121743673746/1743673045_2099322_1349793150_12a0a6ca762c95966b23d92b75dc1d1f_rle_crop_3746098239_0.png.png imagette220214121743673746/1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098685_0.png.png imagette220214121743673746/1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100282_0.png.png imagette220214121743673746/1743673671_2196083_1349794042_f830080e2cc157176bf897cb5485af51_rle_crop_3746104397_0.png.png imagette220214121743673746/1743673045_2099322_1349793139_430f038f9566d909648a4d5f862dfa48_rle_crop_3746098261_0.png.png imagette220214121743673746/1743673262_2191349_1349793568_6eb01230d74a758d204a4472a8a901f4_rle_crop_3746099877_0.png.png imagette220214121743673746/1743673671_2196083_1349794019_59867d50f40116d607b676b62f7b195e_rle_crop_3746104421_0.png.png imagette220214121743673746/1743673412_2192542_1349793784_24b28f6e864f8c76468f091600f00c2c_rle_crop_3746100308_0.png.png imagette220214121743673746/1743673526_637685_1349793964_694153aba1dd1ac40e6c3a673f2d8048_rle_crop_3746100946_0.png.png imagette220214121743673746/1743673032_2188948_1349793313_f94a0c0e6a343d651de759aacbd8361b_rle_crop_3746097934_0.png.png imagette220214121743673746/1743673651_2195800_1349794081_0a56d92593d2530fc9b76c2c350dee66_rle_crop_3746103260_0.png.png imagette220214121743673746/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099917_0.png.png imagette220214121743673746/1743672806_629649_1349792923_4550fe697190b229171609646248de19_rle_crop_3746097025_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0c352092d8f9a6cf14b6e40cef707549_46574192.png imagette220214121743673746 22021414 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021414 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349793866: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099918_0.png', 1349794367: '1743673671_2196083_1349794009_f9af972a3ac8c56e82dde4ff90356b71_rle_crop_3746104445_0.png', 1349794366: '1743673671_2196083_1349794042_f830080e2cc157176bf897cb5485af51_rle_crop_3746104390_0.png', 1349794277: '1743673651_2195800_1349794081_0a56d92593d2530fc9b76c2c350dee66_rle_crop_3746103255_0.png', 1349794120: '1743673526_637685_1349793969_c545c63058d39dc7b14396213b6b06d3_rle_crop_3746100923_0.png', 1349794067: '1743673470_2193249_1349793599_781a3dd344798340ab5e0ae8d5840596_rle_crop_3746100587_0.png', 1349794065: '1743673452_2192975_1349793661_3d8e593d2c0d8da647c1885d34f67b40_rle_crop_3746100557_0.png', 1349794030: '1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100347_0.png', 1349794029: '1743673412_2192542_1349793784_24b28f6e864f8c76468f091600f00c2c_rle_crop_3746100305_0.png', 1349794028: '1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100289_0.png', 1349793867: '1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099949_0.png', 1349793137: '1743672806_629649_1349792841_c8b743b24fa64172ba16b37481d94680_rle_crop_3746097049_0.png', 1349793865: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099912_0.png', 1349793864: '1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099916_0.png', 1349793863: '1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099905_0.png', 1349793649: '1743673166_634280_1349793394_52e4afca510b302e0ebf1b33891a9ec7_rle_crop_3746098719_0.png', 1349793648: '1743673166_634280_1349793406_2ce41cb84bab0a9174acabf072d55c82_rle_crop_3746098666_0.png', 1349793647: '1743673166_634280_1349793455_5a5abc6db35985e1eff37d567038145e_rle_crop_3746098645_0.png', 1349793546: '1743673045_2099322_1349793139_430f038f9566d909648a4d5f862dfa48_rle_crop_3746098251_0.png', 1349793545: '1743673045_2099322_1349793139_430f038f9566d909648a4d5f862dfa48_rle_crop_3746098257_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/218866aecfaaecef92db2b57534894d0_93296171.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/157addb6cefee51ed0cb301ba0525c3e_68693540.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/beb5e46b5878908409998af4c8841664_76345750.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5d6a0bf77113a903042dc4a6d02900f2_34253826.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6c6201d282159e3e1cc45ea6171398ef_11819105.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3580862f7b2e106a58e11b9e2bb26d05_47297877.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/aba013076077e4a19bde50baaca6a46c_41779754.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/178949b22e9e50794e5591226681ad66_34803716.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e7c843196252e2840599bd4df990028c_59033036.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/777b27b1fe58928076ceb4559a3f4f80_7860494.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e7d2a224eff97fac332bccbebfa797c8_96613678.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/be209aed7ba5988d5502d6f5df5887f6_24868955.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c27823b2756b082d4939aec4c681ad75_57477988.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/361b4435e0951c0050bd09fb1a60f6a2_61380809.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e892fd92774597625f69c64bb250d19c_81225721.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a2e544a6e2a5ba2a7ecbdc949b3a3a52_32468697.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/dba5f828413959c8b609ee6b577e732e_34965426.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d85250b90c39254a68223bffddd09504_49434735.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1178ec19f086995e73c22ba98018ed2e_9690972.png change filename to text .imagette220214141743673747/ imagette220214141743673747/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099916_0.png.png imagette220214141743673747/1743673651_2195800_1349794081_0a56d92593d2530fc9b76c2c350dee66_rle_crop_3746103255_0.png.png imagette220214141743673747/1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100289_0.png.png imagette220214141743673747/1743673045_2099322_1349793139_430f038f9566d909648a4d5f862dfa48_rle_crop_3746098251_0.png.png imagette220214141743673747/1743673452_2192975_1349793661_3d8e593d2c0d8da647c1885d34f67b40_rle_crop_3746100557_0.png.png imagette220214141743673747/1743672806_629649_1349792841_c8b743b24fa64172ba16b37481d94680_rle_crop_3746097049_0.png.png imagette220214141743673747/1743673166_634280_1349793455_5a5abc6db35985e1eff37d567038145e_rle_crop_3746098645_0.png.png imagette220214141743673747/1743673470_2193249_1349793599_781a3dd344798340ab5e0ae8d5840596_rle_crop_3746100587_0.png.png imagette220214141743673747/1743673045_2099322_1349793139_430f038f9566d909648a4d5f862dfa48_rle_crop_3746098257_0.png.png imagette220214141743673747/1743673262_2191349_1349793540_8a164c081ea314722886c7924a3af51f_rle_crop_3746099949_0.png.png imagette220214141743673747/1743673262_2191349_1349793564_12ebe3f4fa2987315ce0ecbfe5604d09_rle_crop_3746099905_0.png.png imagette220214141743673747/1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100347_0.png.png imagette220214141743673747/1743673412_2192542_1349793784_24b28f6e864f8c76468f091600f00c2c_rle_crop_3746100305_0.png.png imagette220214141743673747/1743673166_634280_1349793394_52e4afca510b302e0ebf1b33891a9ec7_rle_crop_3746098719_0.png.png imagette220214141743673747/1743673671_2196083_1349794042_f830080e2cc157176bf897cb5485af51_rle_crop_3746104390_0.png.png imagette220214141743673747/1743673526_637685_1349793969_c545c63058d39dc7b14396213b6b06d3_rle_crop_3746100923_0.png.png imagette220214141743673747/1743673671_2196083_1349794009_f9af972a3ac8c56e82dde4ff90356b71_rle_crop_3746104445_0.png.png imagette220214141743673747/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099918_0.png.png imagette220214141743673747/1743673166_634280_1349793406_2ce41cb84bab0a9174acabf072d55c82_rle_crop_3746098666_0.png.png imagette220214141743673747/1743673262_2191349_1349793559_9c050808326fded456c83ff3a72c7fd7_rle_crop_3746099912_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a1b875c18eb3099be49c3a6b12450307_48946667.png imagette220214141743673747 22021415 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021415 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349793642: '1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098681_0.png', 1349794276: '1743673651_2195800_1349794078_52be10debcdccf81aa44ba2ece15ed7c_rle_crop_3746103307_0.png', 1349794119: '1743673526_637685_1349793976_e4809e514dd7232ca3d752b39302cace_rle_crop_3746100886_0.png', 1349794064: '1743673452_2192975_1349793656_01a352de17fb4504a66837716f48a426_rle_crop_3746100573_0.png', 1349794063: '1743673452_2192975_1349793656_01a352de17fb4504a66837716f48a426_rle_crop_3746100575_0.png', 1349794062: '1743673452_2192975_1349793807_cbacb4cb062c78e50e999f43f1dba5b8_rle_crop_3746100495_0.png', 1349794024: '1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100349_0.png', 1349794023: '1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100283_0.png', 1349794022: '1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100288_0.png', 1349794021: '1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100292_0.png', 1349794020: '1743673412_2192542_1349793798_d727b09113b82b28239f76adb98c7df5_rle_crop_3746100270_0.png', 1349793643: '1743673166_634280_1349793399_f75ad5ce75736b05f9821992e9c2cb9c_rle_crop_3746098702_0.png', 1349793131: '1743672806_629649_1349792847_405feddec6fba616462f83afdcb47717_rle_crop_3746097036_0.png', 1349793641: '1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098689_0.png', 1349793640: '1743673166_634280_1349793455_5a5abc6db35985e1eff37d567038145e_rle_crop_3746098646_0.png', 1349793628: '1743673153_2190009_1349793440_a9c63164038a6285ca61ce1b1f44e9c4_rle_crop_3746098614_0.png', 1349793627: '1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098595_0.png', 1349793536: '1743673045_2099322_1349793150_12a0a6ca762c95966b23d92b75dc1d1f_rle_crop_3746098234_0.png', 1349793535: '1743673045_2099322_1349793191_641e5525ee08ba7955d7b8019e4091a0_rle_crop_3746098214_0.png', 1349793534: '1743673045_2099322_1349793191_641e5525ee08ba7955d7b8019e4091a0_rle_crop_3746098216_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c733f110ad401059fa26b1424628fd6a_5782357.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8db2e7e9833e4db5e92af0465654e1e7_94166558.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/607095edf99539de08661277ca89fa95_17646608.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/611286971147909da706a7f4cce08236_535253.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d98a129311a55decca0b6dd9feac76e7_67040062.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/72ff54ac557de85b036509901fead644_40424486.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8276ce280f65648b8318415c042673b7_69622966.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0a89ebd9d4d8b92535479c9a51e66ae6_53577591.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0cca8c490df58ee2963955dc7fc3a61a_36301850.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4710a682e6db4f1f8eb3abebd548ec46_50549369.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1309ceb7f7c8f3bf24bf6a01a3a130fa_47452571.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6bfa5bc994ae7ea71a490e25b559198f_17417208.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c892f3630d2dd870d14fd97f4228b722_25646674.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/dddcb63ef6aeaae040d79fb5afcd3f04_16734699.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/23139c5fdf58dc2bd1f2d47eacfb98cf_48492811.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e7e9edf726af8ae2b763b552444e1761_16387590.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/166f7a4cf35853ea46ad3f2959c39784_67867140.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4f40219a593019500fc16ebb2cf68c5f_83211096.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8ddb137b8240ac0d9d49fdf85d3742de_46229881.png change filename to text .imagette220214151743673748/ imagette220214151743673748/1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100288_0.png.png imagette220214151743673748/1743673452_2192975_1349793656_01a352de17fb4504a66837716f48a426_rle_crop_3746100575_0.png.png imagette220214151743673748/1743673452_2192975_1349793807_cbacb4cb062c78e50e999f43f1dba5b8_rle_crop_3746100495_0.png.png imagette220214151743673748/1743673412_2192542_1349793779_1f9ecc805674ab50b9fa7e383cbe772a_rle_crop_3746100349_0.png.png imagette220214151743673748/1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100283_0.png.png imagette220214151743673748/1743673153_2190009_1349793449_5728d2ec5be3a654a5a7b3a2a3426656_rle_crop_3746098595_0.png.png imagette220214151743673748/1743673045_2099322_1349793150_12a0a6ca762c95966b23d92b75dc1d1f_rle_crop_3746098234_0.png.png imagette220214151743673748/1743673166_634280_1349793399_f75ad5ce75736b05f9821992e9c2cb9c_rle_crop_3746098702_0.png.png imagette220214151743673748/1743673045_2099322_1349793191_641e5525ee08ba7955d7b8019e4091a0_rle_crop_3746098216_0.png.png imagette220214151743673748/1743673045_2099322_1349793191_641e5525ee08ba7955d7b8019e4091a0_rle_crop_3746098214_0.png.png imagette220214151743673748/1743672806_629649_1349792847_405feddec6fba616462f83afdcb47717_rle_crop_3746097036_0.png.png imagette220214151743673748/1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098681_0.png.png imagette220214151743673748/1743673412_2192542_1349793787_265e345f37b66fd281982a17b28b04df_rle_crop_3746100292_0.png.png imagette220214151743673748/1743673526_637685_1349793976_e4809e514dd7232ca3d752b39302cace_rle_crop_3746100886_0.png.png imagette220214151743673748/1743673166_634280_1349793455_5a5abc6db35985e1eff37d567038145e_rle_crop_3746098646_0.png.png imagette220214151743673748/1743673452_2192975_1349793656_01a352de17fb4504a66837716f48a426_rle_crop_3746100573_0.png.png imagette220214151743673748/1743673153_2190009_1349793440_a9c63164038a6285ca61ce1b1f44e9c4_rle_crop_3746098614_0.png.png imagette220214151743673748/1743673166_634280_1349793402_98c729f4832e12ddb063ad452628e1e6_rle_crop_3746098689_0.png.png imagette220214151743673748/1743673412_2192542_1349793798_d727b09113b82b28239f76adb98c7df5_rle_crop_3746100270_0.png.png imagette220214151743673748/1743673651_2195800_1349794078_52be10debcdccf81aa44ba2ece15ed7c_rle_crop_3746103307_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ec8e4a6d7d8017662a06eda7bbfdad12_84502183.png imagette220214151743673748 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22021391 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22021422,22021423,22021424,22021425,22021426,22021427,22021428,22021429,22021430,22021431,22021432,22021433?tags=mal_croppe,plastique,Carton_brun,flou,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,cartonnette,metal,autre_refus,papier your option no_mail is active, we will not send the real mail to your client args[1349794164] : ('0.05990675342103159',) no score found for photo 1349794164 We are sending mail with results at report@fotonower.com refus_total : 0.05990675342103159 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021391 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_P22021391_03-04-2025_11_49_02.pdf results_Auto_P22021391_03-04-2025_11_49_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_49_02.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','22021391','results_Auto_P22021391_03-04-2025_11_49_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_49_02.pdf','pdf','','0.38','0.05990675342103159') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22021391]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349794164] map_info['map_portfolio_photo'] : {22021391: [1349794164, 1349794088, 1349794084, 1349794081, 1349794078, 1349794047, 1349794042, 1349794034, 1349794019, 1349794014, 1349794009, 1349793985, 1349793976, 1349793971, 1349793969, 1349793966, 1349793964, 1349793926, 1349793915, 1349793889, 1349793807, 1349793798, 1349793787, 1349793784, 1349793781, 1349793779, 1349793689, 1349793675, 1349793670, 1349793666, 1349793661, 1349793656, 1349793604, 1349793599, 1349793570, 1349793568, 1349793564, 1349793559, 1349793553, 1349793540, 1349793455, 1349793449, 1349793440, 1349793437, 1349793410, 1349793408, 1349793406, 1349793402, 1349793399, 1349793394, 1349793318, 1349793313, 1349793309, 1349793232, 1349793218, 1349793191, 1349793153, 1349793150, 1349793139, 1349793057, 1349793051, 1349793045, 1349793039, 1349792923, 1349792917, 1349792907, 1349792901, 1349792895, 1349792847, 1349792841, 1349792838, 1349792833, 1349792826]} final : False mtd_id 4302 list_pids : [1349794164] 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, '2720434') ('4302', '22021391', '1349794164', None, None, None, None, None, '2720434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22021391', '1349794164', None, None, None, None, None, '2720434')] time used for this insertion : 0.011768817901611328 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.029306888580322 time spend to save output : 0.011958122253417969 total time spend for step 4 : 8.04126501083374 step5:split_time_score Thu Apr 3 11:49:10 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 : ['22021391'] 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 : [('22021391',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22021391) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349794164: {'path': 'temp/1743673742_3249191_1349794164_1eb9778ca25f14ad98572843cd5b0619.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 = 22021391; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22021391 group by h (('11', 73),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22021391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22021391) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22021391) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22021391 Nombre de photos uploadées : 73 / 23040 (0%) 03042025 22021391 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 03042025 22021391 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1349792847, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/405feddec6fba616462f83afdcb47717.jpg', 'username': None, 'uploaded_at': 1743672668, 'text': 'image_03042025_11_30_04_010151m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349792841, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c8b743b24fa64172ba16b37481d94680.jpg', 'username': None, 'uploaded_at': 1743672668, 'text': 'image_03042025_11_30_14_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349792838, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ebe13cdd73eb9c247e7437878a1f5909.jpg', 'username': None, 'uploaded_at': 1743672668, 'text': 'image_03042025_11_30_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349792833, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1a317e79a6092e55466e91014bf6dda4.jpg', 'username': None, 'uploaded_at': 1743672668, 'text': 'image_03042025_11_30_34_010141m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033020973205566406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22021391, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022725582122802734 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721523, 'mtr_portfolio_id': 22019963, 'dashboard_result_id': 9846170, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22019963_03-04-2025_11_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22020013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020024, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721523, 'mtr_portfolio_id': 22020684, 'dashboard_result_id': 9846171, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22020684_03-04-2025_11_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22020754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020772, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721523, 'mtr_portfolio_id': 22021391, 'dashboard_result_id': 9846172, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22021419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021421, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721523, 'mtr_portfolio_id': 22021881, 'dashboard_result_id': 9846173, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021881_03-04-2025_11_49_01.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22019963 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2720329, 'mtr_portfolio_id': 22019963, 'created_at': datetime.datetime(2025, 4, 3, 11, 19), 'result': '0.052572606903684815', 'result_long': None, 'result_double': None}] Qualite : 0.052572606903684815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22019963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22019963_03-04-2025_11_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22019963 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22019963_03-04-2025_11_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22020013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020024, 'pht': 3726}}" where mtr_portfolio_id = 22019963 and dashboard_run_id = 1721523 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22019963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9846170, 0.052572606903684815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22019963_03-04-2025_11_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22020013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020024, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22020684 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2720375, 'mtr_portfolio_id': 22020684, 'created_at': datetime.datetime(2025, 4, 3, 11, 33, 1), 'result': '0.05617433301188386', 'result_long': None, 'result_double': None}] Qualite : 0.05617433301188386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22020684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22020684_03-04-2025_11_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22020684 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22020684_03-04-2025_11_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22020754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020772, 'pht': 3726}}" where mtr_portfolio_id = 22020684 and dashboard_run_id = 1721523 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22020684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9846171, 0.05617433301188386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22020684_03-04-2025_11_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22020754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22021391 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2720434, 'mtr_portfolio_id': 22021391, 'created_at': datetime.datetime(2025, 4, 3, 11, 49, 2), 'result': '0.05990675342103159', 'result_long': None, 'result_double': None}] Qualite : 0.05990675342103159 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22021391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22021391 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22021419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021421, 'pht': 3726}}" where mtr_portfolio_id = 22021391 and dashboard_run_id = 1721523 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22021391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9846172, 0.05990675342103159, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22021419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021421, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22021881 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22021881 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22021881 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22021881 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22021881 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22021881 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021881_03-04-2025_11_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22021881 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021881_03-04-2025_11_49_01.pdf'}" where mtr_portfolio_id = 22021881 and dashboard_run_id = 1721523 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22019963,22020684,22021391,22021881) result : ((1349785051,), (1349785130,), (1349785200,), (1349785894,), (1349785955,), (1349786013,), (1349786075,), (1349786834,), (1349786903,), (1349786982,), (1349787031,), (1349787091,), (1349787814,), (1349787879,), (1349787944,), (1349788030,), (1349788094,), (1349788354,), (1349788402,), (1349788426,), (1349788458,), (1349788494,), (1349788643,), (1349788685,), (1349788701,), (1349788724,), (1349788974,), (1349789066,), (1349789126,), (1349789199,), (1349789237,), (1349789619,), (1349789652,), (1349789667,), (1349789705,), (1349789714,), (1349790044,), (1349790055,), (1349790072,), (1349790090,), (1349790243,), (1349790257,), (1349790282,), (1349790291,), (1349790300,), (1349790317,), (1349790382,), (1349790385,), (1349790386,), (1349790410,), (1349790497,), (1349790505,), (1349790511,), (1349790516,), (1349790522,), (1349790526,), (1349790542,), (1349790549,), (1349790555,), (1349790561,), (1349790594,), (1349790602,), (1349790608,), (1349790613,), (1349790617,), (1349790621,), (1349790655,), (1349790658,), (1349790667,), (1349790749,), (1349790727,), (1349790734,), (1349790737,), (1349790742,), (1349790744,), (1349790812,), (1349790822,), (1349790825,), (1349790867,), (1349790971,), (1349791003,), (1349791022,), (1349791027,), (1349791048,), (1349791076,), (1349791140,), (1349791145,), (1349791153,), (1349791171,), (1349791182,), (1349791293,), (1349791299,), (1349791309,), (1349791323,), (1349791640,), (1349791671,), (1349791700,), (1349791731,), (1349791756,), (1349791803,), (1349791807,), (1349791818,), (1349791831,), (1349791837,), (1349791840,), (1349791883,), (1349791901,), (1349791907,), (1349791913,), (1349791922,), (1349791997,), (1349792005,), (1349792019,), (1349792022,), (1349792025,), (1349792028,), (1349792054,), (1349792063,), (1349792079,), (1349792083,), (1349792086,), (1349792127,), (1349792225,), (1349792301,), (1349792369,), (1349792423,), (1349792508,), (1349792511,), (1349792515,), (1349792518,), (1349792525,), (1349792602,), (1349792608,), (1349792612,), (1349792622,), (1349792634,), (1349792676,), (1349792682,), (1349792688,), (1349792695,), (1349792699,), (1349792734,), (1349792738,), (1349792746,), (1349792851,), (1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,), (1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22021391]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349794164] map_info['map_portfolio_photo'] : {22021391: [1349794164, 1349794088, 1349794084, 1349794081, 1349794078, 1349794047, 1349794042, 1349794034, 1349794019, 1349794014, 1349794009, 1349793985, 1349793976, 1349793971, 1349793969, 1349793966, 1349793964, 1349793926, 1349793915, 1349793889, 1349793807, 1349793798, 1349793787, 1349793784, 1349793781, 1349793779, 1349793689, 1349793675, 1349793670, 1349793666, 1349793661, 1349793656, 1349793604, 1349793599, 1349793570, 1349793568, 1349793564, 1349793559, 1349793553, 1349793540, 1349793455, 1349793449, 1349793440, 1349793437, 1349793410, 1349793408, 1349793406, 1349793402, 1349793399, 1349793394, 1349793318, 1349793313, 1349793309, 1349793232, 1349793218, 1349793191, 1349793153, 1349793150, 1349793139, 1349793057, 1349793051, 1349793045, 1349793039, 1349792923, 1349792917, 1349792907, 1349792901, 1349792895, 1349792847, 1349792841, 1349792838, 1349792833, 1349792826]} final : True mtd_id 4302 list_pids : [1349794164] Looping around the photos to save general results len do output : 1 /22021391Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2720434') ('4302', '22021391', '1349794164', None, None, None, None, None, '2720434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22021391', 'None', None, None, None, None, '2720434'), ('4302', '22021391', '1349794164', None, None, None, None, None, '2720434')] time used for this insertion : 0.011739730834960938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3170595169067383 time spend to save output : 0.01188802719116211 total time spend for step 5 : 0.3289475440979004 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 (2720434) 2.04user 2.37system 0:14.79elapsed 29%CPU (0avgtext+0avgdata 156164maxresident)k 2032inputs+17768outputs (22major+67248minor)pagefaults 0swaps