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 : 847836 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 (2602750) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2602750) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708027 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2602750'] with mtr_portfolio_ids : ['20708027'] and first list_photo_ids : [] new path : /proc/847836/ Name: python3 Umask: 0002 State: R (running) Tgid: 847836 Ngid: 0 Pid: 847836 PPid: 847835 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 847836 NSpid: 847836 NSpgid: 845020 NSsid: 845020 VmPeak: 1106924 kB VmSize: 1106924 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97604 kB VmRSS: 97604 kB RssAnon: 59748 kB RssFile: 37856 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 69 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '847836', 'Ngid': '0', 'Pid': '847836', 'PPid': '847835', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '847836', 'NSpid': '847836', 'NSpgid': '845020', 'NSsid': '845020', 'VmPeak': '1106924 kB', 'VmSize': '1106924 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97604 kB', 'VmRSS': '97604 kB', 'RssAnon': '59748 kB', 'RssFile': '37856 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '69'} ('datou_batch_current', '847836', '1106924', '0', '1106924', '865676', '97604', b'', 'marlene', '2602750') 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 (20708027) 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 (2602750 ) ) 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 (20708027) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338746315, 'portfolio_id': 20708027}, {'photo_id': 1338743175, 'portfolio_id': 20708027}, {'photo_id': 1338743170, 'portfolio_id': 20708027}, {'photo_id': 1338743168, 'portfolio_id': 20708027}, {'photo_id': 1338743141, 'portfolio_id': 20708027}, {'photo_id': 1338743066, 'portfolio_id': 20708027}, {'photo_id': 1338743063, 'portfolio_id': 20708027}, {'photo_id': 1338742999, 'portfolio_id': 20708027}, {'photo_id': 1338742930, 'portfolio_id': 20708027}, {'photo_id': 1338742810, 'portfolio_id': 20708027}, {'photo_id': 1338742095, 'portfolio_id': 20708027}, {'photo_id': 1338742027, 'portfolio_id': 20708027}, {'photo_id': 1338741975, 'portfolio_id': 20708027}, {'photo_id': 1338741932, 'portfolio_id': 20708027}, {'photo_id': 1338741847, 'portfolio_id': 20708027}, {'photo_id': 1338741842, 'portfolio_id': 20708027}, {'photo_id': 1338741832, 'portfolio_id': 20708027}, {'photo_id': 1338741825, 'portfolio_id': 20708027}, {'photo_id': 1338741824, 'portfolio_id': 20708027}, {'photo_id': 1338741822, 'portfolio_id': 20708027}, {'photo_id': 1338741811, 'portfolio_id': 20708027}, {'photo_id': 1338741809, 'portfolio_id': 20708027}, {'photo_id': 1338741807, 'portfolio_id': 20708027}, {'photo_id': 1338741787, 'portfolio_id': 20708027}, {'photo_id': 1338741782, 'portfolio_id': 20708027}, {'photo_id': 1338741779, 'portfolio_id': 20708027}, {'photo_id': 1338741777, 'portfolio_id': 20708027}, {'photo_id': 1338741775, 'portfolio_id': 20708027}, {'photo_id': 1338741720, 'portfolio_id': 20708027}, {'photo_id': 1338741715, 'portfolio_id': 20708027}, {'photo_id': 1338741677, 'portfolio_id': 20708027}, {'photo_id': 1338741539, 'portfolio_id': 20708027}, {'photo_id': 1338741534, 'portfolio_id': 20708027}, {'photo_id': 1338741530, 'portfolio_id': 20708027}, {'photo_id': 1338741518, 'portfolio_id': 20708027}, {'photo_id': 1338741405, 'portfolio_id': 20708027}, {'photo_id': 1338741287, 'portfolio_id': 20708027}, {'photo_id': 1338741244, 'portfolio_id': 20708027}, {'photo_id': 1338740696, 'portfolio_id': 20708027}, {'photo_id': 1338740694, 'portfolio_id': 20708027}, {'photo_id': 1338740692, 'portfolio_id': 20708027}, {'photo_id': 1338740691, 'portfolio_id': 20708027}, {'photo_id': 1338740689, 'portfolio_id': 20708027}, {'photo_id': 1338740671, 'portfolio_id': 20708027}, {'photo_id': 1338740670, 'portfolio_id': 20708027}, {'photo_id': 1338740669, 'portfolio_id': 20708027}, {'photo_id': 1338740660, 'portfolio_id': 20708027}, {'photo_id': 1338740657, 'portfolio_id': 20708027}, {'photo_id': 1338740654, 'portfolio_id': 20708027}, {'photo_id': 1338740651, 'portfolio_id': 20708027}, {'photo_id': 1338740648, 'portfolio_id': 20708027}, {'photo_id': 1338740634, 'portfolio_id': 20708027}, {'photo_id': 1338740631, 'portfolio_id': 20708027}, {'photo_id': 1338740629, 'portfolio_id': 20708027}, {'photo_id': 1338740628, 'portfolio_id': 20708027}, {'photo_id': 1338740626, 'portfolio_id': 20708027}, {'photo_id': 1338740624, 'portfolio_id': 20708027}, {'photo_id': 1338740585, 'portfolio_id': 20708027}, {'photo_id': 1338740581, 'portfolio_id': 20708027}, {'photo_id': 1338740579, 'portfolio_id': 20708027}, {'photo_id': 1338740578, 'portfolio_id': 20708027}, {'photo_id': 1338740573, 'portfolio_id': 20708027}] map_portfolio_id_photo_id: {20708027: [1338746315, 1338743175, 1338743170, 1338743168, 1338743141, 1338743066, 1338743063, 1338742999, 1338742930, 1338742810, 1338742095, 1338742027, 1338741975, 1338741932, 1338741847, 1338741842, 1338741832, 1338741825, 1338741824, 1338741822, 1338741811, 1338741809, 1338741807, 1338741787, 1338741782, 1338741779, 1338741777, 1338741775, 1338741720, 1338741715, 1338741677, 1338741539, 1338741534, 1338741530, 1338741518, 1338741405, 1338741287, 1338741244, 1338740696, 1338740694, 1338740692, 1338740691, 1338740689, 1338740671, 1338740670, 1338740669, 1338740660, 1338740657, 1338740654, 1338740651, 1338740648, 1338740634, 1338740631, 1338740629, 1338740628, 1338740626, 1338740624, 1338740585, 1338740581, 1338740579, 1338740578, 1338740573]} ##### 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.01806807518005371 #### 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 Fri Feb 21 04:10:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20708027) 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 : 20708027 get user id for portfolio 20708027 get sub ptf for main ptf 20708027, type 3726 and hashtags ['environnement', 'papier', 'Carton_gris', 'plastique', 'autre_refus', 'kraft', 'cartonnette', 'flou', 'Carton_brun', 'Teint_Dans_La_Masse', 'mal_croppe', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20708027 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Carton_gris','plastique','autre_refus','kraft','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','mal_croppe','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20708027 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Carton_gris','plastique','autre_refus','kraft','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20708027, 'sub_port_id': 20708030, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355465, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20708027, 'sub_port_id': 20708031, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355466, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'kraft': {'main_port_id': 20708027, 'sub_port_id': 20708032, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355467, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'environnement': {'main_port_id': 20708027, 'sub_port_id': 20708033, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355468, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'Carton_brun': {'main_port_id': 20708027, 'sub_port_id': 20708034, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355469, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'flou': {'main_port_id': 20708027, 'sub_port_id': 20708035, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355470, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'autre_refus': {'main_port_id': 20708027, 'sub_port_id': 20708036, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355471, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'plastique': {'main_port_id': 20708027, 'sub_port_id': 20708037, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355472, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'cartonnette': {'main_port_id': 20708027, 'sub_port_id': 20708038, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355473, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'metal': {'main_port_id': 20708027, 'sub_port_id': 20708039, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355474, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'mal_croppe': {'main_port_id': 20708027, 'sub_port_id': 20708040, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355475, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}, 'Carton_gris': {'main_port_id': 20708027, 'sub_port_id': 20708041, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355476, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20708030 , 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=20708027 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 (20708030) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708031 , 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=20708027 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 (20708031) result : ((1338741259,), (1338741532,), (1338741533,), (1338741785,), (1338741791,), (1338743067,), (1338743068,), (1338743069,), (1338743181,), (1338743182,), (1338743183,), (1338743184,), (1338743195,), (1338743356,), (1338743357,), (1338743611,), (1338744711,), (1338744826,), (1338744828,), (1338745040,), (1338745042,), (1338745043,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708032 , 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=20708027 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 (20708032) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708033 , 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=20708027 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 (20708033) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708034 , 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=20708027 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 (20708034) result : ((1338743077,), (1338743078,), (1338743194,), (1338743359,), (1338743360,), (1338744850,), (1338744852,), (1338744853,), (1338744891,), (1338744892,), (1338745097,), (1338745099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708035 , 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=20708027 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 (20708035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708036 , 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=20708027 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 (20708036) result : ((1338741535,), (1338741536,), (1338741786,), (1338743185,), (1338743186,), (1338743187,), (1338743197,), (1338743198,), (1338743199,), (1338743200,), (1338744769,), (1338744772,), (1338744774,), (1338744777,), (1338744845,), (1338745062,), (1338745064,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708037 , 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=20708027 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 (20708037) result : ((1338741335,), (1338741337,), (1338741795,), (1338741796,), (1338743223,), (1338743617,), (1338744865,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708038 , 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=20708027 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 (20708038) result : ((1338741285,), (1338741286,), (1338741538,), (1338741792,), (1338741793,), (1338743075,), (1338743191,), (1338743192,), (1338743193,), (1338743203,), (1338743204,), (1338743358,), (1338743616,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708039 , 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=20708027 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 (20708039) result : ((1338741371,), (1338741797,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708040 , 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=20708027 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 (20708040) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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 20708041 , 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=20708027 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 (20708041) result : ((1338741788,), (1338741789,), (1338743072,), (1338743073,), (1338743074,), (1338743189,), (1338743190,), (1338743201,), (1338743612,), (1338743613,), (1338744811,), (1338744812,), (1338744866,), (1338744867,), (1338744869,), (1338744870,), (1338745078,), (1338745080,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20708027) result : ((1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) 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`=20708027 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Carton_gris','plastique','autre_refus','kraft','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','mal_croppe','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20708027 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Carton_gris','plastique','autre_refus','kraft','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20708027, 'sub_port_id': 20708042, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355477, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 20708027, 'sub_port_id': 20708043, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355478, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'kraft': {'main_port_id': 20708027, 'sub_port_id': 20708044, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355479, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'environnement': {'main_port_id': 20708027, 'sub_port_id': 20708045, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355480, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'Carton_brun': {'main_port_id': 20708027, 'sub_port_id': 20708046, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355481, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'flou': {'main_port_id': 20708027, 'sub_port_id': 20708047, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355482, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'autre_refus': {'main_port_id': 20708027, 'sub_port_id': 20708048, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355483, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'plastique': {'main_port_id': 20708027, 'sub_port_id': 20708049, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355484, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'cartonnette': {'main_port_id': 20708027, 'sub_port_id': 20708050, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355485, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'metal': {'main_port_id': 20708027, 'sub_port_id': 20708051, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355486, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'mal_croppe': {'main_port_id': 20708027, 'sub_port_id': 20708052, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355487, 'last_updated_at': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}, 'Carton_gris': {'main_port_id': 20708027, 'sub_port_id': 20708053, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13355488, 'last_updated_at': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 4, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 3, 49, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20708053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20708041 lien utilise dans velours : https://www.fotonower.com/velours/20708042,20708043,20708044,20708045,20708046,20708047,20708048,20708049,20708050,20708051,20708052,20708053?tags=papier,Teint_Dans_La_Masse,kraft,environnement,Carton_brun,flou,autre_refus,plastique,cartonnette,metal,mal_croppe,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20708027]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338746315] map_info['map_portfolio_photo'] : {20708027: [1338746315, 1338743175, 1338743170, 1338743168, 1338743141, 1338743066, 1338743063, 1338742999, 1338742930, 1338742810, 1338742095, 1338742027, 1338741975, 1338741932, 1338741847, 1338741842, 1338741832, 1338741825, 1338741824, 1338741822, 1338741811, 1338741809, 1338741807, 1338741787, 1338741782, 1338741779, 1338741777, 1338741775, 1338741720, 1338741715, 1338741677, 1338741539, 1338741534, 1338741530, 1338741518, 1338741405, 1338741287, 1338741244, 1338740696, 1338740694, 1338740692, 1338740691, 1338740689, 1338740671, 1338740670, 1338740669, 1338740660, 1338740657, 1338740654, 1338740651, 1338740648, 1338740634, 1338740631, 1338740629, 1338740628, 1338740626, 1338740624, 1338740585, 1338740581, 1338740579, 1338740578, 1338740573]} final : False mtd_id 4302 list_pids : [1338746315] Looping around the photos to save general results len do output : 1 /20708027. 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, '2602750') ('4302', '20708027', '1338746315', None, None, None, None, None, '2602750') 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, '20708027', "{'papier': 20708030, 'Teint_Dans_La_Masse': 20708031, 'kraft': 20708032, 'environnement': 20708033, 'Carton_brun': 20708034, 'flou': 20708035, 'autre_refus': 20708036, 'plastique': 20708037, 'cartonnette': 20708038, 'metal': 20708039, 'mal_croppe': 20708040, 'Carton_gris': 20708041}", None, None, None, None, '2602750'), ('4302', '20708027', '1338746315', None, None, None, None, None, '2602750')] time used for this insertion : 0.012151956558227539 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6862576007843018 time spend to save output : 0.012623786926269531 total time spend for step 1 : 1.6988813877105713 step2:final Fri Feb 21 04:11: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 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 (20708027) 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 20708027 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338740585,1338740581,1338740579,1338740578,1338740573,1338740634,1338740631,1338740629,1338740628,1338740626,1338740624,1338740660,1338740657,1338740654,1338740651,1338740648,1338740671,1338740670,1338740669,1338740696,1338740694,1338740692,1338740691,1338740689,1338741518,1338741405,1338741287,1338741244,1338741720,1338741715,1338741677,1338741539,1338741534,1338741530,1338741787,1338741782,1338741779,1338741777,1338741775,1338741811,1338741809,1338741807,1338741847,1338741842,1338741832,1338741825,1338741824,1338741822,1338742095,1338742027,1338741975,1338741932,1338743066,1338743063,1338742999,1338742930,1338742810,1338743175,1338743170,1338743168,1338743141,1338746315); 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([20708027]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338746315: ('0.03862659756046255',)} new output for save of step final : {1338746315: ('0.03862659756046255',)} [1338746315] map_info['map_portfolio_photo'] : {20708027: [1338746315, 1338743175, 1338743170, 1338743168, 1338743141, 1338743066, 1338743063, 1338742999, 1338742930, 1338742810, 1338742095, 1338742027, 1338741975, 1338741932, 1338741847, 1338741842, 1338741832, 1338741825, 1338741824, 1338741822, 1338741811, 1338741809, 1338741807, 1338741787, 1338741782, 1338741779, 1338741777, 1338741775, 1338741720, 1338741715, 1338741677, 1338741539, 1338741534, 1338741530, 1338741518, 1338741405, 1338741287, 1338741244, 1338740696, 1338740694, 1338740692, 1338740691, 1338740689, 1338740671, 1338740670, 1338740669, 1338740660, 1338740657, 1338740654, 1338740651, 1338740648, 1338740634, 1338740631, 1338740629, 1338740628, 1338740626, 1338740624, 1338740585, 1338740581, 1338740579, 1338740578, 1338740573]} final : False mtd_id 4302 list_pids : [1338746315] Looping around the photos to save general results len do output : 1 /1338746315.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, '2602750') ('4302', '20708027', '1338746315', None, None, None, None, None, '2602750') 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', '20708027', '1338746315', '0.03862659756046255', None, None, None, None, '2602750')] time used for this insertion : 0.015549421310424805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08313488960266113 time spend to save output : 0.0158689022064209 total time spend for step 2 : 0.09900379180908203 step3:velours_tree Fri Feb 21 04:11: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 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 : {20708027: [{'papier': 20708030, 'Teint_Dans_La_Masse': 20708031, 'kraft': 20708032, 'environnement': 20708033, 'Carton_brun': 20708034, 'flou': 20708035, 'autre_refus': 20708036, 'plastique': 20708037, 'cartonnette': 20708038, 'metal': 20708039, 'mal_croppe': 20708040, 'Carton_gris': 20708041}]} input_args_next_step : {20708027: ()} output_args : {20708027: [{'papier': 20708030, 'Teint_Dans_La_Masse': 20708031, 'kraft': 20708032, 'environnement': 20708033, 'Carton_brun': 20708034, 'flou': 20708035, 'autre_refus': 20708036, 'plastique': 20708037, 'cartonnette': 20708038, 'metal': 20708039, 'mal_croppe': 20708040, 'Carton_gris': 20708041}]} args : 20708027 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 : ({'papier': 20708030, 'Teint_Dans_La_Masse': 20708031, 'kraft': 20708032, 'environnement': 20708033, 'Carton_brun': 20708034, 'flou': 20708035, 'autre_refus': 20708036, 'plastique': 20708037, 'cartonnette': 20708038, 'metal': 20708039, 'mal_croppe': 20708040, 'Carton_gris': 20708041},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20708027) 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([20708027]) 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.3673558235168457 time spend to save output : 4.5299530029296875e-05 total time spend for step 3 : 0.367401123046875 step4:send_mail_cod Fri Feb 21 04:11:01 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 : {1338746315: ('0.03862659756046255',)} input_args_next_step : {1338746315: ()} output_args : {1338746315: ('0.03862659756046255',)} args : 1338746315 depend.output_id : 0 complete output_args for input 3 : {20708027: [{'papier': 20708030, 'Teint_Dans_La_Masse': 20708031, 'kraft': 20708032, 'environnement': 20708033, 'Carton_brun': 20708034, 'flou': 20708035, 'autre_refus': 20708036, 'plastique': 20708037, 'cartonnette': 20708038, 'metal': 20708039, 'mal_croppe': 20708040, 'Carton_gris': 20708041}]} input_args_next_step : {1338746315: ('0.03862659756046255',), 20708027: ()} output_args : {20708027: [{'papier': 20708030, 'Teint_Dans_La_Masse': 20708031, 'kraft': 20708032, 'environnement': 20708033, 'Carton_brun': 20708034, 'flou': 20708035, 'autre_refus': 20708036, 'plastique': 20708037, 'cartonnette': 20708038, 'metal': 20708039, 'mal_croppe': 20708040, 'Carton_gris': 20708041}]} args : 20708027 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.03862659756046255',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20708027) 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 (1338746315) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338746315 download finish for photo 1338746315 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette207080321740107461/ imagette207080351740107461/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P20708027_21-02-2025_04_11_01.pdf 20708032 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=20708032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207080321740107461 20708035 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=20708035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207080351740107461 20708036 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=20708036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338743199: '1740106614_3515692_1338740691_ef13682f31acac686d4b74b8f9eaf221_rle_crop_3681525185_0.png', 1338745064: '1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536038_0.png', 1338745062: '1740107032_3578849_1338741809_477427cee9bd3efcab1208f4d5ee0382_rle_crop_3681536000_0.png', 1338744845: '1740107013_3578321_1338743168_0f59022da457e113b6c96117a801dcdc_rle_crop_3681535257_0.png', 1338744777: '1740106993_3577964_1338741824_515e90748a180b3099c653e5df0b6552_rle_crop_3681536428_0.png', 1338744774: '1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536208_0.png', 1338744772: '1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536206_0.png', 1338744769: '1740106993_3577964_1338741832_332a66487733d088902edd96a58bc17b_rle_crop_3681536190_0.png', 1338743200: '1740106614_3515692_1338740689_6e8e58e6fbbb01c022c371db1a652ed4_rle_crop_3681525303_0.png', 1338741535: '1740106273_3501732_1338740670_515feb63ce354003329466714afe48bc_rle_crop_3681516231_0.png', 1338743198: '1740106614_3515692_1338740692_931c8e81031172b4231b2753792b7938_rle_crop_3681524703_0.png', 1338743197: '1740106614_3515692_1338740694_b96a712cdca3d2a629754370b559ea13_rle_crop_3681524442_0.png', 1338743187: '1740106634_3516414_1338741720_96d6732c8b227c21990b4843b00cf065_rle_crop_3681524425_0.png', 1338743186: '1740106594_3515491_1338741539_42ba404683d394374be3b672e0041808_rle_crop_3681524463_0.png', 1338743185: '1740106594_3515491_1338741715_c2b376d8efd56daa48e5d2aaa5e82ddf_rle_crop_3681524157_0.png', 1338741786: '1740106314_3502127_1338740671_b353bebbf22a37d6f8af60a748f4a0e9_rle_crop_3681516651_0.png', 1338741536: '1740106273_3501732_1338740670_515feb63ce354003329466714afe48bc_rle_crop_3681516232_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bca47c11c26350cc6b5a9964cfbe5cc6_28670608.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/903b54ae75e3741ef399dc9d4fa529f0_95663551.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fa5413c423850f762e4a9ef201448d5b_10813636.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6fa9f1d128083622ff52d6e42ff02533_89681106.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d258e3e7b55894f8d94724e1e34a5805_68447461.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7fd7efaf8639ec16612ecfeed1713750_93515417.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/aefa37c0c90419409e6d6d6c6080a030_52317452.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/59658064cfa2c9b650b93c1c04ab1ab7_4304497.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ee4cb964793fdcc89f8d64a4be8047de_13222097.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b44889e0ad994a055e7cce47479f62eb_94346820.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bd4b23ac41130c94df71ca339cd0c969_90618181.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2744e05b03a9ee6209941f19b5a25c65_41483154.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/39283ea12fe984e49df9229513ab0158_5105447.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/207f49412353ebf21019e67b3bfc0c0d_76617283.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8e870d49749b9acffed16ccc43a39e88_18212216.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/20b8ccc804b177fd69fc872ee749841f_18033406.png change filename to text .imagette207080361740107461/ imagette207080361740107461/1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536208_0.png.png imagette207080361740107461/1740107032_3578849_1338741809_477427cee9bd3efcab1208f4d5ee0382_rle_crop_3681536000_0.png.png imagette207080361740107461/1740106314_3502127_1338740671_b353bebbf22a37d6f8af60a748f4a0e9_rle_crop_3681516651_0.png.png imagette207080361740107461/1740106634_3516414_1338741720_96d6732c8b227c21990b4843b00cf065_rle_crop_3681524425_0.png.png imagette207080361740107461/1740106273_3501732_1338740670_515feb63ce354003329466714afe48bc_rle_crop_3681516231_0.png.png imagette207080361740107461/1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536038_0.png.png imagette207080361740107461/1740106614_3515692_1338740691_ef13682f31acac686d4b74b8f9eaf221_rle_crop_3681525185_0.png.png imagette207080361740107461/1740106594_3515491_1338741539_42ba404683d394374be3b672e0041808_rle_crop_3681524463_0.png.png imagette207080361740107461/1740106993_3577964_1338741824_515e90748a180b3099c653e5df0b6552_rle_crop_3681536428_0.png.png imagette207080361740107461/1740106614_3515692_1338740694_b96a712cdca3d2a629754370b559ea13_rle_crop_3681524442_0.png.png imagette207080361740107461/1740106614_3515692_1338740692_931c8e81031172b4231b2753792b7938_rle_crop_3681524703_0.png.png imagette207080361740107461/1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536206_0.png.png imagette207080361740107461/1740106614_3515692_1338740689_6e8e58e6fbbb01c022c371db1a652ed4_rle_crop_3681525303_0.png.png imagette207080361740107461/1740107013_3578321_1338743168_0f59022da457e113b6c96117a801dcdc_rle_crop_3681535257_0.png.png imagette207080361740107461/1740106273_3501732_1338740670_515feb63ce354003329466714afe48bc_rle_crop_3681516232_0.png.png imagette207080361740107461/1740106993_3577964_1338741832_332a66487733d088902edd96a58bc17b_rle_crop_3681536190_0.png.png imagette207080361740107461/1740106594_3515491_1338741715_c2b376d8efd56daa48e5d2aaa5e82ddf_rle_crop_3681524157_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d0ef258c402d19fa83948dfd9c8ed7f2_45354670.png imagette207080361740107461 20708037 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=20708037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338741335: '1740106174_3500705_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513445_0.png', 1338741337: '1740106174_3500705_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513446_0.png', 1338741795: '1740106294_3501909_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513445_0.png', 1338741796: '1740106294_3501909_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513446_0.png', 1338743223: '1740106614_3515692_1338740691_ef13682f31acac686d4b74b8f9eaf221_rle_crop_3681525183_0.png', 1338743617: '1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534620_0.png', 1338744865: '1740106993_3577964_1338741842_c8b15ef5d095af5508a6a8be3b3c3192_rle_crop_3681536068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/631ce0188a166d2b37af0bcb64b75e8b_65719714.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4bf7714a9fea2e48dd39b31e150adc7b_48325285.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/631ce0188a166d2b37af0bcb64b75e8b_53550978.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4bf7714a9fea2e48dd39b31e150adc7b_19263607.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/918fc4c149fac8f65a5960a862881e72_74316483.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/63d014f4bfecadb4439058ed48249118_80276579.png change filename to text .imagette207080371740107462/ imagette207080371740107462/1740106294_3501909_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513446_0.png.png imagette207080371740107462/1740106174_3500705_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513446_0.png.png imagette207080371740107462/1740106993_3577964_1338741842_c8b15ef5d095af5508a6a8be3b3c3192_rle_crop_3681536068_0.png.png imagette207080371740107462/1740106614_3515692_1338740691_ef13682f31acac686d4b74b8f9eaf221_rle_crop_3681525183_0.png.png imagette207080371740107462/1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534620_0.png.png imagette207080371740107462/1740106174_3500705_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513445_0.png.png imagette207080371740107462/1740106294_3501909_1338740585_3a604459b800ade0641874df0c36e43c_rle_crop_3681513445_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3726b46d6069c193f3e77ab0f17d33cf_39423710.png imagette207080371740107462 20708038 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=20708038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338741285: '1740106174_3500705_1338740581_a1bdc60fc2945be5a8c7065c53499e46_rle_crop_3681515092_0.png', 1338741286: '1740106174_3500705_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516084_0.png', 1338741538: '1740106273_3501732_1338740669_67a83aab2ddb95dea03f5af3a5df95f7_rle_crop_3681516240_0.png', 1338741792: '1740106294_3501909_1338740581_a1bdc60fc2945be5a8c7065c53499e46_rle_crop_3681515092_0.png', 1338741793: '1740106294_3501909_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516084_0.png', 1338743075: '1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523818_0.png', 1338743191: '1740106594_3515491_1338741677_b278f9bcbd9797a779acdf2c046d7589_rle_crop_3681524399_0.png', 1338743192: '1740106594_3515491_1338741539_42ba404683d394374be3b672e0041808_rle_crop_3681524449_0.png', 1338743193: '1740106594_3515491_1338741534_ccef129485a012586dad12a423236e35_rle_crop_3681524717_0.png', 1338743203: '1740106614_3515692_1338740692_931c8e81031172b4231b2753792b7938_rle_crop_3681524702_0.png', 1338743204: '1740106614_3515692_1338740691_ef13682f31acac686d4b74b8f9eaf221_rle_crop_3681525188_0.png', 1338743358: '1740106773_3521205_1338741975_210737bc0d5b2771ab0b0fb74cdac1af_rle_crop_3681529554_0.png', 1338743616: '1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534611_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7c314d062fd10e902c0c69fa71d730b4_83565378.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b2353286cf3f64415dca90d18fa50cc5_42321227.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/25d2cc233488159017e87366b1f5744c_10877306.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7c314d062fd10e902c0c69fa71d730b4_25897520.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b2353286cf3f64415dca90d18fa50cc5_59794113.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/aef96584fc69f6f5d1e0e1513d753f2e_94019829.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3982e410b99bb5b1beb10fab7cf75ef3_95296915.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0f03cde1d5750e16a02fb89459c67793_83013346.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d289ec796e5738d3b80860f1bc33c756_82110913.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b7f176a17c8c9c4e1679e8c0a8a5b304_46575015.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c556da3bddd88b943c171cc557e36909_79095861.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f142c4f978c99fdcad8fe77b4e27a964_21929279.png change filename to text .imagette207080381740107462/ imagette207080381740107462/1740106614_3515692_1338740692_931c8e81031172b4231b2753792b7938_rle_crop_3681524702_0.png.png imagette207080381740107462/1740106273_3501732_1338740669_67a83aab2ddb95dea03f5af3a5df95f7_rle_crop_3681516240_0.png.png imagette207080381740107462/1740106594_3515491_1338741534_ccef129485a012586dad12a423236e35_rle_crop_3681524717_0.png.png imagette207080381740107462/1740106294_3501909_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516084_0.png.png imagette207080381740107462/1740106174_3500705_1338740581_a1bdc60fc2945be5a8c7065c53499e46_rle_crop_3681515092_0.png.png imagette207080381740107462/1740106174_3500705_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516084_0.png.png imagette207080381740107462/1740106614_3515692_1338740691_ef13682f31acac686d4b74b8f9eaf221_rle_crop_3681525188_0.png.png imagette207080381740107462/1740106773_3521205_1338741975_210737bc0d5b2771ab0b0fb74cdac1af_rle_crop_3681529554_0.png.png imagette207080381740107462/1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523818_0.png.png imagette207080381740107462/1740106594_3515491_1338741539_42ba404683d394374be3b672e0041808_rle_crop_3681524449_0.png.png imagette207080381740107462/1740106294_3501909_1338740581_a1bdc60fc2945be5a8c7065c53499e46_rle_crop_3681515092_0.png.png imagette207080381740107462/1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534611_0.png.png imagette207080381740107462/1740106594_3515491_1338741677_b278f9bcbd9797a779acdf2c046d7589_rle_crop_3681524399_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2f7c591218719028dded39d08c301619_50134072.png imagette207080381740107462 20708039 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=20708039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338741371: '1740106174_3500705_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516087_0.png', 1338741797: '1740106294_3501909_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516087_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cd6769905b6ec7db79b3df8c3c0942b8_89895417.png change filename to text .imagette207080391740107463/ imagette207080391740107463/1740106174_3500705_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516087_0.png.png imagette207080391740107463/1740106294_3501909_1338740573_641aa9c868a17b166aba0014d98f934a_rle_crop_3681516087_0.png.png imagette207080401740107463/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cd6769905b6ec7db79b3df8c3c0942b8_55236056.png imagette207080391740107463 20708040 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=20708040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207080401740107463 20708031 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=20708031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338743184: '1740106634_3516414_1338741244_83df4c33fc745960ae602b64dc94e421_rle_crop_3681525168_0.png', 1338745043: '1740107032_3578849_1338741809_477427cee9bd3efcab1208f4d5ee0382_rle_crop_3681536002_0.png', 1338745042: '1740107032_3578849_1338741809_477427cee9bd3efcab1208f4d5ee0382_rle_crop_3681536003_0.png', 1338745040: '1740107032_3578849_1338741847_db38321ffb2b370e92cdd3adb2f54a1e_rle_crop_3681535752_0.png', 1338744828: '1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681536743_0.png', 1338744826: '1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_bib_crop_3681535508_0.jpg', 1338744711: '1740106993_3577964_1338741842_c8b15ef5d095af5508a6a8be3b3c3192_rle_crop_3681536066_0.png', 1338743611: '1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534616_0.png', 1338743357: '1740106773_3521205_1338741932_4658575919ac70b20151b74430183bfe_rle_crop_3681529574_0.png', 1338743356: '1740106773_3521205_1338741975_210737bc0d5b2771ab0b0fb74cdac1af_rle_crop_3681529553_0.png', 1338743195: '1740106614_3515692_1338740689_6e8e58e6fbbb01c022c371db1a652ed4_rle_crop_3681525309_0.png', 1338741259: '1740106174_3500705_1338740579_90b8d4abe83748b13a42ad1137e4de47_rle_crop_3681515112_0.png', 1338743183: '1740106634_3516414_1338741720_96d6732c8b227c21990b4843b00cf065_rle_crop_3681524420_0.png', 1338743182: '1740106594_3515491_1338741530_95d0b1e9797a125bfc100938253d9daa_rle_crop_3681525162_0.png', 1338743181: '1740106594_3515491_1338741539_42ba404683d394374be3b672e0041808_rle_crop_3681524461_0.png', 1338743069: '1740106573_3515198_1338741775_49291407576214b12892b7e21788eaa5_rle_crop_3681523862_0.png', 1338743068: '1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523821_0.png', 1338743067: '1740106573_3515198_1338741782_8d93659a773e41c3bf55826ab4093b41_rle_crop_3681523787_0.png', 1338741791: '1740106294_3501909_1338740579_90b8d4abe83748b13a42ad1137e4de47_rle_crop_3681515112_0.png', 1338741785: '1740106314_3502127_1338740651_5de047c40962f4cf309ef675d2a1cd48_rle_crop_3681516767_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2623486a1b3a455612d2a2f10ac66565_74364797.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fa6afe134fac0d2a5df62b2ab32abab7_23417921.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ae1a92825cf02273ff084fb39c1483dd_32008811.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fa865418c132817cdfbcddcc7eaa974b_63652023.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0e0c90df386f7d3007b0f39491bcd3fe_90962199.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3d41780f452c22f4e00933db8bf836a7_21399143.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/44e7f22466deba7cd0afcffd8807e3c2_35814327.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cfd759989e606d513d310d65318e6133_35238707.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7cf2275105a5248fee507d8c7461824d_65579509.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/04e9ebc0ea090edccabbfa5e5d2c4c6c_24640621.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fc4917efaf9029a0950972ee64430231_688842.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/677a638bbf6a19495db1a04709608b59_49612875.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8ef6a3041dd399b802c4f7abb019f677_36109924.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/246b760f47ba7cfd049340bdb39ff315_10550265.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4c3223e1945605116809a285504622e4_88497143.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/af9b8c8c318e42e9204b2ce9cb43c368_12067492.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e630ef939c4cc3f02dc1e91a7cf3c61e_14893094.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b6c1fddeb543867b2d43ccb28c7f8d1e_71197809.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/677a638bbf6a19495db1a04709608b59_19688706.png change filename to text .imagette207080311740107463/ imagette207080311740107463/1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523821_0.png.png imagette207080311740107463/1740106773_3521205_1338741932_4658575919ac70b20151b74430183bfe_rle_crop_3681529574_0.png.png imagette207080311740107463/1740107032_3578849_1338741809_477427cee9bd3efcab1208f4d5ee0382_rle_crop_3681536002_0.png.png imagette207080311740107463/1740106993_3577964_1338741842_c8b15ef5d095af5508a6a8be3b3c3192_rle_crop_3681536066_0.png.png imagette207080311740107463/1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534616_0.png.png imagette207080311740107463/1740106634_3516414_1338741720_96d6732c8b227c21990b4843b00cf065_rle_crop_3681524420_0.png.png imagette207080311740107463/1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681536743_0.png.png imagette207080311740107463/1740106773_3521205_1338741975_210737bc0d5b2771ab0b0fb74cdac1af_rle_crop_3681529553_0.png.png imagette207080311740107463/1740106174_3500705_1338740579_90b8d4abe83748b13a42ad1137e4de47_rle_crop_3681515112_0.png.png imagette207080311740107463/1740106594_3515491_1338741530_95d0b1e9797a125bfc100938253d9daa_rle_crop_3681525162_0.png.png imagette207080311740107463/1740106634_3516414_1338741244_83df4c33fc745960ae602b64dc94e421_rle_crop_3681525168_0.png.png imagette207080311740107463/1740106614_3515692_1338740689_6e8e58e6fbbb01c022c371db1a652ed4_rle_crop_3681525309_0.png.png imagette207080311740107463/1740106573_3515198_1338741782_8d93659a773e41c3bf55826ab4093b41_rle_crop_3681523787_0.png.png imagette207080311740107463/1740107032_3578849_1338741809_477427cee9bd3efcab1208f4d5ee0382_rle_crop_3681536003_0.png.png imagette207080311740107463/1740106573_3515198_1338741775_49291407576214b12892b7e21788eaa5_rle_crop_3681523862_0.png.png imagette207080311740107463/1740106294_3501909_1338740579_90b8d4abe83748b13a42ad1137e4de47_rle_crop_3681515112_0.png.png imagette207080311740107463/1740106594_3515491_1338741539_42ba404683d394374be3b672e0041808_rle_crop_3681524461_0.png.png imagette207080311740107463/1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_bib_crop_3681535508_0.jpg.jpg imagette207080311740107463/1740107032_3578849_1338741847_db38321ffb2b370e92cdd3adb2f54a1e_rle_crop_3681535752_0.png.png imagette207080311740107463/1740106314_3502127_1338740651_5de047c40962f4cf309ef675d2a1cd48_rle_crop_3681516767_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bc1b5351eb602649b4b4df0298b9859e_63816699.png imagette207080311740107463 20708034 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=20708034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338743077: '1740106573_3515198_1338741782_8d93659a773e41c3bf55826ab4093b41_rle_crop_3681523790_0.png', 1338743078: '1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523823_0.png', 1338743194: '1740106594_3515491_1338741534_ccef129485a012586dad12a423236e35_rle_crop_3681524721_0.png', 1338743359: '1740106773_3521205_1338742027_c44496526a5977cd4e7f844725fdfb3f_rle_crop_3681529509_0.png', 1338743360: '1740106773_3521205_1338741932_4658575919ac70b20151b74430183bfe_rle_crop_3681529577_0.png', 1338744850: '1740106993_3577964_1338742095_2b9d9f33da6b2bb2c7f7fe1743271cad_rle_crop_3681536022_0.png', 1338744852: '1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536210_0.png', 1338744853: '1740106993_3577964_1338741822_2e654432a01d94630fb095dc9e87ca0f_rle_crop_3681536524_0.png', 1338744891: '1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535514_0.png', 1338744892: '1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535512_0.png', 1338745097: '1740107032_3578849_1338741847_db38321ffb2b370e92cdd3adb2f54a1e_rle_crop_3681535749_0.png', 1338745099: '1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536043_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/10133128661d80f5afefda30404cc48d_87955396.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bd31cb7fe3c28d0b126162d236b65ec4_80526934.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5c547893b52203c43e6ecfc0a1fa5659_61201552.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/992d01c6d1af57476b00a3e479293767_60413524.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/441b1d9a42eb07ba10f9a148d5246cee_53838745.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1a773ec422b9abca226f961ce32cb4c9_55263960.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1e11b184975c25b67bb765733f680b8a_79085040.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fefe264a90d974466b23972dde18afde_48716763.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e53cdbc5b2c8627baffd9e752643bd86_45197863.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3bcaa83a59337f6e55c7f7c42c883dd4_83221380.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f112db2192444cdd37df317ee0232292_99984178.png change filename to text .imagette207080341740107464/ imagette207080341740107464/1740107032_3578849_1338741847_db38321ffb2b370e92cdd3adb2f54a1e_rle_crop_3681535749_0.png.png imagette207080341740107464/1740106993_3577964_1338742095_2b9d9f33da6b2bb2c7f7fe1743271cad_rle_crop_3681536022_0.png.png imagette207080341740107464/1740106594_3515491_1338741534_ccef129485a012586dad12a423236e35_rle_crop_3681524721_0.png.png imagette207080341740107464/1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536043_0.png.png imagette207080341740107464/1740106773_3521205_1338742027_c44496526a5977cd4e7f844725fdfb3f_rle_crop_3681529509_0.png.png imagette207080341740107464/1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535514_0.png.png imagette207080341740107464/1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523823_0.png.png imagette207080341740107464/1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536210_0.png.png imagette207080341740107464/1740106993_3577964_1338741822_2e654432a01d94630fb095dc9e87ca0f_rle_crop_3681536524_0.png.png imagette207080341740107464/1740106573_3515198_1338741782_8d93659a773e41c3bf55826ab4093b41_rle_crop_3681523790_0.png.png imagette207080341740107464/1740106773_3521205_1338741932_4658575919ac70b20151b74430183bfe_rle_crop_3681529577_0.png.png imagette207080341740107464/1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535512_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e4f359af406b1ebd02047da9c0047307_81188268.png imagette207080341740107464 20708041 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=20708041 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338743613: '1740106913_3575084_1338742810_5ecba43f54ba98e236ab8cf453312879_rle_crop_3681534974_0.png', 1338745080: '1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536033_0.png', 1338745078: '1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536039_0.png', 1338744870: '1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535515_0.png', 1338744869: '1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535503_0.png', 1338744867: '1740107013_3578321_1338743168_0f59022da457e113b6c96117a801dcdc_rle_crop_3681535261_0.png', 1338744866: '1740107013_3578321_1338743170_3e87bee140623ab693119cf7c7c3b433_rle_crop_3681534946_0.png', 1338744812: '1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536207_0.png', 1338744811: '1740106993_3577964_1338741832_332a66487733d088902edd96a58bc17b_rle_crop_3681536181_0.png', 1338741788: '1740106314_3502127_1338740657_28de71474ff97707edbb4271a9888166_rle_crop_3681516714_0.png', 1338743612: '1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534612_0.png', 1338743201: '1740106614_3515692_1338740694_b96a712cdca3d2a629754370b559ea13_rle_crop_3681524438_0.png', 1338743190: '1740106594_3515491_1338741530_95d0b1e9797a125bfc100938253d9daa_rle_crop_3681525150_0.png', 1338743189: '1740106594_3515491_1338741534_ccef129485a012586dad12a423236e35_rle_crop_3681524720_0.png', 1338743074: '1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523815_0.png', 1338743073: '1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523819_0.png', 1338743072: '1740106573_3515198_1338741782_8d93659a773e41c3bf55826ab4093b41_rle_crop_3681523783_0.png', 1338741789: '1740106314_3502127_1338740651_5de047c40962f4cf309ef675d2a1cd48_rle_crop_3681516761_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c3dac7026032798f1f8e48784ad26d63_51442662.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/33b8f853e2631cb23107d5f8b25748e2_39044291.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/013ae0edb43c3c2709b85cd7e2343090_73446181.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0ba3637d133cc9ab292dd3a73f10e473_67064572.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/548ac8b79d9c6bd5f9af887e22cd4248_50620324.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/aafe9b63801d3755c567f3fb35bb4767_93977785.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/880e8cd16014da6b17c36e160f3ff1ec_75125132.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5b84b9041aac46f09babf76a44949ee5_63656871.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bdcdbb6bf9b618da2b8578291d0727c0_84894572.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3263c3440a40dbbf5938468efafcf47e_40594281.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c9494ac937178e76ba4d0c96e102f30b_27099386.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/eb9488e6af267315b7e6e28aba15adc5_13896632.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f954cafc21af2bdebaf587450bd9251f_73091291.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e680b70f2a55fd86e6fc9fcbf10dc4e4_85578878.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a11fcefbad0f904f532169b479aae453_15065860.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c13743ed638a3514cca5676f8a357883_34931737.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9c75c94ceb7713272dfc3deba6520b22_78856414.png change filename to text .imagette207080411740107465/ imagette207080411740107465/1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536033_0.png.png imagette207080411740107465/1740106573_3515198_1338741782_8d93659a773e41c3bf55826ab4093b41_rle_crop_3681523783_0.png.png imagette207080411740107465/1740106993_3577964_1338741825_d0f91951a8a3024831ee18f65d0d1ddf_rle_crop_3681536207_0.png.png imagette207080411740107465/1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523815_0.png.png imagette207080411740107465/1740106913_3575084_1338743175_85f7a6b0a3727521dfbb1788d7f5137d_rle_crop_3681534612_0.png.png imagette207080411740107465/1740106573_3515198_1338741779_0fa2db2cf764b53afef4233884da664d_rle_crop_3681523819_0.png.png imagette207080411740107465/1740106314_3502127_1338740657_28de71474ff97707edbb4271a9888166_rle_crop_3681516714_0.png.png imagette207080411740107465/1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535515_0.png.png imagette207080411740107465/1740107013_3578321_1338743170_3e87bee140623ab693119cf7c7c3b433_rle_crop_3681534946_0.png.png imagette207080411740107465/1740107032_3578849_1338741807_93930158a0b3a257aec05532c3fc5135_rle_crop_3681536039_0.png.png imagette207080411740107465/1740107013_3578321_1338743141_f5688b654b7ce541c2d48e20950b36a0_rle_crop_3681535503_0.png.png imagette207080411740107465/1740106993_3577964_1338741832_332a66487733d088902edd96a58bc17b_rle_crop_3681536181_0.png.png imagette207080411740107465/1740106594_3515491_1338741534_ccef129485a012586dad12a423236e35_rle_crop_3681524720_0.png.png imagette207080411740107465/1740107013_3578321_1338743168_0f59022da457e113b6c96117a801dcdc_rle_crop_3681535261_0.png.png imagette207080411740107465/1740106614_3515692_1338740694_b96a712cdca3d2a629754370b559ea13_rle_crop_3681524438_0.png.png imagette207080411740107465/1740106594_3515491_1338741530_95d0b1e9797a125bfc100938253d9daa_rle_crop_3681525150_0.png.png imagette207080411740107465/1740106913_3575084_1338742810_5ecba43f54ba98e236ab8cf453312879_rle_crop_3681534974_0.png.png imagette207080411740107465/1740106314_3502127_1338740651_5de047c40962f4cf309ef675d2a1cd48_rle_crop_3681516761_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e0a55af7bc04049000efcf6c954b9f6f_23163410.png imagette207080411740107465 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20708027 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20708042,20708043,20708044,20708045,20708046,20708047,20708048,20708049,20708050,20708051,20708052,20708053?tags=papier,Teint_Dans_La_Masse,kraft,environnement,Carton_brun,flou,autre_refus,plastique,cartonnette,metal,mal_croppe,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1338746315] : ('0.03862659756046255',) no score found for photo 1338746315 We are sending mail with results at report@fotonower.com refus_total : 0.03862659756046255 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=20708027 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_P20708027_21-02-2025_04_11_01.pdf results_Auto_P20708027_21-02-2025_04_11_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20708027_21-02-2025_04_11_01.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','20708027','results_Auto_P20708027_21-02-2025_04_11_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20708027_21-02-2025_04_11_01.pdf','pdf','','0.25','0.03862659756046255') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20708027]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338746315] map_info['map_portfolio_photo'] : {20708027: [1338746315, 1338743175, 1338743170, 1338743168, 1338743141, 1338743066, 1338743063, 1338742999, 1338742930, 1338742810, 1338742095, 1338742027, 1338741975, 1338741932, 1338741847, 1338741842, 1338741832, 1338741825, 1338741824, 1338741822, 1338741811, 1338741809, 1338741807, 1338741787, 1338741782, 1338741779, 1338741777, 1338741775, 1338741720, 1338741715, 1338741677, 1338741539, 1338741534, 1338741530, 1338741518, 1338741405, 1338741287, 1338741244, 1338740696, 1338740694, 1338740692, 1338740691, 1338740689, 1338740671, 1338740670, 1338740669, 1338740660, 1338740657, 1338740654, 1338740651, 1338740648, 1338740634, 1338740631, 1338740629, 1338740628, 1338740626, 1338740624, 1338740585, 1338740581, 1338740579, 1338740578, 1338740573]} final : False mtd_id 4302 list_pids : [1338746315] 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, '2602750') ('4302', '20708027', '1338746315', None, None, None, None, None, '2602750') 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', '20708027', '1338746315', None, None, None, None, None, '2602750')] time used for this insertion : 0.011486053466796875 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.787239074707031 time spend to save output : 0.01165914535522461 total time spend for step 4 : 6.798898220062256 step5:split_time_score Fri Feb 21 04:11:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20708027'] 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 : [('20708027',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20708027) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338746315: {'path': 'temp/1740107461_847836_1338746315_10953271dea439e72decafd6502b2cc6.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 = 20708027; (('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 = 20708027 group by h (('03', 62),) 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=20708027 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 (20708027) 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 (20708027) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21022025 20708027 Nombre de photos uploadées : 62 / 23040 (0%) 21022025 20708027 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 21022025 20708027 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1338740585, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3a604459b800ade0641874df0c36e43c.jpg', 'username': None, 'uploaded_at': 1740105982, 'text': 'image_21022025_03_45_04_009144m0.jpg 1e-05 for time 1, id_amount 4 this amount prod time diff : 1e-05'}, {'photo_id': 1338740581, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a1bdc60fc2945be5a8c7065c53499e46.jpg', 'username': None, 'uploaded_at': 1740105982, 'text': 'image_21022025_03_45_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338740579, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/90b8d4abe83748b13a42ad1137e4de47.jpg', 'username': None, 'uploaded_at': 1740105982, 'text': 'image_21022025_03_45_24_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338740578, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9fe3561ee4083a789449f4e3ad58f2f8.jpg', 'username': None, 'uploaded_at': 1740105982, 'text': 'image_21022025_03_45_34_010142m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021827220916748047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20708027, '2025-02-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1615145,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022677183151245117 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= 1615145 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623135, 'mtr_portfolio_id': 20706426, 'dashboard_result_id': 8995261, '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_P20706426_21-02-2025_03_33_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20706440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20706441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20706442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20706443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20706444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20706445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20706446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20706447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20706448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20706449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20706450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20706451, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623135, 'mtr_portfolio_id': 20707475, 'dashboard_result_id': 8995262, '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_P20707475_21-02-2025_03_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20707555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20707556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20707557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20707558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20707559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20707561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20707562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20707563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20707564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20707565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20707566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20707567, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623135, 'mtr_portfolio_id': 20708027, 'dashboard_result_id': 8995263, '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_P20708027_21-02-2025_04_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20708030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20708032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20708033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20708034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20708035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20708036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20708037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20708038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20708039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20708040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20708041, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20706426 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': 2602620, 'mtr_portfolio_id': 20706426, 'created_at': datetime.datetime(2025, 2, 21, 3, 33, 1), 'result': '0.03581092702091646', 'result_long': None, 'result_double': None}] Qualite : 0.03581092702091646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20706426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20706426_21-02-2025_03_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20706426 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_P20706426_21-02-2025_03_33_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20706440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20706441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20706442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20706443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20706444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20706445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20706446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20706447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20706448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20706449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20706450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20706451, 'pht': 3726}}" where mtr_portfolio_id = 20706426 and dashboard_run_id = 1623135 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`=20706426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8995261, 0.03581092702091646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20706426_21-02-2025_03_33_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20706440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20706441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20706442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20706443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20706444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20706445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20706446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20706447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20706448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20706449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20706450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20706451, '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 = 20707475 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': 2602721, 'mtr_portfolio_id': 20707475, 'created_at': datetime.datetime(2025, 2, 21, 3, 48, 58), 'result': '0.03612347848992878', 'result_long': None, 'result_double': None}] Qualite : 0.03612347848992878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20707475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20707475_21-02-2025_03_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20707475 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_P20707475_21-02-2025_03_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20707555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20707556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20707557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20707558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20707559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20707561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20707562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20707563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20707564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20707565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20707566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20707567, 'pht': 3726}}" where mtr_portfolio_id = 20707475 and dashboard_run_id = 1623135 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`=20707475 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8995262, 0.03612347848992878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20707475_21-02-2025_03_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20707555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20707556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20707557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20707558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20707559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20707561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20707562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20707563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20707564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20707565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20707566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20707567, '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 = 20708027 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': 2602750, 'mtr_portfolio_id': 20708027, 'created_at': datetime.datetime(2025, 2, 21, 4, 11), 'result': '0.03862659756046255', 'result_long': None, 'result_double': None}] Qualite : 0.03862659756046255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20708027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20708027_21-02-2025_04_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20708027 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_P20708027_21-02-2025_04_11_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20708030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20708032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20708033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20708034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20708035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20708036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20708037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20708038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20708039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20708040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20708041, 'pht': 3726}}" where mtr_portfolio_id = 20708027 and dashboard_run_id = 1623135 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`=20708027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8995263, 0.03862659756046255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20708027_21-02-2025_04_11_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20708030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20708032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20708033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20708034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20708035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20708036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20708037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20708038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20708039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20708040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20708041, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20706426,20707475,20708027) result : ((1338734120,), (1338734123,), (1338734283,), (1338734285,), (1338734287,), (1338734290,), (1338734293,), (1338734295,), (1338734311,), (1338734313,), (1338734316,), (1338734319,), (1338734321,), (1338734343,), (1338734345,), (1338734347,), (1338734349,), (1338735148,), (1338735221,), (1338735265,), (1338735376,), (1338735637,), (1338735639,), (1338735644,), (1338735650,), (1338735893,), (1338735956,), (1338736027,), (1338736119,), (1338736178,), (1338736182,), (1338736605,), (1338736607,), (1338736633,), (1338736661,), (1338736791,), (1338736793,), (1338736795,), (1338736797,), (1338736799,), (1338736810,), (1338736813,), (1338736815,), (1338736855,), (1338736857,), (1338736860,), (1338736885,), (1338736888,), (1338736895,), (1338737096,), (1338737125,), (1338737171,), (1338737229,), (1338737298,), (1338737352,), (1338737491,), (1338737510,), (1338737519,), (1338737524,), (1338737527,), (1338737530,), (1338737681,), (1338737687,), (1338737693,), (1338737695,), (1338737849,), (1338737803,), (1338737805,), (1338737832,), (1338737840,), (1338737845,), (1338737915,), (1338737924,), (1338737927,), (1338737932,), (1338738212,), (1338738213,), (1338738214,), (1338738216,), (1338738217,), (1338738221,), (1338738244,), (1338738247,), (1338738250,), (1338738259,), (1338738262,), (1338738272,), (1338738277,), (1338738285,), (1338738315,), (1338738317,), (1338738319,), (1338738322,), (1338738389,), (1338738391,), (1338738425,), (1338738502,), (1338739238,), (1338739285,), (1338739366,), (1338739437,), (1338739720,), (1338740483,), (1338740541,), (1338740555,), (1338740557,), (1338740558,), (1338740561,), (1338740588,), (1338740573,), (1338740578,), (1338740579,), (1338740581,), (1338740585,), (1338740624,), (1338740626,), (1338740628,), (1338740629,), (1338740631,), (1338740634,), (1338740648,), (1338740651,), (1338740654,), (1338740657,), (1338740660,), (1338740669,), (1338740670,), (1338740671,), (1338740689,), (1338740691,), (1338740692,), (1338740694,), (1338740696,), (1338741244,), (1338741287,), (1338741405,), (1338741518,), (1338741530,), (1338741534,), (1338741539,), (1338741677,), (1338741715,), (1338741720,), (1338741775,), (1338741777,), (1338741779,), (1338741782,), (1338741787,), (1338741807,), (1338741809,), (1338741811,), (1338741822,), (1338741824,), (1338741825,), (1338741832,), (1338741842,), (1338741847,), (1338741932,), (1338741975,), (1338742027,), (1338742095,), (1338742810,), (1338742930,), (1338742999,), (1338743063,), (1338743066,), (1338743141,), (1338743168,), (1338743170,), (1338743175,), (1338746315,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20708027]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338746315] map_info['map_portfolio_photo'] : {20708027: [1338746315, 1338743175, 1338743170, 1338743168, 1338743141, 1338743066, 1338743063, 1338742999, 1338742930, 1338742810, 1338742095, 1338742027, 1338741975, 1338741932, 1338741847, 1338741842, 1338741832, 1338741825, 1338741824, 1338741822, 1338741811, 1338741809, 1338741807, 1338741787, 1338741782, 1338741779, 1338741777, 1338741775, 1338741720, 1338741715, 1338741677, 1338741539, 1338741534, 1338741530, 1338741518, 1338741405, 1338741287, 1338741244, 1338740696, 1338740694, 1338740692, 1338740691, 1338740689, 1338740671, 1338740670, 1338740669, 1338740660, 1338740657, 1338740654, 1338740651, 1338740648, 1338740634, 1338740631, 1338740629, 1338740628, 1338740626, 1338740624, 1338740585, 1338740581, 1338740579, 1338740578, 1338740573]} final : True mtd_id 4302 list_pids : [1338746315] Looping around the photos to save general results len do output : 1 /20708027Didn'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, '2602750') ('4302', '20708027', '1338746315', None, None, None, None, None, '2602750') 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, '20708027', 'None', None, None, None, None, '2602750'), ('4302', '20708027', '1338746315', None, None, None, None, None, '2602750')] time used for this insertion : 0.013532400131225586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.39087510108947754 time spend to save output : 0.013797521591186523 total time spend for step 5 : 0.40467262268066406 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 (2602750) 2.12user 1.96system 0:13.92elapsed 29%CPU (0avgtext+0avgdata 154712maxresident)k 27272inputs+12416outputs (120major+80151minor)pagefaults 0swaps