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 : 2100867 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 (2742238) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2742238) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252595 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2742238'] with mtr_portfolio_ids : ['22252595'] and first list_photo_ids : [] new path : /proc/2100867/ Name: python3 Umask: 0002 State: R (running) Tgid: 2100867 Ngid: 0 Pid: 2100867 PPid: 2100865 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2100867 NSpid: 2100867 NSpgid: 2097644 NSsid: 2097644 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97896 kB VmRSS: 97896 kB RssAnon: 59760 kB RssFile: 38136 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 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: 50 nonvoluntary_ctxt_switches: 164 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2100867', 'Ngid': '0', 'Pid': '2100867', 'PPid': '2100865', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2100867', 'NSpid': '2100867', 'NSpgid': '2097644', 'NSsid': '2097644', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97896 kB', 'VmRSS': '97896 kB', 'RssAnon': '59760 kB', 'RssFile': '38136 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 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': '50', 'nonvoluntary_ctxt_switches': '164'} ('datou_batch_current', '2100867', '1106928', '0', '1106928', '865676', '97896', b'', 'marlene', '2742238') 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 (22252595) 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 (2742238 ) ) 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 (22252595) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351475541, 'portfolio_id': 22252595}, {'photo_id': 1351475502, 'portfolio_id': 22252595}, {'photo_id': 1351475499, 'portfolio_id': 22252595}, {'photo_id': 1351475484, 'portfolio_id': 22252595}, {'photo_id': 1351475402, 'portfolio_id': 22252595}, {'photo_id': 1351475391, 'portfolio_id': 22252595}, {'photo_id': 1351475380, 'portfolio_id': 22252595}, {'photo_id': 1351475378, 'portfolio_id': 22252595}, {'photo_id': 1351475376, 'portfolio_id': 22252595}, {'photo_id': 1351475372, 'portfolio_id': 22252595}, {'photo_id': 1351475340, 'portfolio_id': 22252595}, {'photo_id': 1351475335, 'portfolio_id': 22252595}, {'photo_id': 1351475284, 'portfolio_id': 22252595}, {'photo_id': 1351475266, 'portfolio_id': 22252595}, {'photo_id': 1351475262, 'portfolio_id': 22252595}, {'photo_id': 1351475171, 'portfolio_id': 22252595}, {'photo_id': 1351475143, 'portfolio_id': 22252595}, {'photo_id': 1351475114, 'portfolio_id': 22252595}, {'photo_id': 1351475098, 'portfolio_id': 22252595}, {'photo_id': 1351475096, 'portfolio_id': 22252595}, {'photo_id': 1351474941, 'portfolio_id': 22252595}, {'photo_id': 1351474934, 'portfolio_id': 22252595}, {'photo_id': 1351474932, 'portfolio_id': 22252595}, {'photo_id': 1351474906, 'portfolio_id': 22252595}, {'photo_id': 1351474903, 'portfolio_id': 22252595}, {'photo_id': 1351474900, 'portfolio_id': 22252595}, {'photo_id': 1351474898, 'portfolio_id': 22252595}, {'photo_id': 1351474891, 'portfolio_id': 22252595}, {'photo_id': 1351474884, 'portfolio_id': 22252595}, {'photo_id': 1351474829, 'portfolio_id': 22252595}, {'photo_id': 1351474827, 'portfolio_id': 22252595}, {'photo_id': 1351474792, 'portfolio_id': 22252595}, {'photo_id': 1351474740, 'portfolio_id': 22252595}, {'photo_id': 1351474621, 'portfolio_id': 22252595}, {'photo_id': 1351474619, 'portfolio_id': 22252595}, {'photo_id': 1351474616, 'portfolio_id': 22252595}, {'photo_id': 1351474585, 'portfolio_id': 22252595}, {'photo_id': 1351474583, 'portfolio_id': 22252595}, {'photo_id': 1351474560, 'portfolio_id': 22252595}, {'photo_id': 1351474538, 'portfolio_id': 22252595}, {'photo_id': 1351474536, 'portfolio_id': 22252595}, {'photo_id': 1351474533, 'portfolio_id': 22252595}, {'photo_id': 1351474411, 'portfolio_id': 22252595}, {'photo_id': 1351474355, 'portfolio_id': 22252595}, {'photo_id': 1351474353, 'portfolio_id': 22252595}, {'photo_id': 1351474352, 'portfolio_id': 22252595}, {'photo_id': 1351474350, 'portfolio_id': 22252595}, {'photo_id': 1351474348, 'portfolio_id': 22252595}, {'photo_id': 1351474201, 'portfolio_id': 22252595}, {'photo_id': 1351474195, 'portfolio_id': 22252595}, {'photo_id': 1351474193, 'portfolio_id': 22252595}, {'photo_id': 1351474187, 'portfolio_id': 22252595}, {'photo_id': 1351474054, 'portfolio_id': 22252595}, {'photo_id': 1351474048, 'portfolio_id': 22252595}, {'photo_id': 1351474040, 'portfolio_id': 22252595}, {'photo_id': 1351474036, 'portfolio_id': 22252595}, {'photo_id': 1351474023, 'portfolio_id': 22252595}, {'photo_id': 1351474013, 'portfolio_id': 22252595}, {'photo_id': 1351473962, 'portfolio_id': 22252595}, {'photo_id': 1351473957, 'portfolio_id': 22252595}, {'photo_id': 1351473953, 'portfolio_id': 22252595}, {'photo_id': 1351473907, 'portfolio_id': 22252595}, {'photo_id': 1351473904, 'portfolio_id': 22252595}, {'photo_id': 1351473901, 'portfolio_id': 22252595}, {'photo_id': 1351473873, 'portfolio_id': 22252595}, {'photo_id': 1351473867, 'portfolio_id': 22252595}] map_portfolio_id_photo_id: {22252595: [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262, 1351475171, 1351475143, 1351475114, 1351475098, 1351475096, 1351474941, 1351474934, 1351474932, 1351474906, 1351474903, 1351474900, 1351474898, 1351474891, 1351474884, 1351474829, 1351474827, 1351474792, 1351474740, 1351474621, 1351474619, 1351474616, 1351474585, 1351474583, 1351474560, 1351474538, 1351474536, 1351474533, 1351474411, 1351474355, 1351474353, 1351474352, 1351474350, 1351474348, 1351474201, 1351474195, 1351474193, 1351474187, 1351474054, 1351474048, 1351474040, 1351474036, 1351474023, 1351474013, 1351473962, 1351473957, 1351473953, 1351473907, 1351473904, 1351473901, 1351473873, 1351473867]} ##### 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.016414165496826172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 11 06:30: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 (22252595) 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 : 22252595 get user id for portfolio 22252595 get sub ptf for main ptf 22252595, type 3726 and hashtags ['environnement', 'Carton_brun', 'mal_croppe', 'autre_refus', 'papier', 'Teint_Dans_La_Masse', 'Carton_gris', 'flou', 'kraft', 'metal', 'plastique', 'cartonnette'] 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`=22252595 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','autre_refus','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','metal','plastique','cartonnette')) 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`=22252595 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','autre_refus','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','metal','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22252595, 'sub_port_id': 22252623, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721408, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'Carton_brun': {'main_port_id': 22252595, 'sub_port_id': 22252624, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721409, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'autre_refus': {'main_port_id': 22252595, 'sub_port_id': 22252625, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721410, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'flou': {'main_port_id': 22252595, 'sub_port_id': 22252626, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721411, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'kraft': {'main_port_id': 22252595, 'sub_port_id': 22252627, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721412, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'mal_croppe': {'main_port_id': 22252595, 'sub_port_id': 22252628, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721413, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'plastique': {'main_port_id': 22252595, 'sub_port_id': 22252629, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721414, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22252595, 'sub_port_id': 22252630, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721415, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'environnement': {'main_port_id': 22252595, 'sub_port_id': 22252631, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721416, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'metal': {'main_port_id': 22252595, 'sub_port_id': 22252632, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721417, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'Carton_gris': {'main_port_id': 22252595, 'sub_port_id': 22252633, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721418, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}, 'cartonnette': {'main_port_id': 22252595, 'sub_port_id': 22252634, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721419, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22252623 , 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=22252595 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 (22252623) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252624 , 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=22252595 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 (22252624) result : ((1351474555,), (1351474557,), (1351474559,), (1351474643,), (1351474644,), (1351474645,), (1351474647,), (1351474648,), (1351474649,), (1351474650,), (1351474651,), (1351474940,), (1351475149,), (1351475150,), (1351475151,), (1351475399,), (1351475400,), (1351475401,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252625 , 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=22252595 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 (22252625) result : ((1351474200,), (1351474640,), (1351475126,), (1351475388,), (1351475389,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252626 , 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=22252595 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 (22252626) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252627 , 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=22252595 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 (22252627) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252628 , 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=22252595 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 (22252628) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252629 , 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=22252595 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 (22252629) result : ((1351475260,), (1351475364,), (1351475478,), (1351475479,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252630 , 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=22252595 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 (22252630) result : ((1351474198,), (1351474632,), (1351474633,), (1351474635,), (1351474637,), (1351474638,), (1351474639,), (1351475118,), (1351475119,), (1351475120,), (1351475121,), (1351475257,), (1351475358,), (1351475359,), (1351475360,), (1351475361,), (1351475383,), (1351475384,), (1351475385,), (1351475386,), (1351475387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252631 , 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=22252595 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 (22252631) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252632 , 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=22252595 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 (22252632) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252633 , 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=22252595 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 (22252633) result : ((1351474196,), (1351474197,), (1351474202,), (1351474539,), (1351474936,), (1351474937,), (1351475131,), (1351475133,), (1351475363,), (1351475392,), (1351475393,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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 22252634 , 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=22252595 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 (22252634) result : ((1351474938,), (1351475139,), (1351475259,), (1351475396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22252595) result : ((1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) 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 (1351474900) 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`=22252595 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','autre_refus','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','metal','plastique','cartonnette')) 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`=22252595 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','mal_croppe','autre_refus','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','metal','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22252595, 'sub_port_id': 22252635, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721420, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'Carton_brun': {'main_port_id': 22252595, 'sub_port_id': 22252636, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721421, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'autre_refus': {'main_port_id': 22252595, 'sub_port_id': 22252637, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721422, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'flou': {'main_port_id': 22252595, 'sub_port_id': 22252638, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721423, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'kraft': {'main_port_id': 22252595, 'sub_port_id': 22252639, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721424, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'mal_croppe': {'main_port_id': 22252595, 'sub_port_id': 22252640, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721425, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'plastique': {'main_port_id': 22252595, 'sub_port_id': 22252641, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721426, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 22252595, 'sub_port_id': 22252642, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721427, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'environnement': {'main_port_id': 22252595, 'sub_port_id': 22252643, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721428, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'metal': {'main_port_id': 22252595, 'sub_port_id': 22252644, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721429, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'Carton_gris': {'main_port_id': 22252595, 'sub_port_id': 22252645, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721430, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}, 'cartonnette': {'main_port_id': 22252595, 'sub_port_id': 22252646, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14721431, 'last_updated_at': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 6, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 6, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252628 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252642,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252643,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252631 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252644,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252645,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252633 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22252646,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22252634 lien utilise dans velours : https://www.fotonower.com/velours/22252635,22252636,22252637,22252638,22252639,22252640,22252641,22252642,22252643,22252644,22252645,22252646?tags=papier,Carton_brun,autre_refus,flou,kraft,mal_croppe,plastique,Teint_Dans_La_Masse,environnement,metal,Carton_gris,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22252595]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] map_info['map_portfolio_photo'] : {22252595: [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262, 1351475171, 1351475143, 1351475114, 1351475098, 1351475096, 1351474941, 1351474934, 1351474932, 1351474906, 1351474903, 1351474900, 1351474898, 1351474891, 1351474884, 1351474829, 1351474827, 1351474792, 1351474740, 1351474621, 1351474619, 1351474616, 1351474585, 1351474583, 1351474560, 1351474538, 1351474536, 1351474533, 1351474411, 1351474355, 1351474353, 1351474352, 1351474350, 1351474348, 1351474201, 1351474195, 1351474193, 1351474187, 1351474054, 1351474048, 1351474040, 1351474036, 1351474023, 1351474013, 1351473962, 1351473957, 1351473953, 1351473907, 1351473904, 1351473901, 1351473873, 1351473867]} final : False mtd_id 4302 list_pids : [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] Looping around the photos to save general results len do output : 1 /22252595. 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, '2742238') ('4302', '22252595', '1351475541', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475502', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475499', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475484', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475402', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475391', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475380', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475378', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475376', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475372', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475340', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475335', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475284', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475266', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475262', None, None, None, None, None, '2742238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22252595', "{'papier': 22252623, 'Carton_brun': 22252624, 'autre_refus': 22252625, 'flou': 22252626, 'kraft': 22252627, 'mal_croppe': 22252628, 'plastique': 22252629, 'Teint_Dans_La_Masse': 22252630, 'environnement': 22252631, 'metal': 22252632, 'Carton_gris': 22252633, 'cartonnette': 22252634}", None, None, None, None, '2742238'), ('4302', '22252595', '1351475541', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475502', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475499', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475484', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475402', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475391', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475380', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475378', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475376', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475372', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475340', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475335', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475284', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475266', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475262', None, None, None, None, None, '2742238')] time used for this insertion : 0.014657974243164062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5910646915435791 time spend to save output : 0.015101909637451172 total time spend for step 1 : 0.6061666011810303 step2:final Fri Apr 11 06:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22252595) 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 22252595 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351473873,1351473867,1351473907,1351473904,1351473901,1351473962,1351473957,1351473953,1351474054,1351474048,1351474040,1351474036,1351474023,1351474013,1351474201,1351474195,1351474193,1351474187,1351474411,1351474355,1351474353,1351474352,1351474350,1351474348,1351474585,1351474583,1351474560,1351474538,1351474536,1351474533,1351474621,1351474619,1351474616,1351474829,1351474827,1351474792,1351474740,1351474906,1351474903,1351474900,1351474898,1351474891,1351474884,1351474941,1351474934,1351474932,1351475171,1351475143,1351475114,1351475098,1351475096,1351475340,1351475335,1351475284,1351475266,1351475262,1351475402,1351475391,1351475380,1351475378,1351475376,1351475372,1351475541,1351475502,1351475499,1351475484); 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([22252595]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} new output for save of step final : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] map_info['map_portfolio_photo'] : {22252595: [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262, 1351475171, 1351475143, 1351475114, 1351475098, 1351475096, 1351474941, 1351474934, 1351474932, 1351474906, 1351474903, 1351474900, 1351474898, 1351474891, 1351474884, 1351474829, 1351474827, 1351474792, 1351474740, 1351474621, 1351474619, 1351474616, 1351474585, 1351474583, 1351474560, 1351474538, 1351474536, 1351474533, 1351474411, 1351474355, 1351474353, 1351474352, 1351474350, 1351474348, 1351474201, 1351474195, 1351474193, 1351474187, 1351474054, 1351474048, 1351474040, 1351474036, 1351474023, 1351474013, 1351473962, 1351473957, 1351473953, 1351473907, 1351473904, 1351473901, 1351473873, 1351473867]} final : False mtd_id 4302 list_pids : [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] Looping around the photos to save general results len do output : 15 /1351475541.Didn't retrieve data . /1351475502.Didn't retrieve data . /1351475499.Didn't retrieve data . /1351475484.Didn't retrieve data . /1351475402.Didn't retrieve data . /1351475391.Didn't retrieve data . /1351475380.Didn't retrieve data . /1351475378.Didn't retrieve data . /1351475376.Didn't retrieve data . /1351475372.Didn't retrieve data . /1351475340.Didn't retrieve data . /1351475335.Didn't retrieve data . /1351475284.Didn't retrieve data . /1351475266.Didn't retrieve data . /1351475262.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, '2742238') ('4302', '22252595', '1351475541', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475502', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475499', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475484', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475402', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475391', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475380', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475378', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475376', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475372', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475340', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475335', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475284', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475266', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475262', None, None, None, None, None, '2742238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22252595', '1351475541', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475502', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475499', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475484', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475402', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475391', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475380', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475378', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475376', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475372', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475340', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475335', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475284', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475266', '0.06233100572693038', None, None, None, None, '2742238'), ('4302', '22252595', '1351475262', '0.06233100572693038', None, None, None, None, '2742238')] time used for this insertion : 0.015502214431762695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08085846900939941 time spend to save output : 0.016041040420532227 total time spend for step 2 : 0.09689950942993164 step3:velours_tree Fri Apr 11 06:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22252595: [{'papier': 22252623, 'Carton_brun': 22252624, 'autre_refus': 22252625, 'flou': 22252626, 'kraft': 22252627, 'mal_croppe': 22252628, 'plastique': 22252629, 'Teint_Dans_La_Masse': 22252630, 'environnement': 22252631, 'metal': 22252632, 'Carton_gris': 22252633, 'cartonnette': 22252634}]} input_args_next_step : {22252595: ()} output_args : {22252595: [{'papier': 22252623, 'Carton_brun': 22252624, 'autre_refus': 22252625, 'flou': 22252626, 'kraft': 22252627, 'mal_croppe': 22252628, 'plastique': 22252629, 'Teint_Dans_La_Masse': 22252630, 'environnement': 22252631, 'metal': 22252632, 'Carton_gris': 22252633, 'cartonnette': 22252634}]} args : 22252595 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 22252623, 'Carton_brun': 22252624, 'autre_refus': 22252625, 'flou': 22252626, 'kraft': 22252627, 'mal_croppe': 22252628, 'plastique': 22252629, 'Teint_Dans_La_Masse': 22252630, 'environnement': 22252631, 'metal': 22252632, 'Carton_gris': 22252633, 'cartonnette': 22252634},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22252595) 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([22252595]) 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.30604004859924316 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.3060908317565918 step4:send_mail_cod Fri Apr 11 06:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} input_args_next_step : {1351475541: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475541 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475502 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475499 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475484 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475402 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475391 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475380 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475378 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475376 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475372 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475340 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475335 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475284 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475266 depend.output_id : 0 input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ()} output_args : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',)} args : 1351475262 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22252595: [{'papier': 22252623, 'Carton_brun': 22252624, 'autre_refus': 22252625, 'flou': 22252626, 'kraft': 22252627, 'mal_croppe': 22252628, 'plastique': 22252629, 'Teint_Dans_La_Masse': 22252630, 'environnement': 22252631, 'metal': 22252632, 'Carton_gris': 22252633, 'cartonnette': 22252634}]} input_args_next_step : {1351475541: ('0.06233100572693038',), 1351475502: ('0.06233100572693038',), 1351475499: ('0.06233100572693038',), 1351475484: ('0.06233100572693038',), 1351475402: ('0.06233100572693038',), 1351475391: ('0.06233100572693038',), 1351475380: ('0.06233100572693038',), 1351475378: ('0.06233100572693038',), 1351475376: ('0.06233100572693038',), 1351475372: ('0.06233100572693038',), 1351475340: ('0.06233100572693038',), 1351475335: ('0.06233100572693038',), 1351475284: ('0.06233100572693038',), 1351475266: ('0.06233100572693038',), 1351475262: ('0.06233100572693038',), 22252595: ()} output_args : {22252595: [{'papier': 22252623, 'Carton_brun': 22252624, 'autre_refus': 22252625, 'flou': 22252626, 'kraft': 22252627, 'mal_croppe': 22252628, 'plastique': 22252629, 'Teint_Dans_La_Masse': 22252630, 'environnement': 22252631, 'metal': 22252632, 'Carton_gris': 22252633, 'cartonnette': 22252634}]} args : 22252595 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 :16, first value : ('0.06233100572693038',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22252595) 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 (1351475541,1351475502,1351475499,1351475484,1351475402,1351475391,1351475380,1351475378,1351475376,1351475372,1351475340,1351475335,1351475284,1351475266,1351475262) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351475262 begin to download photo : 1351475340 begin to download photo : 1351475380 begin to download photo : 1351475499 download finish for photo 1351475340 begin to download photo : 1351475372 download finish for photo 1351475499 begin to download photo : 1351475502 download finish for photo 1351475262 begin to download photo : 1351475266 download finish for photo 1351475380 begin to download photo : 1351475391 download finish for photo 1351475372 begin to download photo : 1351475376 download finish for photo 1351475502 begin to download photo : 1351475541 download finish for photo 1351475266 begin to download photo : 1351475284 download finish for photo 1351475391 begin to download photo : 1351475402 download finish for photo 1351475376 begin to download photo : 1351475378 download finish for photo 1351475284 begin to download photo : 1351475335 download finish for photo 1351475541 download finish for photo 1351475378 download finish for photo 1351475335 download finish for photo 1351475402 begin to download photo : 1351475484 download finish for photo 1351475484 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 : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22252595_11-04-2025_06_30_58.pdf 22252625 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=22252625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351474200: '1744345172_1579044_1351473957_10de9c42bd5bb4c51d67b332b9ccf58b_rle_crop_3756058595_0.png', 1351474640: '1744345287_1295908_1351474023_b23c009fc60a3bce07cbbcd6f5e5836b_rle_crop_3756062830_0.png', 1351475126: '1744345573_1055100_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756066200_0.png', 1351475388: '1744345673_1056142_1351474583_2fa06312c2b75e557b7e1e2c091824a6_bib_crop_3756066200_0.jpg', 1351475389: '1744345673_1056142_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756067131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0d7a43d70ec35df469475e836bff2921_1681388.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0d0f3e3e24ead95e69917ce9520247a9_31400342.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f26fedc0ec4cad04e242549aa0ca8b83_76295278.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cbf0ba2a9249a02bc4aeda05342ff708_56173977.jpg change filename to text .imagette222526251744345858/ imagette222526251744345858/1744345172_1579044_1351473957_10de9c42bd5bb4c51d67b332b9ccf58b_rle_crop_3756058595_0.png.png imagette222526251744345858/1744345673_1056142_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756067131_0.png.png imagette222526251744345858/1744345573_1055100_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756066200_0.png.png imagette222526251744345858/1744345673_1056142_1351474583_2fa06312c2b75e557b7e1e2c091824a6_bib_crop_3756066200_0.jpg.jpg imagette222526251744345858/1744345287_1295908_1351474023_b23c009fc60a3bce07cbbcd6f5e5836b_rle_crop_3756062830_0.png.png imagette222526261744345858/ imagette222526271744345858/ imagette222526281744345858/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/01ecb403e5e16dd5d591c1d79855d28a_3428600.png imagette222526251744345858 22252626 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=22252626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222526261744345858 22252627 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=22252627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222526271744345858 22252628 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=22252628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222526281744345858 22252629 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=22252629 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351475260: '1744345646_1301460_1351474932_4fb67e813591cdae531f6935c0415684_rle_crop_3756066810_0.png', 1351475364: '1744345653_1055934_1351474884_ad18e2fd6a9c639ac8aa9f070e8f505e_rle_crop_3756067104_0.png', 1351475478: '1744345752_1056834_1351475143_84f3ed808270c95bdefb99dab87189f8_rle_crop_3756069282_0.png', 1351475479: '1744345752_1056834_1351475143_84f3ed808270c95bdefb99dab87189f8_rle_crop_3756069285_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/268af5f6de4c85a0f6bdc20f0a1ba111_36682044.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d756d028fc5658e20a3167f19d0d992d_82187389.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/440dc1017676ed3043bbf031c924a0b3_82568665.png change filename to text .imagette222526291744345858/ imagette222526291744345858/1744345653_1055934_1351474884_ad18e2fd6a9c639ac8aa9f070e8f505e_rle_crop_3756067104_0.png.png imagette222526291744345858/1744345752_1056834_1351475143_84f3ed808270c95bdefb99dab87189f8_rle_crop_3756069285_0.png.png imagette222526291744345858/1744345752_1056834_1351475143_84f3ed808270c95bdefb99dab87189f8_rle_crop_3756069282_0.png.png imagette222526291744345858/1744345646_1301460_1351474932_4fb67e813591cdae531f6935c0415684_rle_crop_3756066810_0.png.png imagette222526321744345858/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a19d115083247b303f18769b1b43e2ca_71431671.png imagette222526291744345858 22252632 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=22252632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222526321744345858 22252634 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=22252634 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351474938: '1744345532_1054646_1351474619_3a5ae45dc74a73ba80f3ae36b7a71f64_rle_crop_3756065456_0.png', 1351475139: '1744345573_1055100_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066224_0.png', 1351475259: '1744345646_1301460_1351474932_4fb67e813591cdae531f6935c0415684_rle_crop_3756066812_0.png', 1351475396: '1744345673_1056142_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066224_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6f57c81c12e84a1bae337821dc186527_35644865.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2af0dbf655070c0b50d6c2bb6a408c62_47950778.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7967c218063c1a52bb2f5f26c00b3a99_74445391.png change filename to text .imagette222526341744345858/ imagette222526341744345858/1744345673_1056142_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066224_0.png.png imagette222526341744345858/1744345646_1301460_1351474932_4fb67e813591cdae531f6935c0415684_rle_crop_3756066812_0.png.png imagette222526341744345858/1744345573_1055100_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066224_0.png.png imagette222526341744345858/1744345532_1054646_1351474619_3a5ae45dc74a73ba80f3ae36b7a71f64_rle_crop_3756065456_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2af0dbf655070c0b50d6c2bb6a408c62_64000830.png imagette222526341744345858 22252624 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=22252624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351474650: '1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062651_0.png', 1351475401: '1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066253_0.png', 1351475400: '1744345673_1056142_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066231_0.png', 1351475399: '1744345673_1056142_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066216_0.png', 1351475151: '1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066253_0.png', 1351475150: '1744345573_1055100_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066231_0.png', 1351475149: '1744345573_1055100_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066216_0.png', 1351474940: '1744345532_1054646_1351474616_14f0fcf5ccdb6029dddb31a7f864262a_rle_crop_3756065467_0.png', 1351474651: '1744345287_1295908_1351474023_b23c009fc60a3bce07cbbcd6f5e5836b_rle_crop_3756062837_0.png', 1351474555: '1744345275_1052037_1351474195_979a0f940b1d1b1dbd3c5b4ea567bc04_rle_crop_3756062310_0.png', 1351474649: '1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062652_0.png', 1351474648: '1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062655_0.png', 1351474647: '1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062649_0.png', 1351474645: '1744345287_1295908_1351474201_33ecbf713603addc42ba22d50f19d4fd_rle_crop_3756062449_0.png', 1351474644: '1744345287_1295908_1351474201_33ecbf713603addc42ba22d50f19d4fd_rle_crop_3756062452_0.png', 1351474643: '1744345287_1295908_1351474201_33ecbf713603addc42ba22d50f19d4fd_rle_crop_3756062451_0.png', 1351474559: '1744345275_1052037_1351474187_8ac2ba630e78c2f0c19092567a1c0581_rle_crop_3756062431_0.png', 1351474557: '1744345275_1052037_1351474195_979a0f940b1d1b1dbd3c5b4ea567bc04_rle_crop_3756062308_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bc4e2a45f0b08631d5ffee8723114f24_29043747.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3cdf4720bf83ff50d1ea55dca462f5a0_41201909.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f4ecce7b9cc860b43000c1201ffed9b9_27923658.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cdf6c8589497ceba11da2d7bb8727062_31038204.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3cdf4720bf83ff50d1ea55dca462f5a0_20902800.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f4ecce7b9cc860b43000c1201ffed9b9_56178873.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cdf6c8589497ceba11da2d7bb8727062_70833865.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ab1fd10cf0d0fcf7801048eea123b729_83232079.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/32120bc8c26bb31ae01245943856e829_18410722.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/791eae2df4463a9dea530f06d487fb8e_2792269.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8705e2fa60da5dd5d319e75702f7977f_47888986.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/04ece949268e7295846be1689f538345_62743500.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/75358b1f16c69ebcfbd6e87d33160b8e_56279283.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a3401c4f05c5da1d11e14fd304f3f78a_14808126.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bf9603b719fd6bcbd0a96592ab137835_44837166.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/85ee745ee166fda47a8f9ea63063fdce_65615551.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/932217ee45a18988940b0e02f6b3887f_64407755.png change filename to text .imagette222526241744345859/ imagette222526241744345859/1744345287_1295908_1351474201_33ecbf713603addc42ba22d50f19d4fd_rle_crop_3756062452_0.png.png imagette222526241744345859/1744345573_1055100_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066216_0.png.png imagette222526241744345859/1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062652_0.png.png imagette222526241744345859/1744345275_1052037_1351474195_979a0f940b1d1b1dbd3c5b4ea567bc04_rle_crop_3756062308_0.png.png imagette222526241744345859/1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062651_0.png.png imagette222526241744345859/1744345573_1055100_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066231_0.png.png imagette222526241744345859/1744345275_1052037_1351474195_979a0f940b1d1b1dbd3c5b4ea567bc04_rle_crop_3756062310_0.png.png imagette222526241744345859/1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062655_0.png.png imagette222526241744345859/1744345287_1295908_1351474201_33ecbf713603addc42ba22d50f19d4fd_rle_crop_3756062451_0.png.png imagette222526241744345859/1744345287_1295908_1351474201_33ecbf713603addc42ba22d50f19d4fd_rle_crop_3756062449_0.png.png imagette222526241744345859/1744345673_1056142_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066216_0.png.png imagette222526241744345859/1744345275_1052037_1351474187_8ac2ba630e78c2f0c19092567a1c0581_rle_crop_3756062431_0.png.png imagette222526241744345859/1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062649_0.png.png imagette222526241744345859/1744345287_1295908_1351474023_b23c009fc60a3bce07cbbcd6f5e5836b_rle_crop_3756062837_0.png.png imagette222526241744345859/1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066253_0.png.png imagette222526241744345859/1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066253_0.png.png imagette222526241744345859/1744345673_1056142_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066231_0.png.png imagette222526241744345859/1744345532_1054646_1351474616_14f0fcf5ccdb6029dddb31a7f864262a_rle_crop_3756065467_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e94ea59a400cef2913cffcbb8efd0b1c_69619300.png imagette222526241744345859 22252630 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=22252630 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351475121: '1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066258_0.png', 1351475387: '1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066258_0.png', 1351475386: '1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066250_0.png', 1351475385: '1744345673_1056142_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066217_0.png', 1351475384: '1744345673_1056142_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756067187_0.png', 1351475383: '1744345673_1056142_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756066203_0.png', 1351475361: '1744345653_1055934_1351474884_ad18e2fd6a9c639ac8aa9f070e8f505e_rle_crop_3756067105_0.png', 1351475360: '1744345653_1055934_1351474891_9b06bb4f311339a8012ec5b36f83434e_rle_crop_3756067082_0.png', 1351475359: '1744345653_1055934_1351474941_61b99810cb4371a52d7484d50174bbb0_rle_crop_3756067020_0.png', 1351475358: '1744345653_1055934_1351474941_61b99810cb4371a52d7484d50174bbb0_rle_crop_3756067018_0.png', 1351475257: '1744345646_1301460_1351474932_4fb67e813591cdae531f6935c0415684_rle_crop_3756066818_0.png', 1351474198: '1744345172_1579044_1351473953_96b6f1e68252cb5fd147417fd7466b68_rle_crop_3756058638_0.png', 1351475120: '1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066250_0.png', 1351475119: '1744345573_1055100_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066217_0.png', 1351475118: '1744345573_1055100_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756066203_0.png', 1351474639: '1744345287_1295908_1351474023_b23c009fc60a3bce07cbbcd6f5e5836b_rle_crop_3756062840_0.png', 1351474638: '1744345287_1295908_1351474036_9c2c2a1c102ffdd3d4f9506eecdf074d_rle_crop_3756062690_0.png', 1351474637: '1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062654_0.png', 1351474635: '1744345287_1295908_1351474048_6bc502f10dec2e603687f76dd738ffcc_rle_crop_3756062533_0.png', 1351474633: '1744345287_1295908_1351474048_6bc502f10dec2e603687f76dd738ffcc_rle_crop_3756062535_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8566129c3bb06c30d3ecf066a1d9f58c_37283889.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8566129c3bb06c30d3ecf066a1d9f58c_52556433.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/947d8d0830b12605e46fa7b533745b5e_38445523.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ea252c57d6f9bb9a8ede172b004509a6_83529559.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3325ad6bf888df63d892493ad25897d3_20974185.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6d7d37be462e9134c2d3214d4228f0f8_46354001.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ef32dcc6299117ca878d39d5495fa9e2_16722605.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6dfb84ed8bcc86a3a83f8cc1075228bf_14066178.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/59f38ac8d00b51684e6da1fc8065b835_89266963.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2a11e42185f23898ca9b97b84e558869_72810217.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b03927bd82c18d4aa62e6f6568eabbfd_74945319.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7ee7b0bd8f40e06e2041695c732a00a8_68350822.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/947d8d0830b12605e46fa7b533745b5e_58327674.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ea252c57d6f9bb9a8ede172b004509a6_39317872.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6d7d37be462e9134c2d3214d4228f0f8_93307497.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/42c79400b9e3cc225163d1da2d248ce4_4927538.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/82e66904ca87ee8599b2cd7022d249bf_68489114.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/78ea7849ec49b96fddc5c75cb9917951_69804599.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b6b4a6680c5c75af4d491e6f50604ca0_99014259.png change filename to text .imagette222526301744345860/ imagette222526301744345860/1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066258_0.png.png imagette222526301744345860/1744345673_1056142_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756066203_0.png.png imagette222526301744345860/1744345653_1055934_1351474941_61b99810cb4371a52d7484d50174bbb0_rle_crop_3756067020_0.png.png imagette222526301744345860/1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066258_0.png.png imagette222526301744345860/1744345287_1295908_1351474048_6bc502f10dec2e603687f76dd738ffcc_rle_crop_3756062533_0.png.png imagette222526301744345860/1744345287_1295908_1351474036_9c2c2a1c102ffdd3d4f9506eecdf074d_rle_crop_3756062690_0.png.png imagette222526301744345860/1744345287_1295908_1351474048_6bc502f10dec2e603687f76dd738ffcc_rle_crop_3756062535_0.png.png imagette222526301744345860/1744345653_1055934_1351474941_61b99810cb4371a52d7484d50174bbb0_rle_crop_3756067018_0.png.png imagette222526301744345860/1744345287_1295908_1351474023_b23c009fc60a3bce07cbbcd6f5e5836b_rle_crop_3756062840_0.png.png imagette222526301744345860/1744345653_1055934_1351474884_ad18e2fd6a9c639ac8aa9f070e8f505e_rle_crop_3756067105_0.png.png imagette222526301744345860/1744345172_1579044_1351473953_96b6f1e68252cb5fd147417fd7466b68_rle_crop_3756058638_0.png.png imagette222526301744345860/1744345646_1301460_1351474932_4fb67e813591cdae531f6935c0415684_rle_crop_3756066818_0.png.png imagette222526301744345860/1744345673_1056142_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066217_0.png.png imagette222526301744345860/1744345573_1055100_1351474583_2fa06312c2b75e557b7e1e2c091824a6_rle_crop_3756066203_0.png.png imagette222526301744345860/1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066250_0.png.png imagette222526301744345860/1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066250_0.png.png imagette222526301744345860/1744345653_1055934_1351474891_9b06bb4f311339a8012ec5b36f83434e_rle_crop_3756067082_0.png.png imagette222526301744345860/1744345573_1055100_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756066217_0.png.png imagette222526301744345860/1744345287_1295908_1351474040_7d3a0362d920fc1fcd5553835cdd38a0_rle_crop_3756062654_0.png.png imagette222526301744345860/1744345673_1056142_1351474560_f97915ac96180ab9de42d90c6b8b31f0_rle_crop_3756067187_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/818d372b9f352195f5d948a09c0c4c70_74732406.png imagette222526301744345860 22252633 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=22252633 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351474196: '1744345173_1293003_1351473901_6abc466c423736c64818adf377a60d85_rle_crop_3756058644_0.png', 1351474197: '1744345173_1293003_1351473901_6abc466c423736c64818adf377a60d85_rle_crop_3756058649_0.png', 1351474202: '1744345172_1579044_1351473957_10de9c42bd5bb4c51d67b332b9ccf58b_rle_crop_3756058593_0.png', 1351474539: '1744345275_1052037_1351474195_979a0f940b1d1b1dbd3c5b4ea567bc04_rle_crop_3756062304_0.png', 1351474936: '1744345532_1054646_1351474616_14f0fcf5ccdb6029dddb31a7f864262a_rle_crop_3756065468_0.png', 1351474937: '1744345532_1054646_1351474616_14f0fcf5ccdb6029dddb31a7f864262a_rle_crop_3756065463_0.png', 1351475131: '1744345573_1055100_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066225_0.png', 1351475133: '1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066251_0.png', 1351475363: '1744345653_1055934_1351474903_4014aa955fa1f345ea0ec8f1dcb0acb5_rle_crop_3756067028_0.png', 1351475392: '1744345673_1056142_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066225_0.png', 1351475393: '1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066251_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/79b359c5c1954c492fc6bc21ea6af6b5_44907786.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/888843d6bc0e92f19e5b31c65c31a3f8_28074429.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fb17fb5ee65eef66904e20e65bbcf624_86742240.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2c3b5402ba25b78da68faf0fee0a99f5_29841688.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0443623970452498964b29a149443277_78998794.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c8dc7df2cd96dd6045c29e4c5eec8cc7_99847776.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/67baf2b48499c52ec26d3930b2b057c7_15044117.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/44c8a290f2fbeaf3e61fe17d2e002271_22840806.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f1853c9391fa142e2cc5ef24798a127b_19729229.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/67baf2b48499c52ec26d3930b2b057c7_69804991.png change filename to text .imagette222526331744345861/ imagette222526331744345861/1744345532_1054646_1351474616_14f0fcf5ccdb6029dddb31a7f864262a_rle_crop_3756065468_0.png.png imagette222526331744345861/1744345532_1054646_1351474616_14f0fcf5ccdb6029dddb31a7f864262a_rle_crop_3756065463_0.png.png imagette222526331744345861/1744345573_1055100_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066225_0.png.png imagette222526331744345861/1744345653_1055934_1351474903_4014aa955fa1f345ea0ec8f1dcb0acb5_rle_crop_3756067028_0.png.png imagette222526331744345861/1744345172_1579044_1351473957_10de9c42bd5bb4c51d67b332b9ccf58b_rle_crop_3756058593_0.png.png imagette222526331744345861/1744345573_1055100_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066251_0.png.png imagette222526331744345861/1744345275_1052037_1351474195_979a0f940b1d1b1dbd3c5b4ea567bc04_rle_crop_3756062304_0.png.png imagette222526331744345861/1744345673_1056142_1351474533_2d61ec87ff825e588d9b988100d461d9_rle_crop_3756066251_0.png.png imagette222526331744345861/1744345173_1293003_1351473901_6abc466c423736c64818adf377a60d85_rle_crop_3756058649_0.png.png imagette222526331744345861/1744345673_1056142_1351474538_ca7050984e58e2b63493d47eec6d5d11_rle_crop_3756066225_0.png.png imagette222526331744345861/1744345173_1293003_1351473901_6abc466c423736c64818adf377a60d85_rle_crop_3756058644_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/44c8a290f2fbeaf3e61fe17d2e002271_47606599.png imagette222526331744345861 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22252595 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22252635,22252636,22252637,22252638,22252639,22252640,22252641,22252642,22252643,22252644,22252645,22252646?tags=papier,Carton_brun,autre_refus,flou,kraft,mal_croppe,plastique,Teint_Dans_La_Masse,environnement,metal,Carton_gris,cartonnette your option no_mail is active, we will not send the real mail to your client args[1351475541] : ('0.06233100572693038',) no score found for photo 1351475541 We are sending mail with results at report@fotonower.com args[1351475502] : ('0.06233100572693038',) no score found for photo 1351475502 We are sending mail with results at report@fotonower.com args[1351475499] : ('0.06233100572693038',) no score found for photo 1351475499 We are sending mail with results at report@fotonower.com args[1351475484] : ('0.06233100572693038',) no score found for photo 1351475484 We are sending mail with results at report@fotonower.com args[1351475402] : ('0.06233100572693038',) no score found for photo 1351475402 We are sending mail with results at report@fotonower.com args[1351475391] : ('0.06233100572693038',) no score found for photo 1351475391 We are sending mail with results at report@fotonower.com args[1351475380] : ('0.06233100572693038',) no score found for photo 1351475380 We are sending mail with results at report@fotonower.com args[1351475378] : ('0.06233100572693038',) no score found for photo 1351475378 We are sending mail with results at report@fotonower.com args[1351475376] : ('0.06233100572693038',) no score found for photo 1351475376 We are sending mail with results at report@fotonower.com args[1351475372] : ('0.06233100572693038',) no score found for photo 1351475372 We are sending mail with results at report@fotonower.com args[1351475340] : ('0.06233100572693038',) no score found for photo 1351475340 We are sending mail with results at report@fotonower.com args[1351475335] : ('0.06233100572693038',) no score found for photo 1351475335 We are sending mail with results at report@fotonower.com args[1351475284] : ('0.06233100572693038',) no score found for photo 1351475284 We are sending mail with results at report@fotonower.com args[1351475266] : ('0.06233100572693038',) no score found for photo 1351475266 We are sending mail with results at report@fotonower.com args[1351475262] : ('0.06233100572693038',) no score found for photo 1351475262 We are sending mail with results at report@fotonower.com refus_total : 0.06233100572693038 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=22252595 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_P22252595_11-04-2025_06_30_58.pdf results_Auto_P22252595_11-04-2025_06_30_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22252595_11-04-2025_06_30_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22252595','results_Auto_P22252595_11-04-2025_06_30_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22252595_11-04-2025_06_30_58.pdf','pdf','','0.28','0.06233100572693038') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22252595]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] map_info['map_portfolio_photo'] : {22252595: [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262, 1351475171, 1351475143, 1351475114, 1351475098, 1351475096, 1351474941, 1351474934, 1351474932, 1351474906, 1351474903, 1351474900, 1351474898, 1351474891, 1351474884, 1351474829, 1351474827, 1351474792, 1351474740, 1351474621, 1351474619, 1351474616, 1351474585, 1351474583, 1351474560, 1351474538, 1351474536, 1351474533, 1351474411, 1351474355, 1351474353, 1351474352, 1351474350, 1351474348, 1351474201, 1351474195, 1351474193, 1351474187, 1351474054, 1351474048, 1351474040, 1351474036, 1351474023, 1351474013, 1351473962, 1351473957, 1351473953, 1351473907, 1351473904, 1351473901, 1351473873, 1351473867]} final : False mtd_id 4302 list_pids : [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] 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, '2742238') ('4302', '22252595', '1351475541', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475502', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475499', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475484', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475402', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475391', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475380', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475378', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475376', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475372', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475340', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475335', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475284', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475266', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475262', None, None, None, None, None, '2742238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22252595', '1351475541', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475502', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475499', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475484', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475402', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475391', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475380', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475378', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475376', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475372', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475340', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475335', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475284', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475266', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475262', None, None, None, None, None, '2742238')] time used for this insertion : 0.018567323684692383 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.488121032714844 time spend to save output : 0.01904010772705078 total time spend for step 4 : 6.5071611404418945 step5:split_time_score Fri Apr 11 06:31:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22252595'] 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 : [('22252595',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22252595) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351475499: {'path': 'temp/1744345857_2100867_1351475499_38c8599bef481bed9ead91590160b0d7.jpg', 'extension': 'jpg'}, 1351475502: {'path': 'temp/1744345857_2100867_1351475502_c7b475d9dd32cd10a8fd9762857c3f7f.jpg', 'extension': 'jpg'}, 1351475541: {'path': 'temp/1744345857_2100867_1351475541_3ce59c6fa5313f12b49af081d8af22be.jpg', 'extension': 'jpg'}, 1351475340: {'path': 'temp/1744345857_2100867_1351475340_62e74b269aaf3f0cfbfafa526ac20324.jpg', 'extension': 'jpg'}, 1351475372: {'path': 'temp/1744345857_2100867_1351475372_9b4cb33ecbd862ad21aa6c484c2db4cc.jpg', 'extension': 'jpg'}, 1351475376: {'path': 'temp/1744345857_2100867_1351475376_12e41da827db235e8a73c906218136a4.jpg', 'extension': 'jpg'}, 1351475378: {'path': 'temp/1744345857_2100867_1351475378_bc2a6f11935c89614ed775473a125adc.jpg', 'extension': 'jpg'}, 1351475262: {'path': 'temp/1744345857_2100867_1351475262_b7466b912766f98b1b02be0725cd5111.jpg', 'extension': 'jpg'}, 1351475266: {'path': 'temp/1744345857_2100867_1351475266_73ba273e12edc3d6439f01a859b41046.jpg', 'extension': 'jpg'}, 1351475284: {'path': 'temp/1744345857_2100867_1351475284_aa0dc993563b3bd5a0797d150fc719ee.jpg', 'extension': 'jpg'}, 1351475335: {'path': 'temp/1744345857_2100867_1351475335_e5e7c5e64138f9772e2549fea960c28a.jpg', 'extension': 'jpg'}, 1351475380: {'path': 'temp/1744345857_2100867_1351475380_034838d21fba8b94e2b122599cb43053.jpg', 'extension': 'jpg'}, 1351475391: {'path': 'temp/1744345857_2100867_1351475391_7c15ba4f069e449ca2975d255c1751ef.jpg', 'extension': 'jpg'}, 1351475402: {'path': 'temp/1744345857_2100867_1351475402_866c31bfdad8bc419341d48cfdc5410f.jpg', 'extension': 'jpg'}, 1351475484: {'path': 'temp/1744345857_2100867_1351475484_4cd8c047cf3cbfdb946027b3ffe613af.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 = 22252595; (('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 = 22252595 group by h (('06', 66),) 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=22252595 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 (22252595) 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 (22252595) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22252595 Nombre de photos uploadées : 66 / 23040 (0%) 11042025 22252595 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 11042025 22252595 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1351473873, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0084d3d9fc3491522907b70ffd7f8a5f.jpg', 'username': None, 'uploaded_at': 1744344967, 'text': 'image_11042025_06_15_14_10137.jpg'}, {'photo_id': 1351473867, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e89246c616db4a6209e08d28ef5bf384.jpg', 'username': None, 'uploaded_at': 1744344967, 'text': 'image_11042025_06_15_34_10134.jpg'}, {'photo_id': 1351473907, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/319532f3fb920dcf4714327164dff617.jpg', 'username': None, 'uploaded_at': 1744345027, 'text': 'image_11042025_06_15_54_10136.jpg'}, {'photo_id': 1351473904, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/533b35570c75d8eacb5f29ff868dc425.jpg', 'username': None, 'uploaded_at': 1744345027, 'text': 'image_11042025_06_16_05_010139m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003093719482421875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22252595, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02880263328552246 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1741926, 'mtr_portfolio_id': 22251556, 'dashboard_result_id': 10010403, '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_P22251556_11-04-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1741926, 'mtr_portfolio_id': 22251992, 'dashboard_result_id': 10010404, '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_P22251992_11-04-2025_06_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1741926, 'mtr_portfolio_id': 22252595, 'dashboard_result_id': 10010405, '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_P22252595_11-04-2025_06_28_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22252623, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252634, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22251556 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': 2742157, 'mtr_portfolio_id': 22251556, 'created_at': datetime.datetime(2025, 4, 11, 6, 3, 1), 'result': '0.04475795228937768', 'result_long': None, 'result_double': None}] Qualite : 0.04475795228937768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251556_11-04-2025_06_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251556 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_P22251556_11-04-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, 'pht': 3726}}" where mtr_portfolio_id = 22251556 and dashboard_run_id = 1741926 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`=22251556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10010403, 0.04475795228937768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251556_11-04-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22251560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22251561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22251562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22251563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22251564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22251565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22251566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22251567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22251568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22251569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22251570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22251571, '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 = 22251992 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': 2742205, 'mtr_portfolio_id': 22251992, 'created_at': datetime.datetime(2025, 4, 11, 6, 16, 59), 'result': '0.04495918395768394', 'result_long': None, 'result_double': None}] Qualite : 0.04495918395768394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22251992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_11-04-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22251992 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_P22251992_11-04-2025_06_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, 'pht': 3726}}" where mtr_portfolio_id = 22251992 and dashboard_run_id = 1741926 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`=22251992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10010404, 0.04495918395768394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22251992_11-04-2025_06_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22252021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252030, '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 = 22252595 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': 2742238, 'mtr_portfolio_id': 22252595, 'created_at': datetime.datetime(2025, 4, 11, 6, 30, 57), 'result': '0.06233100572693038', 'result_long': None, 'result_double': None}] Qualite : 0.06233100572693038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22252595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22252595_11-04-2025_06_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22252595 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_P22252595_11-04-2025_06_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22252623, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252634, 'pht': 3726}}" where mtr_portfolio_id = 22252595 and dashboard_run_id = 1741926 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`=22252595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10010405, 0.06233100572693038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22252595_11-04-2025_06_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22252623, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22252624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22252625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22252626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22252627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22252628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22252629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22252630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22252631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22252632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22252633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22252634, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22251556,22251992,22252595) result : ((1351464710,), (1351464732,), (1351464759,), (1351464843,), (1351464848,), (1351464850,), (1351464880,), (1351464892,), (1351464894,), (1351464896,), (1351465014,), (1351465021,), (1351465022,), (1351465024,), (1351465026,), (1351465029,), (1351465122,), (1351465198,), (1351465308,), (1351465324,), (1351465408,), (1351465410,), (1351465413,), (1351465416,), (1351465419,), (1351465458,), (1351465461,), (1351465463,), (1351465464,), (1351465469,), (1351465473,), (1351465500,), (1351465503,), (1351465506,), (1351465591,), (1351465596,), (1351465656,), (1351465660,), (1351465663,), (1351465675,), (1351465685,), (1351465710,), (1351465712,), (1351465713,), (1351465714,), (1351465716,), (1351465739,), (1351465745,), (1351465747,), (1351465857,), (1351465862,), (1351465866,), (1351465871,), (1351465877,), (1351465886,), (1351465909,), (1351465911,), (1351465917,), (1351465946,), (1351466094,), (1351466430,), (1351466411,), (1351466415,), (1351466425,), (1351466527,), (1351466550,), (1351466565,), (1351466666,), (1351466806,), (1351466852,), (1351467201,), (1351467222,), (1351467285,), (1351467311,), (1351467353,), (1351467389,), (1351467943,), (1351467997,), (1351468027,), (1351468085,), (1351468616,), (1351468654,), (1351468693,), (1351468759,), (1351468838,), (1351468903,), (1351469243,), (1351469269,), (1351469293,), (1351469315,), (1351469318,), (1351469479,), (1351469542,), (1351469558,), (1351469611,), (1351469650,), (1351469709,), (1351470046,), (1351470069,), (1351470144,), (1351470171,), (1351470488,), (1351470533,), (1351470552,), (1351470579,), (1351470623,), (1351470837,), (1351470868,), (1351470893,), (1351470923,), (1351470953,), (1351471427,), (1351471626,), (1351472997,), (1351473387,), (1351473418,), (1351473445,), (1351473479,), (1351473505,), (1351473704,), (1351473726,), (1351473745,), (1351473875,), (1351473867,), (1351473873,), (1351473901,), (1351473904,), (1351473907,), (1351473953,), (1351473957,), (1351473962,), (1351474013,), (1351474023,), (1351474036,), (1351474040,), (1351474048,), (1351474054,), (1351474187,), (1351474193,), (1351474195,), (1351474201,), (1351474348,), (1351474350,), (1351474352,), (1351474353,), (1351474355,), (1351474411,), (1351474533,), (1351474536,), (1351474538,), (1351474560,), (1351474583,), (1351474585,), (1351474616,), (1351474619,), (1351474621,), (1351474740,), (1351474792,), (1351474827,), (1351474829,), (1351474884,), (1351474891,), (1351474898,), (1351474900,), (1351474903,), (1351474906,), (1351474932,), (1351474934,), (1351474941,), (1351475096,), (1351475098,), (1351475114,), (1351475143,), (1351475171,), (1351475262,), (1351475266,), (1351475284,), (1351475335,), (1351475340,), (1351475372,), (1351475376,), (1351475378,), (1351475380,), (1351475391,), (1351475402,), (1351475484,), (1351475499,), (1351475502,), (1351475541,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22252595]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] map_info['map_portfolio_photo'] : {22252595: [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262, 1351475171, 1351475143, 1351475114, 1351475098, 1351475096, 1351474941, 1351474934, 1351474932, 1351474906, 1351474903, 1351474900, 1351474898, 1351474891, 1351474884, 1351474829, 1351474827, 1351474792, 1351474740, 1351474621, 1351474619, 1351474616, 1351474585, 1351474583, 1351474560, 1351474538, 1351474536, 1351474533, 1351474411, 1351474355, 1351474353, 1351474352, 1351474350, 1351474348, 1351474201, 1351474195, 1351474193, 1351474187, 1351474054, 1351474048, 1351474040, 1351474036, 1351474023, 1351474013, 1351473962, 1351473957, 1351473953, 1351473907, 1351473904, 1351473901, 1351473873, 1351473867]} final : True mtd_id 4302 list_pids : [1351475541, 1351475502, 1351475499, 1351475484, 1351475402, 1351475391, 1351475380, 1351475378, 1351475376, 1351475372, 1351475340, 1351475335, 1351475284, 1351475266, 1351475262] Looping around the photos to save general results len do output : 1 /22252595Didn'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, '2742238') ('4302', '22252595', '1351475541', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475502', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475499', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475484', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475402', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475391', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475380', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475378', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475376', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475372', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475340', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475335', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475284', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475266', None, None, None, None, None, '2742238') ('4302', None, None, None, None, None, None, None, '2742238') ('4302', '22252595', '1351475262', None, None, None, None, None, '2742238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22252595', 'None', None, None, None, None, '2742238'), ('4302', '22252595', '1351475541', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475502', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475499', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475484', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475402', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475391', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475380', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475378', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475376', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475372', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475340', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475335', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475284', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475266', None, None, None, None, None, '2742238'), ('4302', '22252595', '1351475262', None, None, None, None, None, '2742238')] time used for this insertion : 0.017257213592529297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3653097152709961 time spend to save output : 0.01757359504699707 total time spend for step 5 : 0.38288331031799316 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 (2742238) 2.45user 2.25system 0:10.13elapsed 46%CPU (0avgtext+0avgdata 159740maxresident)k 1280inputs+17304outputs (28major+76583minor)pagefaults 0swaps