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 : 1725429 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 (2719206) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2719206) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007675 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2719206'] with mtr_portfolio_ids : ['22007675'] and first list_photo_ids : [] new path : /proc/1725429/ Name: python3 Umask: 0002 State: R (running) Tgid: 1725429 Ngid: 0 Pid: 1725429 PPid: 1725428 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1725429 NSpid: 1725429 NSpgid: 1722667 NSsid: 1722667 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 96760 kB VmRSS: 96760 kB RssAnon: 59800 kB RssFile: 36960 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1725429', 'Ngid': '0', 'Pid': '1725429', 'PPid': '1725428', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1725429', 'NSpid': '1725429', 'NSpgid': '1722667', 'NSsid': '1722667', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '96760 kB', 'VmRSS': '96760 kB', 'RssAnon': '59800 kB', 'RssFile': '36960 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '1725429', '1106928', '0', '1106928', '865676', '96760', b'', 'marlene', '2719206') 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 (22007675) 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 (2719206 ) ) 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 (22007675) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349729922, 'portfolio_id': 22007675}, {'photo_id': 1349729920, 'portfolio_id': 22007675}, {'photo_id': 1349729918, 'portfolio_id': 22007675}, {'photo_id': 1349729916, 'portfolio_id': 22007675}, {'photo_id': 1349729895, 'portfolio_id': 22007675}, {'photo_id': 1349729893, 'portfolio_id': 22007675}, {'photo_id': 1349729890, 'portfolio_id': 22007675}, {'photo_id': 1349729888, 'portfolio_id': 22007675}, {'photo_id': 1349729885, 'portfolio_id': 22007675}, {'photo_id': 1349729881, 'portfolio_id': 22007675}, {'photo_id': 1349729839, 'portfolio_id': 22007675}, {'photo_id': 1349729831, 'portfolio_id': 22007675}, {'photo_id': 1349729825, 'portfolio_id': 22007675}, {'photo_id': 1349729823, 'portfolio_id': 22007675}, {'photo_id': 1349729818, 'portfolio_id': 22007675}, {'photo_id': 1349729762, 'portfolio_id': 22007675}, {'photo_id': 1349729758, 'portfolio_id': 22007675}, {'photo_id': 1349729756, 'portfolio_id': 22007675}, {'photo_id': 1349729751, 'portfolio_id': 22007675}, {'photo_id': 1349729730, 'portfolio_id': 22007675}, {'photo_id': 1349729728, 'portfolio_id': 22007675}, {'photo_id': 1349729726, 'portfolio_id': 22007675}, {'photo_id': 1349729723, 'portfolio_id': 22007675}, {'photo_id': 1349729720, 'portfolio_id': 22007675}, {'photo_id': 1349729695, 'portfolio_id': 22007675}, {'photo_id': 1349729689, 'portfolio_id': 22007675}, {'photo_id': 1349729681, 'portfolio_id': 22007675}, {'photo_id': 1349729674, 'portfolio_id': 22007675}, {'photo_id': 1349729642, 'portfolio_id': 22007675}, {'photo_id': 1349729638, 'portfolio_id': 22007675}, {'photo_id': 1349729635, 'portfolio_id': 22007675}, {'photo_id': 1349729631, 'portfolio_id': 22007675}, {'photo_id': 1349729627, 'portfolio_id': 22007675}, {'photo_id': 1349729620, 'portfolio_id': 22007675}, {'photo_id': 1349729500, 'portfolio_id': 22007675}, {'photo_id': 1349729498, 'portfolio_id': 22007675}, {'photo_id': 1349729495, 'portfolio_id': 22007675}, {'photo_id': 1349729401, 'portfolio_id': 22007675}, {'photo_id': 1349729399, 'portfolio_id': 22007675}, {'photo_id': 1349729395, 'portfolio_id': 22007675}, {'photo_id': 1349729391, 'portfolio_id': 22007675}, {'photo_id': 1349729378, 'portfolio_id': 22007675}, {'photo_id': 1349729374, 'portfolio_id': 22007675}, {'photo_id': 1349729202, 'portfolio_id': 22007675}, {'photo_id': 1349729177, 'portfolio_id': 22007675}, {'photo_id': 1349729107, 'portfolio_id': 22007675}, {'photo_id': 1349729105, 'portfolio_id': 22007675}, {'photo_id': 1349728863, 'portfolio_id': 22007675}, {'photo_id': 1349728795, 'portfolio_id': 22007675}, {'photo_id': 1349728791, 'portfolio_id': 22007675}, {'photo_id': 1349728786, 'portfolio_id': 22007675}, {'photo_id': 1349728781, 'portfolio_id': 22007675}, {'photo_id': 1349728775, 'portfolio_id': 22007675}, {'photo_id': 1349728318, 'portfolio_id': 22007675}, {'photo_id': 1349728200, 'portfolio_id': 22007675}, {'photo_id': 1349728067, 'portfolio_id': 22007675}, {'photo_id': 1349727997, 'portfolio_id': 22007675}, {'photo_id': 1349727978, 'portfolio_id': 22007675}, {'photo_id': 1349727951, 'portfolio_id': 22007675}, {'photo_id': 1349727904, 'portfolio_id': 22007675}, {'photo_id': 1349727820, 'portfolio_id': 22007675}] map_portfolio_id_photo_id: {22007675: [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818, 1349729762, 1349729758, 1349729756, 1349729751, 1349729730, 1349729728, 1349729726, 1349729723, 1349729720, 1349729695, 1349729689, 1349729681, 1349729674, 1349729642, 1349729638, 1349729635, 1349729631, 1349729627, 1349729620, 1349729500, 1349729498, 1349729495, 1349729401, 1349729399, 1349729395, 1349729391, 1349729378, 1349729374, 1349729202, 1349729177, 1349729107, 1349729105, 1349728863, 1349728795, 1349728791, 1349728786, 1349728781, 1349728775, 1349728318, 1349728200, 1349728067, 1349727997, 1349727978, 1349727951, 1349727904, 1349727820]} ##### 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.016670942306518555 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 3 06:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22007675) 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 : 22007675 get user id for portfolio 22007675 get sub ptf for main ptf 22007675, type 3726 and hashtags ['flou', 'plastique', 'Carton_brun', 'autre_refus', 'metal', 'mal_croppe', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'Carton_gris', 'cartonnette', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22007675 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','Carton_brun','autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','cartonnette','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22007675 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','Carton_brun','autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22007675, 'sub_port_id': 22007710, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503304, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'metal': {'main_port_id': 22007675, 'sub_port_id': 22007711, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503305, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'papier': {'main_port_id': 22007675, 'sub_port_id': 22007712, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503306, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'kraft': {'main_port_id': 22007675, 'sub_port_id': 22007713, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503307, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'plastique': {'main_port_id': 22007675, 'sub_port_id': 22007714, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503308, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'cartonnette': {'main_port_id': 22007675, 'sub_port_id': 22007715, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503309, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'environnement': {'main_port_id': 22007675, 'sub_port_id': 22007716, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503310, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22007675, 'sub_port_id': 22007717, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503311, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'mal_croppe': {'main_port_id': 22007675, 'sub_port_id': 22007718, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503312, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'Carton_brun': {'main_port_id': 22007675, 'sub_port_id': 22007719, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503313, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'autre_refus': {'main_port_id': 22007675, 'sub_port_id': 22007720, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503314, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'flou': {'main_port_id': 22007675, 'sub_port_id': 22007721, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503315, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22007710 , 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=22007675 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 (22007710) result : ((1349729625,), (1349729686,), (1349729687,), (1349729688,), (1349729813,), (1349729817,), (1349729828,), (1349729954,), (1349729955,), (1349729956,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007711 , 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=22007675 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 (22007711) result : ((1349729964,), (1349729965,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007712 , 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=22007675 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 (22007712) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007713 , 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=22007675 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 (22007713) result : ((1349729844,), (1349729876,), (1349729960,), (1349729961,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007714 , 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=22007675 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 (22007714) result : ((1349729619,), (1349729655,), (1349729656,), (1349729657,), (1349729822,), (1349729842,), (1349729963,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007715 , 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=22007675 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 (22007715) result : ((1349729648,), (1349729690,), (1349729691,), (1349729692,), (1349729819,), (1349729820,), (1349729833,), (1349729837,), (1349729870,), (1349729871,), (1349729959,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007716 , 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=22007675 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 (22007716) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007717 , 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=22007675 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 (22007717) result : ((1349729644,), (1349729645,), (1349729646,), (1349729676,), (1349729677,), (1349729678,), (1349729679,), (1349729680,), (1349729816,), (1349729827,), (1349729829,), (1349729830,), (1349729863,), (1349729864,), (1349729865,), (1349729866,), (1349729867,), (1349729868,), (1349729953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007718 , 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=22007675 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 (22007718) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007719 , 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=22007675 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 (22007719) result : ((1349729101,), (1349729102,), (1349729615,), (1349729616,), (1349729651,), (1349729652,), (1349729653,), (1349729693,), (1349729814,), (1349729840,), (1349729873,), (1349729874,), (1349729875,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007720 , 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=22007675 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 (22007720) result : ((1349729100,), (1349729614,), (1349729622,), (1349729623,), (1349729682,), (1349729683,), (1349729684,), (1349729835,), (1349729836,), (1349729952,), (1349729957,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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 22007721 , 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=22007675 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 (22007721) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22007675) result : ((1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) 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 (1349728200,1349729500) 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`=22007675 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','Carton_brun','autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','cartonnette','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22007675 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','Carton_brun','autre_refus','metal','mal_croppe','Teint_Dans_La_Masse','environnement','kraft','Carton_gris','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22007675, 'sub_port_id': 22007722, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503316, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'metal': {'main_port_id': 22007675, 'sub_port_id': 22007723, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503317, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'papier': {'main_port_id': 22007675, 'sub_port_id': 22007724, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503318, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'kraft': {'main_port_id': 22007675, 'sub_port_id': 22007725, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503319, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'plastique': {'main_port_id': 22007675, 'sub_port_id': 22007726, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503320, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'cartonnette': {'main_port_id': 22007675, 'sub_port_id': 22007727, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503321, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'environnement': {'main_port_id': 22007675, 'sub_port_id': 22007728, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503322, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22007675, 'sub_port_id': 22007729, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503323, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'mal_croppe': {'main_port_id': 22007675, 'sub_port_id': 22007730, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503324, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'Carton_brun': {'main_port_id': 22007675, 'sub_port_id': 22007731, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503325, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'autre_refus': {'main_port_id': 22007675, 'sub_port_id': 22007732, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503326, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}, 'flou': {'main_port_id': 22007675, 'sub_port_id': 22007733, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14503327, 'last_updated_at': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 6, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 6, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007711 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007714 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007715 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007716 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007717 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007718 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007719 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007720 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22007733,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22007721 lien utilise dans velours : https://www.fotonower.com/velours/22007722,22007723,22007724,22007725,22007726,22007727,22007728,22007729,22007730,22007731,22007732,22007733?tags=Carton_gris,metal,papier,kraft,plastique,cartonnette,environnement,Teint_Dans_La_Masse,mal_croppe,Carton_brun,autre_refus,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22007675]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] map_info['map_portfolio_photo'] : {22007675: [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818, 1349729762, 1349729758, 1349729756, 1349729751, 1349729730, 1349729728, 1349729726, 1349729723, 1349729720, 1349729695, 1349729689, 1349729681, 1349729674, 1349729642, 1349729638, 1349729635, 1349729631, 1349729627, 1349729620, 1349729500, 1349729498, 1349729495, 1349729401, 1349729399, 1349729395, 1349729391, 1349729378, 1349729374, 1349729202, 1349729177, 1349729107, 1349729105, 1349728863, 1349728795, 1349728791, 1349728786, 1349728781, 1349728775, 1349728318, 1349728200, 1349728067, 1349727997, 1349727978, 1349727951, 1349727904, 1349727820]} final : False mtd_id 4302 list_pids : [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] Looping around the photos to save general results len do output : 1 /22007675. 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, '2719206') ('4302', '22007675', '1349729922', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729920', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729918', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729916', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729895', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729893', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729890', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729888', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729885', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729881', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729839', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729831', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729825', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729823', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729818', None, None, None, None, None, '2719206') 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, '22007675', "{'Carton_gris': 22007710, 'metal': 22007711, 'papier': 22007712, 'kraft': 22007713, 'plastique': 22007714, 'cartonnette': 22007715, 'environnement': 22007716, 'Teint_Dans_La_Masse': 22007717, 'mal_croppe': 22007718, 'Carton_brun': 22007719, 'autre_refus': 22007720, 'flou': 22007721}", None, None, None, None, '2719206'), ('4302', '22007675', '1349729922', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729920', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729918', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729916', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729895', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729893', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729890', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729888', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729885', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729881', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729839', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729831', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729825', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729823', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729818', None, None, None, None, None, '2719206')] time used for this insertion : 0.03034067153930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1616904735565186 time spend to save output : 0.03066730499267578 total time spend for step 1 : 1.1923577785491943 step2:final Thu Apr 3 06:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22007675) 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 22007675 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349727904,1349727820,1349728318,1349728200,1349728067,1349727997,1349727978,1349727951,1349728863,1349728795,1349728791,1349728786,1349728781,1349728775,1349729202,1349729177,1349729107,1349729105,1349729401,1349729399,1349729395,1349729391,1349729378,1349729374,1349729500,1349729498,1349729495,1349729642,1349729638,1349729635,1349729631,1349729627,1349729620,1349729695,1349729689,1349729681,1349729674,1349729730,1349729728,1349729726,1349729723,1349729720,1349729762,1349729758,1349729756,1349729751,1349729839,1349729831,1349729825,1349729823,1349729818,1349729895,1349729893,1349729890,1349729888,1349729885,1349729881,1349729922,1349729920,1349729918,1349729916); 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([22007675]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} new output for save of step final : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] map_info['map_portfolio_photo'] : {22007675: [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818, 1349729762, 1349729758, 1349729756, 1349729751, 1349729730, 1349729728, 1349729726, 1349729723, 1349729720, 1349729695, 1349729689, 1349729681, 1349729674, 1349729642, 1349729638, 1349729635, 1349729631, 1349729627, 1349729620, 1349729500, 1349729498, 1349729495, 1349729401, 1349729399, 1349729395, 1349729391, 1349729378, 1349729374, 1349729202, 1349729177, 1349729107, 1349729105, 1349728863, 1349728795, 1349728791, 1349728786, 1349728781, 1349728775, 1349728318, 1349728200, 1349728067, 1349727997, 1349727978, 1349727951, 1349727904, 1349727820]} final : False mtd_id 4302 list_pids : [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] Looping around the photos to save general results len do output : 15 /1349729922.Didn't retrieve data . /1349729920.Didn't retrieve data . /1349729918.Didn't retrieve data . /1349729916.Didn't retrieve data . /1349729895.Didn't retrieve data . /1349729893.Didn't retrieve data . /1349729890.Didn't retrieve data . /1349729888.Didn't retrieve data . /1349729885.Didn't retrieve data . /1349729881.Didn't retrieve data . /1349729839.Didn't retrieve data . /1349729831.Didn't retrieve data . /1349729825.Didn't retrieve data . /1349729823.Didn't retrieve data . /1349729818.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, '2719206') ('4302', '22007675', '1349729922', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729920', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729918', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729916', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729895', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729893', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729890', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729888', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729885', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729881', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729839', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729831', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729825', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729823', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729818', None, None, None, None, None, '2719206') 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', '22007675', '1349729922', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729920', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729918', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729916', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729895', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729893', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729890', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729888', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729885', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729881', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729839', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729831', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729825', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729823', '0.04958440981405858', None, None, None, None, '2719206'), ('4302', '22007675', '1349729818', '0.04958440981405858', None, None, None, None, '2719206')] time used for this insertion : 0.01651144027709961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29859137535095215 time spend to save output : 0.017211198806762695 total time spend for step 2 : 0.31580257415771484 step3:velours_tree Thu Apr 3 06:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22007675: [{'Carton_gris': 22007710, 'metal': 22007711, 'papier': 22007712, 'kraft': 22007713, 'plastique': 22007714, 'cartonnette': 22007715, 'environnement': 22007716, 'Teint_Dans_La_Masse': 22007717, 'mal_croppe': 22007718, 'Carton_brun': 22007719, 'autre_refus': 22007720, 'flou': 22007721}]} input_args_next_step : {22007675: ()} output_args : {22007675: [{'Carton_gris': 22007710, 'metal': 22007711, 'papier': 22007712, 'kraft': 22007713, 'plastique': 22007714, 'cartonnette': 22007715, 'environnement': 22007716, 'Teint_Dans_La_Masse': 22007717, 'mal_croppe': 22007718, 'Carton_brun': 22007719, 'autre_refus': 22007720, 'flou': 22007721}]} args : 22007675 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 : ({'Carton_gris': 22007710, 'metal': 22007711, 'papier': 22007712, 'kraft': 22007713, 'plastique': 22007714, 'cartonnette': 22007715, 'environnement': 22007716, 'Teint_Dans_La_Masse': 22007717, 'mal_croppe': 22007718, 'Carton_brun': 22007719, 'autre_refus': 22007720, 'flou': 22007721},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22007675) 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([22007675]) 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.30107951164245605 time spend to save output : 4.4345855712890625e-05 total time spend for step 3 : 0.30112385749816895 step4:send_mail_cod Thu Apr 3 06:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} input_args_next_step : {1349729922: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729922 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729920 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729918 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729916 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729895 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729893 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729890 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729888 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729885 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729881 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729839 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729831 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729825 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729823 depend.output_id : 0 input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ()} output_args : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',)} args : 1349729818 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 : {22007675: [{'Carton_gris': 22007710, 'metal': 22007711, 'papier': 22007712, 'kraft': 22007713, 'plastique': 22007714, 'cartonnette': 22007715, 'environnement': 22007716, 'Teint_Dans_La_Masse': 22007717, 'mal_croppe': 22007718, 'Carton_brun': 22007719, 'autre_refus': 22007720, 'flou': 22007721}]} input_args_next_step : {1349729922: ('0.04958440981405858',), 1349729920: ('0.04958440981405858',), 1349729918: ('0.04958440981405858',), 1349729916: ('0.04958440981405858',), 1349729895: ('0.04958440981405858',), 1349729893: ('0.04958440981405858',), 1349729890: ('0.04958440981405858',), 1349729888: ('0.04958440981405858',), 1349729885: ('0.04958440981405858',), 1349729881: ('0.04958440981405858',), 1349729839: ('0.04958440981405858',), 1349729831: ('0.04958440981405858',), 1349729825: ('0.04958440981405858',), 1349729823: ('0.04958440981405858',), 1349729818: ('0.04958440981405858',), 22007675: ()} output_args : {22007675: [{'Carton_gris': 22007710, 'metal': 22007711, 'papier': 22007712, 'kraft': 22007713, 'plastique': 22007714, 'cartonnette': 22007715, 'environnement': 22007716, 'Teint_Dans_La_Masse': 22007717, 'mal_croppe': 22007718, 'Carton_brun': 22007719, 'autre_refus': 22007720, 'flou': 22007721}]} args : 22007675 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.04958440981405858',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22007675) 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 (1349729922,1349729920,1349729918,1349729916,1349729895,1349729893,1349729890,1349729888,1349729885,1349729881,1349729839,1349729831,1349729825,1349729823,1349729818) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349729818 begin to download photo : 1349729839 begin to download photo : 1349729890 begin to download photo : 1349729918 download finish for photo 1349729918 begin to download photo : 1349729920 download finish for photo 1349729890 begin to download photo : 1349729893 download finish for photo 1349729818 begin to download photo : 1349729823 download finish for photo 1349729839 begin to download photo : 1349729881 download finish for photo 1349729823 begin to download photo : 1349729825 download finish for photo 1349729893 begin to download photo : 1349729895 download finish for photo 1349729920 begin to download photo : 1349729922 download finish for photo 1349729881 begin to download photo : 1349729885 download finish for photo 1349729895 begin to download photo : 1349729916 download finish for photo 1349729922 download finish for photo 1349729825 begin to download photo : 1349729831 download finish for photo 1349729885 begin to download photo : 1349729888 download finish for photo 1349729831 download finish for photo 1349729916 download finish for photo 1349729888 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_P22007675_03-04-2025_06_14_59.pdf 22007711 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=22007711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729964: '1743653606_260935_1349729825_2bfff2bd7beb7e91d5e2c9a9e20c7ed0_rle_crop_3745721029_0.png', 1349729965: '1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0a7472fb2f6fb1ccbeb05f6f85749a6c_14620656.png change filename to text .imagette220077111743653699/ imagette220077111743653699/1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722438_0.png.png imagette220077111743653699/1743653606_260935_1349729825_2bfff2bd7beb7e91d5e2c9a9e20c7ed0_rle_crop_3745721029_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/30b8c3ebc754b1618fe13d4d3eb81dd0_50400674.png imagette220077111743653699 22007713 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=22007713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729844: '1743653426_257909_1349729635_39af3d492b4db31d836f023dcc2b48e0_rle_crop_3745719119_0.png', 1349729876: '1743653470_1926789_1349729399_f4e8417da972ae1d1f64bac00972eeda_rle_crop_3745719325_0.png', 1349729960: '1743653612_1930232_1349729758_54530dcefa650d335bbfa76864052219_rle_crop_3745722455_0.png', 1349729961: '1743653612_1930232_1349729756_ac22ac577a2553075f463244f517880f_rle_crop_3745722647_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5d8a180146b3194ef93a73f0c442c0c6_47775499.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4b417cef2e8a0142ef62f7b5defd4484_1945550.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2f8e17711f46f1cb9068699480f9c4e4_12001572.png change filename to text .imagette220077131743653699/ imagette220077131743653699/1743653470_1926789_1349729399_f4e8417da972ae1d1f64bac00972eeda_rle_crop_3745719325_0.png.png imagette220077131743653699/1743653612_1930232_1349729758_54530dcefa650d335bbfa76864052219_rle_crop_3745722455_0.png.png imagette220077131743653699/1743653612_1930232_1349729756_ac22ac577a2553075f463244f517880f_rle_crop_3745722647_0.png.png imagette220077131743653699/1743653426_257909_1349729635_39af3d492b4db31d836f023dcc2b48e0_rle_crop_3745719119_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d174054b57dbfa035407d9e4637ec22b_70707793.png imagette220077131743653699 22007714 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=22007714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729619: '1743653189_254771_1349729105_12ca84a76aff512dc106de09855eb8bb_rle_crop_3745718242_0.png', 1349729655: '1743653192_1922136_1349728786_43bceeeef2e8ed4d871fc073a61c0c43_rle_crop_3745718304_0.png', 1349729656: '1743653192_1922136_1349728781_6950e58236520382e38124e89e4bd5cc_rle_crop_3745718534_0.png', 1349729657: '1743653192_1922136_1349728775_0f887364416790b285aabd13236b6c0d_rle_crop_3745718543_0.png', 1349729822: '1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719095_0.png', 1349729842: '1743653426_257909_1349729638_d610ed96d01a92191f38cdfa536c5d3f_rle_crop_3745719108_0.png', 1349729963: '1743653606_260935_1349729818_f3e4e2f735c1464474ee6a6ffa53b9d2_rle_crop_3745722631_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/23b4f89d69f75cd534a7a929a9634070_21580645.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/089588739191774dee37cf777849a59f_89744789.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ca1f9e943e2ab55971a05367e43b8276_55607885.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/71edb5afee77e3166a488b107f3c9526_50591339.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6729563b81cde909ad4ba8dfbbf92517_29799500.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d6a1f3de1b2cd4ba6f135c316b52a273_43864658.png change filename to text .imagette220077141743653700/ imagette220077141743653700/1743653192_1922136_1349728781_6950e58236520382e38124e89e4bd5cc_rle_crop_3745718534_0.png.png imagette220077141743653700/1743653426_257909_1349729638_d610ed96d01a92191f38cdfa536c5d3f_rle_crop_3745719108_0.png.png imagette220077141743653700/1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719095_0.png.png imagette220077141743653700/1743653606_260935_1349729818_f3e4e2f735c1464474ee6a6ffa53b9d2_rle_crop_3745722631_0.png.png imagette220077141743653700/1743653189_254771_1349729105_12ca84a76aff512dc106de09855eb8bb_rle_crop_3745718242_0.png.png imagette220077141743653700/1743653192_1922136_1349728786_43bceeeef2e8ed4d871fc073a61c0c43_rle_crop_3745718304_0.png.png imagette220077141743653700/1743653192_1922136_1349728775_0f887364416790b285aabd13236b6c0d_rle_crop_3745718543_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/44ab2dcccdb5df49e0cba0bbfed67ed3_7513643.png imagette220077141743653700 22007715 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=22007715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729648: '1743653192_1922136_1349728791_9323d7e1915a8a366be91f2fa678f753_rle_crop_3745718285_0.png', 1349729690: '1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718611_0.png', 1349729691: '1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718613_0.png', 1349729692: '1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718626_0.png', 1349729819: '1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719094_0.png', 1349729820: '1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719091_0.png', 1349729833: '1743653451_1926462_1349729401_c6e8450830b273c6e6856b53fd4e6e32_rle_crop_3745719170_0.png', 1349729837: '1743653426_257909_1349729627_0198acfe46c7068e33c691ed7717b37e_rle_crop_3745719144_0.png', 1349729870: '1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719320_0.png', 1349729871: '1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719375_0.png', 1349729959: '1743653606_260935_1349729818_f3e4e2f735c1464474ee6a6ffa53b9d2_rle_crop_3745722630_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7f8858634c2aab88a6a12be5f6b7f5d9_39979350.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/64b483fa07be227d0851e100dae70456_30521276.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b5699ee22bf9bcfe4a764b9f4a7436ad_74205033.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/90a33b3f5a539bd5e1e176a0c226f34c_12728626.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bde7f80e84bce71525180bc607a858e5_46843967.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a7c0c91d9fd96aca14c1ed7762598ba8_3077769.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e918f1aa39ba5a9a178df73612fbd851_65006600.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/28b33ce1876e2d188b8fd15f313c907d_73250404.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/31419916740a09e168d73aabeaced9db_52677358.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/dd5cf8bdac026402ae01385d86363142_67544142.png change filename to text .imagette220077151743653700/ imagette220077151743653700/1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718611_0.png.png imagette220077151743653700/1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719091_0.png.png imagette220077151743653700/1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719320_0.png.png imagette220077151743653700/1743653192_1922136_1349728791_9323d7e1915a8a366be91f2fa678f753_rle_crop_3745718285_0.png.png imagette220077151743653700/1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718626_0.png.png imagette220077151743653700/1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718613_0.png.png imagette220077151743653700/1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719094_0.png.png imagette220077151743653700/1743653606_260935_1349729818_f3e4e2f735c1464474ee6a6ffa53b9d2_rle_crop_3745722630_0.png.png imagette220077151743653700/1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719375_0.png.png imagette220077151743653700/1743653451_1926462_1349729401_c6e8450830b273c6e6856b53fd4e6e32_rle_crop_3745719170_0.png.png imagette220077151743653700/1743653426_257909_1349729627_0198acfe46c7068e33c691ed7717b37e_rle_crop_3745719144_0.png.png imagette220077181743653701/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/208db594b5a0032cfb5aad4eb473db0f_91951251.png imagette220077151743653700 22007718 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=22007718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220077181743653701 22007720 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=22007720 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729100: '1743653013_1919539_1349727820_301b46e56a9eb512ba8176d24c99aa3d_rle_crop_3745717509_0.png', 1349729614: '1743653189_254771_1349729105_12ca84a76aff512dc106de09855eb8bb_rle_crop_3745718234_0.png', 1349729622: '1743653213_1922476_1349728318_39040b15a3d3cfb57cd1a3639d58976a_rle_crop_3745718256_0.png', 1349729623: '1743653213_1922476_1349728318_39040b15a3d3cfb57cd1a3639d58976a_rle_crop_3745718252_0.png', 1349729682: '1743653232_1922807_1349728863_1f68b6234b220250525c1e89286e248f_rle_crop_3745718563_0.png', 1349729683: '1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718609_0.png', 1349729684: '1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718625_0.png', 1349729835: '1743653426_257909_1349729631_d77fa3180c70990033da10f830c2affe_rle_crop_3745719128_0.png', 1349729836: '1743653426_257909_1349729631_d77fa3180c70990033da10f830c2affe_rle_crop_3745719132_0.png', 1349729952: '1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722435_0.png', 1349729957: '1743653612_1930232_1349729756_ac22ac577a2553075f463244f517880f_rle_crop_3745722644_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/033e6d3bd6a2620ee9b0708deaa4905a_2866082.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/476a873c1b1b3f4d13c27feeab42125e_35653796.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/53188efa278da8d1982e8e8684bdc7e6_98276270.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5424c7cb1a36a5c46ff3a4424e2414f4_24425031.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b8e19ad22b5dbe21ef02daf0e5d723f1_70222750.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/80935370ecb028c3965f8506ee1ec8a7_28770903.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9b97b78784041dd66d7e800040230b37_44109543.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/db49b0899dc1a43d0a5a39cd0056d989_47029132.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ac47641d90abb2a332feb95f26985dfe_97321556.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/55a825066b51b9b710274eada20811e7_45969385.png change filename to text .imagette220077201743653701/ imagette220077201743653701/1743653426_257909_1349729631_d77fa3180c70990033da10f830c2affe_rle_crop_3745719132_0.png.png imagette220077201743653701/1743653213_1922476_1349728318_39040b15a3d3cfb57cd1a3639d58976a_rle_crop_3745718252_0.png.png imagette220077201743653701/1743653213_1922476_1349728318_39040b15a3d3cfb57cd1a3639d58976a_rle_crop_3745718256_0.png.png imagette220077201743653701/1743653426_257909_1349729631_d77fa3180c70990033da10f830c2affe_rle_crop_3745719128_0.png.png imagette220077201743653701/1743653232_1922807_1349728863_1f68b6234b220250525c1e89286e248f_rle_crop_3745718563_0.png.png imagette220077201743653701/1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722435_0.png.png imagette220077201743653701/1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718609_0.png.png imagette220077201743653701/1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718625_0.png.png imagette220077201743653701/1743653612_1930232_1349729756_ac22ac577a2553075f463244f517880f_rle_crop_3745722644_0.png.png imagette220077201743653701/1743653013_1919539_1349727820_301b46e56a9eb512ba8176d24c99aa3d_rle_crop_3745717509_0.png.png imagette220077201743653701/1743653189_254771_1349729105_12ca84a76aff512dc106de09855eb8bb_rle_crop_3745718234_0.png.png imagette220077211743653701/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f052c02df1ca4d95cb1cce2d3de480e6_16848389.png imagette220077201743653701 22007721 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=22007721 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220077211743653701 22007710 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=22007710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729625: '1743653213_1922476_1349728318_39040b15a3d3cfb57cd1a3639d58976a_rle_crop_3745718253_0.png', 1349729686: '1743653232_1922807_1349728200_37806e11b4cbfb42efa548d49d3877a0_rle_crop_3745718584_0.png', 1349729687: '1743653232_1922807_1349728200_37806e11b4cbfb42efa548d49d3877a0_rle_crop_3745718592_0.png', 1349729688: '1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718607_0.png', 1349729813: '1743653427_1649420_1349729674_3ccd826d0a2d0a99be30c47942f43df1_rle_crop_3745719022_0.png', 1349729817: '1743653432_1926027_1349729498_e08170e38a190b9c62d10703735c21b9_rle_crop_3745719038_0.png', 1349729828: '1743653451_1926462_1349729401_c6e8450830b273c6e6856b53fd4e6e32_rle_crop_3745719174_0.png', 1349729954: '1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722439_0.png', 1349729955: '1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722442_0.png', 1349729956: '1743653606_260935_1349729818_f3e4e2f735c1464474ee6a6ffa53b9d2_rle_crop_3745722625_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b92b79685b390a5aa99c8ab291923556_92683576.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/74adf38f0ff01c8ceac126e3ebf8e0a6_62793282.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/84199eb15090168b7e6e3fbfba08bfc9_23634911.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a392513549518bc9a7fc79541854d5e1_66507579.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cffeb261e61d96c7129ad1265d116610_96629060.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/78a82b8f9ae400da2f90dbc196919786_39051974.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f6c7cc7169a247f8a188a8574586c688_93449368.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a9004179abefe1d3df56ba49ea1b40b5_50338727.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0dd6a2cc6f307b7bb5bb57da7896983d_2619562.png change filename to text .imagette220077101743653701/ imagette220077101743653701/1743653232_1922807_1349728200_37806e11b4cbfb42efa548d49d3877a0_rle_crop_3745718584_0.png.png imagette220077101743653701/1743653427_1649420_1349729674_3ccd826d0a2d0a99be30c47942f43df1_rle_crop_3745719022_0.png.png imagette220077101743653701/1743653432_1926027_1349729498_e08170e38a190b9c62d10703735c21b9_rle_crop_3745719038_0.png.png imagette220077101743653701/1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722442_0.png.png imagette220077101743653701/1743653213_1922476_1349728318_39040b15a3d3cfb57cd1a3639d58976a_rle_crop_3745718253_0.png.png imagette220077101743653701/1743653606_260935_1349729818_f3e4e2f735c1464474ee6a6ffa53b9d2_rle_crop_3745722625_0.png.png imagette220077101743653701/1743653451_1926462_1349729401_c6e8450830b273c6e6856b53fd4e6e32_rle_crop_3745719174_0.png.png imagette220077101743653701/1743653606_260935_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca_rle_crop_3745722439_0.png.png imagette220077101743653701/1743653232_1922807_1349728200_37806e11b4cbfb42efa548d49d3877a0_rle_crop_3745718592_0.png.png imagette220077101743653701/1743653232_1922807_1349728067_fc5dd93eaca777962da2ab05cfe79865_rle_crop_3745718607_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7db98140da6bb1cc1bd73b93583c41e5_72240589.png imagette220077101743653701 22007717 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=22007717 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729827: '1743653426_257909_1349729638_d610ed96d01a92191f38cdfa536c5d3f_rle_crop_3745719105_0.png', 1349729953: '1743653612_1930232_1349729751_ebeb5e762ea09b0ca601c5c75b9d59db_rle_crop_3745722656_0.png', 1349729868: '1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719380_0.png', 1349729867: '1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719373_0.png', 1349729866: '1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719377_0.png', 1349729865: '1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719319_0.png', 1349729864: '1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719318_0.png', 1349729863: '1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719317_0.png', 1349729830: '1743653426_257909_1349729627_0198acfe46c7068e33c691ed7717b37e_rle_crop_3745719151_0.png', 1349729829: '1743653426_257909_1349729635_39af3d492b4db31d836f023dcc2b48e0_rle_crop_3745719117_0.png', 1349729644: '1743653192_1922136_1349728795_2025a997c0df144b1984714b871e378b_rle_crop_3745718273_0.png', 1349729816: '1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719097_0.png', 1349729680: '1743653232_1922807_1349727951_da1c44b5cce773eec8f28da5aba51c5d_rle_crop_3745718660_0.png', 1349729679: '1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718631_0.png', 1349729678: '1743653232_1922807_1349728200_37806e11b4cbfb42efa548d49d3877a0_rle_crop_3745718589_0.png', 1349729677: '1743653232_1922807_1349728863_1f68b6234b220250525c1e89286e248f_rle_crop_3745718572_0.png', 1349729676: '1743653232_1922807_1349728863_1f68b6234b220250525c1e89286e248f_rle_crop_3745718574_0.png', 1349729646: '1743653192_1922136_1349728781_6950e58236520382e38124e89e4bd5cc_rle_crop_3745718537_0.png', 1349729645: '1743653192_1922136_1349728791_9323d7e1915a8a366be91f2fa678f753_rle_crop_3745718287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/66bbf300f3063f26e50f05f94ad1d8a6_88586720.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b6e1765ed6640a526d362559d6a7952f_17999684.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2a53d14f74e77a6207bd35162da5c703_98948114.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f82dcc11f2c81570eb3cff28dc7fa7ce_68218779.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/dac5f642005a2840b87ba9d78f785b6c_20413143.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/defaa24ecaf0ebb27e0db27bf4acd4de_17161171.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ca9dfdaa086a0e1eff38e3ce250db298_83763308.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/975f0af627b252692fa74fac7a87f938_42039861.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/639987fc23d76e0551ac291159ae8c92_52560527.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1ad3163c3530fc88393e1b3a4255ca85_22769042.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f292464771eeac6877b72c4ffd22d919_34468869.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/85d1b0d5df1ff9be76c141c60e0e2b00_27196490.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2567503d8957f6840e33313b4e252b44_48846373.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/694a6a59cf27b438c6b8bec932553b14_29185550.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c720303030ed92eb11fd153fa2960d49_27679416.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/50e0444e8eb5fe312a965231259bd86a_76988244.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f83e6b621de8c7cda78fd691979afe64_94371076.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/097b6a32ee2efd53ee99d8afdd6495ba_11375109.png change filename to text .imagette220077171743653702/ imagette220077171743653702/1743653232_1922807_1349728863_1f68b6234b220250525c1e89286e248f_rle_crop_3745718574_0.png.png imagette220077171743653702/1743653432_1926027_1349729495_71cd0ff13a159df204137a83245881d0_rle_crop_3745719097_0.png.png imagette220077171743653702/1743653192_1922136_1349728791_9323d7e1915a8a366be91f2fa678f753_rle_crop_3745718287_0.png.png imagette220077171743653702/1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719317_0.png.png imagette220077171743653702/1743653192_1922136_1349728795_2025a997c0df144b1984714b871e378b_rle_crop_3745718273_0.png.png imagette220077171743653702/1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719380_0.png.png imagette220077171743653702/1743653426_257909_1349729635_39af3d492b4db31d836f023dcc2b48e0_rle_crop_3745719117_0.png.png imagette220077171743653702/1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719319_0.png.png imagette220077171743653702/1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719373_0.png.png imagette220077171743653702/1743653612_1930232_1349729751_ebeb5e762ea09b0ca601c5c75b9d59db_rle_crop_3745722656_0.png.png imagette220077171743653702/1743653192_1922136_1349728781_6950e58236520382e38124e89e4bd5cc_rle_crop_3745718537_0.png.png imagette220077171743653702/1743653232_1922807_1349727951_da1c44b5cce773eec8f28da5aba51c5d_rle_crop_3745718660_0.png.png imagette220077171743653702/1743653232_1922807_1349728200_37806e11b4cbfb42efa548d49d3877a0_rle_crop_3745718589_0.png.png imagette220077171743653702/1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718631_0.png.png imagette220077171743653702/1743653426_257909_1349729638_d610ed96d01a92191f38cdfa536c5d3f_rle_crop_3745719105_0.png.png imagette220077171743653702/1743653426_257909_1349729627_0198acfe46c7068e33c691ed7717b37e_rle_crop_3745719151_0.png.png imagette220077171743653702/1743653470_1926789_1349729500_d4329a6be723781bbc44de764dd84108_rle_crop_3745719318_0.png.png imagette220077171743653702/1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719377_0.png.png imagette220077171743653702/1743653232_1922807_1349728863_1f68b6234b220250525c1e89286e248f_rle_crop_3745718572_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/dd595b97775f1bcafa34956461974091_11057445.png imagette220077171743653702 22007719 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=22007719 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349729101: '1743653013_1919539_1349727820_301b46e56a9eb512ba8176d24c99aa3d_rle_crop_3745717510_0.png', 1349729102: '1743653013_1919539_1349727820_301b46e56a9eb512ba8176d24c99aa3d_rle_crop_3745717513_0.png', 1349729615: '1743653189_254771_1349729107_e2e3123768b615b9b1904f8dddb59177_rle_crop_3745718218_0.png', 1349729616: '1743653189_254771_1349729105_12ca84a76aff512dc106de09855eb8bb_rle_crop_3745718237_0.png', 1349729651: '1743653192_1922136_1349728786_43bceeeef2e8ed4d871fc073a61c0c43_rle_crop_3745718301_0.png', 1349729652: '1743653192_1922136_1349728781_6950e58236520382e38124e89e4bd5cc_rle_crop_3745718530_0.png', 1349729653: '1743653192_1922136_1349728775_0f887364416790b285aabd13236b6c0d_rle_crop_3745718550_0.png', 1349729693: '1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718629_0.png', 1349729814: '1743653427_1649420_1349729689_b366e6d975ae1c02dc2bff9107d84215_rle_crop_3745719003_0.png', 1349729840: '1743653426_257909_1349729627_0198acfe46c7068e33c691ed7717b37e_rle_crop_3745719146_0.png', 1349729873: '1743653470_1926789_1349729395_12501debb4704e1c8fe46f52f63c9378_rle_crop_3745719340_0.png', 1349729874: '1743653470_1926789_1349729391_48eb5502fd39c1fb87e2a3a86ff4dcd8_rle_crop_3745719352_0.png', 1349729875: '1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719374_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/88cdca1bf1ebc10a864702c930d086b6_61230472.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bd533c51cfe083d22d9d689e954d708d_62768615.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8004db63500d554ebe3dfe521ff6192b_45813729.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bed5c5591ce4357718283fec937b2a92_71455552.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f4a4a20cfe58846a0a6aaab4705e5c49_45497401.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/181c1654bd4568d60b97658149838a0f_95233804.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9108a1d042d19cbd30bfa1e73e4ce780_1467762.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cedb8c6547b7ff7c9e18d914dc50f006_14340460.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/25013f90a4a660bd986b8b2c5ebba6c6_56233297.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/74ca5465d4672ea47a16fc331bb9ffb8_15244229.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/90753d650cc7920995a5ec0ced7e22ab_33161203.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/62d99d146d2bdac05b684b8fa7d9e161_10592893.png change filename to text .imagette220077191743653703/ imagette220077191743653703/1743653470_1926789_1349729395_12501debb4704e1c8fe46f52f63c9378_rle_crop_3745719340_0.png.png imagette220077191743653703/1743653189_254771_1349729105_12ca84a76aff512dc106de09855eb8bb_rle_crop_3745718237_0.png.png imagette220077191743653703/1743653192_1922136_1349728775_0f887364416790b285aabd13236b6c0d_rle_crop_3745718550_0.png.png imagette220077191743653703/1743653013_1919539_1349727820_301b46e56a9eb512ba8176d24c99aa3d_rle_crop_3745717510_0.png.png imagette220077191743653703/1743653426_257909_1349729627_0198acfe46c7068e33c691ed7717b37e_rle_crop_3745719146_0.png.png imagette220077191743653703/1743653470_1926789_1349729374_9e4cae01044068d4bfe7b9b1f100cfeb_rle_crop_3745719374_0.png.png imagette220077191743653703/1743653192_1922136_1349728781_6950e58236520382e38124e89e4bd5cc_rle_crop_3745718530_0.png.png imagette220077191743653703/1743653189_254771_1349729107_e2e3123768b615b9b1904f8dddb59177_rle_crop_3745718218_0.png.png imagette220077191743653703/1743653470_1926789_1349729391_48eb5502fd39c1fb87e2a3a86ff4dcd8_rle_crop_3745719352_0.png.png imagette220077191743653703/1743653192_1922136_1349728786_43bceeeef2e8ed4d871fc073a61c0c43_rle_crop_3745718301_0.png.png imagette220077191743653703/1743653013_1919539_1349727820_301b46e56a9eb512ba8176d24c99aa3d_rle_crop_3745717513_0.png.png imagette220077191743653703/1743653232_1922807_1349727997_524f386fa207fa2e285a132d24c5e854_rle_crop_3745718629_0.png.png imagette220077191743653703/1743653427_1649420_1349729689_b366e6d975ae1c02dc2bff9107d84215_rle_crop_3745719003_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6adbe8fb683f2aec9bc46a9224c45386_28046061.png imagette220077191743653703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22007675 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22007722,22007723,22007724,22007725,22007726,22007727,22007728,22007729,22007730,22007731,22007732,22007733?tags=Carton_gris,metal,papier,kraft,plastique,cartonnette,environnement,Teint_Dans_La_Masse,mal_croppe,Carton_brun,autre_refus,flou your option no_mail is active, we will not send the real mail to your client args[1349729922] : ('0.04958440981405858',) no score found for photo 1349729922 We are sending mail with results at report@fotonower.com args[1349729920] : ('0.04958440981405858',) no score found for photo 1349729920 We are sending mail with results at report@fotonower.com args[1349729918] : ('0.04958440981405858',) no score found for photo 1349729918 We are sending mail with results at report@fotonower.com args[1349729916] : ('0.04958440981405858',) no score found for photo 1349729916 We are sending mail with results at report@fotonower.com args[1349729895] : ('0.04958440981405858',) no score found for photo 1349729895 We are sending mail with results at report@fotonower.com args[1349729893] : ('0.04958440981405858',) no score found for photo 1349729893 We are sending mail with results at report@fotonower.com args[1349729890] : ('0.04958440981405858',) no score found for photo 1349729890 We are sending mail with results at report@fotonower.com args[1349729888] : ('0.04958440981405858',) no score found for photo 1349729888 We are sending mail with results at report@fotonower.com args[1349729885] : ('0.04958440981405858',) no score found for photo 1349729885 We are sending mail with results at report@fotonower.com args[1349729881] : ('0.04958440981405858',) no score found for photo 1349729881 We are sending mail with results at report@fotonower.com args[1349729839] : ('0.04958440981405858',) no score found for photo 1349729839 We are sending mail with results at report@fotonower.com args[1349729831] : ('0.04958440981405858',) no score found for photo 1349729831 We are sending mail with results at report@fotonower.com args[1349729825] : ('0.04958440981405858',) no score found for photo 1349729825 We are sending mail with results at report@fotonower.com args[1349729823] : ('0.04958440981405858',) no score found for photo 1349729823 We are sending mail with results at report@fotonower.com args[1349729818] : ('0.04958440981405858',) no score found for photo 1349729818 We are sending mail with results at report@fotonower.com refus_total : 0.04958440981405858 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=22007675 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_P22007675_03-04-2025_06_14_59.pdf results_Auto_P22007675_03-04-2025_06_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22007675_03-04-2025_06_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22007675','results_Auto_P22007675_03-04-2025_06_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22007675_03-04-2025_06_14_59.pdf','pdf','','0.33','0.04958440981405858') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22007675]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] map_info['map_portfolio_photo'] : {22007675: [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818, 1349729762, 1349729758, 1349729756, 1349729751, 1349729730, 1349729728, 1349729726, 1349729723, 1349729720, 1349729695, 1349729689, 1349729681, 1349729674, 1349729642, 1349729638, 1349729635, 1349729631, 1349729627, 1349729620, 1349729500, 1349729498, 1349729495, 1349729401, 1349729399, 1349729395, 1349729391, 1349729378, 1349729374, 1349729202, 1349729177, 1349729107, 1349729105, 1349728863, 1349728795, 1349728791, 1349728786, 1349728781, 1349728775, 1349728318, 1349728200, 1349728067, 1349727997, 1349727978, 1349727951, 1349727904, 1349727820]} final : False mtd_id 4302 list_pids : [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] 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, '2719206') ('4302', '22007675', '1349729922', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729920', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729918', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729916', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729895', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729893', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729890', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729888', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729885', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729881', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729839', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729831', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729825', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729823', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729818', None, None, None, None, None, '2719206') 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', '22007675', '1349729922', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729920', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729918', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729916', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729895', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729893', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729890', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729888', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729885', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729881', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729839', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729831', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729825', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729823', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729818', None, None, None, None, None, '2719206')] time used for this insertion : 0.01493215560913086 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.424293041229248 time spend to save output : 0.01523137092590332 total time spend for step 4 : 6.439524412155151 step5:split_time_score Thu Apr 3 06:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22007675'] 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 : [('22007675',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22007675) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349729918: {'path': 'temp/1743653699_1725429_1349729918_622095774f0f22e585c3e500856b239c.jpg', 'extension': 'jpg'}, 1349729920: {'path': 'temp/1743653699_1725429_1349729920_4cab43630fa8f6c1be3593ad5a836431.jpg', 'extension': 'jpg'}, 1349729922: {'path': 'temp/1743653699_1725429_1349729922_097d77913406b82e73755f2263c6cebe.jpg', 'extension': 'jpg'}, 1349729818: {'path': 'temp/1743653699_1725429_1349729818_f3e4e2f735c1464474ee6a6ffa53b9d2.jpg', 'extension': 'jpg'}, 1349729823: {'path': 'temp/1743653699_1725429_1349729823_7fd083dd5ce8e6bcd3503e1490ca13ca.jpg', 'extension': 'jpg'}, 1349729825: {'path': 'temp/1743653699_1725429_1349729825_2bfff2bd7beb7e91d5e2c9a9e20c7ed0.jpg', 'extension': 'jpg'}, 1349729831: {'path': 'temp/1743653699_1725429_1349729831_f979551c6adda142d1cb8023be3078ab.jpg', 'extension': 'jpg'}, 1349729890: {'path': 'temp/1743653699_1725429_1349729890_7ecfd48431cf6bc64abb8a2e19e644f6.jpg', 'extension': 'jpg'}, 1349729893: {'path': 'temp/1743653699_1725429_1349729893_94791b4822377eb9529283810b47e155.jpg', 'extension': 'jpg'}, 1349729895: {'path': 'temp/1743653699_1725429_1349729895_a146e68d0101ae805c5db2b5299c2cde.jpg', 'extension': 'jpg'}, 1349729916: {'path': 'temp/1743653699_1725429_1349729916_af98f80709d75a3c3bc032d75a0db1eb.jpg', 'extension': 'jpg'}, 1349729839: {'path': 'temp/1743653699_1725429_1349729839_d43c8a9568343b070f142350dadf4046.jpg', 'extension': 'jpg'}, 1349729881: {'path': 'temp/1743653699_1725429_1349729881_a72e82d26746f437a4c40b40ea224b18.jpg', 'extension': 'jpg'}, 1349729885: {'path': 'temp/1743653699_1725429_1349729885_149d6c59fd98502ed9f08dba9448a387.jpg', 'extension': 'jpg'}, 1349729888: {'path': 'temp/1743653699_1725429_1349729888_822416f4d9ba5c21d2b5124263fda2bb.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 = 22007675; (('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 = 22007675 group by h (('06', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22007675 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 (22007675) 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 (22007675) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22007675 Nombre de photos uploadées : 61 / 23040 (0%) 03042025 22007675 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 03042025 22007675 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1349727904, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8e363e82e5778dd70596253f14cf12b0.jpg', 'username': None, 'uploaded_at': 1743652877, 'text': 'image_03042025_06_00_04_010145m0.jpg 1e-05 for time 1, id_amount 0 this amount prod time diff : 1e-05'}, {'photo_id': 1349727820, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/301b46e56a9eb512ba8176d24c99aa3d.jpg', 'username': None, 'uploaded_at': 1743652877, 'text': 'image_03042025_06_00_44_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349728318, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/39040b15a3d3cfb57cd1a3639d58976a.jpg', 'username': None, 'uploaded_at': 1743652927, 'text': 'image_03042025_06_00_54_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1349728200, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/37806e11b4cbfb42efa548d49d3877a0.jpg', 'username': None, 'uploaded_at': 1743652927, 'text': 'image_03042025_06_01_04_010147m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030035972595214844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22007675, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.033481597900390625 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720503, 'mtr_portfolio_id': 22006414, 'dashboard_result_id': 9835957, '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_P22006414_03-04-2025_05_35_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22006416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22006417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22006418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22006419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22006420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22006421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22006422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22006423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22006424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22006425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22006426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22006427, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720503, 'mtr_portfolio_id': 22006670, 'dashboard_result_id': 9835958, '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_P22006670_03-04-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22006711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22006712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22006713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22006714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22006715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22006716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22006717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22006718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22006719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22006720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22006721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22006722, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720503, 'mtr_portfolio_id': 22007180, 'dashboard_result_id': 9835959, '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_P22007180_03-04-2025_06_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22007183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22007184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22007185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22007186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22007187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22007188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22007189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22007190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22007191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22007192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22007193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22007194, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720503, 'mtr_portfolio_id': 22007675, 'dashboard_result_id': 9835960, '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_P22007675_03-04-2025_06_11_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22007710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22007711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22007712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22007713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22007714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22007715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22007716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22007717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22007718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22007719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22007720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22007721, '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 = 22006414 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': 2719070, 'mtr_portfolio_id': 22006414, 'created_at': datetime.datetime(2025, 4, 3, 5, 35), 'result': '0.04494644448786429', 'result_long': None, 'result_double': None}] Qualite : 0.04494644448786429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22006414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22006414_03-04-2025_05_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22006414 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_P22006414_03-04-2025_05_35_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22006416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22006417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22006418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22006419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22006420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22006421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22006422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22006423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22006424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22006425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22006426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22006427, 'pht': 3726}}" where mtr_portfolio_id = 22006414 and dashboard_run_id = 1720503 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`=22006414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9835957, 0.04494644448786429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22006414_03-04-2025_05_35_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22006416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22006417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22006418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22006419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22006420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22006421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22006422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22006423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22006424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22006425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22006426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22006427, '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 = 22006670 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': 2719071, 'mtr_portfolio_id': 22006670, 'created_at': datetime.datetime(2025, 4, 3, 5, 48, 58), 'result': '0.056183660191399885', 'result_long': None, 'result_double': None}] Qualite : 0.056183660191399885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22006670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22006670_03-04-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22006670 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_P22006670_03-04-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22006711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22006712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22006713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22006714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22006715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22006716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22006717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22006718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22006719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22006720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22006721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22006722, 'pht': 3726}}" where mtr_portfolio_id = 22006670 and dashboard_run_id = 1720503 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`=22006670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9835958, 0.056183660191399885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22006670_03-04-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22006711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22006712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22006713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22006714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22006715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22006716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22006717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22006718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22006719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22006720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22006721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22006722, '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 = 22007180 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': 2719164, 'mtr_portfolio_id': 22007180, 'created_at': datetime.datetime(2025, 4, 3, 6, 2, 59), 'result': '0.03613454209711532', 'result_long': None, 'result_double': None}] Qualite : 0.03613454209711532 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22007180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22007180_03-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22007180 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_P22007180_03-04-2025_06_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22007183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22007184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22007185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22007186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22007187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22007188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22007189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22007190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22007191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22007192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22007193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22007194, 'pht': 3726}}" where mtr_portfolio_id = 22007180 and dashboard_run_id = 1720503 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`=22007180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9835959, 0.03613454209711532, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22007180_03-04-2025_06_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22007183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22007184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22007185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22007186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22007187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22007188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22007189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22007190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22007191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22007192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22007193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22007194, '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 = 22007675 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': 2719206, 'mtr_portfolio_id': 22007675, 'created_at': datetime.datetime(2025, 4, 3, 6, 14, 58), 'result': '0.04958440981405858', 'result_long': None, 'result_double': None}] Qualite : 0.04958440981405858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22007675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22007675_03-04-2025_06_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22007675 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_P22007675_03-04-2025_06_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22007710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22007711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22007712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22007713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22007714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22007715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22007716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22007717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22007718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22007719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22007720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22007721, 'pht': 3726}}" where mtr_portfolio_id = 22007675 and dashboard_run_id = 1720503 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`=22007675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9835960, 0.04958440981405858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22007675_03-04-2025_06_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22007710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22007711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22007712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22007713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22007714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22007715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22007716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22007717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22007718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22007719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22007720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22007721, '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 (22006414,22006670,22007180,22007675) result : ((1349724563,), (1349724703,), (1349724705,), (1349724762,), (1349724766,), (1349724770,), (1349724865,), (1349724868,), (1349724870,), (1349724871,), (1349724875,), (1349724938,), (1349724985,), (1349724990,), (1349724994,), (1349724997,), (1349725001,), (1349725024,), (1349725028,), (1349725030,), (1349725032,), (1349725068,), (1349725071,), (1349725075,), (1349725080,), (1349725083,), (1349725086,), (1349725106,), (1349725109,), (1349725113,), (1349725139,), (1349725151,), (1349725158,), (1349725171,), (1349725182,), (1349725183,), (1349725217,), (1349725221,), (1349725226,), (1349725229,), (1349725234,), (1349725239,), (1349725252,), (1349725256,), (1349725258,), (1349725275,), (1349725278,), (1349725281,), (1349725284,), (1349725288,), (1349725310,), (1349725312,), (1349725318,), (1349725327,), (1349725334,), (1349725409,), (1349725398,), (1349725401,), (1349725403,), (1349725405,), (1349725438,), (1349725440,), (1349725442,), (1349725444,), (1349725447,), (1349725448,), (1349725468,), (1349725470,), (1349725475,), (1349725479,), (1349725556,), (1349725559,), (1349725561,), (1349725563,), (1349725564,), (1349725590,), (1349725592,), (1349725594,), (1349725626,), (1349725636,), (1349725676,), (1349725678,), (1349725680,), (1349725681,), (1349725708,), (1349725710,), (1349725718,), (1349725722,), (1349725751,), (1349725754,), (1349725755,), (1349725756,), (1349725786,), (1349725799,), (1349725802,), (1349725806,), (1349725842,), (1349725845,), (1349725849,), (1349725850,), (1349725897,), (1349725898,), (1349725899,), (1349725900,), (1349725903,), (1349725906,), (1349725925,), (1349725928,), (1349725931,), (1349725934,), (1349725937,), (1349725967,), (1349725974,), (1349725976,), (1349725978,), (1349726005,), (1349726009,), (1349726011,), (1349726013,), (1349726016,), (1349726019,), (1349726051,), (1349726044,), (1349726047,), (1349726048,), (1349726102,), (1349726106,), (1349726109,), (1349726112,), (1349726150,), (1349726153,), (1349726160,), (1349726161,), (1349726164,), (1349726167,), (1349726237,), (1349726239,), (1349726241,), (1349726244,), (1349726247,), (1349726273,), (1349726277,), (1349726281,), (1349726283,), (1349726285,), (1349726290,), (1349726338,), (1349726342,), (1349726343,), (1349726344,), (1349726422,), (1349726430,), (1349726435,), (1349726437,), (1349726440,), (1349726442,), (1349726531,), (1349726532,), (1349726557,), (1349726560,), (1349726569,), (1349726602,), (1349726609,), (1349726723,), (1349726726,), (1349726729,), (1349726855,), (1349726861,), (1349726862,), (1349726863,), (1349726943,), (1349726970,), (1349726998,), (1349727018,), (1349727045,), (1349727073,), (1349727394,), (1349727423,), (1349727459,), (1349727471,), (1349727495,), (1349727706,), (1349727721,), (1349727730,), (1349727736,), (1349727744,), (1349727764,), (1349727771,), (1349727793,), (1349727799,), (1349727802,), (1349727914,), (1349727820,), (1349727904,), (1349727951,), (1349727978,), (1349727997,), (1349728067,), (1349728200,), (1349728318,), (1349728775,), (1349728781,), (1349728786,), (1349728791,), (1349728795,), (1349728863,), (1349729105,), (1349729107,), (1349729177,), (1349729202,), (1349729374,), (1349729378,), (1349729391,), (1349729395,), (1349729399,), (1349729401,), (1349729495,), (1349729498,), (1349729500,), (1349729620,), (1349729627,), (1349729631,), (1349729635,), (1349729638,), (1349729642,), (1349729674,), (1349729681,), (1349729689,), (1349729695,), (1349729720,), (1349729723,), (1349729726,), (1349729728,), (1349729730,), (1349729751,), (1349729756,), (1349729758,), (1349729762,), (1349729818,), (1349729823,), (1349729825,), (1349729831,), (1349729839,), (1349729881,), (1349729885,), (1349729888,), (1349729890,), (1349729893,), (1349729895,), (1349729916,), (1349729918,), (1349729920,), (1349729922,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22007675]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] map_info['map_portfolio_photo'] : {22007675: [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818, 1349729762, 1349729758, 1349729756, 1349729751, 1349729730, 1349729728, 1349729726, 1349729723, 1349729720, 1349729695, 1349729689, 1349729681, 1349729674, 1349729642, 1349729638, 1349729635, 1349729631, 1349729627, 1349729620, 1349729500, 1349729498, 1349729495, 1349729401, 1349729399, 1349729395, 1349729391, 1349729378, 1349729374, 1349729202, 1349729177, 1349729107, 1349729105, 1349728863, 1349728795, 1349728791, 1349728786, 1349728781, 1349728775, 1349728318, 1349728200, 1349728067, 1349727997, 1349727978, 1349727951, 1349727904, 1349727820]} final : True mtd_id 4302 list_pids : [1349729922, 1349729920, 1349729918, 1349729916, 1349729895, 1349729893, 1349729890, 1349729888, 1349729885, 1349729881, 1349729839, 1349729831, 1349729825, 1349729823, 1349729818] Looping around the photos to save general results len do output : 1 /22007675Didn'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, '2719206') ('4302', '22007675', '1349729922', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729920', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729918', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729916', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729895', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729893', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729890', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729888', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729885', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729881', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729839', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729831', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729825', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729823', None, None, None, None, None, '2719206') ('4302', None, None, None, None, None, None, None, '2719206') ('4302', '22007675', '1349729818', None, None, None, None, None, '2719206') 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, '22007675', 'None', None, None, None, None, '2719206'), ('4302', '22007675', '1349729922', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729920', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729918', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729916', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729895', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729893', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729890', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729888', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729885', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729881', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729839', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729831', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729825', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729823', None, None, None, None, None, '2719206'), ('4302', '22007675', '1349729818', None, None, None, None, None, '2719206')] time used for this insertion : 0.646080732345581 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4410984516143799 time spend to save output : 0.6463589668273926 total time spend for step 5 : 1.0874574184417725 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 (2719206) 2.40user 2.39system 0:12.02elapsed 39%CPU (0avgtext+0avgdata 159936maxresident)k 640inputs+18616outputs (0major+75051minor)pagefaults 0swaps