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 : 133518 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 (2669610) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2669610) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432602 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2669610'] with mtr_portfolio_ids : ['21432602'] and first list_photo_ids : [] new path : /proc/133518/ Name: python3 Umask: 0002 State: R (running) Tgid: 133518 Ngid: 0 Pid: 133518 PPid: 133517 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 133518 NSpid: 133518 NSpgid: 131198 NSsid: 131198 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100096 kB VmRSS: 100096 kB RssAnon: 59756 kB RssFile: 40340 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 58 nonvoluntary_ctxt_switches: 189 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '133518', 'Ngid': '0', 'Pid': '133518', 'PPid': '133517', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '133518', 'NSpid': '133518', 'NSpgid': '131198', 'NSsid': '131198', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100096 kB', 'VmRSS': '100096 kB', 'RssAnon': '59756 kB', 'RssFile': '40340 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '58', 'nonvoluntary_ctxt_switches': '189'} ('datou_batch_current', '133518', '1106844', '0', '1106844', '865596', '100096', b'', 'marlene', '2669610') 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 (21432602) 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 (2669610 ) ) 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 (21432602) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344174984, 'portfolio_id': 21432602}, {'photo_id': 1344174959, 'portfolio_id': 21432602}, {'photo_id': 1344174945, 'portfolio_id': 21432602}, {'photo_id': 1344174926, 'portfolio_id': 21432602}, {'photo_id': 1344174704, 'portfolio_id': 21432602}, {'photo_id': 1344174685, 'portfolio_id': 21432602}, {'photo_id': 1344174610, 'portfolio_id': 21432602}, {'photo_id': 1344174557, 'portfolio_id': 21432602}, {'photo_id': 1344174508, 'portfolio_id': 21432602}, {'photo_id': 1344174464, 'portfolio_id': 21432602}, {'photo_id': 1344174014, 'portfolio_id': 21432602}, {'photo_id': 1344173851, 'portfolio_id': 21432602}, {'photo_id': 1344173738, 'portfolio_id': 21432602}, {'photo_id': 1344173622, 'portfolio_id': 21432602}, {'photo_id': 1344173577, 'portfolio_id': 21432602}, {'photo_id': 1344173393, 'portfolio_id': 21432602}, {'photo_id': 1344173390, 'portfolio_id': 21432602}, {'photo_id': 1344173388, 'portfolio_id': 21432602}, {'photo_id': 1344173385, 'portfolio_id': 21432602}, {'photo_id': 1344173380, 'portfolio_id': 21432602}, {'photo_id': 1344173370, 'portfolio_id': 21432602}, {'photo_id': 1344173221, 'portfolio_id': 21432602}, {'photo_id': 1344173200, 'portfolio_id': 21432602}, {'photo_id': 1344173196, 'portfolio_id': 21432602}, {'photo_id': 1344173177, 'portfolio_id': 21432602}, {'photo_id': 1344172736, 'portfolio_id': 21432602}, {'photo_id': 1344172685, 'portfolio_id': 21432602}, {'photo_id': 1344172642, 'portfolio_id': 21432602}, {'photo_id': 1344172584, 'portfolio_id': 21432602}, {'photo_id': 1344172517, 'portfolio_id': 21432602}, {'photo_id': 1344172459, 'portfolio_id': 21432602}, {'photo_id': 1344172001, 'portfolio_id': 21432602}, {'photo_id': 1344171988, 'portfolio_id': 21432602}, {'photo_id': 1344171983, 'portfolio_id': 21432602}, {'photo_id': 1344171978, 'portfolio_id': 21432602}, {'photo_id': 1344171880, 'portfolio_id': 21432602}, {'photo_id': 1344171866, 'portfolio_id': 21432602}, {'photo_id': 1344171858, 'portfolio_id': 21432602}, {'photo_id': 1344171856, 'portfolio_id': 21432602}, {'photo_id': 1344171843, 'portfolio_id': 21432602}, {'photo_id': 1344171837, 'portfolio_id': 21432602}, {'photo_id': 1344171584, 'portfolio_id': 21432602}, {'photo_id': 1344171560, 'portfolio_id': 21432602}, {'photo_id': 1344171539, 'portfolio_id': 21432602}, {'photo_id': 1344171498, 'portfolio_id': 21432602}, {'photo_id': 1344171436, 'portfolio_id': 21432602}, {'photo_id': 1344171119, 'portfolio_id': 21432602}, {'photo_id': 1344171097, 'portfolio_id': 21432602}, {'photo_id': 1344171023, 'portfolio_id': 21432602}, {'photo_id': 1344170996, 'portfolio_id': 21432602}, {'photo_id': 1344170970, 'portfolio_id': 21432602}, {'photo_id': 1344170729, 'portfolio_id': 21432602}, {'photo_id': 1344170702, 'portfolio_id': 21432602}, {'photo_id': 1344170673, 'portfolio_id': 21432602}, {'photo_id': 1344170660, 'portfolio_id': 21432602}, {'photo_id': 1344170651, 'portfolio_id': 21432602}, {'photo_id': 1344170647, 'portfolio_id': 21432602}, {'photo_id': 1344170624, 'portfolio_id': 21432602}, {'photo_id': 1344170622, 'portfolio_id': 21432602}, {'photo_id': 1344170620, 'portfolio_id': 21432602}, {'photo_id': 1344170616, 'portfolio_id': 21432602}, {'photo_id': 1344170589, 'portfolio_id': 21432602}, {'photo_id': 1344170344, 'portfolio_id': 21432602}, {'photo_id': 1344170329, 'portfolio_id': 21432602}, {'photo_id': 1344170304, 'portfolio_id': 21432602}, {'photo_id': 1344170292, 'portfolio_id': 21432602}, {'photo_id': 1344170241, 'portfolio_id': 21432602}] map_portfolio_id_photo_id: {21432602: [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464, 1344174014, 1344173851, 1344173738, 1344173622, 1344173577, 1344173393, 1344173390, 1344173388, 1344173385, 1344173380, 1344173370, 1344173221, 1344173200, 1344173196, 1344173177, 1344172736, 1344172685, 1344172642, 1344172584, 1344172517, 1344172459, 1344172001, 1344171988, 1344171983, 1344171978, 1344171880, 1344171866, 1344171858, 1344171856, 1344171843, 1344171837, 1344171584, 1344171560, 1344171539, 1344171498, 1344171436, 1344171119, 1344171097, 1344171023, 1344170996, 1344170970, 1344170729, 1344170702, 1344170673, 1344170660, 1344170651, 1344170647, 1344170624, 1344170622, 1344170620, 1344170616, 1344170589, 1344170344, 1344170329, 1344170304, 1344170292, 1344170241]} ##### 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.016158103942871094 #### 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 Mar 14 15:29:56 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 (21432602) 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 : 21432602 get user id for portfolio 21432602 get sub ptf for main ptf 21432602, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'metal', 'Carton_brun', 'Carton_gris', 'cartonnette', 'papier', 'plastique', 'mal_croppe', 'flou', 'kraft', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21432602 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_brun','Carton_gris','cartonnette','papier','plastique','mal_croppe','flou','kraft','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21432602 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_brun','Carton_gris','cartonnette','papier','plastique','mal_croppe','flou','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21432602, 'sub_port_id': 21432700, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003501, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'environnement': {'main_port_id': 21432602, 'sub_port_id': 21432701, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003502, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'metal': {'main_port_id': 21432602, 'sub_port_id': 21432702, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003503, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'papier': {'main_port_id': 21432602, 'sub_port_id': 21432703, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003504, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 21432602, 'sub_port_id': 21432704, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003505, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'Carton_brun': {'main_port_id': 21432602, 'sub_port_id': 21432705, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003506, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'flou': {'main_port_id': 21432602, 'sub_port_id': 21432706, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003507, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'Carton_gris': {'main_port_id': 21432602, 'sub_port_id': 21432707, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003508, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'mal_croppe': {'main_port_id': 21432602, 'sub_port_id': 21432708, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003509, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'kraft': {'main_port_id': 21432602, 'sub_port_id': 21432709, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003510, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'plastique': {'main_port_id': 21432602, 'sub_port_id': 21432710, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003511, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}, 'cartonnette': {'main_port_id': 21432602, 'sub_port_id': 21432711, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003512, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21432700 , 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=21432602 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 (21432700) result : ((1344170962,), (1344170963,), (1344171867,), (1344171868,), (1344172101,), (1344172102,), (1344172103,), (1344173268,), (1344173372,), (1344173373,), (1344173602,), (1344174070,), (1344174073,), (1344174074,), (1344174078,), (1344174079,), (1344175056,), (1344175141,), (1344175145,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432701 , 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=21432602 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 (21432701) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432702 , 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=21432602 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 (21432702) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432703 , 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=21432602 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 (21432703) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432704 , 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=21432602 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 (21432704) result : ((1344171859,), (1344171860,), (1344171861,), (1344172090,), (1344172091,), (1344174994,), (1344174996,), (1344175015,), (1344175108,), (1344175110,), (1344175112,), (1344175116,), (1344175118,), (1344175120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432705 , 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=21432602 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 (21432705) result : ((1344170977,), (1344173160,), (1344173377,), (1344173378,), (1344173379,), (1344173668,), (1344173672,), (1344174137,), (1344174138,), (1344174139,), (1344175055,), (1344175191,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432706 , 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=21432602 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 (21432706) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432707 , 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=21432602 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 (21432707) result : ((1344171869,), (1344171870,), (1344171871,), (1344171984,), (1344172115,), (1344172116,), (1344172118,), (1344172119,), (1344173283,), (1344173650,), (1344174109,), (1344174110,), (1344175069,), (1344175165,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432708 , 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=21432602 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 (21432708) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432709 , 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=21432602 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 (21432709) result : ((1344170993,), (1344170994,), (1344171896,), (1344173735,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432710 , 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=21432602 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 (21432710) result : ((1344170982,), (1344170983,), (1344171885,), (1344171886,), (1344171888,), (1344171889,), (1344172128,), (1344172129,), (1344173304,), (1344173694,), (1344174157,), (1344174158,), (1344174159,), (1344174161,), (1344175063,), (1344175086,), (1344175224,), (1344175227,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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 21432711 , 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=21432602 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 (21432711) result : ((1344170967,), (1344171874,), (1344173293,), (1344173376,), (1344175175,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21432602) result : ((1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) 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 (1344173200) 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`=21432602 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_brun','Carton_gris','cartonnette','papier','plastique','mal_croppe','flou','kraft','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21432602 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_brun','Carton_gris','cartonnette','papier','plastique','mal_croppe','flou','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21432602, 'sub_port_id': 21432712, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003513, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'environnement': {'main_port_id': 21432602, 'sub_port_id': 21432713, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003514, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'metal': {'main_port_id': 21432602, 'sub_port_id': 21432714, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003515, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'papier': {'main_port_id': 21432602, 'sub_port_id': 21432715, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003516, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 21432602, 'sub_port_id': 21432716, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003517, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'Carton_brun': {'main_port_id': 21432602, 'sub_port_id': 21432717, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003518, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'flou': {'main_port_id': 21432602, 'sub_port_id': 21432718, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003519, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'Carton_gris': {'main_port_id': 21432602, 'sub_port_id': 21432719, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003520, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'mal_croppe': {'main_port_id': 21432602, 'sub_port_id': 21432720, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003521, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'kraft': {'main_port_id': 21432602, 'sub_port_id': 21432721, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003522, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'plastique': {'main_port_id': 21432602, 'sub_port_id': 21432722, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003523, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}, 'cartonnette': {'main_port_id': 21432602, 'sub_port_id': 21432723, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14003524, 'last_updated_at': datetime.datetime(2025, 3, 14, 15, 27, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 15, 27, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 15, 19, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432712,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432700 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432713,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432714,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432703 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432704 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21432723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21432711 lien utilise dans velours : https://www.fotonower.com/velours/21432712,21432713,21432714,21432715,21432716,21432717,21432718,21432719,21432720,21432721,21432722,21432723?tags=autre_refus,environnement,metal,papier,Teint_Dans_La_Masse,Carton_brun,flou,Carton_gris,mal_croppe,kraft,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21432602]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] map_info['map_portfolio_photo'] : {21432602: [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464, 1344174014, 1344173851, 1344173738, 1344173622, 1344173577, 1344173393, 1344173390, 1344173388, 1344173385, 1344173380, 1344173370, 1344173221, 1344173200, 1344173196, 1344173177, 1344172736, 1344172685, 1344172642, 1344172584, 1344172517, 1344172459, 1344172001, 1344171988, 1344171983, 1344171978, 1344171880, 1344171866, 1344171858, 1344171856, 1344171843, 1344171837, 1344171584, 1344171560, 1344171539, 1344171498, 1344171436, 1344171119, 1344171097, 1344171023, 1344170996, 1344170970, 1344170729, 1344170702, 1344170673, 1344170660, 1344170651, 1344170647, 1344170624, 1344170622, 1344170620, 1344170616, 1344170589, 1344170344, 1344170329, 1344170304, 1344170292, 1344170241]} final : False mtd_id 4302 list_pids : [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] Looping around the photos to save general results len do output : 1 /21432602. 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, '2669610') ('4302', '21432602', '1344174984', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174959', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174945', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174926', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174704', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174685', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174610', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174557', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174508', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174464', None, None, None, None, None, '2669610') 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', None, '21432602', "{'autre_refus': 21432700, 'environnement': 21432701, 'metal': 21432702, 'papier': 21432703, 'Teint_Dans_La_Masse': 21432704, 'Carton_brun': 21432705, 'flou': 21432706, 'Carton_gris': 21432707, 'mal_croppe': 21432708, 'kraft': 21432709, 'plastique': 21432710, 'cartonnette': 21432711}", None, None, None, None, '2669610'), ('4302', '21432602', '1344174984', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174959', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174945', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174926', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174704', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174685', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174610', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174557', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174508', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174464', None, None, None, None, None, '2669610')] time used for this insertion : 0.01671123504638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4999430179595947 time spend to save output : 0.01705002784729004 total time spend for step 1 : 0.5169930458068848 step2:final Fri Mar 14 15:29:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21432602) 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 21432602 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344170344,1344170329,1344170304,1344170292,1344170241,1344170624,1344170622,1344170620,1344170616,1344170589,1344170729,1344170702,1344170673,1344170660,1344170651,1344170647,1344171119,1344171097,1344171023,1344170996,1344170970,1344171584,1344171560,1344171539,1344171498,1344171436,1344171880,1344171866,1344171858,1344171856,1344171843,1344171837,1344172001,1344171988,1344171983,1344171978,1344172736,1344172685,1344172642,1344172584,1344172517,1344172459,1344173221,1344173200,1344173196,1344173177,1344173393,1344173390,1344173388,1344173385,1344173380,1344173370,1344174014,1344173851,1344173738,1344173622,1344173577,1344174704,1344174685,1344174610,1344174557,1344174508,1344174464,1344174984,1344174959,1344174945,1344174926); 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([21432602]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} new output for save of step final : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] map_info['map_portfolio_photo'] : {21432602: [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464, 1344174014, 1344173851, 1344173738, 1344173622, 1344173577, 1344173393, 1344173390, 1344173388, 1344173385, 1344173380, 1344173370, 1344173221, 1344173200, 1344173196, 1344173177, 1344172736, 1344172685, 1344172642, 1344172584, 1344172517, 1344172459, 1344172001, 1344171988, 1344171983, 1344171978, 1344171880, 1344171866, 1344171858, 1344171856, 1344171843, 1344171837, 1344171584, 1344171560, 1344171539, 1344171498, 1344171436, 1344171119, 1344171097, 1344171023, 1344170996, 1344170970, 1344170729, 1344170702, 1344170673, 1344170660, 1344170651, 1344170647, 1344170624, 1344170622, 1344170620, 1344170616, 1344170589, 1344170344, 1344170329, 1344170304, 1344170292, 1344170241]} final : False mtd_id 4302 list_pids : [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] Looping around the photos to save general results len do output : 10 /1344174984.Didn't retrieve data . /1344174959.Didn't retrieve data . /1344174945.Didn't retrieve data . /1344174926.Didn't retrieve data . /1344174704.Didn't retrieve data . /1344174685.Didn't retrieve data . /1344174610.Didn't retrieve data . /1344174557.Didn't retrieve data . /1344174508.Didn't retrieve data . /1344174464.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, '2669610') ('4302', '21432602', '1344174984', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174959', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174945', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174926', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174704', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174685', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174610', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174557', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174508', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174464', None, None, None, None, None, '2669610') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21432602', '1344174984', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174959', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174945', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174926', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174704', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174685', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174610', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174557', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174508', '0.06764774953268543', None, None, None, None, '2669610'), ('4302', '21432602', '1344174464', '0.06764774953268543', None, None, None, None, '2669610')] time used for this insertion : 0.01361393928527832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07193636894226074 time spend to save output : 0.014031410217285156 total time spend for step 2 : 0.0859677791595459 step3:velours_tree Fri Mar 14 15:29:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21432602: [{'autre_refus': 21432700, 'environnement': 21432701, 'metal': 21432702, 'papier': 21432703, 'Teint_Dans_La_Masse': 21432704, 'Carton_brun': 21432705, 'flou': 21432706, 'Carton_gris': 21432707, 'mal_croppe': 21432708, 'kraft': 21432709, 'plastique': 21432710, 'cartonnette': 21432711}]} input_args_next_step : {21432602: ()} output_args : {21432602: [{'autre_refus': 21432700, 'environnement': 21432701, 'metal': 21432702, 'papier': 21432703, 'Teint_Dans_La_Masse': 21432704, 'Carton_brun': 21432705, 'flou': 21432706, 'Carton_gris': 21432707, 'mal_croppe': 21432708, 'kraft': 21432709, 'plastique': 21432710, 'cartonnette': 21432711}]} args : 21432602 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 : ({'autre_refus': 21432700, 'environnement': 21432701, 'metal': 21432702, 'papier': 21432703, 'Teint_Dans_La_Masse': 21432704, 'Carton_brun': 21432705, 'flou': 21432706, 'Carton_gris': 21432707, 'mal_croppe': 21432708, 'kraft': 21432709, 'plastique': 21432710, 'cartonnette': 21432711},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21432602) 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([21432602]) 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.32546186447143555 time spend to save output : 6.318092346191406e-05 total time spend for step 3 : 0.32552504539489746 step4:send_mail_cod Fri Mar 14 15:29:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} input_args_next_step : {1344174984: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174984 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174959 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174945 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174926 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174704 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174685 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174610 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174557 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174508 depend.output_id : 0 input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ()} output_args : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',)} args : 1344174464 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 : {21432602: [{'autre_refus': 21432700, 'environnement': 21432701, 'metal': 21432702, 'papier': 21432703, 'Teint_Dans_La_Masse': 21432704, 'Carton_brun': 21432705, 'flou': 21432706, 'Carton_gris': 21432707, 'mal_croppe': 21432708, 'kraft': 21432709, 'plastique': 21432710, 'cartonnette': 21432711}]} input_args_next_step : {1344174984: ('0.06764774953268543',), 1344174959: ('0.06764774953268543',), 1344174945: ('0.06764774953268543',), 1344174926: ('0.06764774953268543',), 1344174704: ('0.06764774953268543',), 1344174685: ('0.06764774953268543',), 1344174610: ('0.06764774953268543',), 1344174557: ('0.06764774953268543',), 1344174508: ('0.06764774953268543',), 1344174464: ('0.06764774953268543',), 21432602: ()} output_args : {21432602: [{'autre_refus': 21432700, 'environnement': 21432701, 'metal': 21432702, 'papier': 21432703, 'Teint_Dans_La_Masse': 21432704, 'Carton_brun': 21432705, 'flou': 21432706, 'Carton_gris': 21432707, 'mal_croppe': 21432708, 'kraft': 21432709, 'plastique': 21432710, 'cartonnette': 21432711}]} args : 21432602 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 :11, first value : ('0.06764774953268543',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21432602) 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 (1344174984,1344174959,1344174945,1344174926,1344174704,1344174685,1344174610,1344174557,1344174508,1344174464) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344174464 begin to download photo : 1344174610 begin to download photo : 1344174926 begin to download photo : 1344174984 download finish for photo 1344174610 begin to download photo : 1344174685 download finish for photo 1344174984 download finish for photo 1344174926 begin to download photo : 1344174945 download finish for photo 1344174464 begin to download photo : 1344174508 download finish for photo 1344174685 begin to download photo : 1344174704 download finish for photo 1344174945 begin to download photo : 1344174959 download finish for photo 1344174508 begin to download photo : 1344174557 download finish for photo 1344174959 download finish for photo 1344174704 download finish for photo 1344174557 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21432602_14-03-2025_15_29_58.pdf 21432700 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=21432700 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344173373: '1741962272_672806_1344171837_363963f957459e63385e6b7ddf653c9a_rle_crop_3712136721_0.png', 1344175145: '1741962507_677927_1344173385_7792c610b67e182d750d4b5059762871_rle_crop_3712143800_0.png', 1344175141: '1741962507_677927_1344173388_9a17fb2831d8c32b5d12b3664bb0f126_rle_crop_3712143790_0.png', 1344175056: '1741962507_1613742_1344173577_056a17bd02e165de9f31cfade0566d38_rle_crop_3712143747_0.png', 1344174079: '1741962373_673997_1344172517_3972dd28e45270ab8f123822c0285d67_rle_crop_3712141039_0.png', 1344174078: '1741962373_673997_1344172584_58269a20775e07f2e054d649b84d2017_rle_crop_3712141015_0.png', 1344174074: '1741962373_673997_1344172642_205c5c089a9dc6dcd08a54ea7284f2bc_rle_crop_3712140988_0.png', 1344174073: '1741962373_673997_1344172685_9304217a9d5949c07abc437ce0d25555_rle_crop_3712140974_0.png', 1344174070: '1741962373_673997_1344173221_bc9ae718a5f71640f24d35b3cf72797a_rle_crop_3712140937_0.png', 1344173602: '1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140686_0.png', 1344170962: '1741961912_668825_1344170329_e2cec043a4c8452304dd5ff98f241015_rle_crop_3712124247_0.png', 1344173372: '1741962272_672806_1344171866_f9bbf8efb9ed0d71088dda71e5f0ed7c_rle_crop_3712134916_0.png', 1344173268: '1741962253_672396_1344171983_06853506b94195bebf18c20c1d6d1db5_rle_crop_3712133950_0.png', 1344172103: '1741962152_671609_1344170970_e22948767f53ff0338552d1142883fdb_rle_crop_3712133164_0.png', 1344172102: '1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133150_0.png', 1344172101: '1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133144_0.png', 1344171868: '1741962051_670590_1344170589_8b3dca704827dfc45471e830373dca6e_rle_crop_3712129492_0.png', 1344171867: '1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129465_0.png', 1344170963: '1741961912_668825_1344170329_e2cec043a4c8452304dd5ff98f241015_rle_crop_3712124249_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/19549f8a32833509dd6ba0c8f9995acb_45117984.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/786792a8e9ba0a8d4b39acb23fa3ff97_17489501.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/dd503a442797879aca5d885031bb2d8f_41691588.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3ecbedf635f1b616031f164b4ce9b867_8580417.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8218f3708db881d1ebc1ab84f81cce0a_59477439.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2246facdb6d2f863a92127c29a1ab1fe_57805625.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9665bb23f35cbe41790eeadb183aef74_88322368.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5c3ee1aff5c0cbd7a7057e53275188d4_26037227.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/72074714676fd9bbdfb2e46716f08eb4_7906575.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f7540f9663c9ca1faee1a95e34c788b1_26922653.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/43df221fd6795473979d340b2fb02a40_67874558.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e9674b0d5ff92b0d37193bc0fe4b6e1b_7171671.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d1d450c49d8eaf5b1dbeb16891737338_38238999.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ec097ba58782f4f07ec9ee236ba2d5d8_51940604.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e8c9a4f754094450e1042c32dd808076_21381524.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3161bdaede714433611bec8d8056a1f4_72147488.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d6a4935d638b69750041f01b8ddd66ba_57401874.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e5757678f09ad878998f96043a9be0d3_88140837.png change filename to text .imagette214327001741962598/ imagette214327001741962598/1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140686_0.png.png imagette214327001741962598/1741962373_673997_1344172685_9304217a9d5949c07abc437ce0d25555_rle_crop_3712140974_0.png.png imagette214327001741962598/1741961912_668825_1344170329_e2cec043a4c8452304dd5ff98f241015_rle_crop_3712124247_0.png.png imagette214327001741962598/1741962253_672396_1344171983_06853506b94195bebf18c20c1d6d1db5_rle_crop_3712133950_0.png.png imagette214327001741962598/1741962373_673997_1344172642_205c5c089a9dc6dcd08a54ea7284f2bc_rle_crop_3712140988_0.png.png imagette214327001741962598/1741962373_673997_1344172584_58269a20775e07f2e054d649b84d2017_rle_crop_3712141015_0.png.png imagette214327001741962598/1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133144_0.png.png imagette214327001741962598/1741962152_671609_1344170970_e22948767f53ff0338552d1142883fdb_rle_crop_3712133164_0.png.png imagette214327001741962598/1741961912_668825_1344170329_e2cec043a4c8452304dd5ff98f241015_rle_crop_3712124249_0.png.png imagette214327001741962598/1741962507_1613742_1344173577_056a17bd02e165de9f31cfade0566d38_rle_crop_3712143747_0.png.png imagette214327001741962598/1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133150_0.png.png imagette214327001741962598/1741962272_672806_1344171866_f9bbf8efb9ed0d71088dda71e5f0ed7c_rle_crop_3712134916_0.png.png imagette214327001741962598/1741962507_677927_1344173385_7792c610b67e182d750d4b5059762871_rle_crop_3712143800_0.png.png imagette214327001741962598/1741962373_673997_1344172517_3972dd28e45270ab8f123822c0285d67_rle_crop_3712141039_0.png.png imagette214327001741962598/1741962051_670590_1344170589_8b3dca704827dfc45471e830373dca6e_rle_crop_3712129492_0.png.png imagette214327001741962598/1741962373_673997_1344173221_bc9ae718a5f71640f24d35b3cf72797a_rle_crop_3712140937_0.png.png imagette214327001741962598/1741962507_677927_1344173388_9a17fb2831d8c32b5d12b3664bb0f126_rle_crop_3712143790_0.png.png imagette214327001741962598/1741962272_672806_1344171837_363963f957459e63385e6b7ddf653c9a_rle_crop_3712136721_0.png.png imagette214327001741962598/1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129465_0.png.png imagette214327021741962599/ imagette214327061741962599/ imagette214327081741962599/ wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0e61f372344218243185a7af0b2f650c_28982255.png imagette214327001741962598 21432702 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=21432702 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214327021741962599 21432706 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=21432706 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214327061741962599 21432708 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=21432708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214327081741962599 21432709 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=21432709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344170993: '1741961912_668825_1344170329_e2cec043a4c8452304dd5ff98f241015_rle_crop_3712124246_0.png', 1344170994: '1741961912_668825_1344170304_e177df6cce7742b65f46deb4a8bf0712_rle_crop_3712124262_0.png', 1344171896: '1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129481_0.png', 1344173735: '1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140685_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/92e505b5a6e23778c2944c9598235c28_41861729.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/372a2be53fa268c934b9ad5960ca52eb_79376755.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3e647df5e5c2936e4822c510b2b5c263_36221456.png change filename to text .imagette214327091741962599/ imagette214327091741962599/1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129481_0.png.png imagette214327091741962599/1741961912_668825_1344170304_e177df6cce7742b65f46deb4a8bf0712_rle_crop_3712124262_0.png.png imagette214327091741962599/1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140685_0.png.png imagette214327091741962599/1741961912_668825_1344170329_e2cec043a4c8452304dd5ff98f241015_rle_crop_3712124246_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/47b7c8c239f1196985b6fd3f1342def8_54181863.png imagette214327091741962599 21432710 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=21432710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344173694: '1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140682_0.png', 1344175227: '1741962507_677927_1344173370_e2466c0086fd77196909f6197d5b8138_rle_crop_3712143840_0.png', 1344175224: '1741962507_677927_1344173390_2fedcb61b58aaa58a59f8aa18a6ec011_rle_crop_3712143738_0.png', 1344175086: '1741962507_1613742_1344173577_056a17bd02e165de9f31cfade0566d38_rle_crop_3712143752_0.png', 1344175063: '1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143709_0.png', 1344174161: '1741962373_673997_1344172459_1c189f9d779c534147d6de0a7427959a_rle_crop_3712141062_0.png', 1344174159: '1741962373_673997_1344172584_58269a20775e07f2e054d649b84d2017_rle_crop_3712141019_0.png', 1344174158: '1741962373_673997_1344172685_9304217a9d5949c07abc437ce0d25555_rle_crop_3712140977_0.png', 1344174157: '1741962373_673997_1344173221_bc9ae718a5f71640f24d35b3cf72797a_rle_crop_3712140941_0.png', 1344170982: '1741961912_668825_1344170304_e177df6cce7742b65f46deb4a8bf0712_rle_crop_3712124253_0.png', 1344173304: '1741962253_672396_1344171978_324c2fd68b7d39e0b8849684e9fd32f4_rle_crop_3712134005_0.png', 1344172129: '1741962152_671609_1344171097_ae0bd14be4eda66066a81c09080d8a18_rle_crop_3712133116_0.png', 1344172128: '1741962152_671609_1344171097_ae0bd14be4eda66066a81c09080d8a18_rle_crop_3712133123_0.png', 1344171889: '1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129487_0.png', 1344171888: '1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129473_0.png', 1344171886: '1741962051_670590_1344170622_c77ad99036114cd4150fd86a22c283f1_rle_crop_3712129274_0.png', 1344171885: '1741962051_670590_1344170622_c77ad99036114cd4150fd86a22c283f1_rle_crop_3712129279_0.png', 1344170983: '1741961912_668825_1344170292_6acba8c9ef65bb6fecfa66714b5e46a7_rle_crop_3712124485_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3e52400016af376a2c124b263247f06e_99333358.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/00621d2eeb69eb5cd913b74a037227b1_33862737.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/112a9a577989137f920faa2634682591_21299112.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/39b266ede3c001e68d77c11003365ff1_45742298.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/91fe9973356eb4c116abc4aa5e13c813_25322683.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/32beeb51b31494363f0dff3f0ca937bc_32573063.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/803ebb20c8afb1ba072a8395c0149aab_37340100.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/022915ee2180980263d35bc4ccce8829_37661654.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bfabbe6a2e9324ccd22111b4086bb4a7_5397405.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bfc6674f075354d82bf0cfdb7fdac2f7_91387461.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1f00fc969374965bce04300ddaafcba3_52017180.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f084fc32c5c1536787d508a3920f3ece_28996860.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8c7d6811adc6fdee1c27dca6ab4c67f5_2423594.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d32751cb898db60b0c248d785d1ed369_14008408.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4786cf4eedda9fd8ddcf406d84e18e5e_67095949.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/82fd3442734d497547afdf45b77710d9_13433984.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d9c8cc903c1e32bb464b54401e9ca4e3_39696816.png change filename to text .imagette214327101741962599/ imagette214327101741962599/1741962507_1613742_1344173577_056a17bd02e165de9f31cfade0566d38_rle_crop_3712143752_0.png.png imagette214327101741962599/1741961912_668825_1344170304_e177df6cce7742b65f46deb4a8bf0712_rle_crop_3712124253_0.png.png imagette214327101741962599/1741962152_671609_1344171097_ae0bd14be4eda66066a81c09080d8a18_rle_crop_3712133116_0.png.png imagette214327101741962599/1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143709_0.png.png imagette214327101741962599/1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129473_0.png.png imagette214327101741962599/1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129487_0.png.png imagette214327101741962599/1741962373_673997_1344172584_58269a20775e07f2e054d649b84d2017_rle_crop_3712141019_0.png.png imagette214327101741962599/1741962051_670590_1344170622_c77ad99036114cd4150fd86a22c283f1_rle_crop_3712129279_0.png.png imagette214327101741962599/1741962373_673997_1344172459_1c189f9d779c534147d6de0a7427959a_rle_crop_3712141062_0.png.png imagette214327101741962599/1741962507_677927_1344173390_2fedcb61b58aaa58a59f8aa18a6ec011_rle_crop_3712143738_0.png.png imagette214327101741962599/1741962373_673997_1344173221_bc9ae718a5f71640f24d35b3cf72797a_rle_crop_3712140941_0.png.png imagette214327101741962599/1741962051_670590_1344170622_c77ad99036114cd4150fd86a22c283f1_rle_crop_3712129274_0.png.png imagette214327101741962599/1741962507_677927_1344173370_e2466c0086fd77196909f6197d5b8138_rle_crop_3712143840_0.png.png imagette214327101741962599/1741962373_673997_1344172685_9304217a9d5949c07abc437ce0d25555_rle_crop_3712140977_0.png.png imagette214327101741962599/1741962253_672396_1344171978_324c2fd68b7d39e0b8849684e9fd32f4_rle_crop_3712134005_0.png.png imagette214327101741962599/1741962152_671609_1344171097_ae0bd14be4eda66066a81c09080d8a18_rle_crop_3712133123_0.png.png imagette214327101741962599/1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140682_0.png.png imagette214327101741962599/1741961912_668825_1344170292_6acba8c9ef65bb6fecfa66714b5e46a7_rle_crop_3712124485_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ecd08563a3c3db9d2653defea9758ed2_67341611.png imagette214327101741962599 21432711 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=21432711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344170967: '1741961912_668825_1344170241_85bdc1ffebf95a6f9e1e29764f128c31_rle_crop_3712124846_0.png', 1344171874: '1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129468_0.png', 1344173293: '1741962253_672396_1344171978_324c2fd68b7d39e0b8849684e9fd32f4_rle_crop_3712133993_0.png', 1344173376: '1741962272_672806_1344171858_74e1c2315b432f50390899f3d6465c08_rle_crop_3712134935_0.png', 1344175175: '1741962507_677927_1344173390_2fedcb61b58aaa58a59f8aa18a6ec011_rle_crop_3712143736_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3d3d329ff651f05edcd52376520491e6_66640874.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b4dc0c69b68c73dd7542312ad53680bf_38514029.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6d9bd047b531b7567651f6dd8e8396d3_69168663.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/16e424d2424d1f3d055a1dc27b9f1e7c_15852321.png change filename to text .imagette214327111741962600/ imagette214327111741962600/1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129468_0.png.png imagette214327111741962600/1741962272_672806_1344171858_74e1c2315b432f50390899f3d6465c08_rle_crop_3712134935_0.png.png imagette214327111741962600/1741961912_668825_1344170241_85bdc1ffebf95a6f9e1e29764f128c31_rle_crop_3712124846_0.png.png imagette214327111741962600/1741962507_677927_1344173390_2fedcb61b58aaa58a59f8aa18a6ec011_rle_crop_3712143736_0.png.png imagette214327111741962600/1741962253_672396_1344171978_324c2fd68b7d39e0b8849684e9fd32f4_rle_crop_3712133993_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1f9132df43c9abf9261054f307a39962_19016395.png imagette214327111741962600 21432704 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=21432704 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344171859: '1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129469_0.png', 1344171860: '1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129485_0.png', 1344171861: '1741962051_670590_1344170589_8b3dca704827dfc45471e830373dca6e_rle_crop_3712129493_0.png', 1344172090: '1741962152_671609_1344171097_ae0bd14be4eda66066a81c09080d8a18_rle_crop_3712133117_0.png', 1344172091: '1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133155_0.png', 1344174994: '1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143716_0.png', 1344174996: '1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143714_0.png', 1344175015: '1741962507_1613742_1344173622_be8bd0101c5cbf860314ea96a814803c_rle_crop_3712143699_0.png', 1344175108: '1741962507_677927_1344174014_bc222d2b67fd058e6a8a5ea929df7843_rle_crop_3712143547_0.png', 1344175110: '1741962507_677927_1344174014_bc222d2b67fd058e6a8a5ea929df7843_rle_crop_3712143544_0.png', 1344175112: '1741962507_677927_1344173388_9a17fb2831d8c32b5d12b3664bb0f126_rle_crop_3712143795_0.png', 1344175116: '1741962507_677927_1344173385_7792c610b67e182d750d4b5059762871_rle_crop_3712143807_0.png', 1344175118: '1741962507_677927_1344173385_7792c610b67e182d750d4b5059762871_rle_crop_3712143804_0.png', 1344175120: '1741962507_677927_1344173380_08382df4a956a404f38705adc87dff9a_rle_crop_3712143826_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a215b3215eca1632e99e460580f819f7_40094185.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1b20a62209431f6432726c00dfdb5956_11018881.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0139d69bfb791758a9761397fb632b86_77266550.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a5079ba41937cce5e0ec26ddc56236f2_68219877.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/10368dac3563c9255efbf21c8c8ec7d2_87064562.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8009e762bfe6b006f5bc0178a0a4b607_65632333.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ad90767616056b174b41ef877d7dafe0_7337636.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/00dcda6a47e2b83fc993aa5d6ba86774_29026869.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4c7cfc963f4ea6cc977791cde45477ad_70988997.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4c6b8507bbe88ab8d556eeeb9b371a88_38044183.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/035f70aede42760ae23cb91635b55836_349432.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a6c9ed7253b0a39208b276f6014a1df0_17560032.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bc8cdb111a3eb7f7400af75f538c85a4_5808382.png change filename to text .imagette214327041741962600/ imagette214327041741962600/1741962507_677927_1344173388_9a17fb2831d8c32b5d12b3664bb0f126_rle_crop_3712143795_0.png.png imagette214327041741962600/1741962507_1613742_1344173622_be8bd0101c5cbf860314ea96a814803c_rle_crop_3712143699_0.png.png imagette214327041741962600/1741962507_677927_1344174014_bc222d2b67fd058e6a8a5ea929df7843_rle_crop_3712143544_0.png.png imagette214327041741962600/1741962507_677927_1344173380_08382df4a956a404f38705adc87dff9a_rle_crop_3712143826_0.png.png imagette214327041741962600/1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129485_0.png.png imagette214327041741962600/1741962507_677927_1344174014_bc222d2b67fd058e6a8a5ea929df7843_rle_crop_3712143547_0.png.png imagette214327041741962600/1741962152_671609_1344171097_ae0bd14be4eda66066a81c09080d8a18_rle_crop_3712133117_0.png.png imagette214327041741962600/1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143716_0.png.png imagette214327041741962600/1741962507_677927_1344173385_7792c610b67e182d750d4b5059762871_rle_crop_3712143804_0.png.png imagette214327041741962600/1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143714_0.png.png imagette214327041741962600/1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133155_0.png.png imagette214327041741962600/1741962507_677927_1344173385_7792c610b67e182d750d4b5059762871_rle_crop_3712143807_0.png.png imagette214327041741962600/1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129469_0.png.png imagette214327041741962600/1741962051_670590_1344170589_8b3dca704827dfc45471e830373dca6e_rle_crop_3712129493_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d8187210bc09019b50c2c5623d81c10a_57824168.png imagette214327041741962600 21432705 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=21432705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344170977: '1741961912_668825_1344170241_85bdc1ffebf95a6f9e1e29764f128c31_rle_crop_3712124851_0.png', 1344173160: '1741962267_1606823_1344171880_6e98c53feab34c7866bb793914ad99e0_rle_crop_3712133801_0.png', 1344173377: '1741962272_672806_1344171866_f9bbf8efb9ed0d71088dda71e5f0ed7c_rle_crop_3712134917_0.png', 1344173378: '1741962272_672806_1344171837_363963f957459e63385e6b7ddf653c9a_rle_crop_3712136718_0.png', 1344173379: '1741962272_672806_1344171837_363963f957459e63385e6b7ddf653c9a_rle_crop_3712136716_0.png', 1344173668: '1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140678_0.png', 1344173672: '1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140681_0.png', 1344174137: '1741962373_673997_1344172517_3972dd28e45270ab8f123822c0285d67_rle_crop_3712141041_0.png', 1344174138: '1741962373_673997_1344172459_1c189f9d779c534147d6de0a7427959a_rle_crop_3712141060_0.png', 1344174139: '1741962373_673997_1344172459_1c189f9d779c534147d6de0a7427959a_rle_crop_3712141058_0.png', 1344175055: '1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143718_0.png', 1344175191: '1741962507_677927_1344173380_08382df4a956a404f38705adc87dff9a_rle_crop_3712143825_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/138b3c616962b43dbb45fa5c5f350b33_79595412.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/83076f63c1cc9108f08975e3de3b1df5_40286784.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5d1d7fb5a190b03a00ee77e32245670e_17818468.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/092562b6f4d0e8c8e1439f5d0f9f1735_94270715.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1f7b76fdb7109626b11cd38cebe31af2_19150829.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c4ba6d3fdc9a4c1ae37ecf738e03a49d_41078852.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b3b8827b04f53b2c2f13bc398943c51c_44334245.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5aeaee096d3159ca6041667dc8a31ad4_34202291.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/301ccaa2113df6505bd2c238c7fa2eda_58116619.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1f3103219793112cfb4a33a089a190b4_60471297.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8288627a6c5ea5c8c2962350c9dc7d87_5963242.png change filename to text .imagette214327051741962601/ imagette214327051741962601/1741962373_673997_1344172459_1c189f9d779c534147d6de0a7427959a_rle_crop_3712141058_0.png.png imagette214327051741962601/1741962373_673997_1344172459_1c189f9d779c534147d6de0a7427959a_rle_crop_3712141060_0.png.png imagette214327051741962601/1741962511_674938_1344173393_97258b5bdb55522742b0691dbcc59ed4_rle_crop_3712143718_0.png.png imagette214327051741962601/1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140678_0.png.png imagette214327051741962601/1741962507_677927_1344173380_08382df4a956a404f38705adc87dff9a_rle_crop_3712143825_0.png.png imagette214327051741962601/1741962373_673997_1344172517_3972dd28e45270ab8f123822c0285d67_rle_crop_3712141041_0.png.png imagette214327051741962601/1741962386_1610375_1344173177_e66bc155002ef41eef55a9136c6b9972_rle_crop_3712140681_0.png.png imagette214327051741962601/1741962272_672806_1344171837_363963f957459e63385e6b7ddf653c9a_rle_crop_3712136718_0.png.png imagette214327051741962601/1741961912_668825_1344170241_85bdc1ffebf95a6f9e1e29764f128c31_rle_crop_3712124851_0.png.png imagette214327051741962601/1741962272_672806_1344171866_f9bbf8efb9ed0d71088dda71e5f0ed7c_rle_crop_3712134917_0.png.png imagette214327051741962601/1741962272_672806_1344171837_363963f957459e63385e6b7ddf653c9a_rle_crop_3712136716_0.png.png imagette214327051741962601/1741962267_1606823_1344171880_6e98c53feab34c7866bb793914ad99e0_rle_crop_3712133801_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d6b33a3fcf8cc10c7f7e3f903bd7bb46_79979684.png imagette214327051741962601 21432707 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=21432707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344171869: '1741962051_670590_1344170729_9e41b39e3ae81d31f5865c60e43f947e_rle_crop_3712129052_0.png', 1344171870: '1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129466_0.png', 1344171871: '1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129482_0.png', 1344171984: '1741962145_1604019_1344171498_2741d452457e385785a3457c8b13db76_rle_crop_3712132927_0.png', 1344172115: '1741962152_671609_1344171584_d1bde5725ff5f91d317ee77ebc3435c3_rle_crop_3712133109_0.png', 1344172116: '1741962152_671609_1344171023_c150367a279f27afcdc2a057a8c63c40_rle_crop_3712133130_0.png', 1344172118: '1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133148_0.png', 1344172119: '1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133149_0.png', 1344173283: '1741962253_672396_1344171988_995145f769ec09680d71bb9b72309c90_rle_crop_3712133940_0.png', 1344173650: '1741962386_1610375_1344173200_03f8071383180fd8e13e8e971ec2ef77_rle_crop_3712140656_0.png', 1344174109: '1741962373_673997_1344173221_bc9ae718a5f71640f24d35b3cf72797a_rle_crop_3712140936_0.png', 1344174110: '1741962373_673997_1344172642_205c5c089a9dc6dcd08a54ea7284f2bc_rle_crop_3712140992_0.png', 1344175069: '1741962507_1613742_1344173738_c4e40970989e01a2354f23ed74a644de_rle_crop_3712143466_0.png', 1344175165: '1741962507_677927_1344173388_9a17fb2831d8c32b5d12b3664bb0f126_rle_crop_3712143786_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d3a13989fd4d48bc2952f6f8000c9108_41881384.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9a2de493605edccf9ea6f333b09e460d_52418415.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d28aff4acdba2a385fd876a9e2e4f68a_75649716.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9c7ff6757ff6e000b013cf5936a23cee_93011065.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/38b960dbd775d599f6ab9c082a2b0b76_75832255.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ca1d4353d2cd728cc1e06d9b0bdbfe09_62137296.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0b9763e7dc55af66a136b05e649d5142_2550315.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9951e356cbe7df991b5631e349e2057e_99286531.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/75a50f001b8dc6af8a6ff2b5bdcdcefd_84678932.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b11ac65d0b5694bec44e8c7b32953886_66602111.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0056b6c0d6c724498c0a45695217fbb0_95727478.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e5fe38afe73a61dda8b30c1f9ef5633d_86422461.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/25f5ec8ad0163bebe499fc4e3294a4ff_77238151.png change filename to text .imagette214327071741962602/ imagette214327071741962602/1741962253_672396_1344171988_995145f769ec09680d71bb9b72309c90_rle_crop_3712133940_0.png.png imagette214327071741962602/1741962386_1610375_1344173200_03f8071383180fd8e13e8e971ec2ef77_rle_crop_3712140656_0.png.png imagette214327071741962602/1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133148_0.png.png imagette214327071741962602/1741962507_677927_1344173388_9a17fb2831d8c32b5d12b3664bb0f126_rle_crop_3712143786_0.png.png imagette214327071741962602/1741962152_671609_1344171584_d1bde5725ff5f91d317ee77ebc3435c3_rle_crop_3712133109_0.png.png imagette214327071741962602/1741962152_671609_1344170996_c2fec6cb86ca4c262f157f6264a48174_rle_crop_3712133149_0.png.png imagette214327071741962602/1741962373_673997_1344173221_bc9ae718a5f71640f24d35b3cf72797a_rle_crop_3712140936_0.png.png imagette214327071741962602/1741962152_671609_1344171023_c150367a279f27afcdc2a057a8c63c40_rle_crop_3712133130_0.png.png imagette214327071741962602/1741962051_670590_1344170620_012f4c921e91b8ab2fd14054a63f0c2f_rle_crop_3712129466_0.png.png imagette214327071741962602/1741962373_673997_1344172642_205c5c089a9dc6dcd08a54ea7284f2bc_rle_crop_3712140992_0.png.png imagette214327071741962602/1741962507_1613742_1344173738_c4e40970989e01a2354f23ed74a644de_rle_crop_3712143466_0.png.png imagette214327071741962602/1741962051_670590_1344170616_d91f6c6d430e82a0e4398c0e323c3199_rle_crop_3712129482_0.png.png imagette214327071741962602/1741962145_1604019_1344171498_2741d452457e385785a3457c8b13db76_rle_crop_3712132927_0.png.png imagette214327071741962602/1741962051_670590_1344170729_9e41b39e3ae81d31f5865c60e43f947e_rle_crop_3712129052_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a0ba08136bd803830c31c2f73fac8b30_84198731.png imagette214327071741962602 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21432602 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21432712,21432713,21432714,21432715,21432716,21432717,21432718,21432719,21432720,21432721,21432722,21432723?tags=autre_refus,environnement,metal,papier,Teint_Dans_La_Masse,Carton_brun,flou,Carton_gris,mal_croppe,kraft,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1344174984] : ('0.06764774953268543',) no score found for photo 1344174984 We are sending mail with results at report@fotonower.com args[1344174959] : ('0.06764774953268543',) no score found for photo 1344174959 We are sending mail with results at report@fotonower.com args[1344174945] : ('0.06764774953268543',) no score found for photo 1344174945 We are sending mail with results at report@fotonower.com args[1344174926] : ('0.06764774953268543',) no score found for photo 1344174926 We are sending mail with results at report@fotonower.com args[1344174704] : ('0.06764774953268543',) no score found for photo 1344174704 We are sending mail with results at report@fotonower.com args[1344174685] : ('0.06764774953268543',) no score found for photo 1344174685 We are sending mail with results at report@fotonower.com args[1344174610] : ('0.06764774953268543',) no score found for photo 1344174610 We are sending mail with results at report@fotonower.com args[1344174557] : ('0.06764774953268543',) no score found for photo 1344174557 We are sending mail with results at report@fotonower.com args[1344174508] : ('0.06764774953268543',) no score found for photo 1344174508 We are sending mail with results at report@fotonower.com args[1344174464] : ('0.06764774953268543',) no score found for photo 1344174464 We are sending mail with results at report@fotonower.com refus_total : 0.06764774953268543 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=21432602 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_P21432602_14-03-2025_15_29_58.pdf results_Auto_P21432602_14-03-2025_15_29_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_14-03-2025_15_29_58.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','21432602','results_Auto_P21432602_14-03-2025_15_29_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_14-03-2025_15_29_58.pdf','pdf','','0.41','0.06764774953268543') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21432602]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] map_info['map_portfolio_photo'] : {21432602: [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464, 1344174014, 1344173851, 1344173738, 1344173622, 1344173577, 1344173393, 1344173390, 1344173388, 1344173385, 1344173380, 1344173370, 1344173221, 1344173200, 1344173196, 1344173177, 1344172736, 1344172685, 1344172642, 1344172584, 1344172517, 1344172459, 1344172001, 1344171988, 1344171983, 1344171978, 1344171880, 1344171866, 1344171858, 1344171856, 1344171843, 1344171837, 1344171584, 1344171560, 1344171539, 1344171498, 1344171436, 1344171119, 1344171097, 1344171023, 1344170996, 1344170970, 1344170729, 1344170702, 1344170673, 1344170660, 1344170651, 1344170647, 1344170624, 1344170622, 1344170620, 1344170616, 1344170589, 1344170344, 1344170329, 1344170304, 1344170292, 1344170241]} final : False mtd_id 4302 list_pids : [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] 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, '2669610') ('4302', '21432602', '1344174984', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174959', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174945', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174926', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174704', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174685', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174610', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174557', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174508', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174464', None, None, None, None, None, '2669610') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '21432602', '1344174984', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174959', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174945', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174926', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174704', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174685', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174610', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174557', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174508', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174464', None, None, None, None, None, '2669610')] time used for this insertion : 0.013607978820800781 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.3893351554870605 time spend to save output : 0.013970375061035156 total time spend for step 4 : 6.403305530548096 step5:split_time_score Fri Mar 14 15:30:04 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 : ['21432602'] 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 : [('21432602',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21432602) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344174984: {'path': 'temp/1741962597_133518_1344174984_be2f3fc1b08c27dc444458569af26929.jpg', 'extension': 'jpg'}, 1344174926: {'path': 'temp/1741962597_133518_1344174926_c4201f700baa0425035ffa6325e5dd4b.jpg', 'extension': 'jpg'}, 1344174945: {'path': 'temp/1741962597_133518_1344174945_61f46ab7958207d1fc7538fc7f6275cd.jpg', 'extension': 'jpg'}, 1344174959: {'path': 'temp/1741962597_133518_1344174959_b60a2267429cfb6112098ddbd27f7c3b.jpg', 'extension': 'jpg'}, 1344174610: {'path': 'temp/1741962597_133518_1344174610_d89e47dea557a02bb50b4e602313142e.jpg', 'extension': 'jpg'}, 1344174685: {'path': 'temp/1741962597_133518_1344174685_bc4569ea75ca223ebd6714c03798e6cb.jpg', 'extension': 'jpg'}, 1344174704: {'path': 'temp/1741962597_133518_1344174704_edc3a679bc8ed9dac2c98861f3ad95ff.jpg', 'extension': 'jpg'}, 1344174464: {'path': 'temp/1741962597_133518_1344174464_f08f51e3119df19bb96f1c1fabf432d2.jpg', 'extension': 'jpg'}, 1344174508: {'path': 'temp/1741962597_133518_1344174508_da9d45d1f434e105358d553181e0cc27.jpg', 'extension': 'jpg'}, 1344174557: {'path': 'temp/1741962597_133518_1344174557_c19ac787cc457b9c049a62a47185a5de.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 = 21432602; (('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 = 21432602 group by h (('15', 67),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21432602 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 (21432602) 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 (21432602) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14032025 21432602 Nombre de photos uploadées : 67 / 23040 (0%) 14032025 21432602 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 14032025 21432602 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1344170344, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/28399a2347d5c47e58325f2670446ce6.jpg', 'username': None, 'uploaded_at': 1741961806, 'text': 'image_14032025_15_15_04_10150.jpg'}, {'photo_id': 1344170329, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e2cec043a4c8452304dd5ff98f241015.jpg', 'username': None, 'uploaded_at': 1741961806, 'text': 'image_14032025_15_15_14_9125.jpg'}, {'photo_id': 1344170304, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e177df6cce7742b65f46deb4a8bf0712.jpg', 'username': None, 'uploaded_at': 1741961806, 'text': 'image_14032025_15_15_24_10141.jpg'}, {'photo_id': 1344170292, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6acba8c9ef65bb6fecfa66714b5e46a7.jpg', 'username': None, 'uploaded_at': 1741961806, 'text': 'image_14032025_15_15_34_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.005209445953369141 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21432602, '2025-03-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1667162,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026827335357666016 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= 1667162 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676714, 'mtr_portfolio_id': 21429848, 'dashboard_result_id': 9452063, '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_P21429848_14-03-2025_14_49_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21429905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429920, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676714, 'mtr_portfolio_id': 21430871, 'dashboard_result_id': 9452064, '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_P21430871_14-03-2025_15_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21430896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21430897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21430898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21430899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21430900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21430901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21430902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21430903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21430904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21430905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21430906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21430907, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676714, 'mtr_portfolio_id': 21431516, 'dashboard_result_id': 9452065, '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_P21431516_14-03-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676714, 'mtr_portfolio_id': 21432602, 'dashboard_result_id': 9452066, '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_P21432602_14-03-2025_15_27_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, '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 = 21429848 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': 2669414, 'mtr_portfolio_id': 21429848, 'created_at': datetime.datetime(2025, 3, 14, 14, 49, 3), 'result': '0.05438800612903051', 'result_long': None, 'result_double': None}] Qualite : 0.05438800612903051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21429848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21429848_14-03-2025_14_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21429848 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_P21429848_14-03-2025_14_49_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21429905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429920, 'pht': 3726}}" where mtr_portfolio_id = 21429848 and dashboard_run_id = 1676714 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`=21429848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452063, 0.05438800612903051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21429848_14-03-2025_14_49_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21429905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429920, '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 = 21430871 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': 2669462, 'mtr_portfolio_id': 21430871, 'created_at': datetime.datetime(2025, 3, 14, 15, 2, 56), 'result': '0.06926805392771342', 'result_long': None, 'result_double': None}] Qualite : 0.06926805392771342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21430871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21430871_14-03-2025_15_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21430871 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_P21430871_14-03-2025_15_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21430896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21430897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21430898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21430899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21430900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21430901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21430902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21430903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21430904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21430905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21430906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21430907, 'pht': 3726}}" where mtr_portfolio_id = 21430871 and dashboard_run_id = 1676714 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`=21430871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452064, 0.06926805392771342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21430871_14-03-2025_15_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21430896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21430897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21430898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21430899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21430900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21430901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21430902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21430903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21430904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21430905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21430906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21430907, '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 = 21431516 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': 2669554, 'mtr_portfolio_id': 21431516, 'created_at': datetime.datetime(2025, 3, 14, 15, 18, 59), 'result': '0.06338171451369397', 'result_long': None, 'result_double': None}] Qualite : 0.06338171451369397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21431516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21431516_14-03-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21431516 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_P21431516_14-03-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, 'pht': 3726}}" where mtr_portfolio_id = 21431516 and dashboard_run_id = 1676714 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`=21431516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452065, 0.06338171451369397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21431516_14-03-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, '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 = 21432602 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': 2669610, 'mtr_portfolio_id': 21432602, 'created_at': datetime.datetime(2025, 3, 14, 15, 29, 57), 'result': '0.06764774953268543', 'result_long': None, 'result_double': None}] Qualite : 0.06764774953268543 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21432602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_14-03-2025_15_29_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21432602 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_P21432602_14-03-2025_15_29_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, 'pht': 3726}}" where mtr_portfolio_id = 21432602 and dashboard_run_id = 1676714 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`=21432602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9452066, 0.06764774953268543, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_14-03-2025_15_29_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, '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 (21429848,21430871,21431516,21432602) result : ((1344158078,), (1344158121,), (1344158172,), (1344158197,), (1344158266,), (1344158838,), (1344158865,), (1344158891,), (1344158922,), (1344159142,), (1344159165,), (1344159170,), (1344159174,), (1344159176,), (1344159179,), (1344159334,), (1344159362,), (1344159390,), (1344159702,), (1344159734,), (1344159744,), (1344159749,), (1344159753,), (1344159757,), (1344159872,), (1344159875,), (1344159882,), (1344159888,), (1344159983,), (1344160011,), (1344160048,), (1344160088,), (1344160140,), (1344160160,), (1344160487,), (1344160529,), (1344160602,), (1344160669,), (1344160698,), (1344160724,), (1344160809,), (1344160826,), (1344160831,), (1344160837,), (1344160922,), (1344160943,), (1344161004,), (1344161022,), (1344161046,), (1344161050,), (1344161051,), (1344161066,), (1344161340,), (1344161375,), (1344161411,), (1344161450,), (1344161477,), (1344161792,), (1344161831,), (1344161875,), (1344161897,), (1344161933,), (1344161960,), (1344162220,), (1344162226,), (1344162232,), (1344162284,), (1344162575,), (1344162603,), (1344162622,), (1344162628,), (1344162652,), (1344162654,), (1344162766,), (1344162729,), (1344162735,), (1344162754,), (1344162824,), (1344162856,), (1344162877,), (1344162917,), (1344162948,), (1344162971,), (1344163128,), (1344163149,), (1344163187,), (1344163213,), (1344163247,), (1344163261,), (1344163267,), (1344163271,), (1344163272,), (1344163275,), (1344163319,), (1344163324,), (1344163329,), (1344163342,), (1344163350,), (1344163389,), (1344163409,), (1344163414,), (1344163418,), (1344163423,), (1344163426,), (1344163453,), (1344163471,), (1344163478,), (1344163484,), (1344163487,), (1344163530,), (1344163538,), (1344163544,), (1344163548,), (1344163553,), (1344163605,), (1344163610,), (1344163634,), (1344163772,), (1344163979,), (1344163984,), (1344164004,), (1344164014,), (1344164018,), (1344164024,), (1344164058,), (1344164063,), (1344164071,), (1344164074,), (1344164261,), (1344164278,), (1344164294,), (1344164315,), (1344164338,), (1344164360,), (1344164584,), (1344164617,), (1344164633,), (1344164641,), (1344165072,), (1344165124,), (1344165147,), (1344165174,), (1344165200,), (1344165232,), (1344165355,), (1344165360,), (1344165364,), (1344165407,), (1344165381,), (1344165386,), (1344165389,), (1344165391,), (1344165394,), (1344165651,), (1344165655,), (1344165659,), (1344165662,), (1344165666,), (1344165802,), (1344165841,), (1344165867,), (1344165895,), (1344165915,), (1344166331,), (1344166360,), (1344166390,), (1344166461,), (1344166511,), (1344166556,), (1344166819,), (1344166867,), (1344167025,), (1344167671,), (1344167694,), (1344167722,), (1344167747,), (1344167766,), (1344167792,), (1344168030,), (1344168043,), (1344168045,), (1344168065,), (1344168091,), (1344168536,), (1344168568,), (1344168620,), (1344168660,), (1344168725,), (1344168787,), (1344168927,), (1344168937,), (1344168951,), (1344169098,), (1344169120,), (1344169131,), (1344169137,), (1344169141,), (1344169143,), (1344169360,), (1344169399,), (1344169444,), (1344169518,), (1344169691,), (1344169698,), (1344169702,), (1344169703,), (1344169706,), (1344169710,), (1344169792,), (1344169812,), (1344169822,), (1344169830,), (1344169933,), (1344169939,), (1344169942,), (1344169944,), (1344169948,), (1344169952,), (1344170009,), (1344170012,), (1344170016,), (1344170026,), (1344170371,), (1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14032025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21432602]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] map_info['map_portfolio_photo'] : {21432602: [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464, 1344174014, 1344173851, 1344173738, 1344173622, 1344173577, 1344173393, 1344173390, 1344173388, 1344173385, 1344173380, 1344173370, 1344173221, 1344173200, 1344173196, 1344173177, 1344172736, 1344172685, 1344172642, 1344172584, 1344172517, 1344172459, 1344172001, 1344171988, 1344171983, 1344171978, 1344171880, 1344171866, 1344171858, 1344171856, 1344171843, 1344171837, 1344171584, 1344171560, 1344171539, 1344171498, 1344171436, 1344171119, 1344171097, 1344171023, 1344170996, 1344170970, 1344170729, 1344170702, 1344170673, 1344170660, 1344170651, 1344170647, 1344170624, 1344170622, 1344170620, 1344170616, 1344170589, 1344170344, 1344170329, 1344170304, 1344170292, 1344170241]} final : True mtd_id 4302 list_pids : [1344174984, 1344174959, 1344174945, 1344174926, 1344174704, 1344174685, 1344174610, 1344174557, 1344174508, 1344174464] Looping around the photos to save general results len do output : 1 /21432602Didn'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, '2669610') ('4302', '21432602', '1344174984', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174959', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174945', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174926', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174704', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174685', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174610', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174557', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174508', None, None, None, None, None, '2669610') ('4302', None, None, None, None, None, None, None, '2669610') ('4302', '21432602', '1344174464', None, None, None, None, None, '2669610') 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', None, '21432602', 'None', None, None, None, None, '2669610'), ('4302', '21432602', '1344174984', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174959', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174945', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174926', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174704', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174685', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174610', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174557', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174508', None, None, None, None, None, '2669610'), ('4302', '21432602', '1344174464', None, None, None, None, None, '2669610')] time used for this insertion : 0.014874458312988281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34897708892822266 time spend to save output : 0.015076160430908203 total time spend for step 5 : 0.36405324935913086 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 (2669610) 2.25user 2.49system 0:09.31elapsed 50%CPU (0avgtext+0avgdata 162028maxresident)k 424inputs+21744outputs (0major+74932minor)pagefaults 0swaps