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 : 1777759 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 (2726297) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2726297) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081286 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2726297'] with mtr_portfolio_ids : ['22081286'] and first list_photo_ids : [] new path : /proc/1777759/ Name: python3 Umask: 0002 State: R (running) Tgid: 1777759 Ngid: 0 Pid: 1777759 PPid: 1777758 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1777759 NSpid: 1777759 NSpgid: 1772999 NSsid: 1772999 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97980 kB VmRSS: 97980 kB RssAnon: 59800 kB RssFile: 38180 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 77 nonvoluntary_ctxt_switches: 160 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1777759', 'Ngid': '0', 'Pid': '1777759', 'PPid': '1777758', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1777759', 'NSpid': '1777759', 'NSpgid': '1772999', 'NSsid': '1772999', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97980 kB', 'VmRSS': '97980 kB', 'RssAnon': '59800 kB', 'RssFile': '38180 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '77', 'nonvoluntary_ctxt_switches': '160'} ('datou_batch_current', '1777759', '1106828', '0', '1106828', '865576', '97980', b'', 'marlene', '2726297') 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 (22081286) 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 (2726297 ) ) 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 (22081286) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350298077, 'portfolio_id': 22081286}, {'photo_id': 1350297673, 'portfolio_id': 22081286}, {'photo_id': 1350297524, 'portfolio_id': 22081286}, {'photo_id': 1350297509, 'portfolio_id': 22081286}, {'photo_id': 1350297330, 'portfolio_id': 22081286}, {'photo_id': 1350297322, 'portfolio_id': 22081286}, {'photo_id': 1350297312, 'portfolio_id': 22081286}, {'photo_id': 1350297271, 'portfolio_id': 22081286}, {'photo_id': 1350297267, 'portfolio_id': 22081286}, {'photo_id': 1350297263, 'portfolio_id': 22081286}, {'photo_id': 1350297258, 'portfolio_id': 22081286}, {'photo_id': 1350297253, 'portfolio_id': 22081286}, {'photo_id': 1350297199, 'portfolio_id': 22081286}, {'photo_id': 1350297177, 'portfolio_id': 22081286}, {'photo_id': 1350297171, 'portfolio_id': 22081286}, {'photo_id': 1350297162, 'portfolio_id': 22081286}, {'photo_id': 1350297156, 'portfolio_id': 22081286}, {'photo_id': 1350297085, 'portfolio_id': 22081286}, {'photo_id': 1350297082, 'portfolio_id': 22081286}, {'photo_id': 1350297078, 'portfolio_id': 22081286}, {'photo_id': 1350297072, 'portfolio_id': 22081286}, {'photo_id': 1350296852, 'portfolio_id': 22081286}, {'photo_id': 1350296836, 'portfolio_id': 22081286}, {'photo_id': 1350296828, 'portfolio_id': 22081286}, {'photo_id': 1350296705, 'portfolio_id': 22081286}, {'photo_id': 1350296700, 'portfolio_id': 22081286}, {'photo_id': 1350296675, 'portfolio_id': 22081286}, {'photo_id': 1350296647, 'portfolio_id': 22081286}, {'photo_id': 1350296343, 'portfolio_id': 22081286}, {'photo_id': 1350296293, 'portfolio_id': 22081286}, {'photo_id': 1350296268, 'portfolio_id': 22081286}, {'photo_id': 1350296263, 'portfolio_id': 22081286}, {'photo_id': 1350296170, 'portfolio_id': 22081286}, {'photo_id': 1350296165, 'portfolio_id': 22081286}, {'photo_id': 1350296161, 'portfolio_id': 22081286}, {'photo_id': 1350296154, 'portfolio_id': 22081286}, {'photo_id': 1350296100, 'portfolio_id': 22081286}, {'photo_id': 1350296089, 'portfolio_id': 22081286}, {'photo_id': 1350296052, 'portfolio_id': 22081286}, {'photo_id': 1350296025, 'portfolio_id': 22081286}, {'photo_id': 1350295320, 'portfolio_id': 22081286}, {'photo_id': 1350295264, 'portfolio_id': 22081286}, {'photo_id': 1350295172, 'portfolio_id': 22081286}, {'photo_id': 1350295095, 'portfolio_id': 22081286}, {'photo_id': 1350294301, 'portfolio_id': 22081286}, {'photo_id': 1350294182, 'portfolio_id': 22081286}, {'photo_id': 1350294032, 'portfolio_id': 22081286}, {'photo_id': 1350293910, 'portfolio_id': 22081286}, {'photo_id': 1350293782, 'portfolio_id': 22081286}, {'photo_id': 1350292326, 'portfolio_id': 22081286}, {'photo_id': 1350292232, 'portfolio_id': 22081286}, {'photo_id': 1350292156, 'portfolio_id': 22081286}, {'photo_id': 1350292087, 'portfolio_id': 22081286}, {'photo_id': 1350291541, 'portfolio_id': 22081286}, {'photo_id': 1350291479, 'portfolio_id': 22081286}, {'photo_id': 1350291381, 'portfolio_id': 22081286}, {'photo_id': 1350290218, 'portfolio_id': 22081286}, {'photo_id': 1350290118, 'portfolio_id': 22081286}, {'photo_id': 1350290045, 'portfolio_id': 22081286}, {'photo_id': 1350289987, 'portfolio_id': 22081286}, {'photo_id': 1350289919, 'portfolio_id': 22081286}] map_portfolio_id_photo_id: {22081286: [1350298077, 1350297673, 1350297524, 1350297509, 1350297330, 1350297322, 1350297312, 1350297271, 1350297267, 1350297263, 1350297258, 1350297253, 1350297199, 1350297177, 1350297171, 1350297162, 1350297156, 1350297085, 1350297082, 1350297078, 1350297072, 1350296852, 1350296836, 1350296828, 1350296705, 1350296700, 1350296675, 1350296647, 1350296343, 1350296293, 1350296268, 1350296263, 1350296170, 1350296165, 1350296161, 1350296154, 1350296100, 1350296089, 1350296052, 1350296025, 1350295320, 1350295264, 1350295172, 1350295095, 1350294301, 1350294182, 1350294032, 1350293910, 1350293782, 1350292326, 1350292232, 1350292156, 1350292087, 1350291541, 1350291479, 1350291381, 1350290218, 1350290118, 1350290045, 1350289987, 1350289919]} ##### 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.01578497886657715 #### 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 Wed Apr 16 15:18:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22081286) 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 : 22081286 get user id for portfolio 22081286 get sub ptf for main ptf 22081286, type 3726 and hashtags ['autre_refus', 'Carton_gris', 'environnement', 'papier', 'mal_croppe', 'Carton_brun', 'cartonnette', 'plastique', 'metal', 'kraft', 'flou', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22081286 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','environnement','papier','mal_croppe','Carton_brun','cartonnette','plastique','metal','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22081286 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','environnement','papier','mal_croppe','Carton_brun','cartonnette','plastique','metal','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22081286, 'sub_port_id': 22081287, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568163, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'cartonnette': {'main_port_id': 22081286, 'sub_port_id': 22081288, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568164, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'environnement': {'main_port_id': 22081286, 'sub_port_id': 22081289, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568165, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'autre_refus': {'main_port_id': 22081286, 'sub_port_id': 22081290, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568166, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'mal_croppe': {'main_port_id': 22081286, 'sub_port_id': 22081291, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568167, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'papier': {'main_port_id': 22081286, 'sub_port_id': 22081292, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568168, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'flou': {'main_port_id': 22081286, 'sub_port_id': 22081293, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568169, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'kraft': {'main_port_id': 22081286, 'sub_port_id': 22081294, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568170, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22081286, 'sub_port_id': 22081295, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568171, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'metal': {'main_port_id': 22081286, 'sub_port_id': 22081296, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568172, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'Carton_gris': {'main_port_id': 22081286, 'sub_port_id': 22081297, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568173, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}, 'Carton_brun': {'main_port_id': 22081286, 'sub_port_id': 22081298, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568174, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22081287 , 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=22081286 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 (22081287) result : ((1350294818,), (1350294819,), (1350294820,), (1350295034,), (1350296332,), (1350296334,), (1350297111,), (1350297216,), (1350297217,), (1350297292,), (1350297323,), (1350297324,), (1350297326,), (1350297327,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081288 , 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=22081286 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 (22081288) result : ((1350294879,), (1350294889,), (1350296310,), (1350296313,), (1350296316,), (1350296529,), (1350296530,), (1350296914,), (1350296915,), (1350297288,), (1350297289,), (1350297318,), (1350297422,), (1350297424,), (1350298288,), (1350298289,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081289 , 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=22081286 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 (22081289) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081290 , 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=22081286 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 (22081290) result : ((1350297286,), (1350297314,), (1350297316,), (1350297410,), (1350298099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081291 , 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=22081286 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 (22081291) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081292 , 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=22081286 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 (22081292) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081293 , 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=22081286 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 (22081293) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081294 , 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=22081286 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 (22081294) result : ((1350294829,), (1350297218,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081295 , 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=22081286 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 (22081295) result : ((1350294772,), (1350294825,), (1350294827,), (1350294830,), (1350296286,), (1350296289,), (1350296292,), (1350296503,), (1350297209,), (1350297210,), (1350297211,), (1350297804,), (1350298098,), (1350298270,), (1350298272,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081296 , 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=22081286 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 (22081296) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081297 , 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=22081286 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 (22081297) result : ((1350294841,), (1350294843,), (1350296513,), (1350297109,), (1350297214,), (1350297287,), (1350297415,), (1350298280,), (1350298281,), (1350298282,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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 22081298 , 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=22081286 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 (22081298) result : ((1350294982,), (1350294991,), (1350295001,), (1350295011,), (1350295020,), (1350295026,), (1350296540,), (1350296749,), (1350296750,), (1350297320,), (1350297321,), (1350297809,), (1350298290,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22081286) result : ((1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,)) 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 (1350296100,1350296700) 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`=22081286 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','environnement','papier','mal_croppe','Carton_brun','cartonnette','plastique','metal','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22081286 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','environnement','papier','mal_croppe','Carton_brun','cartonnette','plastique','metal','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22081286, 'sub_port_id': 22081311, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568199, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'cartonnette': {'main_port_id': 22081286, 'sub_port_id': 22081312, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568200, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'environnement': {'main_port_id': 22081286, 'sub_port_id': 22081313, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568201, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'autre_refus': {'main_port_id': 22081286, 'sub_port_id': 22081314, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568202, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'mal_croppe': {'main_port_id': 22081286, 'sub_port_id': 22081315, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568203, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'papier': {'main_port_id': 22081286, 'sub_port_id': 22081316, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568204, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'flou': {'main_port_id': 22081286, 'sub_port_id': 22081322, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568205, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'kraft': {'main_port_id': 22081286, 'sub_port_id': 22081326, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568206, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22081286, 'sub_port_id': 22081330, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568207, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'metal': {'main_port_id': 22081286, 'sub_port_id': 22081332, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568208, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'Carton_gris': {'main_port_id': 22081286, 'sub_port_id': 22081333, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568209, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}, 'Carton_brun': {'main_port_id': 22081286, 'sub_port_id': 22081334, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14568210, 'last_updated_at': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 15, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 15, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081288 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081289 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081290 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081291 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081292 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22081334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22081298 lien utilise dans velours : https://www.fotonower.com/velours/22081311,22081312,22081313,22081314,22081315,22081316,22081322,22081326,22081330,22081332,22081333,22081334?tags=plastique,cartonnette,environnement,autre_refus,mal_croppe,papier,flou,kraft,Teint_Dans_La_Masse,metal,Carton_gris,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22081286]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350298077] map_info['map_portfolio_photo'] : {22081286: [1350298077, 1350297673, 1350297524, 1350297509, 1350297330, 1350297322, 1350297312, 1350297271, 1350297267, 1350297263, 1350297258, 1350297253, 1350297199, 1350297177, 1350297171, 1350297162, 1350297156, 1350297085, 1350297082, 1350297078, 1350297072, 1350296852, 1350296836, 1350296828, 1350296705, 1350296700, 1350296675, 1350296647, 1350296343, 1350296293, 1350296268, 1350296263, 1350296170, 1350296165, 1350296161, 1350296154, 1350296100, 1350296089, 1350296052, 1350296025, 1350295320, 1350295264, 1350295172, 1350295095, 1350294301, 1350294182, 1350294032, 1350293910, 1350293782, 1350292326, 1350292232, 1350292156, 1350292087, 1350291541, 1350291479, 1350291381, 1350290218, 1350290118, 1350290045, 1350289987, 1350289919]} final : False mtd_id 4302 list_pids : [1350298077] Looping around the photos to save general results len do output : 1 /22081286. 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, '2726297') ('4302', '22081286', '1350298077', None, None, None, None, None, '2726297') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22081286', "{'plastique': 22081287, 'cartonnette': 22081288, 'environnement': 22081289, 'autre_refus': 22081290, 'mal_croppe': 22081291, 'papier': 22081292, 'flou': 22081293, 'kraft': 22081294, 'Teint_Dans_La_Masse': 22081295, 'metal': 22081296, 'Carton_gris': 22081297, 'Carton_brun': 22081298}", None, None, None, None, '2726297'), ('4302', '22081286', '1350298077', None, None, None, None, None, '2726297')] time used for this insertion : 0.013806343078613281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47437548637390137 time spend to save output : 0.014099836349487305 total time spend for step 1 : 0.48847532272338867 step2:final Wed Apr 16 15:18:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22081286) 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 22081286 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350290218,1350290118,1350290045,1350289987,1350289919,1350291541,1350291479,1350291381,1350292326,1350292232,1350292156,1350292087,1350294301,1350294182,1350294032,1350293910,1350293782,1350295320,1350295264,1350295172,1350295095,1350296100,1350296089,1350296052,1350296025,1350296170,1350296165,1350296161,1350296154,1350296343,1350296293,1350296268,1350296263,1350296705,1350296700,1350296675,1350296647,1350296852,1350296836,1350296828,1350297085,1350297082,1350297078,1350297072,1350297199,1350297177,1350297171,1350297162,1350297156,1350297271,1350297267,1350297263,1350297258,1350297253,1350297330,1350297322,1350297312,1350297673,1350297524,1350297509,1350298077); 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([22081286]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350298077: ('0.04618641835603432',)} new output for save of step final : {1350298077: ('0.04618641835603432',)} [1350298077] map_info['map_portfolio_photo'] : {22081286: [1350298077, 1350297673, 1350297524, 1350297509, 1350297330, 1350297322, 1350297312, 1350297271, 1350297267, 1350297263, 1350297258, 1350297253, 1350297199, 1350297177, 1350297171, 1350297162, 1350297156, 1350297085, 1350297082, 1350297078, 1350297072, 1350296852, 1350296836, 1350296828, 1350296705, 1350296700, 1350296675, 1350296647, 1350296343, 1350296293, 1350296268, 1350296263, 1350296170, 1350296165, 1350296161, 1350296154, 1350296100, 1350296089, 1350296052, 1350296025, 1350295320, 1350295264, 1350295172, 1350295095, 1350294301, 1350294182, 1350294032, 1350293910, 1350293782, 1350292326, 1350292232, 1350292156, 1350292087, 1350291541, 1350291479, 1350291381, 1350290218, 1350290118, 1350290045, 1350289987, 1350289919]} final : False mtd_id 4302 list_pids : [1350298077] Looping around the photos to save general results len do output : 1 /1350298077.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, '2726297') ('4302', '22081286', '1350298077', None, None, None, None, None, '2726297') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22081286', '1350298077', '0.04618641835603432', None, None, None, None, '2726297')] time used for this insertion : 0.011758804321289062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06984305381774902 time spend to save output : 0.011983633041381836 total time spend for step 2 : 0.08182668685913086 step3:velours_tree Wed Apr 16 15:18:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22081286: [{'plastique': 22081287, 'cartonnette': 22081288, 'environnement': 22081289, 'autre_refus': 22081290, 'mal_croppe': 22081291, 'papier': 22081292, 'flou': 22081293, 'kraft': 22081294, 'Teint_Dans_La_Masse': 22081295, 'metal': 22081296, 'Carton_gris': 22081297, 'Carton_brun': 22081298}]} input_args_next_step : {22081286: ()} output_args : {22081286: [{'plastique': 22081287, 'cartonnette': 22081288, 'environnement': 22081289, 'autre_refus': 22081290, 'mal_croppe': 22081291, 'papier': 22081292, 'flou': 22081293, 'kraft': 22081294, 'Teint_Dans_La_Masse': 22081295, 'metal': 22081296, 'Carton_gris': 22081297, 'Carton_brun': 22081298}]} args : 22081286 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 : ({'plastique': 22081287, 'cartonnette': 22081288, 'environnement': 22081289, 'autre_refus': 22081290, 'mal_croppe': 22081291, 'papier': 22081292, 'flou': 22081293, 'kraft': 22081294, 'Teint_Dans_La_Masse': 22081295, 'metal': 22081296, 'Carton_gris': 22081297, 'Carton_brun': 22081298},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22081286) 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([22081286]) 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.4691195487976074 time spend to save output : 5.6743621826171875e-05 total time spend for step 3 : 0.4691762924194336 step4:send_mail_cod Wed Apr 16 15:18:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350298077: ('0.04618641835603432',)} input_args_next_step : {1350298077: ()} output_args : {1350298077: ('0.04618641835603432',)} args : 1350298077 depend.output_id : 0 complete output_args for input 3 : {22081286: [{'plastique': 22081287, 'cartonnette': 22081288, 'environnement': 22081289, 'autre_refus': 22081290, 'mal_croppe': 22081291, 'papier': 22081292, 'flou': 22081293, 'kraft': 22081294, 'Teint_Dans_La_Masse': 22081295, 'metal': 22081296, 'Carton_gris': 22081297, 'Carton_brun': 22081298}]} input_args_next_step : {1350298077: ('0.04618641835603432',), 22081286: ()} output_args : {22081286: [{'plastique': 22081287, 'cartonnette': 22081288, 'environnement': 22081289, 'autre_refus': 22081290, 'mal_croppe': 22081291, 'papier': 22081292, 'flou': 22081293, 'kraft': 22081294, 'Teint_Dans_La_Masse': 22081295, 'metal': 22081296, 'Carton_gris': 22081297, 'Carton_brun': 22081298}]} args : 22081286 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.04618641835603432',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22081286) 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 (1350298077) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350298077 download finish for photo 1350298077 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22081286_16-04-2025_15_18_57.pdf 22081287 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=22081287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350294818: '1744808651_1896251_1350291479_70fa9bab0352fa5bb301113b81c5b64b_rle_crop_3749203571_0.png', 1350294819: '1744808651_1896251_1350291479_70fa9bab0352fa5bb301113b81c5b64b_rle_crop_3749203579_0.png', 1350294820: '1744808651_1896251_1350291479_70fa9bab0352fa5bb301113b81c5b64b_rle_crop_3749203570_0.png', 1350295034: '1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203639_0.png', 1350296332: '1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211313_0.png', 1350296334: '1744808867_2859208_1350295095_339f10084646f17afc07156a125fadd5_rle_crop_3749211322_0.png', 1350297111: '1744809073_1901070_1350296828_2b2e9d4992b7a94723d403c1ee68bee5_rle_crop_3749217201_0.png', 1350297216: '1744809131_1901723_1350296700_7025466fbb78208ae2bbd5a3411f7871_rle_crop_3749217734_0.png', 1350297217: '1744809131_1901723_1350296647_8ec40991f80d34448d168d58c511a835_rle_crop_3749217779_0.png', 1350297292: '1744809190_1902331_1350296705_ebe4e7ee552d03bd3e6310a1fb9428dd_rle_crop_3749218083_0.png', 1350297323: '1744809221_2867566_1350296343_ba2baec5ee490db2282deac6d2dd078f_rle_crop_3749218879_0.png', 1350297324: '1744809221_2867566_1350296165_22d9912d58c9ca65845caaa4da966f77_rle_crop_3749218893_0.png', 1350297326: '1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218940_0.png', 1350297327: '1744809221_2867566_1350296154_3a8447089312d333185f1a3ade665996_rle_crop_3749218971_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9fdb29c0aceba1d73ac355db7354bbbd_11097015.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e05c85cb330f9ce5366fef1ff0b0ea1e_11574503.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/67a1a906798fd04ee36a73826a4d9ebc_12451137.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e3dd23cabdd0fd2d98e3ab8794d3d47e_21927731.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/73190ade0b9cf7043a04be14ac5fe3f3_12970644.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/569f4fcc55ae4bded4ce8d08557a2730_70895609.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/15f11de7cc48d37d57b1cce76bc6dac3_52076106.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/20211b7042ded65d856933ab5329c16c_92721432.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9e2352906036f0f3518fea0f62065337_77424577.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/58308c662e6ad33a54ec200209988d58_12960787.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3291ff1145c9286144c14dbfc8894b03_50492564.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/981b64ee90e4388cf1928fd2d579d61f_50364071.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a2fdd4b019a44f004d3a3e9b272cbe92_84777619.png change filename to text .imagette220812871744809537/ imagette220812871744809537/1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211313_0.png.png imagette220812871744809537/1744808867_2859208_1350295095_339f10084646f17afc07156a125fadd5_rle_crop_3749211322_0.png.png imagette220812871744809537/1744808651_1896251_1350291479_70fa9bab0352fa5bb301113b81c5b64b_rle_crop_3749203579_0.png.png imagette220812871744809537/1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218940_0.png.png imagette220812871744809537/1744809221_2867566_1350296154_3a8447089312d333185f1a3ade665996_rle_crop_3749218971_0.png.png imagette220812871744809537/1744809190_1902331_1350296705_ebe4e7ee552d03bd3e6310a1fb9428dd_rle_crop_3749218083_0.png.png imagette220812871744809537/1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203639_0.png.png imagette220812871744809537/1744809131_1901723_1350296647_8ec40991f80d34448d168d58c511a835_rle_crop_3749217779_0.png.png imagette220812871744809537/1744809221_2867566_1350296165_22d9912d58c9ca65845caaa4da966f77_rle_crop_3749218893_0.png.png imagette220812871744809537/1744809131_1901723_1350296700_7025466fbb78208ae2bbd5a3411f7871_rle_crop_3749217734_0.png.png imagette220812871744809537/1744809073_1901070_1350296828_2b2e9d4992b7a94723d403c1ee68bee5_rle_crop_3749217201_0.png.png imagette220812871744809537/1744809221_2867566_1350296343_ba2baec5ee490db2282deac6d2dd078f_rle_crop_3749218879_0.png.png imagette220812871744809537/1744808651_1896251_1350291479_70fa9bab0352fa5bb301113b81c5b64b_rle_crop_3749203570_0.png.png imagette220812871744809537/1744808651_1896251_1350291479_70fa9bab0352fa5bb301113b81c5b64b_rle_crop_3749203571_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c8935a634991bac2e7ff83f03140fec6_78421393.png imagette220812871744809537 22081288 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=22081288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350294879: '1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203500_0.png', 1350294889: '1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203499_0.png', 1350296310: '1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211306_0.png', 1350296313: '1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211305_0.png', 1350296316: '1744808867_2859208_1350295095_339f10084646f17afc07156a125fadd5_rle_crop_3749211316_0.png', 1350296529: '1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211692_0.png', 1350296530: '1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211694_0.png', 1350296914: '1744809013_1900261_1350296293_6761ed463a3a709a2c1eb23ff8e19c50_rle_crop_3749213567_0.png', 1350296915: '1744809013_1900261_1350296263_1b39d1843dc1b846f64ea85b61d83204_rle_crop_3749213587_0.png', 1350297288: '1744809190_1902331_1350296293_6761ed463a3a709a2c1eb23ff8e19c50_rle_crop_3749213567_0.png', 1350297289: '1744809190_1902331_1350296263_1b39d1843dc1b846f64ea85b61d83204_rle_crop_3749213587_0.png', 1350297318: '1744809221_2867566_1350296343_ba2baec5ee490db2282deac6d2dd078f_rle_crop_3749218877_0.png', 1350297422: '1744809253_1902932_1350297171_c97e0e6631dbd8fd9cd246355103b9b9_rle_crop_3749219343_0.png', 1350297424: '1744809253_1902932_1350297156_695d69a61909f96bbca35e4bce7080cb_rle_crop_3749219370_0.png', 1350298288: '1744809431_1905371_1350297263_8a1cc729864ae3398eaf625ab3870bb1_rle_crop_3749222589_0.png', 1350298289: '1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222625_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8acceb18bc7d919baf82c996fdb79291_67822095.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a9420a1d16d59fae828bc7bf04268349_6100708.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/25505a5f6bede30aaf76e8db7131bf3d_30159029.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/86a45e3060eb66e9e2ec038ea75a5390_92003676.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ab0bc955f9ae5c4687bf7b3b247a9c93_18778427.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/aaf6437653f0f519cc4787179d60e1a7_39272438.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3b352273a4e7ccc91164443476205181_95503430.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/998360336fc6f23f3620d26ee7a79e3e_43396591.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/124f643e83877c07509d107bb66e5d1f_37939257.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/998360336fc6f23f3620d26ee7a79e3e_83403511.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/124f643e83877c07509d107bb66e5d1f_63387514.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d06958d7388b889778cf8fb9bb4570b2_87075154.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/97752c1d97806d077b3eeedf0fd6264d_79624536.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7d4d75db760f7ee79acbdf91d480d051_38348111.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f487e02d58933244f9b6096c5621943e_67092400.png change filename to text .imagette220812881744809538/ imagette220812881744809538/1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203500_0.png.png imagette220812881744809538/1744809431_1905371_1350297263_8a1cc729864ae3398eaf625ab3870bb1_rle_crop_3749222589_0.png.png imagette220812881744809538/1744809253_1902932_1350297171_c97e0e6631dbd8fd9cd246355103b9b9_rle_crop_3749219343_0.png.png imagette220812881744809538/1744809013_1900261_1350296263_1b39d1843dc1b846f64ea85b61d83204_rle_crop_3749213587_0.png.png imagette220812881744809538/1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203499_0.png.png imagette220812881744809538/1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211692_0.png.png imagette220812881744809538/1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211306_0.png.png imagette220812881744809538/1744809253_1902932_1350297156_695d69a61909f96bbca35e4bce7080cb_rle_crop_3749219370_0.png.png imagette220812881744809538/1744809190_1902331_1350296293_6761ed463a3a709a2c1eb23ff8e19c50_rle_crop_3749213567_0.png.png imagette220812881744809538/1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222625_0.png.png imagette220812881744809538/1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211305_0.png.png imagette220812881744809538/1744809013_1900261_1350296293_6761ed463a3a709a2c1eb23ff8e19c50_rle_crop_3749213567_0.png.png imagette220812881744809538/1744809221_2867566_1350296343_ba2baec5ee490db2282deac6d2dd078f_rle_crop_3749218877_0.png.png imagette220812881744809538/1744808867_2859208_1350295095_339f10084646f17afc07156a125fadd5_rle_crop_3749211316_0.png.png imagette220812881744809538/1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211694_0.png.png imagette220812881744809538/1744809190_1902331_1350296263_1b39d1843dc1b846f64ea85b61d83204_rle_crop_3749213587_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7a52fcc4e57ce5b8e5e5b31949b97328_85825273.png imagette220812881744809538 22081290 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=22081290 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350297286: '1744809190_1902331_1350296705_ebe4e7ee552d03bd3e6310a1fb9428dd_rle_crop_3749218084_0.png', 1350297314: '1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218939_0.png', 1350297316: '1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218936_0.png', 1350297410: '1744809253_1902932_1350297177_562b7b6ef2bb0ad5dd304bb698b50281_rle_crop_3749219335_0.png', 1350298099: '1744809373_1904485_1350297322_0f306f7586e8ab06d3ec4bbfd4f8ef00_rle_crop_3749220860_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7064764cdb9241fbf15bb71d0a9908c3_98992392.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8fbd6ec744d6f8805aa0e824699effed_75535044.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f89ff655bee189628847afbacf5436cc_41796701.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e2e7492c1c0b8c75b397b5b64563c34d_73566967.png change filename to text .imagette220812901744809539/ imagette220812901744809539/1744809373_1904485_1350297322_0f306f7586e8ab06d3ec4bbfd4f8ef00_rle_crop_3749220860_0.png.png imagette220812901744809539/1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218939_0.png.png imagette220812901744809539/1744809190_1902331_1350296705_ebe4e7ee552d03bd3e6310a1fb9428dd_rle_crop_3749218084_0.png.png imagette220812901744809539/1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218936_0.png.png imagette220812901744809539/1744809253_1902932_1350297177_562b7b6ef2bb0ad5dd304bb698b50281_rle_crop_3749219335_0.png.png imagette220812911744809540/ imagette220812931744809540/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6cf7e7577e0218e8b130efb66591e149_17110779.png imagette220812901744809539 22081291 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=22081291 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220812911744809540 22081293 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=22081293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220812931744809540 22081294 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=22081294 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350294829: '1744808651_1896251_1350291381_4bfdd828468d38609b228090ebc5b17c_rle_crop_3749203601_0.png', 1350297218: '1744809131_1901723_1350296647_8ec40991f80d34448d168d58c511a835_rle_crop_3749217775_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e74e4cebb4fcc62621707266c61fb171_50748257.png change filename to text .imagette220812941744809540/ imagette220812941744809540/1744809131_1901723_1350296647_8ec40991f80d34448d168d58c511a835_rle_crop_3749217775_0.png.png imagette220812941744809540/1744808651_1896251_1350291381_4bfdd828468d38609b228090ebc5b17c_rle_crop_3749203601_0.png.png imagette220812961744809540/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8cc23466b97ac86adec7257cadc3816e_7742856.png imagette220812941744809540 22081296 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=22081296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220812961744809540 22081295 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=22081295 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350294772: '1744808651_1896251_1350291381_4bfdd828468d38609b228090ebc5b17c_rle_crop_3749203605_0.png', 1350294825: '1744808622_2852421_1350290218_7c1bf7eaf56e6655a62ef6c418c8711f_rle_crop_3749203522_0.png', 1350294827: '1744808622_2852421_1350290118_ad4a3c1215ccdfdfd187d1368a7688dd_rle_crop_3749203547_0.png', 1350294830: '1744808622_2852421_1350290118_ad4a3c1215ccdfdfd187d1368a7688dd_rle_crop_3749203544_0.png', 1350296286: '1744808867_2859208_1350295264_c2a7e2d0ab1f2e126ace642f8a703e1f_rle_crop_3749211245_0.png', 1350296289: '1744808867_2859208_1350295264_c2a7e2d0ab1f2e126ace642f8a703e1f_rle_crop_3749211246_0.png', 1350296292: '1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211307_0.png', 1350296503: '1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211695_0.png', 1350297209: '1744809131_1901723_1350296852_187259b7480ed0b167d726a24bb4d2e8_rle_crop_3749217717_0.png', 1350297210: '1744809131_1901723_1350296675_951c611021c8841f463a6444d1af119d_rle_crop_3749217756_0.png', 1350297211: '1744809131_1901723_1350296647_8ec40991f80d34448d168d58c511a835_rle_crop_3749217783_0.png', 1350297804: '1744809311_1903537_1350297085_eed7546babec6f500f2d2d5d5763f336_rle_crop_3749219490_0.png', 1350298098: '1744809373_1904485_1350297312_728d60089ff284a92e797618068cc399_rle_crop_3749220877_0.png', 1350298270: '1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222619_0.png', 1350298272: '1744809431_1905371_1350297253_36956872be649cfb0b2c4ec5f9dc3691_rle_crop_3749222653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5b4371d31af7e9a76763677f035c949c_32697411.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0cd039c9c42bc130314dd5d719821615_70630644.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4dd3a2431f4a0a390b9917fbb664971a_5491625.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/54f435d4cc0a4d094ebb207e2947742f_27200536.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a901c8b75024de1e18b79b60dd2a1132_85469184.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1820e708290c2d6a47794c0d93421997_25557651.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cf4e8d5adb513ccb5d9c83443978ace0_49400770.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/407efba81c20470e0846a40d61300868_67401038.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8b1dcc9d7ef11ee84e7d67c29be65328_68993660.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b59099596603c132e1e15e26a87c9147_70817630.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/58d6cfcb8f9d57f2a00eeeb52d0d8470_26926333.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cb5c2eb339a20a37d06cbd87098fcf32_77053252.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2ca458613ddbce267f1eb95aa4163fb1_41619994.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/36dd9a076a1b3114310ba8699c91723c_87732391.png change filename to text .imagette220812951744809540/ imagette220812951744809540/1744809131_1901723_1350296675_951c611021c8841f463a6444d1af119d_rle_crop_3749217756_0.png.png imagette220812951744809540/1744809131_1901723_1350296852_187259b7480ed0b167d726a24bb4d2e8_rle_crop_3749217717_0.png.png imagette220812951744809540/1744808867_2859208_1350295264_c2a7e2d0ab1f2e126ace642f8a703e1f_rle_crop_3749211245_0.png.png imagette220812951744809540/1744808622_2852421_1350290218_7c1bf7eaf56e6655a62ef6c418c8711f_rle_crop_3749203522_0.png.png imagette220812951744809540/1744808651_1896251_1350291381_4bfdd828468d38609b228090ebc5b17c_rle_crop_3749203605_0.png.png imagette220812951744809540/1744809311_1903537_1350297085_eed7546babec6f500f2d2d5d5763f336_rle_crop_3749219490_0.png.png imagette220812951744809540/1744808622_2852421_1350290118_ad4a3c1215ccdfdfd187d1368a7688dd_rle_crop_3749203544_0.png.png imagette220812951744809540/1744809431_1905371_1350297253_36956872be649cfb0b2c4ec5f9dc3691_rle_crop_3749222653_0.png.png imagette220812951744809540/1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211695_0.png.png imagette220812951744809540/1744808622_2852421_1350290118_ad4a3c1215ccdfdfd187d1368a7688dd_rle_crop_3749203547_0.png.png imagette220812951744809540/1744809131_1901723_1350296647_8ec40991f80d34448d168d58c511a835_rle_crop_3749217783_0.png.png imagette220812951744809540/1744809373_1904485_1350297312_728d60089ff284a92e797618068cc399_rle_crop_3749220877_0.png.png imagette220812951744809540/1744808867_2859208_1350295172_0acabde249b6845fc0352673505edf69_rle_crop_3749211307_0.png.png imagette220812951744809540/1744808867_2859208_1350295264_c2a7e2d0ab1f2e126ace642f8a703e1f_rle_crop_3749211246_0.png.png imagette220812951744809540/1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222619_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e76372f150554d8b5004b4acd4b5fccc_54237014.png imagette220812951744809540 22081297 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=22081297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350294841: '1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203511_0.png', 1350294843: '1744808622_2852421_1350290045_9916faf957afa210464277c21c0f68d6_rle_crop_3749203552_0.png', 1350296513: '1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211693_0.png', 1350297109: '1744809073_1901070_1350296836_7d469edf2d3780232bc323098004f8fb_rle_crop_3749217190_0.png', 1350297214: '1744809131_1901723_1350296852_187259b7480ed0b167d726a24bb4d2e8_rle_crop_3749217709_0.png', 1350297287: '1744809190_1902331_1350296705_ebe4e7ee552d03bd3e6310a1fb9428dd_rle_crop_3749218085_0.png', 1350297415: '1744809253_1902932_1350297156_695d69a61909f96bbca35e4bce7080cb_rle_crop_3749219368_0.png', 1350298280: '1744809431_1905371_1350297267_bb1452714cff7c76828ef633502f3d3f_rle_crop_3749222528_0.png', 1350298281: '1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222616_0.png', 1350298282: '1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222618_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d396b0a0ee0722b777ad467e5627b1b9_12424122.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2e014bc71f119b1f9c7ed382a917899c_40522326.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f2d4e89745f769b7e39e0c42bdc76300_82094873.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8c471b67ed39a9e4db3b275f26556ff9_95097307.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/52dd5a315487b77ad4245dd7d5e4395d_78422389.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ab4ac97448cadefefa9ba7dc85eef9e1_58365224.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/36a43e862fc329c001f8285b6ef6494f_15867244.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7180a0f28514e1c0406120fc58351061_96079763.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2095d161af980660c9fd4e36abe8242c_21301841.png change filename to text .imagette220812971744809541/ imagette220812971744809541/1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211693_0.png.png imagette220812971744809541/1744809253_1902932_1350297156_695d69a61909f96bbca35e4bce7080cb_rle_crop_3749219368_0.png.png imagette220812971744809541/1744808622_2852421_1350290045_9916faf957afa210464277c21c0f68d6_rle_crop_3749203552_0.png.png imagette220812971744809541/1744809131_1901723_1350296852_187259b7480ed0b167d726a24bb4d2e8_rle_crop_3749217709_0.png.png imagette220812971744809541/1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222616_0.png.png imagette220812971744809541/1744809073_1901070_1350296836_7d469edf2d3780232bc323098004f8fb_rle_crop_3749217190_0.png.png imagette220812971744809541/1744809431_1905371_1350297267_bb1452714cff7c76828ef633502f3d3f_rle_crop_3749222528_0.png.png imagette220812971744809541/1744809190_1902331_1350296705_ebe4e7ee552d03bd3e6310a1fb9428dd_rle_crop_3749218085_0.png.png imagette220812971744809541/1744809431_1905371_1350297258_0fceb5df33916baa4781875d821b99b7_rle_crop_3749222618_0.png.png imagette220812971744809541/1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203511_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/db3008aaa44694301f32cce78575e0ad_27135492.png imagette220812971744809541 22081298 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=22081298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350294982: '1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203503_0.png', 1350294991: '1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203514_0.png', 1350295001: '1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203505_0.png', 1350295011: '1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203633_0.png', 1350295020: '1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203636_0.png', 1350295026: '1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203632_0.png', 1350296540: '1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211697_0.png', 1350296749: '1744808941_1899296_1350294301_a9d26d318275a4cc84b222d4e6ffd8f9_rle_crop_3749212902_0.png', 1350296750: '1744808941_1899296_1350292087_1140b0566d66809eb904b72a1700eff2_rle_crop_3749212985_0.png', 1350297320: '1744809221_2867566_1350296165_22d9912d58c9ca65845caaa4da966f77_rle_crop_3749218892_0.png', 1350297321: '1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218941_0.png', 1350297809: '1744809311_1903537_1350297085_eed7546babec6f500f2d2d5d5763f336_rle_crop_3749219493_0.png', 1350298290: '1744809431_1905371_1350297330_e231fbe45f844a8de64c654054d4baf1_rle_crop_3749222514_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/04229e462940daac470c90acdc9e0d14_75778358.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cf4e7adac386882d5593effaf80eacd0_95959985.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/bf568fd119350413a7753bce09d25976_76564028.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0eb1fa6836243ba2044f06f796da5c78_56929817.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b7c56010deaf8af1f6de2ffe4c0bbb0b_2608748.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/21fd7619709961c1567be78f61d7fda0_62727681.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/81df7b3bbeb25344a634a36babeeda46_63017531.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ffe1b977ab354512aef45bcead052c62_7543577.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4aa94c3799a8138522953753fedb5aed_44175580.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5fe0e937c58175cfe78a79a0d9d85335_18174524.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/db232fe8fd8eb902a88843acca1311d7_14809613.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9a8410fa4aeef39fb7ca6c7136039592_95039860.png change filename to text .imagette220812981744809541/ imagette220812981744809541/1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203514_0.png.png imagette220812981744809541/1744809311_1903537_1350297085_eed7546babec6f500f2d2d5d5763f336_rle_crop_3749219493_0.png.png imagette220812981744809541/1744809221_2867566_1350296165_22d9912d58c9ca65845caaa4da966f77_rle_crop_3749218892_0.png.png imagette220812981744809541/1744809221_2867566_1350296161_1540e4f7f96e3ae1d3dd78ddf77e3418_rle_crop_3749218941_0.png.png imagette220812981744809541/1744808941_1899296_1350294301_a9d26d318275a4cc84b222d4e6ffd8f9_rle_crop_3749212902_0.png.png imagette220812981744809541/1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203503_0.png.png imagette220812981744809541/1744808941_1899296_1350292087_1140b0566d66809eb904b72a1700eff2_rle_crop_3749212985_0.png.png imagette220812981744809541/1744808622_2852421_1350291541_a9ce6c9fdd92f513acb3c3e64602f0fe_rle_crop_3749203505_0.png.png imagette220812981744809541/1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203636_0.png.png imagette220812981744809541/1744809431_1905371_1350297330_e231fbe45f844a8de64c654054d4baf1_rle_crop_3749222514_0.png.png imagette220812981744809541/1744808892_1898632_1350296089_d21f05b609fd5584d35ce951e2e16878_rle_crop_3749211697_0.png.png imagette220812981744809541/1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203632_0.png.png imagette220812981744809541/1744808622_2852421_1350289919_006da0e51f4e1dc36b7046ee3500ee9a_rle_crop_3749203633_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/edcc159293ea73fbd6099ec3d8ccf0ad_44208480.png imagette220812981744809541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22081286 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22081311,22081312,22081313,22081314,22081315,22081316,22081322,22081326,22081330,22081332,22081333,22081334?tags=plastique,cartonnette,environnement,autre_refus,mal_croppe,papier,flou,kraft,Teint_Dans_La_Masse,metal,Carton_gris,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350298077] : ('0.04618641835603432',) no score found for photo 1350298077 We are sending mail with results at report@fotonower.com refus_total : 0.04618641835603432 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=22081286 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_P22081286_16-04-2025_15_18_57.pdf results_Auto_P22081286_16-04-2025_15_18_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22081286_16-04-2025_15_18_57.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','22081286','results_Auto_P22081286_16-04-2025_15_18_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22081286_16-04-2025_15_18_57.pdf','pdf','','0.23','0.04618641835603432') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22081286]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350298077] map_info['map_portfolio_photo'] : {22081286: [1350298077, 1350297673, 1350297524, 1350297509, 1350297330, 1350297322, 1350297312, 1350297271, 1350297267, 1350297263, 1350297258, 1350297253, 1350297199, 1350297177, 1350297171, 1350297162, 1350297156, 1350297085, 1350297082, 1350297078, 1350297072, 1350296852, 1350296836, 1350296828, 1350296705, 1350296700, 1350296675, 1350296647, 1350296343, 1350296293, 1350296268, 1350296263, 1350296170, 1350296165, 1350296161, 1350296154, 1350296100, 1350296089, 1350296052, 1350296025, 1350295320, 1350295264, 1350295172, 1350295095, 1350294301, 1350294182, 1350294032, 1350293910, 1350293782, 1350292326, 1350292232, 1350292156, 1350292087, 1350291541, 1350291479, 1350291381, 1350290218, 1350290118, 1350290045, 1350289987, 1350289919]} final : False mtd_id 4302 list_pids : [1350298077] 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, '2726297') ('4302', '22081286', '1350298077', None, None, None, None, None, '2726297') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22081286', '1350298077', None, None, None, None, None, '2726297')] time used for this insertion : 0.011574029922485352 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.394755840301514 time spend to save output : 0.01174783706665039 total time spend for step 4 : 5.406503677368164 step5:split_time_score Wed Apr 16 15:19:03 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 : ['22081286'] 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 : [('22081286',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22081286) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350298077: {'path': 'temp/1744809537_1777759_1350298077_b21832cc2421beb60b2d00f9fccf0a47.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 = 22081286; (('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 = 22081286 group by h (('15', 61),) 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=22081286 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 (22081286) 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 (22081286) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22081286 Nombre de photos uploadées : 61 / 23040 (0%) 16042025 22081286 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 16042025 22081286 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1350290218, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7c1bf7eaf56e6655a62ef6c418c8711f.jpg', 'username': None, 'uploaded_at': 1744808467, 'text': 'image_16042025_15_00_03_009158m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350290118, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ad4a3c1215ccdfdfd187d1368a7688dd.jpg', 'username': None, 'uploaded_at': 1744808467, 'text': 'image_16042025_15_00_13_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350290045, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9916faf957afa210464277c21c0f68d6.jpg', 'username': None, 'uploaded_at': 1744808467, 'text': 'image_16042025_15_00_23_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350289987, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0d2a2a8a553cf67d30e00a36b42c10a6.jpg', 'username': None, 'uploaded_at': 1744808467, 'text': 'image_16042025_15_00_33_010136m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002257823944091797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22081286, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023847341537475586 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1727020, 'mtr_portfolio_id': 22079577, 'dashboard_result_id': 9887271, '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_P22079577_16-04-2025_14_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079589, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1727020, 'mtr_portfolio_id': 22080323, 'dashboard_result_id': 9887272, '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_P22080323_16-04-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22080328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080335, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1727020, 'mtr_portfolio_id': 22081286, 'dashboard_result_id': 9887273, '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_P22081286_16-04-2025_15_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22081287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22081288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22081289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22081290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22081291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22081292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22081293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22081294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22081295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22081296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22081297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22081298, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1727020, 'mtr_portfolio_id': 22082283, 'dashboard_result_id': 9887274, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22079577 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': 2726184, 'mtr_portfolio_id': 22079577, 'created_at': datetime.datetime(2025, 4, 16, 14, 47, 28), 'result': '0.06771004724594343', 'result_long': None, 'result_double': None}] Qualite : 0.06771004724594343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22079577 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079577_16-04-2025_14_47_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22079577 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_P22079577_16-04-2025_14_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079589, 'pht': 3726}}" where mtr_portfolio_id = 22079577 and dashboard_run_id = 1727020 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`=22079577 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9887271, 0.06771004724594343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079577_16-04-2025_14_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079589, '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 = 22080323 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': 2726225, 'mtr_portfolio_id': 22080323, 'created_at': datetime.datetime(2025, 4, 16, 15, 2, 57), 'result': '0.040715677013258', 'result_long': None, 'result_double': None}] Qualite : 0.040715677013258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22080323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080323_16-04-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22080323 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_P22080323_16-04-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22080328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080335, 'pht': 3726}}" where mtr_portfolio_id = 22080323 and dashboard_run_id = 1727020 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`=22080323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9887272, 0.040715677013258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080323_16-04-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22080328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080335, '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 = 22081286 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': 2726297, 'mtr_portfolio_id': 22081286, 'created_at': datetime.datetime(2025, 4, 16, 15, 18, 57), 'result': '0.04618641835603432', 'result_long': None, 'result_double': None}] Qualite : 0.04618641835603432 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22081286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22081286_16-04-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22081286 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_P22081286_16-04-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22081287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22081288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22081289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22081290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22081291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22081292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22081293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22081294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22081295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22081296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22081297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22081298, 'pht': 3726}}" where mtr_portfolio_id = 22081286 and dashboard_run_id = 1727020 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`=22081286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9887273, 0.04618641835603432, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22081286_16-04-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22081287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22081288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22081289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22081290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22081291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22081292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22081293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22081294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22081295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22081296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22081297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22081298, '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 = 22082283 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22082283 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22082283 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%22082283%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22082283 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 22082283 and dashboard_run_id = 1727020 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079577,22080323,22081286,22082283) result : ((1350275569,), (1350275583,), (1350275588,), (1350275593,), (1350275631,), (1350275635,), (1350275639,), (1350275643,), (1350275651,), (1350275693,), (1350275697,), (1350275702,), (1350275706,), (1350275710,), (1350275768,), (1350275775,), (1350275779,), (1350275923,), (1350275951,), (1350275984,), (1350276019,), (1350276023,), (1350276026,), (1350276402,), (1350276409,), (1350276422,), (1350276432,), (1350276443,), (1350276481,), (1350276869,), (1350276919,), (1350276964,), (1350277000,), (1350277493,), (1350277524,), (1350277577,), (1350277639,), (1350278141,), (1350279009,), (1350279015,), (1350279020,), (1350279028,), (1350279083,), (1350279107,), (1350279139,), (1350279168,), (1350279199,), (1350279620,), (1350279654,), (1350279958,), (1350279987,), (1350280017,), (1350280048,), (1350280278,), (1350280307,), (1350280366,), (1350280430,), (1350280490,), (1350281019,), (1350281049,), (1350281085,), (1350281115,), (1350281184,), (1350281175,), (1350281179,), (1350281479,), (1350281533,), (1350281561,), (1350281586,), (1350281617,), (1350281647,), (1350282268,), (1350282349,), (1350282417,), (1350282470,), (1350282520,), (1350282705,), (1350282707,), (1350282710,), (1350282713,), (1350283142,), (1350283228,), (1350283308,), (1350283361,), (1350283395,), (1350283772,), (1350283803,), (1350283835,), (1350283862,), (1350284412,), (1350284444,), (1350284478,), (1350284918,), (1350284971,), (1350285133,), (1350285204,), (1350285282,), (1350285874,), (1350285916,), (1350285967,), (1350286182,), (1350286595,), (1350286656,), (1350286708,), (1350286792,), (1350286900,), (1350287013,), (1350287016,), (1350287021,), (1350287026,), (1350287030,), (1350287048,), (1350287447,), (1350287509,), (1350287567,), (1350287626,), (1350287685,), (1350287734,), (1350288705,), (1350288762,), (1350288888,), (1350288947,), (1350289009,), (1350289073,), (1350290320,), (1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,), (1350297913,), (1350297945,), (1350297976,), (1350297999,), (1350298006,), (1350298161,), (1350298165,), (1350298171,), (1350298175,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22081286]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350298077] map_info['map_portfolio_photo'] : {22081286: [1350298077, 1350297673, 1350297524, 1350297509, 1350297330, 1350297322, 1350297312, 1350297271, 1350297267, 1350297263, 1350297258, 1350297253, 1350297199, 1350297177, 1350297171, 1350297162, 1350297156, 1350297085, 1350297082, 1350297078, 1350297072, 1350296852, 1350296836, 1350296828, 1350296705, 1350296700, 1350296675, 1350296647, 1350296343, 1350296293, 1350296268, 1350296263, 1350296170, 1350296165, 1350296161, 1350296154, 1350296100, 1350296089, 1350296052, 1350296025, 1350295320, 1350295264, 1350295172, 1350295095, 1350294301, 1350294182, 1350294032, 1350293910, 1350293782, 1350292326, 1350292232, 1350292156, 1350292087, 1350291541, 1350291479, 1350291381, 1350290218, 1350290118, 1350290045, 1350289987, 1350289919]} final : True mtd_id 4302 list_pids : [1350298077] Looping around the photos to save general results len do output : 1 /22081286Didn'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, '2726297') ('4302', '22081286', '1350298077', None, None, None, None, None, '2726297') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22081286', 'None', None, None, None, None, '2726297'), ('4302', '22081286', '1350298077', None, None, None, None, None, '2726297')] time used for this insertion : 0.01527547836303711 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.09967041015625 time spend to save output : 0.015473604202270508 total time spend for step 5 : 1.1151440143585205 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 (2726297) 2.14user 2.37system 0:09.43elapsed 47%CPU (0avgtext+0avgdata 154720maxresident)k 17136inputs+10976outputs (173major+69557minor)pagefaults 0swaps