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 : 609119 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 (2718576) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2718576) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000728 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2718576'] with mtr_portfolio_ids : ['22000728'] and first list_photo_ids : [] new path : /proc/609119/ Name: python3 Umask: 0002 State: R (running) Tgid: 609119 Ngid: 0 Pid: 609119 PPid: 609118 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 609119 NSpid: 609119 NSpgid: 606232 NSsid: 606232 VmPeak: 1106832 kB VmSize: 1106832 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97064 kB VmRSS: 97064 kB RssAnon: 59808 kB RssFile: 37256 kB RssShmem: 0 kB VmData: 865580 kB VmStk: 132 kB VmExe: 2644 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: 48 nonvoluntary_ctxt_switches: 74 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '609119', 'Ngid': '0', 'Pid': '609119', 'PPid': '609118', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '609119', 'NSpid': '609119', 'NSpgid': '606232', 'NSsid': '606232', 'VmPeak': '1106832 kB', 'VmSize': '1106832 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97064 kB', 'VmRSS': '97064 kB', 'RssAnon': '59808 kB', 'RssFile': '37256 kB', 'RssShmem': '0 kB', 'VmData': '865580 kB', 'VmStk': '132 kB', 'VmExe': '2644 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': '48', 'nonvoluntary_ctxt_switches': '74'} ('datou_batch_current', '609119', '1106832', '0', '1106832', '865580', '97064', b'', 'marlene', '2718576') 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 (22000728) 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 (2718576 ) ) 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 (22000728) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349701040, 'portfolio_id': 22000728}, {'photo_id': 1349701038, 'portfolio_id': 22000728}, {'photo_id': 1349701037, 'portfolio_id': 22000728}, {'photo_id': 1349701035, 'portfolio_id': 22000728}, {'photo_id': 1349701003, 'portfolio_id': 22000728}, {'photo_id': 1349700999, 'portfolio_id': 22000728}, {'photo_id': 1349700996, 'portfolio_id': 22000728}, {'photo_id': 1349700993, 'portfolio_id': 22000728}, {'photo_id': 1349700990, 'portfolio_id': 22000728}, {'photo_id': 1349700974, 'portfolio_id': 22000728}, {'photo_id': 1349700972, 'portfolio_id': 22000728}, {'photo_id': 1349700971, 'portfolio_id': 22000728}, {'photo_id': 1349700960, 'portfolio_id': 22000728}, {'photo_id': 1349700938, 'portfolio_id': 22000728}, {'photo_id': 1349700935, 'portfolio_id': 22000728}, {'photo_id': 1349700933, 'portfolio_id': 22000728}, {'photo_id': 1349700931, 'portfolio_id': 22000728}, {'photo_id': 1349700928, 'portfolio_id': 22000728}, {'photo_id': 1349700900, 'portfolio_id': 22000728}, {'photo_id': 1349700898, 'portfolio_id': 22000728}, {'photo_id': 1349700896, 'portfolio_id': 22000728}, {'photo_id': 1349700893, 'portfolio_id': 22000728}, {'photo_id': 1349700875, 'portfolio_id': 22000728}, {'photo_id': 1349700870, 'portfolio_id': 22000728}, {'photo_id': 1349700868, 'portfolio_id': 22000728}, {'photo_id': 1349700863, 'portfolio_id': 22000728}, {'photo_id': 1349700860, 'portfolio_id': 22000728}, {'photo_id': 1349700853, 'portfolio_id': 22000728}, {'photo_id': 1349700829, 'portfolio_id': 22000728}, {'photo_id': 1349700828, 'portfolio_id': 22000728}, {'photo_id': 1349700824, 'portfolio_id': 22000728}, {'photo_id': 1349700811, 'portfolio_id': 22000728}, {'photo_id': 1349700652, 'portfolio_id': 22000728}, {'photo_id': 1349700630, 'portfolio_id': 22000728}, {'photo_id': 1349700615, 'portfolio_id': 22000728}, {'photo_id': 1349700563, 'portfolio_id': 22000728}, {'photo_id': 1349700529, 'portfolio_id': 22000728}, {'photo_id': 1349700479, 'portfolio_id': 22000728}, {'photo_id': 1349700094, 'portfolio_id': 22000728}, {'photo_id': 1349700044, 'portfolio_id': 22000728}, {'photo_id': 1349699956, 'portfolio_id': 22000728}, {'photo_id': 1349699874, 'portfolio_id': 22000728}, {'photo_id': 1349699829, 'portfolio_id': 22000728}, {'photo_id': 1349699756, 'portfolio_id': 22000728}, {'photo_id': 1349699102, 'portfolio_id': 22000728}, {'photo_id': 1349699053, 'portfolio_id': 22000728}, {'photo_id': 1349698975, 'portfolio_id': 22000728}, {'photo_id': 1349698488, 'portfolio_id': 22000728}, {'photo_id': 1349698423, 'portfolio_id': 22000728}, {'photo_id': 1349698310, 'portfolio_id': 22000728}, {'photo_id': 1349698229, 'portfolio_id': 22000728}, {'photo_id': 1349698162, 'portfolio_id': 22000728}, {'photo_id': 1349698076, 'portfolio_id': 22000728}, {'photo_id': 1349697560, 'portfolio_id': 22000728}, {'photo_id': 1349697513, 'portfolio_id': 22000728}, {'photo_id': 1349697460, 'portfolio_id': 22000728}, {'photo_id': 1349697412, 'portfolio_id': 22000728}, {'photo_id': 1349697355, 'portfolio_id': 22000728}, {'photo_id': 1349696806, 'portfolio_id': 22000728}, {'photo_id': 1349696770, 'portfolio_id': 22000728}, {'photo_id': 1349696698, 'portfolio_id': 22000728}, {'photo_id': 1349696646, 'portfolio_id': 22000728}] map_portfolio_id_photo_id: {22000728: [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990, 1349700974, 1349700972, 1349700971, 1349700960, 1349700938, 1349700935, 1349700933, 1349700931, 1349700928, 1349700900, 1349700898, 1349700896, 1349700893, 1349700875, 1349700870, 1349700868, 1349700863, 1349700860, 1349700853, 1349700829, 1349700828, 1349700824, 1349700811, 1349700652, 1349700630, 1349700615, 1349700563, 1349700529, 1349700479, 1349700094, 1349700044, 1349699956, 1349699874, 1349699829, 1349699756, 1349699102, 1349699053, 1349698975, 1349698488, 1349698423, 1349698310, 1349698229, 1349698162, 1349698076, 1349697560, 1349697513, 1349697460, 1349697412, 1349697355, 1349696806, 1349696770, 1349696698, 1349696646]} ##### 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.016429901123046875 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 3 02:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22000728) 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 : 22000728 get user id for portfolio 22000728 get sub ptf for main ptf 22000728, type 3726 and hashtags ['plastique', 'Carton_gris', 'papier', 'autre_refus', 'cartonnette', 'kraft', 'metal', 'Carton_brun', 'environnement', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse'] 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`=22000728 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','papier','autre_refus','cartonnette','kraft','metal','Carton_brun','environnement','mal_croppe','flou','Teint_Dans_La_Masse')) 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`=22000728 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','papier','autre_refus','cartonnette','kraft','metal','Carton_brun','environnement','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22000728, 'sub_port_id': 22000734, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496954, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'mal_croppe': {'main_port_id': 22000728, 'sub_port_id': 22000735, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496955, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'Carton_brun': {'main_port_id': 22000728, 'sub_port_id': 22000736, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496956, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'environnement': {'main_port_id': 22000728, 'sub_port_id': 22000737, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496957, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'metal': {'main_port_id': 22000728, 'sub_port_id': 22000738, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496958, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'autre_refus': {'main_port_id': 22000728, 'sub_port_id': 22000739, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496959, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'plastique': {'main_port_id': 22000728, 'sub_port_id': 22000740, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496960, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'papier': {'main_port_id': 22000728, 'sub_port_id': 22000741, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496961, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22000728, 'sub_port_id': 22000742, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496962, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'flou': {'main_port_id': 22000728, 'sub_port_id': 22000743, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496963, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'Carton_gris': {'main_port_id': 22000728, 'sub_port_id': 22000744, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496964, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}, 'cartonnette': {'main_port_id': 22000728, 'sub_port_id': 22000745, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496965, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22000734 , 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=22000728 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 (22000734) result : ((1349700000,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000735 , 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=22000728 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 (22000735) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000736 , 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=22000728 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 (22000736) result : ((1349698894,), (1349699942,), (1349699992,), (1349700786,), (1349700887,), (1349700946,), (1349700961,), (1349700962,), (1349700963,), (1349700964,), (1349700965,), (1349701017,), (1349701018,), (1349701019,), (1349701027,), (1349701028,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000737 , 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=22000728 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 (22000737) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000738 , 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=22000728 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 (22000738) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000739 , 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=22000728 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 (22000739) result : ((1349698786,), (1349698787,), (1349699967,), (1349700769,), (1349700881,), (1349700882,), (1349700884,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000740 , 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=22000728 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 (22000740) result : ((1349700967,), (1349700968,), (1349700969,), (1349700970,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000741 , 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=22000728 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 (22000741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000742 , 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=22000728 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 (22000742) result : ((1349698766,), (1349698767,), (1349699937,), (1349699957,), (1349699958,), (1349699959,), (1349699961,), (1349700015,), (1349700666,), (1349700763,), (1349700765,), (1349700880,), (1349700951,), (1349700952,), (1349700953,), (1349701023,), (1349701030,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000743 , 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=22000728 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 (22000743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000744 , 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=22000728 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 (22000744) result : ((1349698831,), (1349698835,), (1349699939,), (1349699940,), (1349699977,), (1349699979,), (1349700049,), (1349700050,), (1349700053,), (1349700054,), (1349700885,), (1349700886,), (1349700955,), (1349700956,), (1349700957,), (1349700958,), (1349701012,), (1349701013,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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 22000745 , 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=22000728 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 (22000745) result : ((1349699987,), (1349700779,), (1349700959,), (1349701014,), (1349701015,), (1349701025,), (1349701026,), (1349701031,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000728) result : ((1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) 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 (1349700900) 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`=22000728 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','papier','autre_refus','cartonnette','kraft','metal','Carton_brun','environnement','mal_croppe','flou','Teint_Dans_La_Masse')) 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`=22000728 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','papier','autre_refus','cartonnette','kraft','metal','Carton_brun','environnement','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22000728, 'sub_port_id': 22000746, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496966, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'mal_croppe': {'main_port_id': 22000728, 'sub_port_id': 22000747, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496967, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'Carton_brun': {'main_port_id': 22000728, 'sub_port_id': 22000748, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496968, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'environnement': {'main_port_id': 22000728, 'sub_port_id': 22000749, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496969, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'metal': {'main_port_id': 22000728, 'sub_port_id': 22000750, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496970, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'autre_refus': {'main_port_id': 22000728, 'sub_port_id': 22000751, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496971, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'plastique': {'main_port_id': 22000728, 'sub_port_id': 22000752, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496972, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'papier': {'main_port_id': 22000728, 'sub_port_id': 22000753, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496973, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22000728, 'sub_port_id': 22000754, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496974, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'flou': {'main_port_id': 22000728, 'sub_port_id': 22000755, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496975, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'Carton_gris': {'main_port_id': 22000728, 'sub_port_id': 22000756, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496976, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}, 'cartonnette': {'main_port_id': 22000728, 'sub_port_id': 22000757, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14496977, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22000757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22000745 lien utilise dans velours : https://www.fotonower.com/velours/22000746,22000747,22000748,22000749,22000750,22000751,22000752,22000753,22000754,22000755,22000756,22000757?tags=kraft,mal_croppe,Carton_brun,environnement,metal,autre_refus,plastique,papier,Teint_Dans_La_Masse,flou,Carton_gris,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22000728]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] map_info['map_portfolio_photo'] : {22000728: [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990, 1349700974, 1349700972, 1349700971, 1349700960, 1349700938, 1349700935, 1349700933, 1349700931, 1349700928, 1349700900, 1349700898, 1349700896, 1349700893, 1349700875, 1349700870, 1349700868, 1349700863, 1349700860, 1349700853, 1349700829, 1349700828, 1349700824, 1349700811, 1349700652, 1349700630, 1349700615, 1349700563, 1349700529, 1349700479, 1349700094, 1349700044, 1349699956, 1349699874, 1349699829, 1349699756, 1349699102, 1349699053, 1349698975, 1349698488, 1349698423, 1349698310, 1349698229, 1349698162, 1349698076, 1349697560, 1349697513, 1349697460, 1349697412, 1349697355, 1349696806, 1349696770, 1349696698, 1349696646]} final : False mtd_id 4302 list_pids : [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] Looping around the photos to save general results len do output : 1 /22000728. 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, '2718576') ('4302', '22000728', '1349701040', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701038', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701037', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701035', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701003', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700999', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700996', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700993', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700990', None, None, None, None, None, '2718576') 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', None, '22000728', "{'kraft': 22000734, 'mal_croppe': 22000735, 'Carton_brun': 22000736, 'environnement': 22000737, 'metal': 22000738, 'autre_refus': 22000739, 'plastique': 22000740, 'papier': 22000741, 'Teint_Dans_La_Masse': 22000742, 'flou': 22000743, 'Carton_gris': 22000744, 'cartonnette': 22000745}", None, None, None, None, '2718576'), ('4302', '22000728', '1349701040', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701038', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701037', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701035', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701003', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700999', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700996', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700993', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700990', None, None, None, None, None, '2718576')] time used for this insertion : 0.013859033584594727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.532076358795166 time spend to save output : 0.014131546020507812 total time spend for step 1 : 0.5462079048156738 step2:final Thu Apr 3 02:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22000728) 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 22000728 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349696806,1349696770,1349696698,1349696646,1349697560,1349697513,1349697460,1349697412,1349697355,1349698488,1349698423,1349698310,1349698229,1349698162,1349698076,1349699102,1349699053,1349698975,1349699874,1349699829,1349699756,1349700094,1349700044,1349699956,1349700652,1349700630,1349700615,1349700563,1349700529,1349700479,1349700829,1349700828,1349700824,1349700811,1349700875,1349700870,1349700868,1349700863,1349700860,1349700853,1349700900,1349700898,1349700896,1349700893,1349700938,1349700935,1349700933,1349700931,1349700928,1349700974,1349700972,1349700971,1349700960,1349701003,1349700999,1349700996,1349700993,1349700990,1349701040,1349701038,1349701037,1349701035); 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([22000728]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} new output for save of step final : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] map_info['map_portfolio_photo'] : {22000728: [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990, 1349700974, 1349700972, 1349700971, 1349700960, 1349700938, 1349700935, 1349700933, 1349700931, 1349700928, 1349700900, 1349700898, 1349700896, 1349700893, 1349700875, 1349700870, 1349700868, 1349700863, 1349700860, 1349700853, 1349700829, 1349700828, 1349700824, 1349700811, 1349700652, 1349700630, 1349700615, 1349700563, 1349700529, 1349700479, 1349700094, 1349700044, 1349699956, 1349699874, 1349699829, 1349699756, 1349699102, 1349699053, 1349698975, 1349698488, 1349698423, 1349698310, 1349698229, 1349698162, 1349698076, 1349697560, 1349697513, 1349697460, 1349697412, 1349697355, 1349696806, 1349696770, 1349696698, 1349696646]} final : False mtd_id 4302 list_pids : [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] Looping around the photos to save general results len do output : 9 /1349701040.Didn't retrieve data . /1349701038.Didn't retrieve data . /1349701037.Didn't retrieve data . /1349701035.Didn't retrieve data . /1349701003.Didn't retrieve data . /1349700999.Didn't retrieve data . /1349700996.Didn't retrieve data . /1349700993.Didn't retrieve data . /1349700990.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, '2718576') ('4302', '22000728', '1349701040', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701038', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701037', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701035', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701003', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700999', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700996', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700993', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700990', None, None, None, None, None, '2718576') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22000728', '1349701040', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349701038', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349701037', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349701035', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349701003', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349700999', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349700996', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349700993', '0.0552059410865308', None, None, None, None, '2718576'), ('4302', '22000728', '1349700990', '0.0552059410865308', None, None, None, None, '2718576')] time used for this insertion : 0.014352560043334961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07586336135864258 time spend to save output : 0.014817953109741211 total time spend for step 2 : 0.09068131446838379 step3:velours_tree Thu Apr 3 02:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22000728: [{'kraft': 22000734, 'mal_croppe': 22000735, 'Carton_brun': 22000736, 'environnement': 22000737, 'metal': 22000738, 'autre_refus': 22000739, 'plastique': 22000740, 'papier': 22000741, 'Teint_Dans_La_Masse': 22000742, 'flou': 22000743, 'Carton_gris': 22000744, 'cartonnette': 22000745}]} input_args_next_step : {22000728: ()} output_args : {22000728: [{'kraft': 22000734, 'mal_croppe': 22000735, 'Carton_brun': 22000736, 'environnement': 22000737, 'metal': 22000738, 'autre_refus': 22000739, 'plastique': 22000740, 'papier': 22000741, 'Teint_Dans_La_Masse': 22000742, 'flou': 22000743, 'Carton_gris': 22000744, 'cartonnette': 22000745}]} args : 22000728 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 : ({'kraft': 22000734, 'mal_croppe': 22000735, 'Carton_brun': 22000736, 'environnement': 22000737, 'metal': 22000738, 'autre_refus': 22000739, 'plastique': 22000740, 'papier': 22000741, 'Teint_Dans_La_Masse': 22000742, 'flou': 22000743, 'Carton_gris': 22000744, 'cartonnette': 22000745},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22000728) 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([22000728]) 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.45341968536376953 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.4534733295440674 step4:send_mail_cod Thu Apr 3 02:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} input_args_next_step : {1349701040: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349701040 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349701038 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349701037 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349701035 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349701003 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349700999 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349700996 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349700993 depend.output_id : 0 input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ()} output_args : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',)} args : 1349700990 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 : {22000728: [{'kraft': 22000734, 'mal_croppe': 22000735, 'Carton_brun': 22000736, 'environnement': 22000737, 'metal': 22000738, 'autre_refus': 22000739, 'plastique': 22000740, 'papier': 22000741, 'Teint_Dans_La_Masse': 22000742, 'flou': 22000743, 'Carton_gris': 22000744, 'cartonnette': 22000745}]} input_args_next_step : {1349701040: ('0.0552059410865308',), 1349701038: ('0.0552059410865308',), 1349701037: ('0.0552059410865308',), 1349701035: ('0.0552059410865308',), 1349701003: ('0.0552059410865308',), 1349700999: ('0.0552059410865308',), 1349700996: ('0.0552059410865308',), 1349700993: ('0.0552059410865308',), 1349700990: ('0.0552059410865308',), 22000728: ()} output_args : {22000728: [{'kraft': 22000734, 'mal_croppe': 22000735, 'Carton_brun': 22000736, 'environnement': 22000737, 'metal': 22000738, 'autre_refus': 22000739, 'plastique': 22000740, 'papier': 22000741, 'Teint_Dans_La_Masse': 22000742, 'flou': 22000743, 'Carton_gris': 22000744, 'cartonnette': 22000745}]} args : 22000728 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 :10, first value : ('0.0552059410865308',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22000728) 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 (1349701040,1349701038,1349701037,1349701035,1349701003,1349700999,1349700996,1349700993,1349700990) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349700990 begin to download photo : 1349700996 begin to download photo : 1349701003 begin to download photo : 1349701037 begin to download photo : 1349701040 download finish for photo 1349700990 begin to download photo : 1349700993 download finish for photo 1349701040 download finish for photo 1349701037 begin to download photo : 1349701038 download finish for photo 1349701003 begin to download photo : 1349701035 download finish for photo 1349700996 begin to download photo : 1349700999 download finish for photo 1349700993 download finish for photo 1349700999 download finish for photo 1349701035 download finish for photo 1349701038 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22000728_03-04-2025_02_14_59.pdf 22000734 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=22000734 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349700000: '1743638725_4142496_1349698229_d555c4f9011dd02b0a882f0313205740_rle_crop_3745520950_0.png'} change filename to text .imagette220007341743639299/ imagette220007341743639299/1743638725_4142496_1349698229_d555c4f9011dd02b0a882f0313205740_rle_crop_3745520950_0.png.png imagette220007351743639299/ imagette220007381743639299/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a0f4774c9f6e93164f1e764d4a6185c5_87570622.png imagette220007341743639299 22000735 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=22000735 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220007351743639299 22000738 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=22000738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220007381743639299 22000739 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=22000739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349698786: '1743638592_1712331_1349696806_268f8f638909cddf401f7e1ad50a884e_rle_crop_3745519903_0.png', 1349698787: '1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519981_0.png', 1349699967: '1743638725_4142496_1349699102_0df470e4c7f4203ac978c4ff4da89b0b_rle_crop_3745520914_0.png', 1349700769: '1743638847_4145322_1349699756_a8b4d555e034ac69920943c8f89689c6_rle_crop_3745521360_0.png', 1349700881: '1743638951_1718664_1349699956_7602aa5af6d08daafcc6bb066cc77fa0_rle_crop_3745523343_0.png', 1349700882: '1743638951_1718664_1349699956_7602aa5af6d08daafcc6bb066cc77fa0_rle_crop_3745523339_0.png', 1349700884: '1743638942_1718425_1349700630_0ba07d8b4c1bbc94a95944ad89d17222_rle_crop_3745523277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1b8a7dcd63e780dca85e641aeebb8e87_9671187.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bf18c98436fd5536538f8067104f909b_88679057.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/457057166c958589e366ab5fee4fbac4_94477702.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c5d369e4cd77eabb9c9256b71c72f1cc_71360928.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e4f92e1103224d1d1d1a24b2609dfc11_18920357.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f3d3315aa3382303cceeea1d6ca3fcb7_35646408.png change filename to text .imagette220007391743639299/ imagette220007391743639299/1743638942_1718425_1349700630_0ba07d8b4c1bbc94a95944ad89d17222_rle_crop_3745523277_0.png.png imagette220007391743639299/1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519981_0.png.png imagette220007391743639299/1743638951_1718664_1349699956_7602aa5af6d08daafcc6bb066cc77fa0_rle_crop_3745523339_0.png.png imagette220007391743639299/1743638592_1712331_1349696806_268f8f638909cddf401f7e1ad50a884e_rle_crop_3745519903_0.png.png imagette220007391743639299/1743638847_4145322_1349699756_a8b4d555e034ac69920943c8f89689c6_rle_crop_3745521360_0.png.png imagette220007391743639299/1743638725_4142496_1349699102_0df470e4c7f4203ac978c4ff4da89b0b_rle_crop_3745520914_0.png.png imagette220007391743639299/1743638951_1718664_1349699956_7602aa5af6d08daafcc6bb066cc77fa0_rle_crop_3745523343_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/efcb568f27ec28839d3607bbf46f7414_73625612.png imagette220007391743639299 22000740 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=22000740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349700967: '1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525748_0.png', 1349700968: '1743639072_1721057_1349700868_5a8582b78bada8114f3753c50d2f8663_rle_crop_3745525773_0.png', 1349700969: '1743639072_1721057_1349700860_f80649ea7d2c0c9dd82bc8667d416b0b_rle_crop_3745525803_0.png', 1349700970: '1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525836_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8382aee3146693532f37e1348cfa90c4_83153163.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c28eed0c8eee3a45c72771c1c6ddd12e_4858894.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/40aca49d68425ab1bf2ba8b14131493c_53903685.png change filename to text .imagette220007401743639299/ imagette220007401743639299/1743639072_1721057_1349700868_5a8582b78bada8114f3753c50d2f8663_rle_crop_3745525773_0.png.png imagette220007401743639299/1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525836_0.png.png imagette220007401743639299/1743639072_1721057_1349700860_f80649ea7d2c0c9dd82bc8667d416b0b_rle_crop_3745525803_0.png.png imagette220007401743639299/1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525748_0.png.png imagette220007431743639300/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/038edaefc7bfaaaf05ebcdb96e711797_77504207.png imagette220007401743639299 22000743 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=22000743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220007431743639300 22000745 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=22000745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349699987: '1743638725_4142496_1349698229_d555c4f9011dd02b0a882f0313205740_rle_crop_3745520946_0.png', 1349700779: '1743638847_4145322_1349699829_34644d21a38f933eb58af709f17ddd71_rle_crop_3745521349_0.png', 1349700959: '1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525745_0.png', 1349701014: '1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527615_0.png', 1349701015: '1743639193_1723457_1349700960_4ba3ffcc87f8ca5c53a10dc4fe720cb0_rle_crop_3745527711_0.png', 1349701025: '1743639207_4155045_1349700933_ca4d76211e4b6bf68fee056162f193ad_rle_crop_3745527745_0.png', 1349701026: '1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527758_0.png', 1349701031: '1743639212_1723775_1349700898_50f5a5c9da4c1954ff7e371f9f5d3cf2_rle_crop_3745527800_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3063bd718dd566ee75ca24ee4eee0256_79798511.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/10c5f9e69b594b7f9b0ea7401f417052_4594931.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/97f7aa5f596da45dfb257cf5492eed22_20398713.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0c7673a508ffef0fd66650ae52f29c39_30441354.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b710c52c5a21a6e15bf6023cb757b100_78652518.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9244018e69dd94456f35d2206763a47d_18493480.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b4188355bd750f44f75cd429c15efb23_76244558.png change filename to text .imagette220007451743639300/ imagette220007451743639300/1743638847_4145322_1349699829_34644d21a38f933eb58af709f17ddd71_rle_crop_3745521349_0.png.png imagette220007451743639300/1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525745_0.png.png imagette220007451743639300/1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527758_0.png.png imagette220007451743639300/1743639193_1723457_1349700960_4ba3ffcc87f8ca5c53a10dc4fe720cb0_rle_crop_3745527711_0.png.png imagette220007451743639300/1743639212_1723775_1349700898_50f5a5c9da4c1954ff7e371f9f5d3cf2_rle_crop_3745527800_0.png.png imagette220007451743639300/1743638725_4142496_1349698229_d555c4f9011dd02b0a882f0313205740_rle_crop_3745520946_0.png.png imagette220007451743639300/1743639207_4155045_1349700933_ca4d76211e4b6bf68fee056162f193ad_rle_crop_3745527745_0.png.png imagette220007451743639300/1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527615_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/88d73b51c835f7f8cb2c6ff166d76234_15583735.png imagette220007451743639300 22000736 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=22000736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349698894: '1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519985_0.png', 1349699942: '1743638712_1714398_1349699053_d32eb18f4ebe1b15073baaec443933aa_rle_crop_3745520543_0.png', 1349699992: '1743638725_4142496_1349698162_620e7374d31ddd210c9b2266483a37c3_rle_crop_3745520958_0.png', 1349700786: '1743638847_4145322_1349699756_a8b4d555e034ac69920943c8f89689c6_rle_crop_3745521361_0.png', 1349700887: '1743638942_1718425_1349700479_fec6f4259fb713c2051407bf7d71995c_rle_crop_3745523355_0.png', 1349700946: '1743639085_4152277_1349700829_d21d183da6ba74cab95b6222fed6fbcd_rle_crop_3745525728_0.png', 1349700961: '1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525751_0.png', 1349700962: '1743639072_1721057_1349700868_5a8582b78bada8114f3753c50d2f8663_rle_crop_3745525775_0.png', 1349700963: '1743639072_1721057_1349700863_12422cdae2c3b81de88fed3562e30558_rle_crop_3745525787_0.png', 1349700964: '1743639072_1721057_1349700860_f80649ea7d2c0c9dd82bc8667d416b0b_rle_crop_3745525806_0.png', 1349700965: '1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525844_0.png', 1349701017: '1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527611_0.png', 1349701018: '1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527614_0.png', 1349701019: '1743639193_1723457_1349700960_4ba3ffcc87f8ca5c53a10dc4fe720cb0_rle_crop_3745527713_0.png', 1349701027: '1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527767_0.png', 1349701028: '1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4e3d6c65ae83fded2c1bc71e62d579d8_40139713.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ac421546c5a4ff94719d065f9cb06d47_90573845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7fc8a0b1ff4731ad1e2012c939681205_65639121.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/966af51672273b92dcc300512ae72717_22478945.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/80883702eed13f9e3571f82dc5511c69_48404610.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f40e2a13955cf4bb6ad63b8f7c04fcf3_62819002.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1cf57fa24c9bd7658d0fd60ce8378680_46333575.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/29853c5b5ae01e0b79bf1653cac044a6_70504024.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/05f8ca6a47b48280b12f01bea6a2a32a_6676319.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/723a52c4cdfeda4f46486f3841243560_15924710.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/097e7618b389715631ef979c5d8e1443_68249852.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f16d64e51bba0e3d03b3130c41939582_99374673.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3969a064321a77bbe602f5cc4f55af12_23312743.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e9cd0ec378d92667dbb281a21307191a_34933651.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4a32255045d4e0d82f239233cc72f644_85209503.png change filename to text .imagette220007361743639300/ imagette220007361743639300/1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527763_0.png.png imagette220007361743639300/1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527611_0.png.png imagette220007361743639300/1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525844_0.png.png imagette220007361743639300/1743639072_1721057_1349700860_f80649ea7d2c0c9dd82bc8667d416b0b_rle_crop_3745525806_0.png.png imagette220007361743639300/1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519985_0.png.png imagette220007361743639300/1743638847_4145322_1349699756_a8b4d555e034ac69920943c8f89689c6_rle_crop_3745521361_0.png.png imagette220007361743639300/1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527767_0.png.png imagette220007361743639300/1743638712_1714398_1349699053_d32eb18f4ebe1b15073baaec443933aa_rle_crop_3745520543_0.png.png imagette220007361743639300/1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527614_0.png.png imagette220007361743639300/1743639085_4152277_1349700829_d21d183da6ba74cab95b6222fed6fbcd_rle_crop_3745525728_0.png.png imagette220007361743639300/1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525751_0.png.png imagette220007361743639300/1743638942_1718425_1349700479_fec6f4259fb713c2051407bf7d71995c_rle_crop_3745523355_0.png.png imagette220007361743639300/1743639072_1721057_1349700863_12422cdae2c3b81de88fed3562e30558_rle_crop_3745525787_0.png.png imagette220007361743639300/1743639193_1723457_1349700960_4ba3ffcc87f8ca5c53a10dc4fe720cb0_rle_crop_3745527713_0.png.png imagette220007361743639300/1743639072_1721057_1349700868_5a8582b78bada8114f3753c50d2f8663_rle_crop_3745525775_0.png.png imagette220007361743639300/1743638725_4142496_1349698162_620e7374d31ddd210c9b2266483a37c3_rle_crop_3745520958_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/35c1b28ae10938a638fce5a53dca7324_97401974.png imagette220007361743639300 22000742 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=22000742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349700666: '1743638830_1716508_1349699874_4af399e9a134953ed1da2c5758689a02_rle_crop_3745521290_0.png', 1349701030: '1743639212_1723775_1349700898_50f5a5c9da4c1954ff7e371f9f5d3cf2_rle_crop_3745527801_0.png', 1349701023: '1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527762_0.png', 1349700953: '1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525843_0.png', 1349700952: '1743639072_1721057_1349700860_f80649ea7d2c0c9dd82bc8667d416b0b_rle_crop_3745525815_0.png', 1349700951: '1743639072_1721057_1349700863_12422cdae2c3b81de88fed3562e30558_rle_crop_3745525792_0.png', 1349700880: '1743638951_1718664_1349699956_7602aa5af6d08daafcc6bb066cc77fa0_rle_crop_3745523342_0.png', 1349700765: '1743638847_4145322_1349699756_a8b4d555e034ac69920943c8f89689c6_rle_crop_3745521358_0.png', 1349700763: '1743638847_4145322_1349699829_34644d21a38f933eb58af709f17ddd71_rle_crop_3745521352_0.png', 1349698766: '1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519987_0.png', 1349700015: '1743638733_1714805_1349697460_3a8a563ce6d879ddeba68231e8164b33_rle_crop_3745521092_0.png', 1349699961: '1743638725_4142496_1349698076_c8d42346c7da1523f1f19eb911b3c4da_rle_crop_3745521018_0.png', 1349699959: '1743638725_4142496_1349698162_620e7374d31ddd210c9b2266483a37c3_rle_crop_3745520956_0.png', 1349699958: '1743638725_4142496_1349698310_aa9855c607e7cfa36ea6d1bcc356ffac_rle_crop_3745520931_0.png', 1349699957: '1743638725_4142496_1349699102_0df470e4c7f4203ac978c4ff4da89b0b_rle_crop_3745520919_0.png', 1349699937: '1743638712_1714398_1349699053_d32eb18f4ebe1b15073baaec443933aa_rle_crop_3745520544_0.png', 1349698767: '1743638592_1712331_1349696646_06454c3ac5d953b37a1aff046f820ae9_rle_crop_3745519996_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e3d8381af4f5767cc5971506aa1023e8_86063771.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e622b41f3f4239c54466e14aacff241a_1445742.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/77513df0aab062338b0472f2885d2279_26941577.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/65732076a1f198b8f1e86ed8197a54a0_79583327.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/999ef69c027018dbf167fe3ec5711acb_86543685.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/223a323530e050d1b6fe3c4e2c0002bf_57379198.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/175460dece616dc8de0f22eccce452b6_49115584.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3ad2128ba386262a6f3e09ae170adb5a_15032132.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1f5f6b89880d12f33587e4a81aeace6f_88276243.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/000579bd71074fe2cdf379041a0afb70_67129551.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f7437d23ce88965bdcf9e095d7fe4190_56445896.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/279f7783a1a250883993a65833e454b3_40380161.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/66b6148c3070f6377970f7d6a8907992_87976480.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8e8fe8420afbb987b906ea1a3c19df32_69705106.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/907e8b37de975749331f0fe077c8ccd7_91888241.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7c4038e0055b7277757b4aa7d6d3940e_79775258.png change filename to text .imagette220007421743639301/ imagette220007421743639301/1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525843_0.png.png imagette220007421743639301/1743638712_1714398_1349699053_d32eb18f4ebe1b15073baaec443933aa_rle_crop_3745520544_0.png.png imagette220007421743639301/1743638725_4142496_1349698076_c8d42346c7da1523f1f19eb911b3c4da_rle_crop_3745521018_0.png.png imagette220007421743639301/1743639072_1721057_1349700860_f80649ea7d2c0c9dd82bc8667d416b0b_rle_crop_3745525815_0.png.png imagette220007421743639301/1743639212_1723775_1349700898_50f5a5c9da4c1954ff7e371f9f5d3cf2_rle_crop_3745527801_0.png.png imagette220007421743639301/1743638725_4142496_1349699102_0df470e4c7f4203ac978c4ff4da89b0b_rle_crop_3745520919_0.png.png imagette220007421743639301/1743638725_4142496_1349698162_620e7374d31ddd210c9b2266483a37c3_rle_crop_3745520956_0.png.png imagette220007421743639301/1743639207_4155045_1349700931_9b3cb9b309ef15c84c3266719c2025b5_rle_crop_3745527762_0.png.png imagette220007421743639301/1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519987_0.png.png imagette220007421743639301/1743638733_1714805_1349697460_3a8a563ce6d879ddeba68231e8164b33_rle_crop_3745521092_0.png.png imagette220007421743639301/1743638725_4142496_1349698310_aa9855c607e7cfa36ea6d1bcc356ffac_rle_crop_3745520931_0.png.png imagette220007421743639301/1743638847_4145322_1349699829_34644d21a38f933eb58af709f17ddd71_rle_crop_3745521352_0.png.png imagette220007421743639301/1743638951_1718664_1349699956_7602aa5af6d08daafcc6bb066cc77fa0_rle_crop_3745523342_0.png.png imagette220007421743639301/1743638830_1716508_1349699874_4af399e9a134953ed1da2c5758689a02_rle_crop_3745521290_0.png.png imagette220007421743639301/1743639072_1721057_1349700863_12422cdae2c3b81de88fed3562e30558_rle_crop_3745525792_0.png.png imagette220007421743639301/1743638847_4145322_1349699756_a8b4d555e034ac69920943c8f89689c6_rle_crop_3745521358_0.png.png imagette220007421743639301/1743638592_1712331_1349696646_06454c3ac5d953b37a1aff046f820ae9_rle_crop_3745519996_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9a29157035aec3c3feeb7dc900baf5c7_36207738.png imagette220007421743639301 22000744 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=22000744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349700054: '1743638733_1714805_1349697513_d48b2dc02fc854196444481fb7611dfe_rle_crop_3745521032_0.png', 1349701013: '1743639193_1723457_1349700960_4ba3ffcc87f8ca5c53a10dc4fe720cb0_rle_crop_3745527709_0.png', 1349701012: '1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527617_0.png', 1349700958: '1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525831_0.png', 1349700957: '1743639091_1721530_1349700828_d000bd9b04095f50977f10614847521a_rle_crop_3745525854_0.png', 1349700956: '1743639072_1721057_1349700868_5a8582b78bada8114f3753c50d2f8663_rle_crop_3745525769_0.png', 1349700955: '1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525749_0.png', 1349700886: '1743638942_1718425_1349700630_0ba07d8b4c1bbc94a95944ad89d17222_rle_crop_3745523269_0.png', 1349700885: '1743638951_1718664_1349700652_c41e02c740b35b36f67e5152ed8ea2f0_rle_crop_3745523301_0.png', 1349698831: '1743638592_1712331_1349696770_e0f265654053cd739e899fb3a188b618_rle_crop_3745519946_0.png', 1349700053: '1743638733_1714805_1349697513_d48b2dc02fc854196444481fb7611dfe_rle_crop_3745521037_0.png', 1349700050: '1743638733_1714805_1349697513_d48b2dc02fc854196444481fb7611dfe_rle_crop_3745521036_0.png', 1349700049: '1743638733_1714805_1349698488_92b3dec317f3194ed8f3de796b822c2e_rle_crop_3745521027_0.png', 1349699979: '1743638725_4142496_1349698162_620e7374d31ddd210c9b2266483a37c3_rle_crop_3745520959_0.png', 1349699977: '1743638725_4142496_1349699102_0df470e4c7f4203ac978c4ff4da89b0b_rle_crop_3745520912_0.png', 1349699940: '1743638712_1714398_1349698975_2554bae8abfa3c9abdfe85ffd3a4825b_rle_crop_3745520606_0.png', 1349699939: '1743638712_1714398_1349698975_2554bae8abfa3c9abdfe85ffd3a4825b_rle_crop_3745520607_0.png', 1349698835: '1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519980_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b09428c9424a5f537a2585c9d53b8037_95722483.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/18016047dca38bf25347fd3596916607_87221816.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/423787f9317bd238ae71c8820bc4850c_79036865.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/46c69a4521a1be3e5af591f7817b09ac_88009324.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/31e6ada0841b64cb7ce934ade7e84f94_78654532.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eeb897f21ec54839dce24e0e994f6667_76532285.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e6393c4dc44b615d7a38c42eb9e469a5_20871834.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fcc449995a174f2764f200aff81cfd5d_94749014.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/929198f40bd6be33440957f5e0c2da7c_19488969.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f543b1f93eec422dd9bfab1b353db2a9_52600053.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ee8350580e481da53df83c63a88e0848_92540157.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4309b5832517aa2ded7238035c2e60e3_56585816.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/414566623fe0a22f1afcab91f89ac042_79247824.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/af2b64592e1377b503af27435e9afa5a_16986559.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eaf55986bba6f0ea9bccb20b192483ff_85534094.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bdf44b44b4f0fe45953d32aef66457fb_98320993.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a407534081412a1ffaf6bbd075cc6323_79175487.png change filename to text .imagette220007441743639302/ imagette220007441743639302/1743638725_4142496_1349699102_0df470e4c7f4203ac978c4ff4da89b0b_rle_crop_3745520912_0.png.png imagette220007441743639302/1743639193_1723457_1349700972_b4f7ede0603f3e8aafcb56851e58a0dd_rle_crop_3745527617_0.png.png imagette220007441743639302/1743638733_1714805_1349697513_d48b2dc02fc854196444481fb7611dfe_rle_crop_3745521036_0.png.png imagette220007441743639302/1743639072_1721057_1349700868_5a8582b78bada8114f3753c50d2f8663_rle_crop_3745525769_0.png.png imagette220007441743639302/1743639193_1723457_1349700960_4ba3ffcc87f8ca5c53a10dc4fe720cb0_rle_crop_3745527709_0.png.png imagette220007441743639302/1743638942_1718425_1349700630_0ba07d8b4c1bbc94a95944ad89d17222_rle_crop_3745523269_0.png.png imagette220007441743639302/1743638712_1714398_1349698975_2554bae8abfa3c9abdfe85ffd3a4825b_rle_crop_3745520606_0.png.png imagette220007441743639302/1743638733_1714805_1349698488_92b3dec317f3194ed8f3de796b822c2e_rle_crop_3745521027_0.png.png imagette220007441743639302/1743639072_1721057_1349700853_adc00cac6e73fe523642e4939c5e7415_rle_crop_3745525831_0.png.png imagette220007441743639302/1743639091_1721530_1349700828_d000bd9b04095f50977f10614847521a_rle_crop_3745525854_0.png.png imagette220007441743639302/1743638733_1714805_1349697513_d48b2dc02fc854196444481fb7611dfe_rle_crop_3745521032_0.png.png imagette220007441743639302/1743638725_4142496_1349698162_620e7374d31ddd210c9b2266483a37c3_rle_crop_3745520959_0.png.png imagette220007441743639302/1743638592_1712331_1349696698_cd81e0c7fc31a49ab91fb5721758a6dd_rle_crop_3745519980_0.png.png imagette220007441743639302/1743638592_1712331_1349696770_e0f265654053cd739e899fb3a188b618_rle_crop_3745519946_0.png.png imagette220007441743639302/1743638951_1718664_1349700652_c41e02c740b35b36f67e5152ed8ea2f0_rle_crop_3745523301_0.png.png imagette220007441743639302/1743639072_1721057_1349700870_ae8ed68dcbc8c3b2cc2c7256c12e9886_rle_crop_3745525749_0.png.png imagette220007441743639302/1743638712_1714398_1349698975_2554bae8abfa3c9abdfe85ffd3a4825b_rle_crop_3745520607_0.png.png imagette220007441743639302/1743638733_1714805_1349697513_d48b2dc02fc854196444481fb7611dfe_rle_crop_3745521037_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d75de5127a9e2f704311e05fccf69d1b_47586444.png imagette220007441743639302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22000728 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22000746,22000747,22000748,22000749,22000750,22000751,22000752,22000753,22000754,22000755,22000756,22000757?tags=kraft,mal_croppe,Carton_brun,environnement,metal,autre_refus,plastique,papier,Teint_Dans_La_Masse,flou,Carton_gris,cartonnette your option no_mail is active, we will not send the real mail to your client args[1349701040] : ('0.0552059410865308',) no score found for photo 1349701040 We are sending mail with results at report@fotonower.com args[1349701038] : ('0.0552059410865308',) no score found for photo 1349701038 We are sending mail with results at report@fotonower.com args[1349701037] : ('0.0552059410865308',) no score found for photo 1349701037 We are sending mail with results at report@fotonower.com args[1349701035] : ('0.0552059410865308',) no score found for photo 1349701035 We are sending mail with results at report@fotonower.com args[1349701003] : ('0.0552059410865308',) no score found for photo 1349701003 We are sending mail with results at report@fotonower.com args[1349700999] : ('0.0552059410865308',) no score found for photo 1349700999 We are sending mail with results at report@fotonower.com args[1349700996] : ('0.0552059410865308',) no score found for photo 1349700996 We are sending mail with results at report@fotonower.com args[1349700993] : ('0.0552059410865308',) no score found for photo 1349700993 We are sending mail with results at report@fotonower.com args[1349700990] : ('0.0552059410865308',) no score found for photo 1349700990 We are sending mail with results at report@fotonower.com refus_total : 0.0552059410865308 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=22000728 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_P22000728_03-04-2025_02_14_59.pdf results_Auto_P22000728_03-04-2025_02_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_14_59.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','22000728','results_Auto_P22000728_03-04-2025_02_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_14_59.pdf','pdf','','0.32','0.0552059410865308') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22000728]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] map_info['map_portfolio_photo'] : {22000728: [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990, 1349700974, 1349700972, 1349700971, 1349700960, 1349700938, 1349700935, 1349700933, 1349700931, 1349700928, 1349700900, 1349700898, 1349700896, 1349700893, 1349700875, 1349700870, 1349700868, 1349700863, 1349700860, 1349700853, 1349700829, 1349700828, 1349700824, 1349700811, 1349700652, 1349700630, 1349700615, 1349700563, 1349700529, 1349700479, 1349700094, 1349700044, 1349699956, 1349699874, 1349699829, 1349699756, 1349699102, 1349699053, 1349698975, 1349698488, 1349698423, 1349698310, 1349698229, 1349698162, 1349698076, 1349697560, 1349697513, 1349697460, 1349697412, 1349697355, 1349696806, 1349696770, 1349696698, 1349696646]} final : False mtd_id 4302 list_pids : [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] 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, '2718576') ('4302', '22000728', '1349701040', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701038', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701037', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701035', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701003', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700999', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700996', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700993', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700990', None, None, None, None, None, '2718576') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22000728', '1349701040', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701038', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701037', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701035', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701003', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700999', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700996', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700993', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700990', None, None, None, None, None, '2718576')] time used for this insertion : 0.015580177307128906 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.938389778137207 time spend to save output : 0.015882015228271484 total time spend for step 4 : 5.9542717933654785 step5:split_time_score Thu Apr 3 02:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22000728'] 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 : [('22000728',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22000728) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349701040: {'path': 'temp/1743639299_609119_1349701040_dbae85ed48a847249bea201dd001e5c9.jpg', 'extension': 'jpg'}, 1349700990: {'path': 'temp/1743639299_609119_1349700990_857b338012f7f28acee05f68dc0e1b3a.jpg', 'extension': 'jpg'}, 1349700993: {'path': 'temp/1743639299_609119_1349700993_6096656a8edbcbd37bfc6025acfc0b8e.jpg', 'extension': 'jpg'}, 1349700996: {'path': 'temp/1743639299_609119_1349700996_ffb4331125cf5aac15dc5d6825d49e91.jpg', 'extension': 'jpg'}, 1349700999: {'path': 'temp/1743639299_609119_1349700999_9fad96d317620fca220db787a9f68746.jpg', 'extension': 'jpg'}, 1349701003: {'path': 'temp/1743639299_609119_1349701003_f0163863aeda353cdbe803da8c48658f.jpg', 'extension': 'jpg'}, 1349701035: {'path': 'temp/1743639299_609119_1349701035_5b7384970edc3c80c80d07c5f7ff8f76.jpg', 'extension': 'jpg'}, 1349701037: {'path': 'temp/1743639299_609119_1349701037_4e2a724424f324fb8cb1ba2574c04b51.jpg', 'extension': 'jpg'}, 1349701038: {'path': 'temp/1743639299_609119_1349701038_7ee55c5e0f3fd330f8b003694173bb25.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 = 22000728; (('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 = 22000728 group by h (('02', 62),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22000728 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 (22000728) 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 (22000728) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22000728 Nombre de photos uploadées : 62 / 23040 (0%) 03042025 22000728 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 03042025 22000728 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1349696806, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/268f8f638909cddf401f7e1ad50a884e.jpg', 'username': None, 'uploaded_at': 1743638468, 'text': 'image_03042025_02_00_14_10197.jpg'}, {'photo_id': 1349696770, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e0f265654053cd739e899fb3a188b618.jpg', 'username': None, 'uploaded_at': 1743638468, 'text': 'image_03042025_02_00_24_10141.jpg'}, {'photo_id': 1349696698, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cd81e0c7fc31a49ab91fb5721758a6dd.jpg', 'username': None, 'uploaded_at': 1743638468, 'text': 'image_03042025_02_00_34_10137.jpg'}, {'photo_id': 1349696646, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/06454c3ac5d953b37a1aff046f820ae9.jpg', 'username': None, 'uploaded_at': 1743638468, 'text': 'image_03042025_02_00_45_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 5.7220458984375e-06 elapsed_time : order_list_meta_photo_and_scores 1.33514404296875e-05 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003020763397216797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22000728, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024784088134765625 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1719964, 'mtr_portfolio_id': 21999983, 'dashboard_result_id': 9829186, '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_P21999983_03-04-2025_01_52_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999997, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1719964, 'mtr_portfolio_id': 22000337, 'dashboard_result_id': 9829187, '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_P22000337_03-04-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22000338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000349, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1719964, 'mtr_portfolio_id': 22000728, 'dashboard_result_id': 9829188, '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_P22000728_03-04-2025_02_13_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22000738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000745, '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 = 21999983 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': 2718512, 'mtr_portfolio_id': 21999983, 'created_at': datetime.datetime(2025, 4, 3, 1, 52, 59), 'result': '0.04185030088332276', 'result_long': None, 'result_double': None}] Qualite : 0.04185030088332276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21999983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21999983_03-04-2025_01_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21999983 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_P21999983_03-04-2025_01_52_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999997, 'pht': 3726}}" where mtr_portfolio_id = 21999983 and dashboard_run_id = 1719964 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`=21999983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9829186, 0.04185030088332276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21999983_03-04-2025_01_52_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21999986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21999987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21999988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21999989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21999990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21999991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21999992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21999993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21999994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21999995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21999996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21999997, '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 = 22000337 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': 2718552, 'mtr_portfolio_id': 22000337, 'created_at': datetime.datetime(2025, 4, 3, 2, 2, 59), 'result': '0.026519627169939112', 'result_long': None, 'result_double': None}] Qualite : 0.026519627169939112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22000337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000337_03-04-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22000337 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_P22000337_03-04-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22000338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000349, 'pht': 3726}}" where mtr_portfolio_id = 22000337 and dashboard_run_id = 1719964 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`=22000337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9829187, 0.026519627169939112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000337_03-04-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22000338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000349, '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 = 22000728 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': 2718576, 'mtr_portfolio_id': 22000728, 'created_at': datetime.datetime(2025, 4, 3, 2, 14, 58), 'result': '0.0552059410865308', 'result_long': None, 'result_double': None}] Qualite : 0.0552059410865308 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22000728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22000728 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_P22000728_03-04-2025_02_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22000738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000745, 'pht': 3726}}" where mtr_portfolio_id = 22000728 and dashboard_run_id = 1719964 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`=22000728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9829188, 0.0552059410865308, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22000738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000745, '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 (21999983,22000337,22000728) result : ((1349690884,), (1349691020,), (1349691031,), (1349691048,), (1349691060,), (1349691067,), (1349691118,), (1349691122,), (1349691145,), (1349691194,), (1349691215,), (1349691328,), (1349691332,), (1349691490,), (1349691502,), (1349691554,), (1349691614,), (1349691687,), (1349691711,), (1349691919,), (1349691927,), (1349691938,), (1349691943,), (1349691971,), (1349691982,), (1349692056,), (1349692060,), (1349692063,), (1349692067,), (1349692149,), (1349692195,), (1349692203,), (1349692208,), (1349692211,), (1349693746,), (1349693077,), (1349694011,), (1349694592,), (1349694615,), (1349694635,), (1349694689,), (1349694962,), (1349695007,), (1349695023,), (1349695027,), (1349695251,), (1349695291,), (1349695311,), (1349695312,), (1349695426,), (1349695455,), (1349695496,), (1349695533,), (1349695703,), (1349695727,), (1349695756,), (1349695782,), (1349695809,), (1349695830,), (1349696381,), (1349696390,), (1349696394,), (1349696399,), (1349696419,), (1349696921,), (1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22000728]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] map_info['map_portfolio_photo'] : {22000728: [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990, 1349700974, 1349700972, 1349700971, 1349700960, 1349700938, 1349700935, 1349700933, 1349700931, 1349700928, 1349700900, 1349700898, 1349700896, 1349700893, 1349700875, 1349700870, 1349700868, 1349700863, 1349700860, 1349700853, 1349700829, 1349700828, 1349700824, 1349700811, 1349700652, 1349700630, 1349700615, 1349700563, 1349700529, 1349700479, 1349700094, 1349700044, 1349699956, 1349699874, 1349699829, 1349699756, 1349699102, 1349699053, 1349698975, 1349698488, 1349698423, 1349698310, 1349698229, 1349698162, 1349698076, 1349697560, 1349697513, 1349697460, 1349697412, 1349697355, 1349696806, 1349696770, 1349696698, 1349696646]} final : True mtd_id 4302 list_pids : [1349701040, 1349701038, 1349701037, 1349701035, 1349701003, 1349700999, 1349700996, 1349700993, 1349700990] Looping around the photos to save general results len do output : 1 /22000728Didn'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, '2718576') ('4302', '22000728', '1349701040', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701038', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701037', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701035', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349701003', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700999', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700996', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700993', None, None, None, None, None, '2718576') ('4302', None, None, None, None, None, None, None, '2718576') ('4302', '22000728', '1349700990', None, None, None, None, None, '2718576') 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', None, '22000728', 'None', None, None, None, None, '2718576'), ('4302', '22000728', '1349701040', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701038', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701037', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701035', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349701003', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700999', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700996', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700993', None, None, None, None, None, '2718576'), ('4302', '22000728', '1349700990', None, None, None, None, None, '2718576')] time used for this insertion : 0.1345233917236328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.30521702766418457 time spend to save output : 0.13478326797485352 total time spend for step 5 : 0.4400002956390381 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 (2718576) 2.06user 2.56system 0:09.64elapsed 48%CPU (0avgtext+0avgdata 161352maxresident)k 49496inputs+15984outputs (201major+72718minor)pagefaults 0swaps