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 : 1136813 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 (2603028) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2603028) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710337 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2603028'] with mtr_portfolio_ids : ['20710337'] and first list_photo_ids : [] new path : /proc/1136813/ Name: python3 Umask: 0002 State: R (running) Tgid: 1136813 Ngid: 0 Pid: 1136813 PPid: 1136812 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1136813 NSpid: 1136813 NSpgid: 1135562 NSsid: 1135562 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99764 kB VmRSS: 99764 kB RssAnon: 59752 kB RssFile: 40012 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 548 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: 55 nonvoluntary_ctxt_switches: 168 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1136813', 'Ngid': '0', 'Pid': '1136813', 'PPid': '1136812', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1136813', 'NSpid': '1136813', 'NSpgid': '1135562', 'NSsid': '1135562', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99764 kB', 'VmRSS': '99764 kB', 'RssAnon': '59752 kB', 'RssFile': '40012 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '548 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': '55', 'nonvoluntary_ctxt_switches': '168'} ('datou_batch_current', '1136813', '1106928', '0', '1106928', '865680', '99764', b'', 'marlene', '2603028') 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 (20710337) 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 (2603028 ) ) 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 (20710337) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338756409, 'portfolio_id': 20710337}, {'photo_id': 1338756405, 'portfolio_id': 20710337}, {'photo_id': 1338756402, 'portfolio_id': 20710337}, {'photo_id': 1338756396, 'portfolio_id': 20710337}, {'photo_id': 1338756346, 'portfolio_id': 20710337}, {'photo_id': 1338756322, 'portfolio_id': 20710337}, {'photo_id': 1338756320, 'portfolio_id': 20710337}, {'photo_id': 1338756317, 'portfolio_id': 20710337}, {'photo_id': 1338756315, 'portfolio_id': 20710337}, {'photo_id': 1338756312, 'portfolio_id': 20710337}, {'photo_id': 1338756310, 'portfolio_id': 20710337}, {'photo_id': 1338756272, 'portfolio_id': 20710337}, {'photo_id': 1338756269, 'portfolio_id': 20710337}, {'photo_id': 1338756260, 'portfolio_id': 20710337}, {'photo_id': 1338756254, 'portfolio_id': 20710337}, {'photo_id': 1338756208, 'portfolio_id': 20710337}, {'photo_id': 1338756163, 'portfolio_id': 20710337}, {'photo_id': 1338756160, 'portfolio_id': 20710337}, {'photo_id': 1338756159, 'portfolio_id': 20710337}, {'photo_id': 1338756155, 'portfolio_id': 20710337}, {'photo_id': 1338756152, 'portfolio_id': 20710337}, {'photo_id': 1338756121, 'portfolio_id': 20710337}, {'photo_id': 1338756118, 'portfolio_id': 20710337}, {'photo_id': 1338756115, 'portfolio_id': 20710337}, {'photo_id': 1338756112, 'portfolio_id': 20710337}, {'photo_id': 1338756110, 'portfolio_id': 20710337}, {'photo_id': 1338756108, 'portfolio_id': 20710337}, {'photo_id': 1338756097, 'portfolio_id': 20710337}, {'photo_id': 1338756095, 'portfolio_id': 20710337}, {'photo_id': 1338756093, 'portfolio_id': 20710337}, {'photo_id': 1338756091, 'portfolio_id': 20710337}, {'photo_id': 1338756089, 'portfolio_id': 20710337}, {'photo_id': 1338756073, 'portfolio_id': 20710337}, {'photo_id': 1338756071, 'portfolio_id': 20710337}, {'photo_id': 1338756062, 'portfolio_id': 20710337}, {'photo_id': 1338756060, 'portfolio_id': 20710337}, {'photo_id': 1338756053, 'portfolio_id': 20710337}, {'photo_id': 1338756052, 'portfolio_id': 20710337}, {'photo_id': 1338756050, 'portfolio_id': 20710337}, {'photo_id': 1338756041, 'portfolio_id': 20710337}, {'photo_id': 1338755975, 'portfolio_id': 20710337}, {'photo_id': 1338755971, 'portfolio_id': 20710337}, {'photo_id': 1338755942, 'portfolio_id': 20710337}, {'photo_id': 1338755936, 'portfolio_id': 20710337}, {'photo_id': 1338755927, 'portfolio_id': 20710337}, {'photo_id': 1338755916, 'portfolio_id': 20710337}, {'photo_id': 1338755913, 'portfolio_id': 20710337}, {'photo_id': 1338755901, 'portfolio_id': 20710337}, {'photo_id': 1338755898, 'portfolio_id': 20710337}, {'photo_id': 1338755895, 'portfolio_id': 20710337}, {'photo_id': 1338755893, 'portfolio_id': 20710337}, {'photo_id': 1338755806, 'portfolio_id': 20710337}, {'photo_id': 1338755800, 'portfolio_id': 20710337}, {'photo_id': 1338755798, 'portfolio_id': 20710337}, {'photo_id': 1338755796, 'portfolio_id': 20710337}, {'photo_id': 1338755791, 'portfolio_id': 20710337}, {'photo_id': 1338755782, 'portfolio_id': 20710337}, {'photo_id': 1338755686, 'portfolio_id': 20710337}, {'photo_id': 1338755684, 'portfolio_id': 20710337}, {'photo_id': 1338755680, 'portfolio_id': 20710337}, {'photo_id': 1338755678, 'portfolio_id': 20710337}, {'photo_id': 1338755677, 'portfolio_id': 20710337}, {'photo_id': 1338755632, 'portfolio_id': 20710337}, {'photo_id': 1338755629, 'portfolio_id': 20710337}, {'photo_id': 1338755626, 'portfolio_id': 20710337}, {'photo_id': 1338755599, 'portfolio_id': 20710337}, {'photo_id': 1338755592, 'portfolio_id': 20710337}, {'photo_id': 1338755581, 'portfolio_id': 20710337}, {'photo_id': 1338755578, 'portfolio_id': 20710337}, {'photo_id': 1338755576, 'portfolio_id': 20710337}] map_portfolio_id_photo_id: {20710337: [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310, 1338756272, 1338756269, 1338756260, 1338756254, 1338756208, 1338756163, 1338756160, 1338756159, 1338756155, 1338756152, 1338756121, 1338756118, 1338756115, 1338756112, 1338756110, 1338756108, 1338756097, 1338756095, 1338756093, 1338756091, 1338756089, 1338756073, 1338756071, 1338756062, 1338756060, 1338756053, 1338756052, 1338756050, 1338756041, 1338755975, 1338755971, 1338755942, 1338755936, 1338755927, 1338755916, 1338755913, 1338755901, 1338755898, 1338755895, 1338755893, 1338755806, 1338755800, 1338755798, 1338755796, 1338755791, 1338755782, 1338755686, 1338755684, 1338755680, 1338755678, 1338755677, 1338755632, 1338755629, 1338755626, 1338755599, 1338755592, 1338755581, 1338755578, 1338755576]} ##### 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.016353368759155273 #### 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 05:46:29 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 (20710337) 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 : 20710337 get user id for portfolio 20710337 get sub ptf for main ptf 20710337, type 3726 and hashtags ['Carton_brun', 'autre_refus', 'Carton_gris', 'mal_croppe', 'flou', 'kraft', 'metal', 'cartonnette', 'papier', 'Teint_Dans_La_Masse', 'environnement', 'plastique'] 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`=20710337 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','Carton_gris','mal_croppe','flou','kraft','metal','cartonnette','papier','Teint_Dans_La_Masse','environnement','plastique')) 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`=20710337 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','Carton_gris','mal_croppe','flou','kraft','metal','cartonnette','papier','Teint_Dans_La_Masse','environnement','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20710337, 'sub_port_id': 20710339, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357558, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'Carton_gris': {'main_port_id': 20710337, 'sub_port_id': 20710340, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357559, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'kraft': {'main_port_id': 20710337, 'sub_port_id': 20710341, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357560, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'autre_refus': {'main_port_id': 20710337, 'sub_port_id': 20710342, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357561, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'flou': {'main_port_id': 20710337, 'sub_port_id': 20710343, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357562, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'cartonnette': {'main_port_id': 20710337, 'sub_port_id': 20710344, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357563, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'plastique': {'main_port_id': 20710337, 'sub_port_id': 20710345, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357564, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20710337, 'sub_port_id': 20710346, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357565, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'mal_croppe': {'main_port_id': 20710337, 'sub_port_id': 20710347, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357566, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'environnement': {'main_port_id': 20710337, 'sub_port_id': 20710348, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357567, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'metal': {'main_port_id': 20710337, 'sub_port_id': 20710349, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357568, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}, 'Carton_brun': {'main_port_id': 20710337, 'sub_port_id': 20710350, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357569, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710339 , 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=20710337 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 (20710339) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710340 , 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=20710337 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 (20710340) result : ((1338755642,), (1338755643,), (1338755644,), (1338755645,), (1338755802,), (1338755967,), (1338756065,), (1338756066,), (1338756067,), (1338756139,), (1338756140,), (1338756295,), (1338756304,), (1338756305,), (1338756417,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710341 , 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=20710337 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 (20710341) result : ((1338755792,), (1338755793,), (1338755969,), (1338756148,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710342 , 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=20710337 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 (20710342) result : ((1338756064,), (1338756076,), (1338756126,), (1338756137,), (1338756138,), (1338756293,), (1338756294,), (1338756430,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710343 , 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=20710337 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 (20710343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710344 , 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=20710337 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 (20710344) result : ((1338755786,), (1338755787,), (1338755789,), (1338755790,), (1338755943,), (1338755944,), (1338756068,), (1338756077,), (1338756128,), (1338756142,), (1338756296,), (1338756418,), (1338756419,), (1338756420,), (1338756421,), (1338756422,), (1338756423,), (1338756431,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710345 , 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=20710337 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 (20710345) result : ((1338755805,), (1338756302,), (1338756303,), (1338756308,), (1338756426,), (1338756427,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710346 , 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=20710337 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 (20710346) result : ((1338755638,), (1338755639,), (1338755640,), (1338755801,), (1338755938,), (1338755939,), (1338755940,), (1338755941,), (1338756063,), (1338756075,), (1338756125,), (1338756135,), (1338756136,), (1338756290,), (1338756291,), (1338756292,), (1338756300,), (1338756301,), (1338756414,), (1338756415,), (1338756416,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710347 , 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=20710337 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 (20710347) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710348 , 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=20710337 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 (20710348) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710349 , 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=20710337 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 (20710349) result : ((1338756082,), (1338756149,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20710350 , 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=20710337 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 (20710350) result : ((1338755804,), (1338755968,), (1338756078,), (1338756079,), (1338756080,), (1338756129,), (1338756130,), (1338756131,), (1338756132,), (1338756133,), (1338756143,), (1338756144,), (1338756145,), (1338756146,), (1338756147,), (1338756297,), (1338756298,), (1338756299,), (1338756306,), (1338756307,), (1338756424,), (1338756425,), (1338756432,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20710337) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) 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 (1338755800) and cspi.crop_hashtag_id = chi.id; 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`=20710337 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','Carton_gris','mal_croppe','flou','kraft','metal','cartonnette','papier','Teint_Dans_La_Masse','environnement','plastique')) 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`=20710337 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','Carton_gris','mal_croppe','flou','kraft','metal','cartonnette','papier','Teint_Dans_La_Masse','environnement','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20710337, 'sub_port_id': 20710351, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357570, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'Carton_gris': {'main_port_id': 20710337, 'sub_port_id': 20710352, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357571, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'kraft': {'main_port_id': 20710337, 'sub_port_id': 20710353, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357572, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'autre_refus': {'main_port_id': 20710337, 'sub_port_id': 20710354, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357573, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'flou': {'main_port_id': 20710337, 'sub_port_id': 20710355, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357574, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'cartonnette': {'main_port_id': 20710337, 'sub_port_id': 20710356, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357575, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'plastique': {'main_port_id': 20710337, 'sub_port_id': 20710357, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357576, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20710337, 'sub_port_id': 20710358, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357577, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'mal_croppe': {'main_port_id': 20710337, 'sub_port_id': 20710359, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357578, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'environnement': {'main_port_id': 20710337, 'sub_port_id': 20710360, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357579, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'metal': {'main_port_id': 20710337, 'sub_port_id': 20710361, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357580, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}, 'Carton_brun': {'main_port_id': 20710337, 'sub_port_id': 20710362, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13357581, 'last_updated_at': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 5, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 5, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20710362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20710350 lien utilise dans velours : https://www.fotonower.com/velours/20710351,20710352,20710353,20710354,20710355,20710356,20710357,20710358,20710359,20710360,20710361,20710362?tags=papier,Carton_gris,kraft,autre_refus,flou,cartonnette,plastique,Teint_Dans_La_Masse,mal_croppe,environnement,metal,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20710337]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] map_info['map_portfolio_photo'] : {20710337: [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310, 1338756272, 1338756269, 1338756260, 1338756254, 1338756208, 1338756163, 1338756160, 1338756159, 1338756155, 1338756152, 1338756121, 1338756118, 1338756115, 1338756112, 1338756110, 1338756108, 1338756097, 1338756095, 1338756093, 1338756091, 1338756089, 1338756073, 1338756071, 1338756062, 1338756060, 1338756053, 1338756052, 1338756050, 1338756041, 1338755975, 1338755971, 1338755942, 1338755936, 1338755927, 1338755916, 1338755913, 1338755901, 1338755898, 1338755895, 1338755893, 1338755806, 1338755800, 1338755798, 1338755796, 1338755791, 1338755782, 1338755686, 1338755684, 1338755680, 1338755678, 1338755677, 1338755632, 1338755629, 1338755626, 1338755599, 1338755592, 1338755581, 1338755578, 1338755576]} final : False mtd_id 4302 list_pids : [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] Looping around the photos to save general results len do output : 1 /20710337. 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, '2603028') ('4302', '20710337', '1338756409', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756405', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756402', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756396', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756346', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756322', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756320', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756317', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756315', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756312', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756310', None, None, None, None, None, '2603028') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20710337', "{'papier': 20710339, 'Carton_gris': 20710340, 'kraft': 20710341, 'autre_refus': 20710342, 'flou': 20710343, 'cartonnette': 20710344, 'plastique': 20710345, 'Teint_Dans_La_Masse': 20710346, 'mal_croppe': 20710347, 'environnement': 20710348, 'metal': 20710349, 'Carton_brun': 20710350}", None, None, None, None, '2603028'), ('4302', '20710337', '1338756409', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756405', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756402', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756396', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756346', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756322', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756320', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756317', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756315', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756312', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756310', None, None, None, None, None, '2603028')] time used for this insertion : 0.021747827529907227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6469311714172363 time spend to save output : 0.02205204963684082 total time spend for step 1 : 0.6689832210540771 step2:final Fri Feb 21 05:46:30 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 (20710337) 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 20710337 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338755581,1338755578,1338755576,1338755599,1338755592,1338755632,1338755629,1338755626,1338755686,1338755684,1338755680,1338755678,1338755677,1338755806,1338755800,1338755798,1338755796,1338755791,1338755782,1338755901,1338755898,1338755895,1338755893,1338755942,1338755936,1338755927,1338755916,1338755913,1338756053,1338756052,1338755971,1338756050,1338756041,1338755975,1338756073,1338756071,1338756062,1338756060,1338756097,1338756095,1338756093,1338756091,1338756089,1338756121,1338756118,1338756115,1338756112,1338756110,1338756108,1338756163,1338756160,1338756159,1338756155,1338756152,1338756272,1338756269,1338756260,1338756254,1338756208,1338756322,1338756320,1338756317,1338756315,1338756312,1338756310,1338756409,1338756405,1338756402,1338756396,1338756346); 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([20710337]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} new output for save of step final : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] map_info['map_portfolio_photo'] : {20710337: [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310, 1338756272, 1338756269, 1338756260, 1338756254, 1338756208, 1338756163, 1338756160, 1338756159, 1338756155, 1338756152, 1338756121, 1338756118, 1338756115, 1338756112, 1338756110, 1338756108, 1338756097, 1338756095, 1338756093, 1338756091, 1338756089, 1338756073, 1338756071, 1338756062, 1338756060, 1338756053, 1338756052, 1338756050, 1338756041, 1338755975, 1338755971, 1338755942, 1338755936, 1338755927, 1338755916, 1338755913, 1338755901, 1338755898, 1338755895, 1338755893, 1338755806, 1338755800, 1338755798, 1338755796, 1338755791, 1338755782, 1338755686, 1338755684, 1338755680, 1338755678, 1338755677, 1338755632, 1338755629, 1338755626, 1338755599, 1338755592, 1338755581, 1338755578, 1338755576]} final : False mtd_id 4302 list_pids : [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] Looping around the photos to save general results len do output : 11 /1338756409.Didn't retrieve data . /1338756405.Didn't retrieve data . /1338756402.Didn't retrieve data . /1338756396.Didn't retrieve data . /1338756346.Didn't retrieve data . /1338756322.Didn't retrieve data . /1338756320.Didn't retrieve data . /1338756317.Didn't retrieve data . /1338756315.Didn't retrieve data . /1338756312.Didn't retrieve data . /1338756310.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, '2603028') ('4302', '20710337', '1338756409', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756405', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756402', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756396', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756346', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756322', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756320', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756317', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756315', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756312', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756310', None, None, None, None, None, '2603028') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20710337', '1338756409', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756405', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756402', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756396', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756346', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756322', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756320', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756317', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756315', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756312', '0.03797012096581231', None, None, None, None, '2603028'), ('4302', '20710337', '1338756310', '0.03797012096581231', None, None, None, None, '2603028')] time used for this insertion : 0.02065277099609375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08974432945251465 time spend to save output : 0.0211484432220459 total time spend for step 2 : 0.11089277267456055 step3:velours_tree Fri Feb 21 05:46:30 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 : {20710337: [{'papier': 20710339, 'Carton_gris': 20710340, 'kraft': 20710341, 'autre_refus': 20710342, 'flou': 20710343, 'cartonnette': 20710344, 'plastique': 20710345, 'Teint_Dans_La_Masse': 20710346, 'mal_croppe': 20710347, 'environnement': 20710348, 'metal': 20710349, 'Carton_brun': 20710350}]} input_args_next_step : {20710337: ()} output_args : {20710337: [{'papier': 20710339, 'Carton_gris': 20710340, 'kraft': 20710341, 'autre_refus': 20710342, 'flou': 20710343, 'cartonnette': 20710344, 'plastique': 20710345, 'Teint_Dans_La_Masse': 20710346, 'mal_croppe': 20710347, 'environnement': 20710348, 'metal': 20710349, 'Carton_brun': 20710350}]} args : 20710337 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': 20710339, 'Carton_gris': 20710340, 'kraft': 20710341, 'autre_refus': 20710342, 'flou': 20710343, 'cartonnette': 20710344, 'plastique': 20710345, 'Teint_Dans_La_Masse': 20710346, 'mal_croppe': 20710347, 'environnement': 20710348, 'metal': 20710349, 'Carton_brun': 20710350},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20710337) 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([20710337]) 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.3902761936187744 time spend to save output : 0.00011873245239257812 total time spend for step 3 : 0.390394926071167 step4:send_mail_cod Fri Feb 21 05:46:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} input_args_next_step : {1338756409: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756409 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756405 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756402 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756396 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756346 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756322 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756320 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756317 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756315 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756312 depend.output_id : 0 input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ()} output_args : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',)} args : 1338756310 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {20710337: [{'papier': 20710339, 'Carton_gris': 20710340, 'kraft': 20710341, 'autre_refus': 20710342, 'flou': 20710343, 'cartonnette': 20710344, 'plastique': 20710345, 'Teint_Dans_La_Masse': 20710346, 'mal_croppe': 20710347, 'environnement': 20710348, 'metal': 20710349, 'Carton_brun': 20710350}]} input_args_next_step : {1338756409: ('0.03797012096581231',), 1338756405: ('0.03797012096581231',), 1338756402: ('0.03797012096581231',), 1338756396: ('0.03797012096581231',), 1338756346: ('0.03797012096581231',), 1338756322: ('0.03797012096581231',), 1338756320: ('0.03797012096581231',), 1338756317: ('0.03797012096581231',), 1338756315: ('0.03797012096581231',), 1338756312: ('0.03797012096581231',), 1338756310: ('0.03797012096581231',), 20710337: ()} output_args : {20710337: [{'papier': 20710339, 'Carton_gris': 20710340, 'kraft': 20710341, 'autre_refus': 20710342, 'flou': 20710343, 'cartonnette': 20710344, 'plastique': 20710345, 'Teint_Dans_La_Masse': 20710346, 'mal_croppe': 20710347, 'environnement': 20710348, 'metal': 20710349, 'Carton_brun': 20710350}]} args : 20710337 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 :12, first value : ('0.03797012096581231',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20710337) 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 (1338756409,1338756405,1338756402,1338756396,1338756346,1338756322,1338756320,1338756317,1338756315,1338756312,1338756310) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338756310 begin to download photo : 1338756317 begin to download photo : 1338756346 begin to download photo : 1338756405 download finish for photo 1338756317 begin to download photo : 1338756320 download finish for photo 1338756310 begin to download photo : 1338756312 download finish for photo 1338756346 begin to download photo : 1338756396 download finish for photo 1338756405 begin to download photo : 1338756409 download finish for photo 1338756312 begin to download photo : 1338756315 download finish for photo 1338756396 begin to download photo : 1338756402 download finish for photo 1338756320 begin to download photo : 1338756322 download finish for photo 1338756409 download finish for photo 1338756322 download finish for photo 1338756315 download finish for photo 1338756402 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20710337_21-02-2025_05_46_31.pdf 20710341 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=20710341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338755792: '1740112491_3663761_1338755629_116b5f1587f53e4399443d9b85672930_rle_crop_3681595745_0.png', 1338755793: '1740112491_3663761_1338755626_0fe2f25ec4182104421b65614e4664c6_rle_crop_3681595763_0.png', 1338755969: '1740112632_3665471_1338755684_dd07543a3db0b8a2cad25ae5e235eab9_rle_crop_3681598153_0.png', 1338756148: '1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600440_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/09558d9d2a58c046a35fe878feaa89a3_45023473.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/be3aef8376963783d99ec44686c512c7_93371966.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4d69fc4058e9b241bca67a2ded624f68_84813446.png change filename to text .imagette207103411740113191/ imagette207103411740113191/1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600440_0.png.png imagette207103411740113191/1740112491_3663761_1338755629_116b5f1587f53e4399443d9b85672930_rle_crop_3681595745_0.png.png imagette207103411740113191/1740112632_3665471_1338755684_dd07543a3db0b8a2cad25ae5e235eab9_rle_crop_3681598153_0.png.png imagette207103411740113191/1740112491_3663761_1338755626_0fe2f25ec4182104421b65614e4664c6_rle_crop_3681595763_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2ee8866ad723877887ff2bd43dd8e6ad_64723370.png imagette207103411740113191 20710342 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=20710342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338756064: '1740112730_3666584_1338755936_c069c9f8e18249a7c9f49ca0022beaf6_rle_crop_3681599212_0.png', 1338756076: '1740112750_3666803_1338755942_492a75880440a7a03f10ee4159f6feab_rle_crop_3681599365_0.png', 1338756126: '1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600318_0.png', 1338756137: '1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600328_0.png', 1338756138: '1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600327_0.png', 1338756293: '1740112992_3669545_1338756115_bfad5bd4837d4673b48556e122f1656a_rle_crop_3681601939_0.png', 1338756294: '1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602016_0.png', 1338756430: '1740113132_3670960_1338756272_9c6c0829728bccbe92b505a401cd8352_rle_crop_3681602821_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/5b1f73eee0f99744d8a01d98b69030df_52745466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6c80367b7baf48fdb3756b74f5a62b8a_36226744.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6ebb0db2a2f4f4cab030901f76b94cdd_88268095.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0fb9a4a7079fd4e9ea50d10dc6047889_35728905.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6fca422e52495df2d536f7ffb3128935_81432261.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a1d4b5ba83cf538430c12735f668d133_77738881.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a129ca253ccb84bf43849ee47790290f_47946666.png change filename to text .imagette207103421740113191/ imagette207103421740113191/1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600328_0.png.png imagette207103421740113191/1740112730_3666584_1338755936_c069c9f8e18249a7c9f49ca0022beaf6_rle_crop_3681599212_0.png.png imagette207103421740113191/1740112750_3666803_1338755942_492a75880440a7a03f10ee4159f6feab_rle_crop_3681599365_0.png.png imagette207103421740113191/1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602016_0.png.png imagette207103421740113191/1740113132_3670960_1338756272_9c6c0829728bccbe92b505a401cd8352_rle_crop_3681602821_0.png.png imagette207103421740113191/1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600327_0.png.png imagette207103421740113191/1740112992_3669545_1338756115_bfad5bd4837d4673b48556e122f1656a_rle_crop_3681601939_0.png.png imagette207103421740113191/1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600318_0.png.png imagette207103431740113192/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/720d8cebfc1f0e4520aae9d06047672f_1360570.png imagette207103421740113191 20710343 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=20710343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207103431740113192 20710344 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=20710344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338756142: '1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600443_0.png', 1338756431: '1740113132_3670960_1338756160_64ae3b414ab2a9642be50c60f96e227c_rle_crop_3681602916_0.png', 1338756423: '1740113112_3670686_1338756208_c6a1a970acd0c96f8b7f6730e465ce8c_rle_crop_3681602801_0.png', 1338756422: '1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602682_0.png', 1338756421: '1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602666_0.png', 1338756420: '1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602664_0.png', 1338756419: '1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602667_0.png', 1338756418: '1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602659_0.png', 1338756296: '1740112992_3669545_1338756112_b5af50fa22ca98bbd87792703b87b7a2_rle_crop_3681601961_0.png', 1338755786: '1740112491_3663761_1338755629_116b5f1587f53e4399443d9b85672930_rle_crop_3681595737_0.png', 1338756128: '1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600310_0.png', 1338756077: '1740112750_3666803_1338755893_c32da9b9f4c0f46ca02191b5da3cf013_rle_crop_3681599401_0.png', 1338756068: '1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599336_0.png', 1338755944: '1740112612_3665252_1338755782_3dd3efd28cac8940c8f48f481f9cb0d6_rle_crop_3681597976_0.png', 1338755943: '1740112612_3665252_1338755798_fefd678c4af757c32c52560e9b1e9fe6_rle_crop_3681597819_0.png', 1338755790: '1740112491_3663761_1338755626_0fe2f25ec4182104421b65614e4664c6_rle_crop_3681595764_0.png', 1338755789: '1740112491_3663761_1338755626_0fe2f25ec4182104421b65614e4664c6_rle_crop_3681595759_0.png', 1338755787: '1740112491_3663761_1338755629_116b5f1587f53e4399443d9b85672930_rle_crop_3681595742_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/5fd0cea9edc62d0c5d649ea53ba5a3b4_13707511.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/df9280929e225ce0e1053c55dbc1e298_83700511.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8dbee8508687c2c978d6a6dbc2694af6_88130702.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8c7a93b9ed94f98ea486ea98a53c2fee_61597645.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/10346e957e30de73f84251924db9d13c_49164897.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b15d0a6e7363657c1c11a65d0c4d6ca4_51283554.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/35baed559a83445ecc543a6fe5f5d958_76056001.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bf11020d9a7f82302abfadcf306ae152_32681528.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a3a2acae3124ef02df5f73bdd858d13e_1622884.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c33c1b8f3ecf57313eef7cc0eac6c108_99188014.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f23b35ccb765c34810795f142bdecf5d_98565990.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ba82ac01816efe5314c6db6bfda90b4b_92187910.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/08fc8965061d785c7d9bf08c75875dc9_7711714.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/93015c13e1cda3c66884351d5d861c57_28805649.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3abf7aaed1d5be54b98dd950c530cf46_96805142.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8d3d3c5712db5041391a432cbb60cf73_10682317.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/83f86a697fec23bb847ca42da7dbff7b_78310872.png change filename to text .imagette207103441740113192/ imagette207103441740113192/1740113112_3670686_1338756208_c6a1a970acd0c96f8b7f6730e465ce8c_rle_crop_3681602801_0.png.png imagette207103441740113192/1740112491_3663761_1338755629_116b5f1587f53e4399443d9b85672930_rle_crop_3681595737_0.png.png imagette207103441740113192/1740113132_3670960_1338756160_64ae3b414ab2a9642be50c60f96e227c_rle_crop_3681602916_0.png.png imagette207103441740113192/1740112750_3666803_1338755893_c32da9b9f4c0f46ca02191b5da3cf013_rle_crop_3681599401_0.png.png imagette207103441740113192/1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602664_0.png.png imagette207103441740113192/1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602666_0.png.png imagette207103441740113192/1740112612_3665252_1338755798_fefd678c4af757c32c52560e9b1e9fe6_rle_crop_3681597819_0.png.png imagette207103441740113192/1740112491_3663761_1338755629_116b5f1587f53e4399443d9b85672930_rle_crop_3681595742_0.png.png imagette207103441740113192/1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600443_0.png.png imagette207103441740113192/1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602667_0.png.png imagette207103441740113192/1740112992_3669545_1338756112_b5af50fa22ca98bbd87792703b87b7a2_rle_crop_3681601961_0.png.png imagette207103441740113192/1740112612_3665252_1338755782_3dd3efd28cac8940c8f48f481f9cb0d6_rle_crop_3681597976_0.png.png imagette207103441740113192/1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602659_0.png.png imagette207103441740113192/1740112491_3663761_1338755626_0fe2f25ec4182104421b65614e4664c6_rle_crop_3681595759_0.png.png imagette207103441740113192/1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602682_0.png.png imagette207103441740113192/1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599336_0.png.png imagette207103441740113192/1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600310_0.png.png imagette207103441740113192/1740112491_3663761_1338755626_0fe2f25ec4182104421b65614e4664c6_rle_crop_3681595764_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/07e9e18fa94396f29eb34be34960370c_57511158.png imagette207103441740113192 20710345 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=20710345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338755805: '1740112512_3663976_1338755632_a343e5079fb7a7c87e8a3bc1f51becbc_rle_crop_3681595917_0.png', 1338756302: '1740112992_3669545_1338756110_1fcd4f96a50f594d11258707741cf72a_rle_crop_3681601997_0.png', 1338756303: '1740112992_3669545_1338756110_1fcd4f96a50f594d11258707741cf72a_rle_crop_3681601996_0.png', 1338756308: '1740113012_3669747_1338756095_44109db4fdf5595815b70abccc254cbf_rle_crop_3681602042_0.png', 1338756426: '1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602675_0.png', 1338756427: '1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602683_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/537154b2f7ba89df200812bcd2f30757_48831770.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bbd381ea74d1f2d383746b024e7e15eb_30688670.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e3d1aa96a7c7ef66af36dbf3f81eae52_92582047.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/104157a04bf305b6fe5f2508bc6cf824_74919296.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/84b98d02af054110db0674c0030aa770_60730754.png change filename to text .imagette207103451740113193/ imagette207103451740113193/1740112512_3663976_1338755632_a343e5079fb7a7c87e8a3bc1f51becbc_rle_crop_3681595917_0.png.png imagette207103451740113193/1740112992_3669545_1338756110_1fcd4f96a50f594d11258707741cf72a_rle_crop_3681601997_0.png.png imagette207103451740113193/1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602675_0.png.png imagette207103451740113193/1740113012_3669747_1338756095_44109db4fdf5595815b70abccc254cbf_rle_crop_3681602042_0.png.png imagette207103451740113193/1740112992_3669545_1338756110_1fcd4f96a50f594d11258707741cf72a_rle_crop_3681601996_0.png.png imagette207103451740113193/1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602683_0.png.png imagette207103471740113193/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/72f8c6a4e88ce49c9866533a5323b8f4_72701187.png imagette207103451740113193 20710347 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=20710347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207103471740113193 20710349 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=20710349 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338756082: '1740112750_3666803_1338755893_c32da9b9f4c0f46ca02191b5da3cf013_rle_crop_3681599397_0.png', 1338756149: '1740112860_3667981_1338756050_f9f5e66948a0be03e6e67930c89a2083_rle_crop_3681600425_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/d3a1dcece4fe13a931ea2d8e71897dcb_88138332.png change filename to text .imagette207103491740113193/ imagette207103491740113193/1740112750_3666803_1338755893_c32da9b9f4c0f46ca02191b5da3cf013_rle_crop_3681599397_0.png.png imagette207103491740113193/1740112860_3667981_1338756050_f9f5e66948a0be03e6e67930c89a2083_rle_crop_3681600425_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8d78e15fe2e0ab6bbd7af3240390eaa6_87199890.png imagette207103491740113193 20710340 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=20710340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338755642: '1740112383_3662456_1338755581_f48f1caa45c3f06888dfd273a8ceb054_rle_crop_3681595136_0.png', 1338755643: '1740112383_3662456_1338755578_13eb91e45b58ab0d9c3989937546a260_rle_crop_3681595183_0.png', 1338755644: '1740112383_3662456_1338755576_2150a9fd52e8c539606ca41a3fee96df_rle_crop_3681595202_0.png', 1338755645: '1740112383_3662456_1338755576_2150a9fd52e8c539606ca41a3fee96df_rle_crop_3681595199_0.png', 1338755802: '1740112512_3663976_1338755632_a343e5079fb7a7c87e8a3bc1f51becbc_rle_crop_3681595912_0.png', 1338755967: '1740112632_3665471_1338755680_e65b51602371df22e5a1119eb76cc73a_rle_crop_3681598167_0.png', 1338756065: '1740112730_3666584_1338755927_6080cdeac6e6d59074b9a2e8299947cb_rle_crop_3681599226_0.png', 1338756066: '1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599335_0.png', 1338756067: '1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599346_0.png', 1338756139: '1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600338_0.png', 1338756140: '1740112860_3667981_1338755971_bc2eca4e844b4abd6ba39bf7b4a95cb3_rle_crop_3681600486_0.png', 1338756295: '1740112992_3669545_1338756112_b5af50fa22ca98bbd87792703b87b7a2_rle_crop_3681601957_0.png', 1338756304: '1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602070_0.png', 1338756305: '1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602067_0.png', 1338756417: '1740113112_3670686_1338756208_c6a1a970acd0c96f8b7f6730e465ce8c_rle_crop_3681602809_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/5ae16f5298aa1adaaf182f64391cad9f_63810321.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/84d9ee7af52efb6381e39a2b6b4d546c_64450816.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/df210de7a70651da55758bb534fbeaad_33832695.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e5604d83407a34e831f6295d4b23c0de_22612879.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2c0f0a27b44a04ec1d8d0908a7ba3882_19023407.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/42da244b59a428d2e7c010c83023c1a2_49138659.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e10d300baaed0a15841a425cc3772aa5_32793789.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/262a5c19d51cd21f89c3a6aea1a2adca_37211408.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b27e38923ad673ce9d9b5fdfa8c98450_72485321.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c2bd7bdf5a649d20940ce34807edf7a6_21245259.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4d0870514c0b1f689e90837487db112b_76472998.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c47a9c794306fad2c169eb9b3cd3ca8b_52078962.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/727f0d3d6942200ad6e14ccb3e32e04b_70952557.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/60be94401624824926f9bcb1ef01e6df_93344811.png change filename to text .imagette207103401740113193/ imagette207103401740113193/1740112383_3662456_1338755576_2150a9fd52e8c539606ca41a3fee96df_rle_crop_3681595199_0.png.png imagette207103401740113193/1740112992_3669545_1338756112_b5af50fa22ca98bbd87792703b87b7a2_rle_crop_3681601957_0.png.png imagette207103401740113193/1740112632_3665471_1338755680_e65b51602371df22e5a1119eb76cc73a_rle_crop_3681598167_0.png.png imagette207103401740113193/1740112383_3662456_1338755578_13eb91e45b58ab0d9c3989937546a260_rle_crop_3681595183_0.png.png imagette207103401740113193/1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599346_0.png.png imagette207103401740113193/1740112730_3666584_1338755927_6080cdeac6e6d59074b9a2e8299947cb_rle_crop_3681599226_0.png.png imagette207103401740113193/1740113112_3670686_1338756208_c6a1a970acd0c96f8b7f6730e465ce8c_rle_crop_3681602809_0.png.png imagette207103401740113193/1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599335_0.png.png imagette207103401740113193/1740112860_3667981_1338755971_bc2eca4e844b4abd6ba39bf7b4a95cb3_rle_crop_3681600486_0.png.png imagette207103401740113193/1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602070_0.png.png imagette207103401740113193/1740112383_3662456_1338755576_2150a9fd52e8c539606ca41a3fee96df_rle_crop_3681595202_0.png.png imagette207103401740113193/1740112383_3662456_1338755581_f48f1caa45c3f06888dfd273a8ceb054_rle_crop_3681595136_0.png.png imagette207103401740113193/1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600338_0.png.png imagette207103401740113193/1740112512_3663976_1338755632_a343e5079fb7a7c87e8a3bc1f51becbc_rle_crop_3681595912_0.png.png imagette207103401740113193/1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602067_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/37694f987a7642da1681795d0c7cdb5f_70121337.png imagette207103401740113193 20710346 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=20710346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338756125: '1740112853_3667866_1338756062_772340d98413a8d21e4aec8c72196830_rle_crop_3681600259_0.png', 1338756416: '1740113112_3670686_1338756208_c6a1a970acd0c96f8b7f6730e465ce8c_rle_crop_3681602810_0.png', 1338756415: '1740113112_3670686_1338756254_362cdaf9be93fbc2e071125056ecdd23_rle_crop_3681602791_0.png', 1338756414: '1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602686_0.png', 1338756301: '1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602066_0.png', 1338756300: '1740113012_3669747_1338756095_44109db4fdf5595815b70abccc254cbf_rle_crop_3681602043_0.png', 1338756292: '1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602023_0.png', 1338756291: '1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602012_0.png', 1338756290: '1740112992_3669545_1338756118_5acf3b0cb131996b3ba6506223be327e_rle_crop_3681601929_0.png', 1338756136: '1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600445_0.png', 1338756135: '1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600340_0.png', 1338755638: '1740112383_3662456_1338755581_f48f1caa45c3f06888dfd273a8ceb054_rle_crop_3681595137_0.png', 1338756075: '1740112750_3666803_1338755942_492a75880440a7a03f10ee4159f6feab_rle_crop_3681599371_0.png', 1338756063: '1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599348_0.png', 1338755941: '1740112612_3665252_1338755782_3dd3efd28cac8940c8f48f481f9cb0d6_rle_crop_3681597983_0.png', 1338755940: '1740112612_3665252_1338755791_d14efb8bbfeaa629099cb26e8aa7a2f4_rle_crop_3681597969_0.png', 1338755939: '1740112612_3665252_1338755796_b62a6ab4b06232c5d249a90f32f24c52_rle_crop_3681597832_0.png', 1338755938: '1740112612_3665252_1338755798_fefd678c4af757c32c52560e9b1e9fe6_rle_crop_3681597821_0.png', 1338755801: '1740112512_3663976_1338755592_f3cd00b388edb11e369554c34dcc0b74_rle_crop_3681597013_0.png', 1338755640: '1740112383_3662456_1338755576_2150a9fd52e8c539606ca41a3fee96df_rle_crop_3681595205_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/cea185182a041a569d09ee90a2a899c4_79558838.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/622af6e7fd5cdf1f8b1b58231996ab46_97691347.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/dcaa3cec5da21fef0071ca6333fabbba_22863168.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/77d0a43272c03f57eccc8712ef853464_6723607.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/da12e9953b93294696b8fe9cd860a975_58591218.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e8ed15c137891357806fa71cccae363a_39759842.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7812efc9cf928ce245af6fa9c89513a5_99734617.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/caa5d76aabe2d4569b998708c55b8f3c_99086988.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/773368516fd619e2008b53a74c0c29e8_46567220.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a3ebf93b7197e5ad1fcd397c728f65c8_40075799.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/37bc802311d47756329f5c0807b35420_94144433.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/df263b4993fd30f06f80ab47615fc903_62032414.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/82042a208c82c92d7b95d9a48e55b834_39308536.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1867ef1a831f838251ef0a56589913be_40163764.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b96ff31cb9f7440815727428b106e765_86682227.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b0ea13e0d039d6c1ee542557647bac37_86091639.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d792d0988150e338ecf4c70ebbea3b78_36015756.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/135f176ca39b64d0fbad723d0a8cf1f2_54681693.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/90d069311d7f8d2c7ca54fd29cddcbab_44537576.png change filename to text .imagette207103461740113194/ imagette207103461740113194/1740112612_3665252_1338755798_fefd678c4af757c32c52560e9b1e9fe6_rle_crop_3681597821_0.png.png imagette207103461740113194/1740113112_3670686_1338756208_c6a1a970acd0c96f8b7f6730e465ce8c_rle_crop_3681602810_0.png.png imagette207103461740113194/1740112730_3666584_1338755916_b5a444b7aa0a9d02cd9a84af4ef59a88_rle_crop_3681599348_0.png.png imagette207103461740113194/1740112750_3666803_1338755942_492a75880440a7a03f10ee4159f6feab_rle_crop_3681599371_0.png.png imagette207103461740113194/1740112383_3662456_1338755576_2150a9fd52e8c539606ca41a3fee96df_rle_crop_3681595205_0.png.png imagette207103461740113194/1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602012_0.png.png imagette207103461740113194/1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602686_0.png.png imagette207103461740113194/1740113112_3670686_1338756254_362cdaf9be93fbc2e071125056ecdd23_rle_crop_3681602791_0.png.png imagette207103461740113194/1740112612_3665252_1338755791_d14efb8bbfeaa629099cb26e8aa7a2f4_rle_crop_3681597969_0.png.png imagette207103461740113194/1740112853_3667866_1338756062_772340d98413a8d21e4aec8c72196830_rle_crop_3681600259_0.png.png imagette207103461740113194/1740113012_3669747_1338756095_44109db4fdf5595815b70abccc254cbf_rle_crop_3681602043_0.png.png imagette207103461740113194/1740112512_3663976_1338755592_f3cd00b388edb11e369554c34dcc0b74_rle_crop_3681597013_0.png.png imagette207103461740113194/1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600445_0.png.png imagette207103461740113194/1740112992_3669545_1338756118_5acf3b0cb131996b3ba6506223be327e_rle_crop_3681601929_0.png.png imagette207103461740113194/1740112383_3662456_1338755581_f48f1caa45c3f06888dfd273a8ceb054_rle_crop_3681595137_0.png.png imagette207103461740113194/1740112860_3667981_1338756052_46a465c95e7a284b429f8a76f7570252_rle_crop_3681600340_0.png.png imagette207103461740113194/1740112612_3665252_1338755782_3dd3efd28cac8940c8f48f481f9cb0d6_rle_crop_3681597983_0.png.png imagette207103461740113194/1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602023_0.png.png imagette207103461740113194/1740112612_3665252_1338755796_b62a6ab4b06232c5d249a90f32f24c52_rle_crop_3681597832_0.png.png imagette207103461740113194/1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602066_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/134ad3da5f3d8ff4e1efe31501865752_61561609.png imagette207103461740113194 20710350 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=20710350 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338756144: '1740112860_3667981_1338755975_9f8f05ba3dae2937eedb9a52c5d59596_rle_crop_3681600465_0.png', 1338756432: '1740113132_3670960_1338756152_45d74a6fef0b1f875c92448e8acb5686_rle_crop_3681603069_0.png', 1338756425: '1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602687_0.png', 1338756424: '1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602671_0.png', 1338756307: '1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602073_0.png', 1338756306: '1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602075_0.png', 1338756299: '1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602015_0.png', 1338756298: '1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602011_0.png', 1338756297: '1740112992_3669545_1338756118_5acf3b0cb131996b3ba6506223be327e_rle_crop_3681601923_0.png', 1338756147: '1740112860_3667981_1338755971_bc2eca4e844b4abd6ba39bf7b4a95cb3_rle_crop_3681600481_0.png', 1338756146: '1740112860_3667981_1338755971_bc2eca4e844b4abd6ba39bf7b4a95cb3_rle_crop_3681600482_0.png', 1338756145: '1740112860_3667981_1338755975_9f8f05ba3dae2937eedb9a52c5d59596_rle_crop_3681600464_0.png', 1338755804: '1740112512_3663976_1338755592_f3cd00b388edb11e369554c34dcc0b74_rle_crop_3681597009_0.png', 1338756143: '1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600450_0.png', 1338756133: '1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600314_0.png', 1338756132: '1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600317_0.png', 1338756131: '1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600315_0.png', 1338756130: '1740112853_3667866_1338756062_772340d98413a8d21e4aec8c72196830_rle_crop_3681600252_0.png', 1338756129: '1740112853_3667866_1338756062_772340d98413a8d21e4aec8c72196830_rle_crop_3681600254_0.png', 1338756080: '1740112750_3666803_1338755942_492a75880440a7a03f10ee4159f6feab_rle_crop_3681599368_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/5c4153dffc27c4039fdeae6a1f9b2a0c_35379977.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/25df6a0133c26f5c487ed2d08dc1ae11_75594935.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/63ceb8fa191cd1007b64c08aa1d17b24_87852925.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e88ac32a00b9ccfa68374ff29f55e966_66422059.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/46f16838317317810ccbbb0bbf6eb9ec_84136780.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/716fc6e06d2a8d18c73b53885d9ca58d_32835423.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/555f98baefc3b848943cc5e3a300a7fa_15660951.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/11b7728e0458836425ee23b9f76161bf_67115616.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1c0d71b2bb2f0a1f362d8c40e543425b_57784072.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/571377219c924392a3d3413fc5fc446d_7415068.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2e51c5a054c048a128a6089796241285_19245534.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/339661f0399305f9b6ae83c0c5f7448e_95128002.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1cc32d10d901818de2f04ff270906aed_26410739.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9333859bb8f84fa4986ddc1674617c4b_62142314.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0b95ee643f703e85508abb61cefc6917_18414013.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/882b6b008edb99d6dd712f685898e731_90437588.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/94d89a7b4aa6c11a18430a344f946a84_18340805.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a681f5e18cd3f02f939a96161690ff60_8642115.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c979c81d592b5655c7b93145d9318873_83189166.png change filename to text .imagette207103501740113195/ imagette207103501740113195/1740112853_3667866_1338756062_772340d98413a8d21e4aec8c72196830_rle_crop_3681600254_0.png.png imagette207103501740113195/1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602075_0.png.png imagette207103501740113195/1740113012_3669747_1338756093_0248b44b903db5a33011343681f47e77_rle_crop_3681602073_0.png.png imagette207103501740113195/1740112750_3666803_1338755942_492a75880440a7a03f10ee4159f6feab_rle_crop_3681599368_0.png.png imagette207103501740113195/1740113112_3670686_1338756269_b3a497243e7658ac82f7c8a0809af3c8_rle_crop_3681602671_0.png.png imagette207103501740113195/1740112860_3667981_1338756041_d8a2e8c4351971f4ce6435b21f51a43d_rle_crop_3681600450_0.png.png imagette207103501740113195/1740112512_3663976_1338755592_f3cd00b388edb11e369554c34dcc0b74_rle_crop_3681597009_0.png.png imagette207103501740113195/1740112853_3667866_1338756062_772340d98413a8d21e4aec8c72196830_rle_crop_3681600252_0.png.png imagette207103501740113195/1740112860_3667981_1338755975_9f8f05ba3dae2937eedb9a52c5d59596_rle_crop_3681600464_0.png.png imagette207103501740113195/1740112992_3669545_1338756118_5acf3b0cb131996b3ba6506223be327e_rle_crop_3681601923_0.png.png imagette207103501740113195/1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600314_0.png.png imagette207103501740113195/1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600317_0.png.png imagette207103501740113195/1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602015_0.png.png imagette207103501740113195/1740112992_3669545_1338756108_9eab060fcdfd4f544d9d781b6160c2af_rle_crop_3681602011_0.png.png imagette207103501740113195/1740113112_3670686_1338756260_e8124f072f37781f1720c547322219a7_rle_crop_3681602687_0.png.png imagette207103501740113195/1740112860_3667981_1338755971_bc2eca4e844b4abd6ba39bf7b4a95cb3_rle_crop_3681600481_0.png.png imagette207103501740113195/1740112860_3667981_1338755975_9f8f05ba3dae2937eedb9a52c5d59596_rle_crop_3681600465_0.png.png imagette207103501740113195/1740112853_3667866_1338756060_73363e7919e2e60e1d98ced8c78c2b5a_rle_crop_3681600315_0.png.png imagette207103501740113195/1740113132_3670960_1338756152_45d74a6fef0b1f875c92448e8acb5686_rle_crop_3681603069_0.png.png imagette207103501740113195/1740112860_3667981_1338755971_bc2eca4e844b4abd6ba39bf7b4a95cb3_rle_crop_3681600482_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d0c8d32404643dfe38780dd1c6b8146c_42138926.png imagette207103501740113195 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20710337 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20710351,20710352,20710353,20710354,20710355,20710356,20710357,20710358,20710359,20710360,20710361,20710362?tags=papier,Carton_gris,kraft,autre_refus,flou,cartonnette,plastique,Teint_Dans_La_Masse,mal_croppe,environnement,metal,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1338756409] : ('0.03797012096581231',) no score found for photo 1338756409 We are sending mail with results at report@fotonower.com args[1338756405] : ('0.03797012096581231',) no score found for photo 1338756405 We are sending mail with results at report@fotonower.com args[1338756402] : ('0.03797012096581231',) no score found for photo 1338756402 We are sending mail with results at report@fotonower.com args[1338756396] : ('0.03797012096581231',) no score found for photo 1338756396 We are sending mail with results at report@fotonower.com args[1338756346] : ('0.03797012096581231',) no score found for photo 1338756346 We are sending mail with results at report@fotonower.com args[1338756322] : ('0.03797012096581231',) no score found for photo 1338756322 We are sending mail with results at report@fotonower.com args[1338756320] : ('0.03797012096581231',) no score found for photo 1338756320 We are sending mail with results at report@fotonower.com args[1338756317] : ('0.03797012096581231',) no score found for photo 1338756317 We are sending mail with results at report@fotonower.com args[1338756315] : ('0.03797012096581231',) no score found for photo 1338756315 We are sending mail with results at report@fotonower.com args[1338756312] : ('0.03797012096581231',) no score found for photo 1338756312 We are sending mail with results at report@fotonower.com args[1338756310] : ('0.03797012096581231',) no score found for photo 1338756310 We are sending mail with results at report@fotonower.com refus_total : 0.03797012096581231 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=20710337 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_P20710337_21-02-2025_05_46_31.pdf results_Auto_P20710337_21-02-2025_05_46_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_46_31.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','20710337','results_Auto_P20710337_21-02-2025_05_46_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_46_31.pdf','pdf','','0.32','0.03797012096581231') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20710337]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] map_info['map_portfolio_photo'] : {20710337: [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310, 1338756272, 1338756269, 1338756260, 1338756254, 1338756208, 1338756163, 1338756160, 1338756159, 1338756155, 1338756152, 1338756121, 1338756118, 1338756115, 1338756112, 1338756110, 1338756108, 1338756097, 1338756095, 1338756093, 1338756091, 1338756089, 1338756073, 1338756071, 1338756062, 1338756060, 1338756053, 1338756052, 1338756050, 1338756041, 1338755975, 1338755971, 1338755942, 1338755936, 1338755927, 1338755916, 1338755913, 1338755901, 1338755898, 1338755895, 1338755893, 1338755806, 1338755800, 1338755798, 1338755796, 1338755791, 1338755782, 1338755686, 1338755684, 1338755680, 1338755678, 1338755677, 1338755632, 1338755629, 1338755626, 1338755599, 1338755592, 1338755581, 1338755578, 1338755576]} final : False mtd_id 4302 list_pids : [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] 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, '2603028') ('4302', '20710337', '1338756409', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756405', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756402', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756396', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756346', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756322', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756320', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756317', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756315', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756312', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756310', None, None, None, None, None, '2603028') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '20710337', '1338756409', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756405', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756402', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756396', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756346', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756322', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756320', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756317', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756315', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756312', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756310', None, None, None, None, None, '2603028')] time used for this insertion : 0.014427423477172852 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.726863145828247 time spend to save output : 0.014813661575317383 total time spend for step 4 : 6.7416768074035645 step5:split_time_score Fri Feb 21 05:46:37 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20710337'] 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 : [('20710337',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20710337) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338756405: {'path': 'temp/1740113191_1136813_1338756405_d8d112d69d32619aef988ad90b03472e.jpg', 'extension': 'jpg'}, 1338756409: {'path': 'temp/1740113191_1136813_1338756409_36898a0aa0a614bacb42753f9757d040.jpg', 'extension': 'jpg'}, 1338756317: {'path': 'temp/1740113191_1136813_1338756317_8dd47c1e952b8ca2b900f272a150171c.jpg', 'extension': 'jpg'}, 1338756320: {'path': 'temp/1740113191_1136813_1338756320_594607370f41a1b6a8b8b58320d5efbd.jpg', 'extension': 'jpg'}, 1338756322: {'path': 'temp/1740113191_1136813_1338756322_19066e054df21bfe87fa930b89e59a55.jpg', 'extension': 'jpg'}, 1338756310: {'path': 'temp/1740113191_1136813_1338756310_08dd4e981a3fba961420695ccb398812.jpg', 'extension': 'jpg'}, 1338756312: {'path': 'temp/1740113191_1136813_1338756312_1f272549b41f7d507980021e341e620b.jpg', 'extension': 'jpg'}, 1338756315: {'path': 'temp/1740113191_1136813_1338756315_7da02f3e5cca15aea85ba67d8d50325b.jpg', 'extension': 'jpg'}, 1338756346: {'path': 'temp/1740113191_1136813_1338756346_2162181cf82b1492e5513e37e5d5aed0.jpg', 'extension': 'jpg'}, 1338756396: {'path': 'temp/1740113191_1136813_1338756396_f0eefc291f628566c73f00d7a4b33c9c.jpg', 'extension': 'jpg'}, 1338756402: {'path': 'temp/1740113191_1136813_1338756402_809750f07f3ac49dc8fa7e665d99b2aa.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 = 20710337; (('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 = 20710337 group by h (('05', 70),) 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=20710337 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 (20710337) 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 (20710337) 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 20710337 Nombre de photos uploadées : 70 / 23040 (0%) 21022025 20710337 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 21022025 20710337 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1338755581, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f48f1caa45c3f06888dfd273a8ceb054.jpg', 'username': None, 'uploaded_at': 1740112283, 'text': 'image_21022025_05_30_04_10150.jpg'}, {'photo_id': 1338755578, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/13eb91e45b58ab0d9c3989937546a260.jpg', 'username': None, 'uploaded_at': 1740112283, 'text': 'image_21022025_05_30_14_10133.jpg'}, {'photo_id': 1338755576, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2150a9fd52e8c539606ca41a3fee96df.jpg', 'username': None, 'uploaded_at': 1740112283, 'text': 'image_21022025_05_30_34_10140.jpg'}, {'photo_id': 1338755599, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2708e6eb7e3bea8c2c90717210e87ab1.jpg', 'username': None, 'uploaded_at': 1740112343, 'text': 'image_21022025_05_30_54_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003505706787109375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20710337, '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.033231496810913086 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': 1623342, 'mtr_portfolio_id': 20709446, 'dashboard_result_id': 8996438, '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_P20709446_21-02-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709460, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623342, 'mtr_portfolio_id': 20709857, 'dashboard_result_id': 8996439, '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_P20709857_21-02-2025_05_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709871, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623342, 'mtr_portfolio_id': 20710337, 'dashboard_result_id': 8996440, '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_P20710337_21-02-2025_05_44_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, '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 = 20709446 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': 2602905, 'mtr_portfolio_id': 20709446, 'created_at': datetime.datetime(2025, 2, 21, 5, 18, 59), 'result': '0.041341326449750436', 'result_long': None, 'result_double': None}] Qualite : 0.041341326449750436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20709446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20709446_21-02-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20709446 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_P20709446_21-02-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709460, 'pht': 3726}}" where mtr_portfolio_id = 20709446 and dashboard_run_id = 1623342 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`=20709446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8996438, 0.041341326449750436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20709446_21-02-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709460, '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 = 20709857 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': 2602933, 'mtr_portfolio_id': 20709857, 'created_at': datetime.datetime(2025, 2, 21, 5, 33), 'result': '0.048671970975251236', 'result_long': None, 'result_double': None}] Qualite : 0.048671970975251236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20709857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20709857_21-02-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20709857 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_P20709857_21-02-2025_05_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709871, 'pht': 3726}}" where mtr_portfolio_id = 20709857 and dashboard_run_id = 1623342 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`=20709857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8996439, 0.048671970975251236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20709857_21-02-2025_05_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709871, '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 = 20710337 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': 2603028, 'mtr_portfolio_id': 20710337, 'created_at': datetime.datetime(2025, 2, 21, 5, 46, 30), 'result': '0.03797012096581231', 'result_long': None, 'result_double': None}] Qualite : 0.03797012096581231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20710337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20710337 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_P20710337_21-02-2025_05_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, 'pht': 3726}}" where mtr_portfolio_id = 20710337 and dashboard_run_id = 1623342 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`=20710337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8996440, 0.03797012096581231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, '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 (20709446,20709857,20710337) result : ((1338752703,), (1338753217,), (1338753489,), (1338753570,), (1338753627,), (1338753628,), (1338753632,), (1338753634,), (1338753644,), (1338753646,), (1338753647,), (1338753670,), (1338753689,), (1338753691,), (1338753695,), (1338753697,), (1338753700,), (1338753722,), (1338753725,), (1338753728,), (1338753730,), (1338753732,), (1338753833,), (1338753859,), (1338753987,), (1338753991,), (1338754053,), (1338754055,), (1338754058,), (1338754078,), (1338754084,), (1338754098,), (1338754160,), (1338754172,), (1338754179,), (1338754183,), (1338754220,), (1338754271,), (1338754328,), (1338754316,), (1338754322,), (1338754325,), (1338754337,), (1338754339,), (1338754341,), (1338754344,), (1338754364,), (1338754366,), (1338754368,), (1338754374,), (1338754377,), (1338754389,), (1338754390,), (1338754392,), (1338754395,), (1338754398,), (1338754560,), (1338754566,), (1338754570,), (1338754575,), (1338754606,), (1338754630,), (1338754653,), (1338754667,), (1338754674,), (1338754682,), (1338754704,), (1338754710,), (1338754713,), (1338754716,), (1338754724,), (1338754726,), (1338754732,), (1338754739,), (1338754742,), (1338754744,), (1338755025,), (1338755088,), (1338755092,), (1338755096,), (1338755109,), (1338755149,), (1338755150,), (1338755180,), (1338755208,), (1338755221,), (1338755411,), (1338755413,), (1338755417,), (1338755420,), (1338755424,), (1338755427,), (1338755431,), (1338755434,), (1338755439,), (1338755443,), (1338755445,), (1338755454,), (1338755455,), (1338755457,), (1338755460,), (1338755462,), (1338755479,), (1338755488,), (1338755492,), (1338755494,), (1338755496,), (1338755499,), (1338755547,), (1338755551,), (1338755553,), (1338755557,), (1338755584,), (1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20710337]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] map_info['map_portfolio_photo'] : {20710337: [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310, 1338756272, 1338756269, 1338756260, 1338756254, 1338756208, 1338756163, 1338756160, 1338756159, 1338756155, 1338756152, 1338756121, 1338756118, 1338756115, 1338756112, 1338756110, 1338756108, 1338756097, 1338756095, 1338756093, 1338756091, 1338756089, 1338756073, 1338756071, 1338756062, 1338756060, 1338756053, 1338756052, 1338756050, 1338756041, 1338755975, 1338755971, 1338755942, 1338755936, 1338755927, 1338755916, 1338755913, 1338755901, 1338755898, 1338755895, 1338755893, 1338755806, 1338755800, 1338755798, 1338755796, 1338755791, 1338755782, 1338755686, 1338755684, 1338755680, 1338755678, 1338755677, 1338755632, 1338755629, 1338755626, 1338755599, 1338755592, 1338755581, 1338755578, 1338755576]} final : True mtd_id 4302 list_pids : [1338756409, 1338756405, 1338756402, 1338756396, 1338756346, 1338756322, 1338756320, 1338756317, 1338756315, 1338756312, 1338756310] Looping around the photos to save general results len do output : 1 /20710337Didn'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, '2603028') ('4302', '20710337', '1338756409', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756405', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756402', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756396', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756346', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756322', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756320', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756317', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756315', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756312', None, None, None, None, None, '2603028') ('4302', None, None, None, None, None, None, None, '2603028') ('4302', '20710337', '1338756310', None, None, None, None, None, '2603028') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20710337', 'None', None, None, None, None, '2603028'), ('4302', '20710337', '1338756409', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756405', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756402', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756396', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756346', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756322', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756320', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756317', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756315', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756312', None, None, None, None, None, '2603028'), ('4302', '20710337', '1338756310', None, None, None, None, None, '2603028')] time used for this insertion : 0.039444684982299805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34641218185424805 time spend to save output : 0.03969860076904297 total time spend for step 5 : 0.386110782623291 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 (2603028) 2.46user 2.03system 0:12.49elapsed 36%CPU (0avgtext+0avgdata 161308maxresident)k 5096inputs+16664outputs (96major+78646minor)pagefaults 0swaps