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 : 2328193 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 (2719657) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2719657) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012957 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2719657'] with mtr_portfolio_ids : ['22012957'] and first list_photo_ids : [] new path : /proc/2328193/ Name: python3 Umask: 0002 State: R (running) Tgid: 2328193 Ngid: 0 Pid: 2328193 PPid: 2328192 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2328193 NSpid: 2328193 NSpgid: 2321685 NSsid: 2321685 VmPeak: 1106832 kB VmSize: 1106832 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98052 kB VmRSS: 98052 kB RssAnon: 59776 kB RssFile: 38276 kB RssShmem: 0 kB VmData: 865580 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 66 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2328193', 'Ngid': '0', 'Pid': '2328193', 'PPid': '2328192', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2328193', 'NSpid': '2328193', 'NSpgid': '2321685', 'NSsid': '2321685', 'VmPeak': '1106832 kB', 'VmSize': '1106832 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98052 kB', 'VmRSS': '98052 kB', 'RssAnon': '59776 kB', 'RssFile': '38276 kB', 'RssShmem': '0 kB', 'VmData': '865580 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '66', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '2328193', '1106832', '0', '1106832', '865580', '98052', b'', 'marlene', '2719657') 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 (22012957) 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 (2719657 ) ) 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 (22012957) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349750134, 'portfolio_id': 22012957}, {'photo_id': 1349750129, 'portfolio_id': 22012957}, {'photo_id': 1349750119, 'portfolio_id': 22012957}, {'photo_id': 1349750116, 'portfolio_id': 22012957}, {'photo_id': 1349750078, 'portfolio_id': 22012957}, {'photo_id': 1349750073, 'portfolio_id': 22012957}, {'photo_id': 1349750070, 'portfolio_id': 22012957}, {'photo_id': 1349750065, 'portfolio_id': 22012957}, {'photo_id': 1349750060, 'portfolio_id': 22012957}, {'photo_id': 1349750055, 'portfolio_id': 22012957}, {'photo_id': 1349750025, 'portfolio_id': 22012957}, {'photo_id': 1349750022, 'portfolio_id': 22012957}, {'photo_id': 1349750019, 'portfolio_id': 22012957}, {'photo_id': 1349750015, 'portfolio_id': 22012957}, {'photo_id': 1349749984, 'portfolio_id': 22012957}, {'photo_id': 1349749979, 'portfolio_id': 22012957}, {'photo_id': 1349749976, 'portfolio_id': 22012957}, {'photo_id': 1349749964, 'portfolio_id': 22012957}, {'photo_id': 1349749952, 'portfolio_id': 22012957}, {'photo_id': 1349749916, 'portfolio_id': 22012957}, {'photo_id': 1349749911, 'portfolio_id': 22012957}, {'photo_id': 1349749907, 'portfolio_id': 22012957}, {'photo_id': 1349749899, 'portfolio_id': 22012957}, {'photo_id': 1349749891, 'portfolio_id': 22012957}, {'photo_id': 1349749854, 'portfolio_id': 22012957}, {'photo_id': 1349749848, 'portfolio_id': 22012957}, {'photo_id': 1349749841, 'portfolio_id': 22012957}, {'photo_id': 1349749839, 'portfolio_id': 22012957}, {'photo_id': 1349749828, 'portfolio_id': 22012957}, {'photo_id': 1349749790, 'portfolio_id': 22012957}, {'photo_id': 1349749784, 'portfolio_id': 22012957}, {'photo_id': 1349749779, 'portfolio_id': 22012957}, {'photo_id': 1349749760, 'portfolio_id': 22012957}, {'photo_id': 1349749754, 'portfolio_id': 22012957}, {'photo_id': 1349749679, 'portfolio_id': 22012957}, {'photo_id': 1349749673, 'portfolio_id': 22012957}, {'photo_id': 1349749670, 'portfolio_id': 22012957}, {'photo_id': 1349749666, 'portfolio_id': 22012957}, {'photo_id': 1349749661, 'portfolio_id': 22012957}, {'photo_id': 1349749600, 'portfolio_id': 22012957}, {'photo_id': 1349749595, 'portfolio_id': 22012957}, {'photo_id': 1349749590, 'portfolio_id': 22012957}, {'photo_id': 1349749585, 'portfolio_id': 22012957}, {'photo_id': 1349749581, 'portfolio_id': 22012957}, {'photo_id': 1349749554, 'portfolio_id': 22012957}, {'photo_id': 1349749435, 'portfolio_id': 22012957}, {'photo_id': 1349749425, 'portfolio_id': 22012957}, {'photo_id': 1349749419, 'portfolio_id': 22012957}, {'photo_id': 1349749413, 'portfolio_id': 22012957}, {'photo_id': 1349749305, 'portfolio_id': 22012957}, {'photo_id': 1349749283, 'portfolio_id': 22012957}, {'photo_id': 1349749267, 'portfolio_id': 22012957}, {'photo_id': 1349749210, 'portfolio_id': 22012957}, {'photo_id': 1349749206, 'portfolio_id': 22012957}, {'photo_id': 1349749203, 'portfolio_id': 22012957}, {'photo_id': 1349749121, 'portfolio_id': 22012957}, {'photo_id': 1349749117, 'portfolio_id': 22012957}, {'photo_id': 1349749106, 'portfolio_id': 22012957}, {'photo_id': 1349749098, 'portfolio_id': 22012957}, {'photo_id': 1349748956, 'portfolio_id': 22012957}, {'photo_id': 1349748942, 'portfolio_id': 22012957}, {'photo_id': 1349748934, 'portfolio_id': 22012957}, {'photo_id': 1349748920, 'portfolio_id': 22012957}, {'photo_id': 1349748914, 'portfolio_id': 22012957}, {'photo_id': 1349748908, 'portfolio_id': 22012957}, {'photo_id': 1349748788, 'portfolio_id': 22012957}, {'photo_id': 1349748690, 'portfolio_id': 22012957}, {'photo_id': 1349748604, 'portfolio_id': 22012957}] map_portfolio_id_photo_id: {22012957: [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055, 1349750025, 1349750022, 1349750019, 1349750015, 1349749984, 1349749979, 1349749976, 1349749964, 1349749952, 1349749916, 1349749911, 1349749907, 1349749899, 1349749891, 1349749854, 1349749848, 1349749841, 1349749839, 1349749828, 1349749790, 1349749784, 1349749779, 1349749760, 1349749754, 1349749679, 1349749673, 1349749670, 1349749666, 1349749661, 1349749600, 1349749595, 1349749590, 1349749585, 1349749581, 1349749554, 1349749435, 1349749425, 1349749419, 1349749413, 1349749305, 1349749283, 1349749267, 1349749210, 1349749206, 1349749203, 1349749121, 1349749117, 1349749106, 1349749098, 1349748956, 1349748942, 1349748934, 1349748920, 1349748914, 1349748908, 1349748788, 1349748690, 1349748604]} ##### 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.014957189559936523 #### 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 08:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22012957) 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 : 22012957 get user id for portfolio 22012957 get sub ptf for main ptf 22012957, type 3726 and hashtags ['environnement', 'metal', 'cartonnette', 'plastique', 'mal_croppe', 'Carton_gris', 'flou', 'autre_refus', 'kraft', 'Carton_brun', 'Teint_Dans_La_Masse', 'papier'] 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`=22012957 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','flou','autre_refus','kraft','Carton_brun','Teint_Dans_La_Masse','papier')) 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`=22012957 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','flou','autre_refus','kraft','Carton_brun','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22012957, 'sub_port_id': 22012985, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508061, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'metal': {'main_port_id': 22012957, 'sub_port_id': 22012986, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508062, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'Carton_brun': {'main_port_id': 22012957, 'sub_port_id': 22012987, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508063, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'environnement': {'main_port_id': 22012957, 'sub_port_id': 22012988, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508064, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'cartonnette': {'main_port_id': 22012957, 'sub_port_id': 22012989, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508065, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'plastique': {'main_port_id': 22012957, 'sub_port_id': 22012990, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508066, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'Carton_gris': {'main_port_id': 22012957, 'sub_port_id': 22012991, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508067, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'papier': {'main_port_id': 22012957, 'sub_port_id': 22012992, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508068, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'autre_refus': {'main_port_id': 22012957, 'sub_port_id': 22012993, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508069, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'flou': {'main_port_id': 22012957, 'sub_port_id': 22012994, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508070, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'kraft': {'main_port_id': 22012957, 'sub_port_id': 22012995, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508071, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22012957, 'sub_port_id': 22012996, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508072, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22012985 , 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=22012957 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 (22012985) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012986 , 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=22012957 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 (22012986) result : ((1349750168,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012987 , 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=22012957 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 (22012987) result : ((1349749422,), (1349749439,), (1349749440,), (1349749656,), (1349749657,), (1349749697,), (1349749699,), (1349749734,), (1349749735,), (1349749831,), (1349749832,), (1349750093,), (1349750094,), (1349750095,), (1349750096,), (1349750124,), (1349750125,), (1349750127,), (1349750128,), (1349750162,), (1349750163,), (1349750180,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012988 , 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=22012957 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 (22012988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012989 , 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=22012957 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 (22012989) result : ((1349749437,), (1349749438,), (1349749721,), (1349749821,), (1349749822,), (1349749823,), (1349749824,), (1349749825,), (1349749826,), (1349749827,), (1349750091,), (1349750123,), (1349750161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012990 , 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=22012957 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 (22012990) result : ((1349749443,), (1349749444,), (1349749702,), (1349749737,), (1349749835,), (1349750130,), (1349750131,), (1349750164,), (1349750165,), (1349750182,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012991 , 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=22012957 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 (22012991) result : ((1349749433,), (1349749434,), (1349749692,), (1349749715,), (1349749716,), (1349749717,), (1349749813,), (1349749814,), (1349749815,), (1349749816,), (1349749817,), (1349750089,), (1349750090,), (1349750120,), (1349750121,), (1349750156,), (1349750157,), (1349750158,), (1349750178,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012992 , 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=22012957 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 (22012992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012993 , 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=22012957 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 (22012993) result : ((1349749420,), (1349749430,), (1349749431,), (1349749654,), (1349749689,), (1349749690,), (1349749712,), (1349749713,), (1349750085,), (1349750086,), (1349750087,), (1349750118,), (1349750153,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012994 , 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=22012957 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 (22012994) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012995 , 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=22012957 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 (22012995) result : ((1349749738,), (1349749836,), (1349749837,), (1349750132,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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 22012996 , 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=22012957 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 (22012996) result : ((1349749426,), (1349749427,), (1349749428,), (1349749429,), (1349749687,), (1349749708,), (1349749810,), (1349750084,), (1349750150,), (1349750151,), (1349750152,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22012957) result : ((1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) 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 (1349749600) 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`=22012957 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','flou','autre_refus','kraft','Carton_brun','Teint_Dans_La_Masse','papier')) 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`=22012957 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','flou','autre_refus','kraft','Carton_brun','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22012957, 'sub_port_id': 22012997, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508073, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'metal': {'main_port_id': 22012957, 'sub_port_id': 22012998, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508074, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'Carton_brun': {'main_port_id': 22012957, 'sub_port_id': 22012999, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508075, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'environnement': {'main_port_id': 22012957, 'sub_port_id': 22013000, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508076, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'cartonnette': {'main_port_id': 22012957, 'sub_port_id': 22013001, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508077, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'plastique': {'main_port_id': 22012957, 'sub_port_id': 22013002, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508078, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'Carton_gris': {'main_port_id': 22012957, 'sub_port_id': 22013003, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508079, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'papier': {'main_port_id': 22012957, 'sub_port_id': 22013004, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508080, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'autre_refus': {'main_port_id': 22012957, 'sub_port_id': 22013005, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508081, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'flou': {'main_port_id': 22012957, 'sub_port_id': 22013006, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508082, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'kraft': {'main_port_id': 22012957, 'sub_port_id': 22013007, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508083, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22012957, 'sub_port_id': 22013008, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14508084, 'last_updated_at': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 8, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22012997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22012998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22012999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22013008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22012996 lien utilise dans velours : https://www.fotonower.com/velours/22012997,22012998,22012999,22013000,22013001,22013002,22013003,22013004,22013005,22013006,22013007,22013008?tags=mal_croppe,metal,Carton_brun,environnement,cartonnette,plastique,Carton_gris,papier,autre_refus,flou,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22012957]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] map_info['map_portfolio_photo'] : {22012957: [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055, 1349750025, 1349750022, 1349750019, 1349750015, 1349749984, 1349749979, 1349749976, 1349749964, 1349749952, 1349749916, 1349749911, 1349749907, 1349749899, 1349749891, 1349749854, 1349749848, 1349749841, 1349749839, 1349749828, 1349749790, 1349749784, 1349749779, 1349749760, 1349749754, 1349749679, 1349749673, 1349749670, 1349749666, 1349749661, 1349749600, 1349749595, 1349749590, 1349749585, 1349749581, 1349749554, 1349749435, 1349749425, 1349749419, 1349749413, 1349749305, 1349749283, 1349749267, 1349749210, 1349749206, 1349749203, 1349749121, 1349749117, 1349749106, 1349749098, 1349748956, 1349748942, 1349748934, 1349748920, 1349748914, 1349748908, 1349748788, 1349748690, 1349748604]} final : False mtd_id 4302 list_pids : [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] Looping around the photos to save general results len do output : 1 /22012957. 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, '2719657') ('4302', '22012957', '1349750134', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750129', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750119', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750116', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750078', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750073', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750070', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750065', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750060', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750055', None, None, None, None, None, '2719657') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22012957', "{'mal_croppe': 22012985, 'metal': 22012986, 'Carton_brun': 22012987, 'environnement': 22012988, 'cartonnette': 22012989, 'plastique': 22012990, 'Carton_gris': 22012991, 'papier': 22012992, 'autre_refus': 22012993, 'flou': 22012994, 'kraft': 22012995, 'Teint_Dans_La_Masse': 22012996}", None, None, None, None, '2719657'), ('4302', '22012957', '1349750134', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750129', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750119', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750116', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750078', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750073', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750070', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750065', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750060', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750055', None, None, None, None, None, '2719657')] time used for this insertion : 0.012741327285766602 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5795223712921143 time spend to save output : 0.013064146041870117 total time spend for step 1 : 2.5925865173339844 step2:final Thu Apr 3 08:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22012957) 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 22012957 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349748788,1349748690,1349748604,1349748956,1349748942,1349748934,1349748920,1349748914,1349748908,1349749121,1349749117,1349749106,1349749098,1349749305,1349749283,1349749267,1349749210,1349749206,1349749203,1349749435,1349749425,1349749419,1349749413,1349749600,1349749595,1349749590,1349749585,1349749581,1349749679,1349749554,1349749673,1349749670,1349749666,1349749661,1349749790,1349749784,1349749779,1349749760,1349749754,1349749854,1349749848,1349749841,1349749839,1349749828,1349749916,1349749911,1349749907,1349749899,1349749891,1349749984,1349749979,1349749976,1349749964,1349749952,1349750025,1349750022,1349750019,1349750015,1349750078,1349750073,1349750070,1349750065,1349750060,1349750055,1349750134,1349750129,1349750119,1349750116); 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([22012957]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} new output for save of step final : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] map_info['map_portfolio_photo'] : {22012957: [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055, 1349750025, 1349750022, 1349750019, 1349750015, 1349749984, 1349749979, 1349749976, 1349749964, 1349749952, 1349749916, 1349749911, 1349749907, 1349749899, 1349749891, 1349749854, 1349749848, 1349749841, 1349749839, 1349749828, 1349749790, 1349749784, 1349749779, 1349749760, 1349749754, 1349749679, 1349749673, 1349749670, 1349749666, 1349749661, 1349749600, 1349749595, 1349749590, 1349749585, 1349749581, 1349749554, 1349749435, 1349749425, 1349749419, 1349749413, 1349749305, 1349749283, 1349749267, 1349749210, 1349749206, 1349749203, 1349749121, 1349749117, 1349749106, 1349749098, 1349748956, 1349748942, 1349748934, 1349748920, 1349748914, 1349748908, 1349748788, 1349748690, 1349748604]} final : False mtd_id 4302 list_pids : [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] Looping around the photos to save general results len do output : 10 /1349750134.Didn't retrieve data . /1349750129.Didn't retrieve data . /1349750119.Didn't retrieve data . /1349750116.Didn't retrieve data . /1349750078.Didn't retrieve data . /1349750073.Didn't retrieve data . /1349750070.Didn't retrieve data . /1349750065.Didn't retrieve data . /1349750060.Didn't retrieve data . /1349750055.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, '2719657') ('4302', '22012957', '1349750134', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750129', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750119', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750116', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750078', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750073', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750070', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750065', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750060', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750055', None, None, None, None, None, '2719657') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22012957', '1349750134', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750129', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750119', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750116', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750078', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750073', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750070', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750065', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750060', '0.06713611061122687', None, None, None, None, '2719657'), ('4302', '22012957', '1349750055', '0.06713611061122687', None, None, None, None, '2719657')] time used for this insertion : 0.013006210327148438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06956839561462402 time spend to save output : 0.013521671295166016 total time spend for step 2 : 0.08309006690979004 step3:velours_tree Thu Apr 3 08:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22012957: [{'mal_croppe': 22012985, 'metal': 22012986, 'Carton_brun': 22012987, 'environnement': 22012988, 'cartonnette': 22012989, 'plastique': 22012990, 'Carton_gris': 22012991, 'papier': 22012992, 'autre_refus': 22012993, 'flou': 22012994, 'kraft': 22012995, 'Teint_Dans_La_Masse': 22012996}]} input_args_next_step : {22012957: ()} output_args : {22012957: [{'mal_croppe': 22012985, 'metal': 22012986, 'Carton_brun': 22012987, 'environnement': 22012988, 'cartonnette': 22012989, 'plastique': 22012990, 'Carton_gris': 22012991, 'papier': 22012992, 'autre_refus': 22012993, 'flou': 22012994, 'kraft': 22012995, 'Teint_Dans_La_Masse': 22012996}]} args : 22012957 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 22012985, 'metal': 22012986, 'Carton_brun': 22012987, 'environnement': 22012988, 'cartonnette': 22012989, 'plastique': 22012990, 'Carton_gris': 22012991, 'papier': 22012992, 'autre_refus': 22012993, 'flou': 22012994, 'kraft': 22012995, 'Teint_Dans_La_Masse': 22012996},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22012957) 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([22012957]) 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.6202414035797119 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.6202950477600098 step4:send_mail_cod Thu Apr 3 08:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} input_args_next_step : {1349750134: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750134 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750129 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750119 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750116 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750078 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750073 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750070 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750065 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750060 depend.output_id : 0 input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ()} output_args : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',)} args : 1349750055 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 : {22012957: [{'mal_croppe': 22012985, 'metal': 22012986, 'Carton_brun': 22012987, 'environnement': 22012988, 'cartonnette': 22012989, 'plastique': 22012990, 'Carton_gris': 22012991, 'papier': 22012992, 'autre_refus': 22012993, 'flou': 22012994, 'kraft': 22012995, 'Teint_Dans_La_Masse': 22012996}]} input_args_next_step : {1349750134: ('0.06713611061122687',), 1349750129: ('0.06713611061122687',), 1349750119: ('0.06713611061122687',), 1349750116: ('0.06713611061122687',), 1349750078: ('0.06713611061122687',), 1349750073: ('0.06713611061122687',), 1349750070: ('0.06713611061122687',), 1349750065: ('0.06713611061122687',), 1349750060: ('0.06713611061122687',), 1349750055: ('0.06713611061122687',), 22012957: ()} output_args : {22012957: [{'mal_croppe': 22012985, 'metal': 22012986, 'Carton_brun': 22012987, 'environnement': 22012988, 'cartonnette': 22012989, 'plastique': 22012990, 'Carton_gris': 22012991, 'papier': 22012992, 'autre_refus': 22012993, 'flou': 22012994, 'kraft': 22012995, 'Teint_Dans_La_Masse': 22012996}]} args : 22012957 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.06713611061122687',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22012957) 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 (1349750134,1349750129,1349750119,1349750116,1349750078,1349750073,1349750070,1349750065,1349750060,1349750055) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349750055 begin to download photo : 1349750070 begin to download photo : 1349750116 begin to download photo : 1349750134 download finish for photo 1349750116 begin to download photo : 1349750119 download finish for photo 1349750055 begin to download photo : 1349750060 download finish for photo 1349750134 download finish for photo 1349750070 begin to download photo : 1349750073 download finish for photo 1349750073 begin to download photo : 1349750078 download finish for photo 1349750060 begin to download photo : 1349750065 download finish for photo 1349750119 begin to download photo : 1349750129 download finish for photo 1349750078 download finish for photo 1349750129 download finish for photo 1349750065 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220129851743661861/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22012957_03-04-2025_08_31_01.pdf 22012985 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=22012985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220129851743661861 22012986 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=22012986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349750168: '1743661752_2041002_1349749679_3156d6ef493fc16dd28a25fd00e78813_rle_crop_3745849595_0.png'} change filename to text .imagette220129861743661861/ imagette220129861743661861/1743661752_2041002_1349749679_3156d6ef493fc16dd28a25fd00e78813_rle_crop_3745849595_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7cd3a3bc5a59c92e527f2035aa2b9f7b_53052454.png imagette220129861743661861 22012989 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=22012989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349749437: '1743661167_411132_1349748956_b1743ec4633f193769483c0d71da7a75_rle_crop_3745845591_0.png', 1349749438: '1743661167_411132_1349748604_3beb5cdb9cace06b2d775cb0ef2526f5_rle_crop_3745846937_0.png', 1349749721: '1743661290_2036903_1349748942_fdb55ee5b05472cf2041798069731ed4_rle_crop_3745847460_0.png', 1349749821: '1743661391_2037845_1349749595_0244057cefbda1bb4161e621eeefdea2_rle_crop_3745848453_0.png', 1349749822: '1743661391_2037845_1349749595_0244057cefbda1bb4161e621eeefdea2_rle_crop_3745848456_0.png', 1349749823: '1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848492_0.png', 1349749824: '1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848487_0.png', 1349749825: '1743661391_2037845_1349749581_623d0e195655b9291cfdc6b512089c7a_rle_crop_3745848502_0.png', 1349749826: '1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848514_0.png', 1349749827: '1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848518_0.png', 1349750091: '1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849162_0.png', 1349750123: '1743661693_2040242_1349749760_604be0a00d56a21fc99d13a0bd8aa490_rle_crop_3745849356_0.png', 1349750161: '1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849545_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/7c9da00cc08dc58425c12916fa5c9ef3_48504448.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a940b862820d1c4f14ae8273763a5850_67262258.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/95d6249ef4c622649ed1447be9ab57cb_92543616.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cf3d369e21f2c9db087d3672844462b5_76945727.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/48b6c433f7d4970253ae9a89a8e9fc8c_72454820.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ca24828832300df51a72bbdba0751a32_62320098.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fe62b49a3aae12fae6bb9d32f6e8ba45_2589009.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4746032e66b7ff4cfe8381f40edca6aa_2050698.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/38d7823d3882932cb9bec9ccf39ec39f_97956055.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6b8aaa02d985f1174fc35b130afc6c81_89811426.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a5f3bb6b99033790d0b621dbb09355c0_75667367.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ad677abaedac7bfaaae23a2c9992e086_48680918.png change filename to text .imagette220129891743661861/ imagette220129891743661861/1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849162_0.png.png imagette220129891743661861/1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849545_0.png.png imagette220129891743661861/1743661391_2037845_1349749581_623d0e195655b9291cfdc6b512089c7a_rle_crop_3745848502_0.png.png imagette220129891743661861/1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848518_0.png.png imagette220129891743661861/1743661693_2040242_1349749760_604be0a00d56a21fc99d13a0bd8aa490_rle_crop_3745849356_0.png.png imagette220129891743661861/1743661167_411132_1349748604_3beb5cdb9cace06b2d775cb0ef2526f5_rle_crop_3745846937_0.png.png imagette220129891743661861/1743661167_411132_1349748956_b1743ec4633f193769483c0d71da7a75_rle_crop_3745845591_0.png.png imagette220129891743661861/1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848487_0.png.png imagette220129891743661861/1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848492_0.png.png imagette220129891743661861/1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848514_0.png.png imagette220129891743661861/1743661391_2037845_1349749595_0244057cefbda1bb4161e621eeefdea2_rle_crop_3745848453_0.png.png imagette220129891743661861/1743661391_2037845_1349749595_0244057cefbda1bb4161e621eeefdea2_rle_crop_3745848456_0.png.png imagette220129891743661861/1743661290_2036903_1349748942_fdb55ee5b05472cf2041798069731ed4_rle_crop_3745847460_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d470150aa36e2576953f4d0212e7aaac_92226373.png imagette220129891743661861 22012990 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=22012990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349749443: '1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846116_0.png', 1349749444: '1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846118_0.png', 1349749702: '1743661287_413985_1349749210_ffe7666cc58e435d019cc57d5cab28ef_rle_crop_3745848079_0.png', 1349749737: '1743661290_2036903_1349748942_fdb55ee5b05472cf2041798069731ed4_rle_crop_3745847465_0.png', 1349749835: '1743661391_2037845_1349749590_762641ff5557373447256c572e57fd0f_rle_crop_3745848481_0.png', 1349750130: '1743661693_2040242_1349749779_f06d3a9db31d90bf22743654f344227f_rle_crop_3745849339_0.png', 1349750131: '1743661693_2040242_1349749779_f06d3a9db31d90bf22743654f344227f_rle_crop_3745849335_0.png', 1349750164: '1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849546_0.png', 1349750165: '1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849557_0.png', 1349750182: '1743661733_2040716_1349749661_cfc44ccebdd4df2b4b0be1f5915224d6_rle_crop_3745849621_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/e6507bf2854a21284245975a57dd96ed_6177029.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b19d3d9bd63ea3073fc7e768dc3448b5_42580225.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b884a7e799533a6e18c543a6549ead52_19086824.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1bd7eb0a0d2656d73d6d8858e9f8fd57_27151599.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/72ab30119e42c51c52a9124456c2ec60_17043112.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e006da22a29ad1490b4bf57cf78eafed_29837315.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7087ccabebafa90a3f3ab52240b71840_29641926.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/99c4042994bd83c3323831e1180c33c9_20626721.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3671a6b55ceed4b7eb513e668bcb30eb_69476767.png change filename to text .imagette220129901743661862/ imagette220129901743661862/1743661693_2040242_1349749779_f06d3a9db31d90bf22743654f344227f_rle_crop_3745849339_0.png.png imagette220129901743661862/1743661287_413985_1349749210_ffe7666cc58e435d019cc57d5cab28ef_rle_crop_3745848079_0.png.png imagette220129901743661862/1743661693_2040242_1349749779_f06d3a9db31d90bf22743654f344227f_rle_crop_3745849335_0.png.png imagette220129901743661862/1743661733_2040716_1349749661_cfc44ccebdd4df2b4b0be1f5915224d6_rle_crop_3745849621_0.png.png imagette220129901743661862/1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849546_0.png.png imagette220129901743661862/1743661391_2037845_1349749590_762641ff5557373447256c572e57fd0f_rle_crop_3745848481_0.png.png imagette220129901743661862/1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846118_0.png.png imagette220129901743661862/1743661290_2036903_1349748942_fdb55ee5b05472cf2041798069731ed4_rle_crop_3745847465_0.png.png imagette220129901743661862/1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846116_0.png.png imagette220129901743661862/1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849557_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/518722aa3828df0541aa6e6f0f0ef940_62898366.png imagette220129901743661862 22012993 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=22012993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349749420: '1743661171_2035426_1349749098_fb01ea679545d5fafb9f105b50598e0f_rle_crop_3745847100_0.png', 1349749430: '1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846117_0.png', 1349749431: '1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846121_0.png', 1349749654: '1743661272_2036586_1349749419_eb927af9fe46e044f895cc60cc3270bf_rle_crop_3745847996_0.png', 1349749689: '1743661287_413985_1349749283_f36913d2366db7e83ff056983d1eb9d6_rle_crop_3745848029_0.png', 1349749690: '1743661287_413985_1349749203_53efd110258a6efd014ecbc9f2b23043_rle_crop_3745848122_0.png', 1349749712: '1743661290_2036903_1349748934_0953004951d6cd7e11cd583fcff8e61d_rle_crop_3745847470_0.png', 1349749713: '1743661290_2036903_1349748908_109db887da621f3ed1e7eee330b1892b_rle_crop_3745847526_0.png', 1349750085: '1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849000_0.png', 1349750086: '1743661673_2040033_1349749907_bf628a7403a36bc6bcfefa1c3825e5e7_rle_crop_3745849011_0.png', 1349750087: '1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849163_0.png', 1349750118: '1743661693_2040242_1349749760_604be0a00d56a21fc99d13a0bd8aa490_rle_crop_3745849351_0.png', 1349750153: '1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849542_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/fc53d33c73ed52e6eaf9a0ad70d6bfb9_70272562.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0d3c359aa7e405204f53da6bab11dbd1_78046774.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/23d68e29f204c11533f528629a39f285_85867809.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/18680e74b13b31742b62c02f2da75d0f_39208671.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2654b2ea68172d95a56b6f6906961f82_70791354.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2fdc930cf380d643f5ac63d0e61dcd85_3440276.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ae0eb92eafdf1d567e4c1761148b7e29_96471161.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2bd454cc17961c2d80700e59eadba243_47797303.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/568e4c68e88ee331b4e4ad2ed7a61eec_34574737.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/33fe8e84e187b708b88a046916f27240_68153043.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d365da6a61b9048034f668318bb22ac7_58230959.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/610ef5b837a5641552c6b5c74e1e8ee7_46443960.png change filename to text .imagette220129931743661862/ imagette220129931743661862/1743661693_2040242_1349749760_604be0a00d56a21fc99d13a0bd8aa490_rle_crop_3745849351_0.png.png imagette220129931743661862/1743661287_413985_1349749283_f36913d2366db7e83ff056983d1eb9d6_rle_crop_3745848029_0.png.png imagette220129931743661862/1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846117_0.png.png imagette220129931743661862/1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849542_0.png.png imagette220129931743661862/1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846121_0.png.png imagette220129931743661862/1743661287_413985_1349749203_53efd110258a6efd014ecbc9f2b23043_rle_crop_3745848122_0.png.png imagette220129931743661862/1743661290_2036903_1349748934_0953004951d6cd7e11cd583fcff8e61d_rle_crop_3745847470_0.png.png imagette220129931743661862/1743661272_2036586_1349749419_eb927af9fe46e044f895cc60cc3270bf_rle_crop_3745847996_0.png.png imagette220129931743661862/1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849163_0.png.png imagette220129931743661862/1743661290_2036903_1349748908_109db887da621f3ed1e7eee330b1892b_rle_crop_3745847526_0.png.png imagette220129931743661862/1743661673_2040033_1349749907_bf628a7403a36bc6bcfefa1c3825e5e7_rle_crop_3745849011_0.png.png imagette220129931743661862/1743661171_2035426_1349749098_fb01ea679545d5fafb9f105b50598e0f_rle_crop_3745847100_0.png.png imagette220129931743661862/1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849000_0.png.png imagette220129941743661863/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ff9ea1aeaee06617599d171b4f0ed3ee_8546202.png imagette220129931743661862 22012994 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=22012994 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220129941743661863 22012995 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=22012995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349749738: '1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_rle_crop_3745847514_0.png', 1349749836: '1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848490_0.png', 1349749837: '1743661391_2037845_1349749581_623d0e195655b9291cfdc6b512089c7a_rle_crop_3745848505_0.png', 1349750132: '1743661693_2040242_1349749784_90ad4e0c3a768f33181dcbd66f77af3b_rle_crop_3745849324_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/c339253241c8ca6725e2f352936c3204_77111116.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9125155b903a05744b1bd0820d9ca73f_37245097.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1b569a6a6e11020cea0265eb7dac734b_35380724.png change filename to text .imagette220129951743661863/ imagette220129951743661863/1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_rle_crop_3745847514_0.png.png imagette220129951743661863/1743661391_2037845_1349749581_623d0e195655b9291cfdc6b512089c7a_rle_crop_3745848505_0.png.png imagette220129951743661863/1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848490_0.png.png imagette220129951743661863/1743661693_2040242_1349749784_90ad4e0c3a768f33181dcbd66f77af3b_rle_crop_3745849324_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5b293f0d8a0cc9c7d50c02aef2019c0c_77974396.png imagette220129951743661863 22012987 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=22012987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349750093: '1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849002_0.png', 1349750180: '1743661733_2040716_1349749790_785e674f81f7da51831e5e6a0f70728e_rle_crop_3745849577_0.png', 1349750163: '1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849559_0.png', 1349750162: '1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849547_0.png', 1349750128: '1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849369_0.png', 1349750127: '1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849372_0.png', 1349750125: '1743661693_2040242_1349749760_604be0a00d56a21fc99d13a0bd8aa490_rle_crop_3745849357_0.png', 1349750124: '1743661693_2040242_1349749779_f06d3a9db31d90bf22743654f344227f_rle_crop_3745849337_0.png', 1349750096: '1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849167_0.png', 1349750095: '1743661673_2040033_1349749907_bf628a7403a36bc6bcfefa1c3825e5e7_rle_crop_3745849017_0.png', 1349750094: '1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849001_0.png', 1349749422: '1743661171_2035426_1349749098_fb01ea679545d5fafb9f105b50598e0f_rle_crop_3745847101_0.png', 1349749832: '1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848525_0.png', 1349749831: '1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848517_0.png', 1349749735: '1743661290_2036903_1349748908_109db887da621f3ed1e7eee330b1892b_rle_crop_3745847528_0.png', 1349749734: '1743661290_2036903_1349748920_0277e70f465d6d0808736b0ff3d9ec04_rle_crop_3745847483_0.png', 1349749699: '1743661287_413985_1349749206_510a807efc90c7783a4824a6b8fb8734_rle_crop_3745848107_0.png', 1349749697: '1743661287_413985_1349749210_ffe7666cc58e435d019cc57d5cab28ef_rle_crop_3745848072_0.png', 1349749657: '1743661272_2036586_1349749413_ea44d05603f93a59ce53c508f9c99e65_rle_crop_3745848009_0.png', 1349749656: '1743661272_2036586_1349749419_eb927af9fe46e044f895cc60cc3270bf_rle_crop_3745847993_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/bb6fa435725d1d20484276ed2670ed0e_50842025.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/06a11e7186c385f381045c81c6b82587_56408239.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2a51a172a394ea4bd395acf908318cbd_31260295.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ad809446c0409090674f9b447a479a09_28177575.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/039df3475a761b1f757b2ac6485c7d1d_11691626.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8e1c9b8c8553036e86e5abf9a224cea4_11561072.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7f7134b2c725d49271301fa353d9b3c2_32476121.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a192cca835680149a59f3b9f31dfe2f6_68848511.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a322d027996d3e1f9e997738bd4fecec_51535300.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/79109d74ded3d6add971dbf06a3091d6_16704027.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/118f450a024112d228a0d933d7cd99a3_4045039.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/49614b4893a43cefec5421990426b266_32139826.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7d832a92e4403d022ecb0877b0163ff7_25991192.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/27e1b790c8152235dcdff4dfd5881b51_30427188.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/76cd687447430a0f3d333d5bf6eec962_52498487.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/02bd0f0c4eb5d46565e2f9f6fb1d412d_41183633.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4e2fe35de1b9cb15970864148bc39c11_96891898.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f674bf866143918e5b72247e48e7b149_73497324.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/694975e4162c35444822d8ddedcc37de_32236004.png change filename to text .imagette220129871743661863/ imagette220129871743661863/1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848517_0.png.png imagette220129871743661863/1743661290_2036903_1349748920_0277e70f465d6d0808736b0ff3d9ec04_rle_crop_3745847483_0.png.png imagette220129871743661863/1743661712_2040473_1349749839_d9217ef26785d6c3732621be2f7ee572_rle_crop_3745849547_0.png.png imagette220129871743661863/1743661171_2035426_1349749098_fb01ea679545d5fafb9f105b50598e0f_rle_crop_3745847101_0.png.png imagette220129871743661863/1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849559_0.png.png imagette220129871743661863/1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849369_0.png.png imagette220129871743661863/1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849001_0.png.png imagette220129871743661863/1743661693_2040242_1349749779_f06d3a9db31d90bf22743654f344227f_rle_crop_3745849337_0.png.png imagette220129871743661863/1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849372_0.png.png imagette220129871743661863/1743661272_2036586_1349749413_ea44d05603f93a59ce53c508f9c99e65_rle_crop_3745848009_0.png.png imagette220129871743661863/1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849002_0.png.png imagette220129871743661863/1743661272_2036586_1349749419_eb927af9fe46e044f895cc60cc3270bf_rle_crop_3745847993_0.png.png imagette220129871743661863/1743661290_2036903_1349748908_109db887da621f3ed1e7eee330b1892b_rle_crop_3745847528_0.png.png imagette220129871743661863/1743661693_2040242_1349749760_604be0a00d56a21fc99d13a0bd8aa490_rle_crop_3745849357_0.png.png imagette220129871743661863/1743661733_2040716_1349749790_785e674f81f7da51831e5e6a0f70728e_rle_crop_3745849577_0.png.png imagette220129871743661863/1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848525_0.png.png imagette220129871743661863/1743661287_413985_1349749210_ffe7666cc58e435d019cc57d5cab28ef_rle_crop_3745848072_0.png.png imagette220129871743661863/1743661673_2040033_1349749907_bf628a7403a36bc6bcfefa1c3825e5e7_rle_crop_3745849017_0.png.png imagette220129871743661863/1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849167_0.png.png imagette220129871743661863/1743661287_413985_1349749206_510a807efc90c7783a4824a6b8fb8734_rle_crop_3745848107_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cb86fe7e644fc4f3ef6b51692d83e684_44546412.png imagette220129871743661863 22012991 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=22012991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349749816: '1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848521_0.png', 1349750178: '1743661733_2040716_1349749661_cfc44ccebdd4df2b4b0be1f5915224d6_rle_crop_3745849619_0.png', 1349750158: '1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849562_0.png', 1349750157: '1743661712_2040473_1349749916_476f31878b181cccd63ce4841bf1a373_rle_crop_3745849477_0.png', 1349750156: '1743661712_2040473_1349749916_476f31878b181cccd63ce4841bf1a373_rle_crop_3745849474_0.png', 1349750121: '1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849365_0.png', 1349750120: '1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849376_0.png', 1349750090: '1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849170_0.png', 1349750089: '1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849003_0.png', 1349749817: '1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848513_0.png', 1349749433: '1743661167_411132_1349748604_3beb5cdb9cace06b2d775cb0ef2526f5_rle_crop_3745846939_0.png', 1349749815: '1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848522_0.png', 1349749814: '1743661391_2037845_1349749590_762641ff5557373447256c572e57fd0f_rle_crop_3745848473_0.png', 1349749813: '1743661391_2037845_1349749595_0244057cefbda1bb4161e621eeefdea2_rle_crop_3745848455_0.png', 1349749717: '1743661290_2036903_1349748908_109db887da621f3ed1e7eee330b1892b_rle_crop_3745847529_0.png', 1349749716: '1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_bib_crop_3745847507_0.jpg', 1349749715: '1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_rle_crop_3745848171_0.png', 1349749692: '1743661287_413985_1349749206_510a807efc90c7783a4824a6b8fb8734_rle_crop_3745848105_0.png', 1349749434: '1743661167_411132_1349748604_3beb5cdb9cace06b2d775cb0ef2526f5_rle_crop_3745846940_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/bc0118747d08f69a5bd9ad22ae7e0361_91323809.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/04f43e9d2ae4fb8c3d2caf56645518ed_5802827.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3f63c9c809958e9c873b2fcd1a809fde_62938603.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/960a0c3bc6d33d4e47b44196bef67085_12017845.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6d1e664f854c0c9f5e58198ba857c613_38076139.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7d315389e2eeaca277c8d492aa90614a_60003695.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/13b1d921c4e006c46eab6a73a82423be_70816019.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/55e53fcefcd2d9db9eaada9039f39157_35886313.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b54f21a838695eaf1bec954e79a040d6_77880219.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9bd94c47e5e8244ea21408de31e9e51e_48234976.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/95fed96503e09e1bf0eb7209a39fbdcb_40459334.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/59e180904b94fd6814364b43ba7301f1_71765714.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2db1be3ba9ce23fa58093710b64a1ed6_36804767.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b3f8958eeaca180796ee0cc56a407ba9_13494826.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bb5988dae91b50ed5d324b7b443f88fd_59809767.png change filename to text .wget -O 16.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2bb4de7f3dd698363da40869cdf4b614_45462831.jpg change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/44e82f93377a620a36cd2f269a159f96_81864225.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/57cac6daeaf1f733f76ddc8216b2d6a2_65887961.png change filename to text .imagette220129911743661864/ imagette220129911743661864/1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848513_0.png.png imagette220129911743661864/1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849170_0.png.png imagette220129911743661864/1743661391_2037845_1349749595_0244057cefbda1bb4161e621eeefdea2_rle_crop_3745848455_0.png.png imagette220129911743661864/1743661167_411132_1349748604_3beb5cdb9cace06b2d775cb0ef2526f5_rle_crop_3745846939_0.png.png imagette220129911743661864/1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848521_0.png.png imagette220129911743661864/1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849365_0.png.png imagette220129911743661864/1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849562_0.png.png imagette220129911743661864/1743661712_2040473_1349749916_476f31878b181cccd63ce4841bf1a373_rle_crop_3745849477_0.png.png imagette220129911743661864/1743661287_413985_1349749206_510a807efc90c7783a4824a6b8fb8734_rle_crop_3745848105_0.png.png imagette220129911743661864/1743661167_411132_1349748604_3beb5cdb9cace06b2d775cb0ef2526f5_rle_crop_3745846940_0.png.png imagette220129911743661864/1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_bib_crop_3745847507_0.jpg.jpg imagette220129911743661864/1743661290_2036903_1349748908_109db887da621f3ed1e7eee330b1892b_rle_crop_3745847529_0.png.png imagette220129911743661864/1743661712_2040473_1349749916_476f31878b181cccd63ce4841bf1a373_rle_crop_3745849474_0.png.png imagette220129911743661864/1743661733_2040716_1349749661_cfc44ccebdd4df2b4b0be1f5915224d6_rle_crop_3745849619_0.png.png imagette220129911743661864/1743661693_2040242_1349749754_fe471a111df2da5328d1d0f5d36d5b2e_rle_crop_3745849376_0.png.png imagette220129911743661864/1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_rle_crop_3745848171_0.png.png imagette220129911743661864/1743661673_2040033_1349749911_83fb1eb6408f83b47b60bfcf48e857e4_rle_crop_3745849003_0.png.png imagette220129911743661864/1743661391_2037845_1349749554_14541e4d90b37a79c99a2c9e691f9c3c_rle_crop_3745848522_0.png.png imagette220129911743661864/1743661391_2037845_1349749590_762641ff5557373447256c572e57fd0f_rle_crop_3745848473_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/25795ef701893a51fc9e5a012a60bee9_46647795.png imagette220129911743661864 22012996 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=22012996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349749426: '1743661167_411132_1349748956_b1743ec4633f193769483c0d71da7a75_rle_crop_3745845592_0.png', 1349749427: '1743661167_411132_1349748788_e041df7da2c0d8ea4cb0e0604c925ff3_rle_crop_3745845607_0.png', 1349749428: '1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846128_0.png', 1349749429: '1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846120_0.png', 1349749687: '1743661287_413985_1349749210_ffe7666cc58e435d019cc57d5cab28ef_rle_crop_3745848073_0.png', 1349749708: '1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_rle_crop_3745847510_0.png', 1349749810: '1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848491_0.png', 1349750084: '1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849171_0.png', 1349750150: '1743661712_2040473_1349749848_881f5da7870f8bb70358986f117c0989_rle_crop_3745849488_0.png', 1349750151: '1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849563_0.png', 1349750152: '1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849561_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/00d4af8da1eac19fb843d204665a00d7_97912085.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fe3cb223daf46e98f6fb0d126ad3f5a7_40121965.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2d42a753b1381e3f20edb1942070ad33_27906045.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/56695dd9b1945176edacf60183329187_12973208.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/78576eb5af48801227bfc00bd1323b3e_9301680.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fe0e3f234203fd6ebe10805fe655bf7b_80937534.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/85f7b92f2320f9694151fe5fc40d7a4e_23836808.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e60b626285be30da149dc20879b6f60a_82525801.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9dbc7a1aa69e52341c537bae961b89d4_31260106.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/56006e808469c76bf55416383f5f6a23_97396515.png change filename to text .imagette220129961743661865/ imagette220129961743661865/1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849563_0.png.png imagette220129961743661865/1743661287_413985_1349749210_ffe7666cc58e435d019cc57d5cab28ef_rle_crop_3745848073_0.png.png imagette220129961743661865/1743661673_2040033_1349749899_552ddffc890282dde0729b16cd915a5a_rle_crop_3745849171_0.png.png imagette220129961743661865/1743661391_2037845_1349749585_35245f5a59bc8d5f0d7ab5a2bea2a6fc_rle_crop_3745848491_0.png.png imagette220129961743661865/1743661167_411132_1349748788_e041df7da2c0d8ea4cb0e0604c925ff3_rle_crop_3745845607_0.png.png imagette220129961743661865/1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846120_0.png.png imagette220129961743661865/1743661290_2036903_1349748914_d02683e00b91592ac79652181a7a0c8d_rle_crop_3745847510_0.png.png imagette220129961743661865/1743661167_411132_1349748956_b1743ec4633f193769483c0d71da7a75_rle_crop_3745845592_0.png.png imagette220129961743661865/1743661712_2040473_1349749828_a36e543a7ef45b9a4106a8a4eeee6498_rle_crop_3745849561_0.png.png imagette220129961743661865/1743661167_411132_1349748690_466f8a02cdb3d11c18dd51d1905291ae_rle_crop_3745846128_0.png.png imagette220129961743661865/1743661712_2040473_1349749848_881f5da7870f8bb70358986f117c0989_rle_crop_3745849488_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b02ee0782fd4a3a3205aded5cacdaedd_81893950.png imagette220129961743661865 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22012957 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22012997,22012998,22012999,22013000,22013001,22013002,22013003,22013004,22013005,22013006,22013007,22013008?tags=mal_croppe,metal,Carton_brun,environnement,cartonnette,plastique,Carton_gris,papier,autre_refus,flou,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1349750134] : ('0.06713611061122687',) no score found for photo 1349750134 We are sending mail with results at report@fotonower.com args[1349750129] : ('0.06713611061122687',) no score found for photo 1349750129 We are sending mail with results at report@fotonower.com args[1349750119] : ('0.06713611061122687',) no score found for photo 1349750119 We are sending mail with results at report@fotonower.com args[1349750116] : ('0.06713611061122687',) no score found for photo 1349750116 We are sending mail with results at report@fotonower.com args[1349750078] : ('0.06713611061122687',) no score found for photo 1349750078 We are sending mail with results at report@fotonower.com args[1349750073] : ('0.06713611061122687',) no score found for photo 1349750073 We are sending mail with results at report@fotonower.com args[1349750070] : ('0.06713611061122687',) no score found for photo 1349750070 We are sending mail with results at report@fotonower.com args[1349750065] : ('0.06713611061122687',) no score found for photo 1349750065 We are sending mail with results at report@fotonower.com args[1349750060] : ('0.06713611061122687',) no score found for photo 1349750060 We are sending mail with results at report@fotonower.com args[1349750055] : ('0.06713611061122687',) no score found for photo 1349750055 We are sending mail with results at report@fotonower.com refus_total : 0.06713611061122687 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=22012957 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_P22012957_03-04-2025_08_31_01.pdf results_Auto_P22012957_03-04-2025_08_31_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22012957_03-04-2025_08_31_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22012957','results_Auto_P22012957_03-04-2025_08_31_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22012957_03-04-2025_08_31_01.pdf','pdf','','0.35','0.06713611061122687') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22012957]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] map_info['map_portfolio_photo'] : {22012957: [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055, 1349750025, 1349750022, 1349750019, 1349750015, 1349749984, 1349749979, 1349749976, 1349749964, 1349749952, 1349749916, 1349749911, 1349749907, 1349749899, 1349749891, 1349749854, 1349749848, 1349749841, 1349749839, 1349749828, 1349749790, 1349749784, 1349749779, 1349749760, 1349749754, 1349749679, 1349749673, 1349749670, 1349749666, 1349749661, 1349749600, 1349749595, 1349749590, 1349749585, 1349749581, 1349749554, 1349749435, 1349749425, 1349749419, 1349749413, 1349749305, 1349749283, 1349749267, 1349749210, 1349749206, 1349749203, 1349749121, 1349749117, 1349749106, 1349749098, 1349748956, 1349748942, 1349748934, 1349748920, 1349748914, 1349748908, 1349748788, 1349748690, 1349748604]} final : False mtd_id 4302 list_pids : [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] 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, '2719657') ('4302', '22012957', '1349750134', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750129', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750119', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750116', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750078', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750073', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750070', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750065', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750060', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750055', None, None, None, None, None, '2719657') 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', '22012957', '1349750134', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750129', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750119', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750116', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750078', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750073', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750070', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750065', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750060', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750055', None, None, None, None, None, '2719657')] time used for this insertion : 0.013740062713623047 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.002122402191162 time spend to save output : 0.014039039611816406 total time spend for step 4 : 7.0161614418029785 step5:split_time_score Thu Apr 3 08:31:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22012957'] 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 : [('22012957',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22012957) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349750134: {'path': 'temp/1743661860_2328193_1349750134_f3ed200e2a2a93f9fa8998befac506bf.jpg', 'extension': 'jpg'}, 1349750070: {'path': 'temp/1743661860_2328193_1349750070_8bddd78c3db4d39089bdb54d7ec78973.jpg', 'extension': 'jpg'}, 1349750073: {'path': 'temp/1743661860_2328193_1349750073_76dc2f29ccd53f444690112cbc2a910d.jpg', 'extension': 'jpg'}, 1349750078: {'path': 'temp/1743661860_2328193_1349750078_68c7e0a2860b3e649b1f390f761d2e2b.jpg', 'extension': 'jpg'}, 1349750116: {'path': 'temp/1743661860_2328193_1349750116_5e89423f0ae72498c706a13ab8b909ad.jpg', 'extension': 'jpg'}, 1349750119: {'path': 'temp/1743661860_2328193_1349750119_95505d615f710ef3df7b19310db4e3bb.jpg', 'extension': 'jpg'}, 1349750129: {'path': 'temp/1743661860_2328193_1349750129_ff989ce169809243ed45be18a3a4741e.jpg', 'extension': 'jpg'}, 1349750055: {'path': 'temp/1743661860_2328193_1349750055_f8552f22c2f1faf5b612826cfb2906e7.jpg', 'extension': 'jpg'}, 1349750060: {'path': 'temp/1743661860_2328193_1349750060_5e5b8367b7bd517aa740e74a4838a60d.jpg', 'extension': 'jpg'}, 1349750065: {'path': 'temp/1743661860_2328193_1349750065_7920261409e8a5ea296f8bf02a01cb27.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 = 22012957; (('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 = 22012957 group by h (('08', 68),) 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=22012957 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 (22012957) 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 (22012957) 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 22012957 Nombre de photos uploadées : 68 / 23040 (0%) 03042025 22012957 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 03042025 22012957 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1349748788, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e041df7da2c0d8ea4cb0e0604c925ff3.jpg', 'username': None, 'uploaded_at': 1743660967, 'text': 'image_03042025_08_15_24_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349748690, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/466f8a02cdb3d11c18dd51d1905291ae.jpg', 'username': None, 'uploaded_at': 1743660967, 'text': 'image_03042025_08_15_35_010132m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1349748604, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3beb5cdb9cace06b2d775cb0ef2526f5.jpg', 'username': None, 'uploaded_at': 1743660967, 'text': 'image_03042025_08_15_45_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349748956, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b1743ec4633f193769483c0d71da7a75.jpg', 'username': None, 'uploaded_at': 1743661027, 'text': 'image_03042025_08_15_54_009136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003137826919555664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22012957, '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.022864341735839844 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': 1720878, 'mtr_portfolio_id': 22011757, 'dashboard_result_id': 9840110, '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_P22011757_03-04-2025_08_03_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22011759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22011760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22011761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22011762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22011763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22011764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22011765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22011766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22011767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22011768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22011769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22011770, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720878, 'mtr_portfolio_id': 22012336, 'dashboard_result_id': 9840111, '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_P22012336_03-04-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22012339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22012340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22012341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22012342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22012343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22012344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22012345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22012346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22012347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22012348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22012349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22012350, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720878, 'mtr_portfolio_id': 22012957, 'dashboard_result_id': 9840112, '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_P22012957_03-04-2025_08_29_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22012985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22012986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22012987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22012988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22012989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22012990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22012991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22012992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22012993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22012994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22012995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22012996, '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 = 22011757 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': 2719549, 'mtr_portfolio_id': 22011757, 'created_at': datetime.datetime(2025, 4, 3, 8, 3, 3), 'result': '0.05864467544110678', 'result_long': None, 'result_double': None}] Qualite : 0.05864467544110678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22011757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22011757_03-04-2025_08_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22011757 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_P22011757_03-04-2025_08_03_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22011759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22011760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22011761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22011762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22011763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22011764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22011765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22011766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22011767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22011768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22011769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22011770, 'pht': 3726}}" where mtr_portfolio_id = 22011757 and dashboard_run_id = 1720878 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`=22011757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9840110, 0.05864467544110678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22011757_03-04-2025_08_03_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22011759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22011760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22011761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22011762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22011763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22011764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22011765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22011766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22011767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22011768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22011769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22011770, '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 = 22012336 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': 2719611, 'mtr_portfolio_id': 22012336, 'created_at': datetime.datetime(2025, 4, 3, 8, 16, 59), 'result': '0.0442518499933343', 'result_long': None, 'result_double': None}] Qualite : 0.0442518499933343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22012336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22012336_03-04-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22012336 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_P22012336_03-04-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22012339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22012340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22012341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22012342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22012343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22012344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22012345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22012346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22012347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22012348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22012349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22012350, 'pht': 3726}}" where mtr_portfolio_id = 22012336 and dashboard_run_id = 1720878 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`=22012336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9840111, 0.0442518499933343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22012336_03-04-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22012339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22012340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22012341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22012342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22012343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22012344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22012345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22012346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22012347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22012348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22012349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22012350, '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 = 22012957 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': 2719657, 'mtr_portfolio_id': 22012957, 'created_at': datetime.datetime(2025, 4, 3, 8, 31), 'result': '0.06713611061122687', 'result_long': None, 'result_double': None}] Qualite : 0.06713611061122687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22012957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22012957_03-04-2025_08_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22012957 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_P22012957_03-04-2025_08_31_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22012985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22012986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22012987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22012988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22012989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22012990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22012991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22012992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22012993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22012994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22012995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22012996, 'pht': 3726}}" where mtr_portfolio_id = 22012957 and dashboard_run_id = 1720878 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`=22012957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9840112, 0.06713611061122687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22012957_03-04-2025_08_31_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22012985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22012986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22012987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22012988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22012989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22012990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22012991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22012992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22012993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22012994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22012995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22012996, '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 (22011757,22012336,22012957) result : ((1349741015,), (1349741029,), (1349741121,), (1349741128,), (1349741135,), (1349741139,), (1349741155,), (1349741163,), (1349741354,), (1349741403,), (1349741473,), (1349741545,), (1349741719,), (1349741740,), (1349741764,), (1349741768,), (1349741793,), (1349741811,), (1349741884,), (1349741891,), (1349741947,), (1349741971,), (1349741989,), (1349742303,), (1349742365,), (1349742369,), (1349742372,), (1349742377,), (1349742381,), (1349742410,), (1349742413,), (1349742416,), (1349742420,), (1349742441,), (1349742542,), (1349742565,), (1349742591,), (1349742637,), (1349742659,), (1349742686,), (1349743204,), (1349743238,), (1349743267,), (1349743318,), (1349743335,), (1349743518,), (1349743520,), (1349743535,), (1349743541,), (1349743547,), (1349743681,), (1349743701,), (1349743705,), (1349743709,), (1349743713,), (1349743718,), (1349743739,), (1349743742,), (1349743745,), (1349743748,), (1349744152,), (1349744201,), (1349744252,), (1349744295,), (1349744345,), (1349744392,), (1349744831,), (1349744856,), (1349744882,), (1349744914,), (1349745273,), (1349745162,), (1349745190,), (1349745217,), (1349745245,), (1349745473,), (1349745479,), (1349745492,), (1349745498,), (1349745502,), (1349745557,), (1349745649,), (1349745679,), (1349745705,), (1349745733,), (1349745755,), (1349746365,), (1349746608,), (1349746665,), (1349746669,), (1349746708,), (1349746933,), (1349747116,), (1349747179,), (1349747207,), (1349747228,), (1349747299,), (1349747452,), (1349747467,), (1349747473,), (1349747525,), (1349747531,), (1349747537,), (1349747541,), (1349747543,), (1349747606,), (1349747632,), (1349747646,), (1349747679,), (1349747709,), (1349747786,), (1349747789,), (1349747792,), (1349747794,), (1349747801,), (1349747897,), (1349747908,), (1349747920,), (1349747924,), (1349747929,), (1349748035,), (1349748039,), (1349748059,), (1349748064,), (1349748068,), (1349748073,), (1349748096,), (1349748106,), (1349748112,), (1349748116,), (1349748120,), (1349748183,), (1349748187,), (1349748192,), (1349748198,), (1349748203,), (1349748209,), (1349748262,), (1349748268,), (1349748272,), (1349748277,), (1349748462,), (1349748469,), (1349748472,), (1349748476,), (1349748481,), (1349748487,), (1349748814,), (1349748604,), (1349748690,), (1349748788,), (1349748908,), (1349748914,), (1349748920,), (1349748934,), (1349748942,), (1349748956,), (1349749098,), (1349749106,), (1349749117,), (1349749121,), (1349749203,), (1349749206,), (1349749210,), (1349749267,), (1349749283,), (1349749305,), (1349749413,), (1349749419,), (1349749425,), (1349749435,), (1349749554,), (1349749581,), (1349749585,), (1349749590,), (1349749595,), (1349749600,), (1349749661,), (1349749666,), (1349749670,), (1349749673,), (1349749679,), (1349749754,), (1349749760,), (1349749779,), (1349749784,), (1349749790,), (1349749828,), (1349749839,), (1349749841,), (1349749848,), (1349749854,), (1349749891,), (1349749899,), (1349749907,), (1349749911,), (1349749916,), (1349749952,), (1349749964,), (1349749976,), (1349749979,), (1349749984,), (1349750015,), (1349750019,), (1349750022,), (1349750025,), (1349750055,), (1349750060,), (1349750065,), (1349750070,), (1349750073,), (1349750078,), (1349750116,), (1349750119,), (1349750129,), (1349750134,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22012957]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] map_info['map_portfolio_photo'] : {22012957: [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055, 1349750025, 1349750022, 1349750019, 1349750015, 1349749984, 1349749979, 1349749976, 1349749964, 1349749952, 1349749916, 1349749911, 1349749907, 1349749899, 1349749891, 1349749854, 1349749848, 1349749841, 1349749839, 1349749828, 1349749790, 1349749784, 1349749779, 1349749760, 1349749754, 1349749679, 1349749673, 1349749670, 1349749666, 1349749661, 1349749600, 1349749595, 1349749590, 1349749585, 1349749581, 1349749554, 1349749435, 1349749425, 1349749419, 1349749413, 1349749305, 1349749283, 1349749267, 1349749210, 1349749206, 1349749203, 1349749121, 1349749117, 1349749106, 1349749098, 1349748956, 1349748942, 1349748934, 1349748920, 1349748914, 1349748908, 1349748788, 1349748690, 1349748604]} final : True mtd_id 4302 list_pids : [1349750134, 1349750129, 1349750119, 1349750116, 1349750078, 1349750073, 1349750070, 1349750065, 1349750060, 1349750055] Looping around the photos to save general results len do output : 1 /22012957Didn'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, '2719657') ('4302', '22012957', '1349750134', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750129', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750119', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750116', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750078', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750073', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750070', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750065', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750060', None, None, None, None, None, '2719657') ('4302', None, None, None, None, None, None, None, '2719657') ('4302', '22012957', '1349750055', None, None, None, None, None, '2719657') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22012957', 'None', None, None, None, None, '2719657'), ('4302', '22012957', '1349750134', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750129', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750119', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750116', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750078', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750073', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750070', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750065', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750060', None, None, None, None, None, '2719657'), ('4302', '22012957', '1349750055', None, None, None, None, None, '2719657')] time used for this insertion : 0.012859821319580078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3028111457824707 time spend to save output : 0.013143301010131836 total time spend for step 5 : 0.31595444679260254 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 (2719657) 2.42user 2.30system 0:13.68elapsed 34%CPU (0avgtext+0avgdata 159984maxresident)k 97856inputs+18832outputs (419major+74616minor)pagefaults 0swaps