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 : 3369197 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 (2678727) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2678727) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570421 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2678727'] with mtr_portfolio_ids : ['21570421'] and first list_photo_ids : [] new path : /proc/3369197/ Name: python3 Umask: 0002 State: R (running) Tgid: 3369197 Ngid: 0 Pid: 3369197 PPid: 3369196 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3369197 NSpid: 3369197 NSpgid: 3364738 NSsid: 3364738 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98348 kB VmRSS: 98348 kB RssAnon: 59760 kB RssFile: 38588 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 89 nonvoluntary_ctxt_switches: 244 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3369197', 'Ngid': '0', 'Pid': '3369197', 'PPid': '3369196', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3369197', 'NSpid': '3369197', 'NSpgid': '3364738', 'NSsid': '3364738', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98348 kB', 'VmRSS': '98348 kB', 'RssAnon': '59760 kB', 'RssFile': '38588 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '89', 'nonvoluntary_ctxt_switches': '244'} ('datou_batch_current', '3369197', '1106844', '0', '1106844', '865592', '98348', b'', 'marlene', '2678727') 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 (21570421) 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 (2678727 ) ) 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 (21570421) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1345972470, 'portfolio_id': 21570421}, {'photo_id': 1345972435, 'portfolio_id': 21570421}, {'photo_id': 1345972394, 'portfolio_id': 21570421}, {'photo_id': 1345972369, 'portfolio_id': 21570421}, {'photo_id': 1345972341, 'portfolio_id': 21570421}, {'photo_id': 1345972302, 'portfolio_id': 21570421}, {'photo_id': 1345972015, 'portfolio_id': 21570421}, {'photo_id': 1345971991, 'portfolio_id': 21570421}, {'photo_id': 1345971968, 'portfolio_id': 21570421}, {'photo_id': 1345971938, 'portfolio_id': 21570421}, {'photo_id': 1345971899, 'portfolio_id': 21570421}, {'photo_id': 1345971824, 'portfolio_id': 21570421}, {'photo_id': 1345971651, 'portfolio_id': 21570421}, {'photo_id': 1345971620, 'portfolio_id': 21570421}, {'photo_id': 1345971337, 'portfolio_id': 21570421}, {'photo_id': 1345970906, 'portfolio_id': 21570421}, {'photo_id': 1345970834, 'portfolio_id': 21570421}, {'photo_id': 1345970765, 'portfolio_id': 21570421}, {'photo_id': 1345970694, 'portfolio_id': 21570421}, {'photo_id': 1345970650, 'portfolio_id': 21570421}, {'photo_id': 1345970611, 'portfolio_id': 21570421}, {'photo_id': 1345970505, 'portfolio_id': 21570421}, {'photo_id': 1345969780, 'portfolio_id': 21570421}, {'photo_id': 1345969748, 'portfolio_id': 21570421}, {'photo_id': 1345969718, 'portfolio_id': 21570421}, {'photo_id': 1345969693, 'portfolio_id': 21570421}, {'photo_id': 1345969666, 'portfolio_id': 21570421}, {'photo_id': 1345969638, 'portfolio_id': 21570421}, {'photo_id': 1345969518, 'portfolio_id': 21570421}, {'photo_id': 1345969495, 'portfolio_id': 21570421}, {'photo_id': 1345969366, 'portfolio_id': 21570421}, {'photo_id': 1345969363, 'portfolio_id': 21570421}, {'photo_id': 1345969359, 'portfolio_id': 21570421}, {'photo_id': 1345969358, 'portfolio_id': 21570421}, {'photo_id': 1345969356, 'portfolio_id': 21570421}, {'photo_id': 1345969352, 'portfolio_id': 21570421}, {'photo_id': 1345969330, 'portfolio_id': 21570421}, {'photo_id': 1345969327, 'portfolio_id': 21570421}, {'photo_id': 1345969302, 'portfolio_id': 21570421}, {'photo_id': 1345969300, 'portfolio_id': 21570421}, {'photo_id': 1345969297, 'portfolio_id': 21570421}, {'photo_id': 1345969293, 'portfolio_id': 21570421}, {'photo_id': 1345969290, 'portfolio_id': 21570421}, {'photo_id': 1345969287, 'portfolio_id': 21570421}, {'photo_id': 1345969247, 'portfolio_id': 21570421}, {'photo_id': 1345969243, 'portfolio_id': 21570421}, {'photo_id': 1345969231, 'portfolio_id': 21570421}, {'photo_id': 1345969230, 'portfolio_id': 21570421}, {'photo_id': 1345969191, 'portfolio_id': 21570421}, {'photo_id': 1345969176, 'portfolio_id': 21570421}, {'photo_id': 1345969173, 'portfolio_id': 21570421}, {'photo_id': 1345969170, 'portfolio_id': 21570421}, {'photo_id': 1345969167, 'portfolio_id': 21570421}, {'photo_id': 1345969159, 'portfolio_id': 21570421}, {'photo_id': 1345969116, 'portfolio_id': 21570421}, {'photo_id': 1345969115, 'portfolio_id': 21570421}, {'photo_id': 1345969111, 'portfolio_id': 21570421}, {'photo_id': 1345969107, 'portfolio_id': 21570421}, {'photo_id': 1345969104, 'portfolio_id': 21570421}, {'photo_id': 1345969101, 'portfolio_id': 21570421}] map_portfolio_id_photo_id: {21570421: [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620, 1345971337, 1345970906, 1345970834, 1345970765, 1345970694, 1345970650, 1345970611, 1345970505, 1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} ##### 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.016309022903442383 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 21 12:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21570421) 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 : 21570421 get user id for portfolio 21570421 get sub ptf for main ptf 21570421, type 3726 and hashtags ['Teint_Dans_La_Masse', 'papier', 'mal_croppe', 'flou', 'Carton_brun', 'Carton_gris', 'metal', 'autre_refus', 'cartonnette', 'plastique', 'kraft', 'environnement'] 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`=21570421 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','mal_croppe','flou','Carton_brun','Carton_gris','metal','autre_refus','cartonnette','plastique','kraft','environnement')) 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`=21570421 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','mal_croppe','flou','Carton_brun','Carton_gris','metal','autre_refus','cartonnette','plastique','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21570421, 'sub_port_id': 21570434, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116306, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21570421, 'sub_port_id': 21570435, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116307, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'plastique': {'main_port_id': 21570421, 'sub_port_id': 21570437, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116308, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'cartonnette': {'main_port_id': 21570421, 'sub_port_id': 21570438, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116309, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'flou': {'main_port_id': 21570421, 'sub_port_id': 21570439, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116310, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'autre_refus': {'main_port_id': 21570421, 'sub_port_id': 21570440, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116311, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'papier': {'main_port_id': 21570421, 'sub_port_id': 21570442, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116312, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'environnement': {'main_port_id': 21570421, 'sub_port_id': 21570443, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116313, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'metal': {'main_port_id': 21570421, 'sub_port_id': 21570444, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116314, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_brun': {'main_port_id': 21570421, 'sub_port_id': 21570445, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116315, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'kraft': {'main_port_id': 21570421, 'sub_port_id': 21570446, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116316, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_gris': {'main_port_id': 21570421, 'sub_port_id': 21570447, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116317, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21570434 , 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=21570421 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 (21570434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570435 , 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=21570421 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 (21570435) result : ((1345970862,), (1345970863,), (1345971410,), (1345971411,), (1345971432,), (1345971434,), (1345971484,), (1345972396,), (1345972397,), (1345972756,), (1345972757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570437 , 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=21570421 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 (21570437) result : ((1345970976,), (1345970977,), (1345971571,), (1345971595,), (1345972443,), (1345972826,), (1345972827,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570438 , 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=21570421 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 (21570438) result : ((1345970147,), (1345970208,), (1345970209,), (1345970210,), (1345971159,), (1345971165,), (1345971172,), (1345971450,), (1345971549,), (1345971550,), (1345971558,), (1345972437,), (1345972805,), (1345972806,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570439 , 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=21570421 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 (21570439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570440 , 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=21570421 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 (21570440) result : ((1345970110,), (1345970122,), (1345970124,), (1345970125,), (1345970127,), (1345970167,), (1345970168,), (1345970169,), (1345970170,), (1345970909,), (1345970910,), (1345970914,), (1345970918,), (1345971068,), (1345971069,), (1345971070,), (1345971072,), (1345971431,), (1345971476,), (1345971478,), (1345971481,), (1345971487,), (1345971518,), (1345971524,), (1345971528,), (1345971529,), (1345971530,), (1345971531,), (1345971532,), (1345971533,), (1345972417,), (1345972418,), (1345972419,), (1345972420,), (1345972511,), (1345972512,), (1345972771,), (1345972772,), (1345972773,), (1345972774,), (1345972776,), (1345972777,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570442 , 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=21570421 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 (21570442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570443 , 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=21570421 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 (21570443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570444 , 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=21570421 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 (21570444) result : ((1345972831,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570445 , 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=21570421 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 (21570445) result : ((1345970158,), (1345970219,), (1345970222,), (1345971193,), (1345971194,), (1345971557,), (1345971582,), (1345971583,), (1345972537,), (1345972538,), (1345972539,), (1345972812,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570446 , 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=21570421 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 (21570446) result : ((1345971601,), (1345972451,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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 21570447 , 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=21570421 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 (21570447) result : ((1345970139,), (1345970140,), (1345970141,), (1345970179,), (1345970180,), (1345970182,), (1345970183,), (1345970184,), (1345970185,), (1345970953,), (1345970955,), (1345970956,), (1345971116,), (1345971119,), (1345971125,), (1345971130,), (1345971131,), (1345971132,), (1345971135,), (1345971136,), (1345971516,), (1345971519,), (1345971525,), (1345971546,), (1345972429,), (1345972520,), (1345972793,), (1345972794,), (1345972796,), (1345972797,), (1345972798,), (1345972799,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,)) 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 (1345969300) 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`=21570421 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','mal_croppe','flou','Carton_brun','Carton_gris','metal','autre_refus','cartonnette','plastique','kraft','environnement')) 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`=21570421 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','mal_croppe','flou','Carton_brun','Carton_gris','metal','autre_refus','cartonnette','plastique','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21570421, 'sub_port_id': 21570448, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116318, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21570421, 'sub_port_id': 21570449, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116319, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'plastique': {'main_port_id': 21570421, 'sub_port_id': 21570450, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116320, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'cartonnette': {'main_port_id': 21570421, 'sub_port_id': 21570451, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116321, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'flou': {'main_port_id': 21570421, 'sub_port_id': 21570452, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116322, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'autre_refus': {'main_port_id': 21570421, 'sub_port_id': 21570453, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116323, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'papier': {'main_port_id': 21570421, 'sub_port_id': 21570454, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116324, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'environnement': {'main_port_id': 21570421, 'sub_port_id': 21570455, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116325, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'metal': {'main_port_id': 21570421, 'sub_port_id': 21570456, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116326, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_brun': {'main_port_id': 21570421, 'sub_port_id': 21570457, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116327, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'kraft': {'main_port_id': 21570421, 'sub_port_id': 21570458, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116328, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_gris': {'main_port_id': 21570421, 'sub_port_id': 21570459, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116329, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 3, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 3, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570447 lien utilise dans velours : https://www.fotonower.com/velours/21570448,21570449,21570450,21570451,21570452,21570453,21570454,21570455,21570456,21570457,21570458,21570459?tags=mal_croppe,Teint_Dans_La_Masse,plastique,cartonnette,flou,autre_refus,papier,environnement,metal,Carton_brun,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21570421]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] map_info['map_portfolio_photo'] : {21570421: [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620, 1345971337, 1345970906, 1345970834, 1345970765, 1345970694, 1345970650, 1345970611, 1345970505, 1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : False mtd_id 4302 list_pids : [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] Looping around the photos to save general results len do output : 1 /21570421. 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, '2678727') ('4302', '21570421', '1345972470', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972435', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972394', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972369', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972341', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972302', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972015', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971991', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971968', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971938', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971899', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971824', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971651', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971620', None, None, None, None, None, '2678727') 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', None, '21570421', "{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}", None, None, None, None, '2678727'), ('4302', '21570421', '1345972470', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972435', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972394', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972369', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972341', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972302', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972015', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971991', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971968', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971938', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971899', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971824', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971651', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971620', None, None, None, None, None, '2678727')] time used for this insertion : 0.014595508575439453 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5024681091308594 time spend to save output : 0.01499485969543457 total time spend for step 1 : 0.517462968826294 step2:final Fri Mar 21 12:06: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 ! 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 (21570421) 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 21570421 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1345972470,1345972435,1345972394,1345972369,1345972341,1345972302,1345972015,1345971991,1345971968,1345971938,1345971899,1345971824,1345971651,1345971620,1345971337,1345970906,1345970834,1345970765,1345970694,1345970650,1345970611,1345970505,1345969780,1345969748,1345969718,1345969693,1345969666,1345969638,1345969518,1345969495,1345969366,1345969363,1345969359,1345969358,1345969356,1345969352,1345969330,1345969327,1345969302,1345969300,1345969297,1345969293,1345969290,1345969287,1345969247,1345969243,1345969231,1345969230,1345969191,1345969176,1345969173,1345969170,1345969167,1345969159,1345969116,1345969115,1345969111,1345969107,1345969104,1345969101); 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([21570421]) Inside saveOutput : final : False verbose : True original output for save of step final : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} new output for save of step final : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] map_info['map_portfolio_photo'] : {21570421: [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620, 1345971337, 1345970906, 1345970834, 1345970765, 1345970694, 1345970650, 1345970611, 1345970505, 1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : False mtd_id 4302 list_pids : [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] Looping around the photos to save general results len do output : 14 /1345972470.Didn't retrieve data . /1345972435.Didn't retrieve data . /1345972394.Didn't retrieve data . /1345972369.Didn't retrieve data . /1345972341.Didn't retrieve data . /1345972302.Didn't retrieve data . /1345972015.Didn't retrieve data . /1345971991.Didn't retrieve data . /1345971968.Didn't retrieve data . /1345971938.Didn't retrieve data . /1345971899.Didn't retrieve data . /1345971824.Didn't retrieve data . /1345971651.Didn't retrieve data . /1345971620.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, '2678727') ('4302', '21570421', '1345972470', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972435', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972394', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972369', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972341', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972302', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972015', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971991', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971968', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971938', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971899', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971824', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971651', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971620', None, None, None, None, None, '2678727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '21570421', '1345972470', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345972435', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345972394', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345972369', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345972341', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345972302', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345972015', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345971991', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345971968', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345971938', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345971899', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345971824', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345971651', '0.075329715260755', None, None, None, None, '2678727'), ('4302', '21570421', '1345971620', '0.075329715260755', None, None, None, None, '2678727')] time used for this insertion : 0.013957977294921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07607269287109375 time spend to save output : 0.014773845672607422 total time spend for step 2 : 0.09084653854370117 step3:velours_tree Fri Mar 21 12:06: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 complete output_args for input 0 : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} input_args_next_step : {21570421: ()} output_args : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} args : 21570421 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21570421) 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([21570421]) 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.6322388648986816 time spend to save output : 9.417533874511719e-05 total time spend for step 3 : 0.6323330402374268 step4:send_mail_cod Fri Mar 21 12:06: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 : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} input_args_next_step : {1345972470: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345972470 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345972435 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345972394 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345972369 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345972341 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345972302 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345972015 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345971991 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345971968 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345971938 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345971899 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345971824 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345971651 depend.output_id : 0 input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ()} output_args : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',)} args : 1345971620 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 : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} input_args_next_step : {1345972470: ('0.075329715260755',), 1345972435: ('0.075329715260755',), 1345972394: ('0.075329715260755',), 1345972369: ('0.075329715260755',), 1345972341: ('0.075329715260755',), 1345972302: ('0.075329715260755',), 1345972015: ('0.075329715260755',), 1345971991: ('0.075329715260755',), 1345971968: ('0.075329715260755',), 1345971938: ('0.075329715260755',), 1345971899: ('0.075329715260755',), 1345971824: ('0.075329715260755',), 1345971651: ('0.075329715260755',), 1345971620: ('0.075329715260755',), 21570421: ()} output_args : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} args : 21570421 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 :15, first value : ('0.075329715260755',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21570421) 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 (1345972470,1345972435,1345972394,1345972369,1345972341,1345972302,1345972015,1345971991,1345971968,1345971938,1345971899,1345971824,1345971651,1345971620) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1345971620 begin to download photo : 1345971899 begin to download photo : 1345971991 begin to download photo : 1345972341 begin to download photo : 1345972435 download finish for photo 1345972341 begin to download photo : 1345972369 download finish for photo 1345971991 begin to download photo : 1345972015 download finish for photo 1345971899 begin to download photo : 1345971938 download finish for photo 1345972435 begin to download photo : 1345972470 download finish for photo 1345971620 begin to download photo : 1345971651 download finish for photo 1345972369 begin to download photo : 1345972394 download finish for photo 1345972015 begin to download photo : 1345972302 download finish for photo 1345971938 begin to download photo : 1345971968 download finish for photo 1345972470 download finish for photo 1345971651 begin to download photo : 1345971824 download finish for photo 1345972302 download finish for photo 1345971968 download finish for photo 1345971824 download finish for photo 1345972394 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette215704341742555220/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21570421_21-03-2025_12_07_00.pdf 21570434 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=21570434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704341742555220 21570437 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=21570437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970976: '1742554817_729608_1345969111_0aac1c899c39178fb79297227cc99a79_rle_crop_3721840194_0.png', 1345970977: '1742554817_729608_1345969101_97f110011f702f2c2d95c6a02cc59a2e_rle_crop_3721840255_0.png', 1345971571: '1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839147_0.png', 1345971595: '1742554894_737439_1345969518_bbde1fc5e6ad2df1e1f781171bcdd8e1_rle_crop_3721841010_0.png', 1345972443: '1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842658_0.png', 1345972826: '1742555092_741996_1345970694_d856b593eb911433dae25a9c50780473_rle_crop_3721843448_0.png', 1345972827: '1742555092_741996_1345970650_3ecf5546116cb3a5e37d3dd4d2f2d7c3_rle_crop_3721843470_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/182c7b25856bc6d1421d30ad751462f2_70290132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b4949e26271993dbfe677f6b7a45a095_99842699.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/be94c201abdd068e6c669062a8fa0b51_10137680.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/beb81e73b6cd52558d1195a008fe917f_6253136.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a1dfc0e4ab4e71de9e09e4f522d19fb9_3838430.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/75b2da426112b99383faa0992417122a_94406264.png change filename to text .imagette215704371742555220/ imagette215704371742555220/1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842658_0.png.png imagette215704371742555220/1742554817_729608_1345969111_0aac1c899c39178fb79297227cc99a79_rle_crop_3721840194_0.png.png imagette215704371742555220/1742554894_737439_1345969518_bbde1fc5e6ad2df1e1f781171bcdd8e1_rle_crop_3721841010_0.png.png imagette215704371742555220/1742555092_741996_1345970650_3ecf5546116cb3a5e37d3dd4d2f2d7c3_rle_crop_3721843470_0.png.png imagette215704371742555220/1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839147_0.png.png imagette215704371742555220/1742554817_729608_1345969101_97f110011f702f2c2d95c6a02cc59a2e_rle_crop_3721840255_0.png.png imagette215704371742555220/1742555092_741996_1345970694_d856b593eb911433dae25a9c50780473_rle_crop_3721843448_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f8851b2a745e75acb50567364c0aacef_93536906.png imagette215704371742555220 21570438 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=21570438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970147: '1742554731_724723_1345969176_edb411dc9e7954d11f0e86b5e3c1cd27_rle_crop_3721837578_0.png', 1345970208: '1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837815_0.png', 1345970209: '1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837825_0.png', 1345970210: '1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837896_0.png', 1345971159: '1742554852_736327_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837815_0.png', 1345971165: '1742554852_736327_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837825_0.png', 1345971172: '1742554852_736327_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837896_0.png', 1345971450: '1742554913_737657_1345969352_779725b783e8915b108dd86cab257506_rle_crop_3721841098_0.png', 1345971549: '1742554873_737089_1345969300_de32a425358dcb4846b1e06d661f7b27_rle_crop_3721838848_0.png', 1345971550: '1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839143_0.png', 1345971558: '1742554894_737439_1345969495_1483960f9851abea4713983ac7657a46_rle_crop_3721841085_0.png', 1345972437: '1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842648_0.png', 1345972805: '1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843484_0.png', 1345972806: '1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5c8ead2b44f8bc12848e0e003aa3eeda_14825928.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/be374e5d259d5de41550e3a3408aa261_27612843.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/be374e5d259d5de41550e3a3408aa261_32263490.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5c98778c52e738941efc166842bc76c0_916510.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/be374e5d259d5de41550e3a3408aa261_90371318.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/be374e5d259d5de41550e3a3408aa261_68501807.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5c98778c52e738941efc166842bc76c0_39457832.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bcf0e948f3d1a1eef0ab47094c19b549_3282439.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ffb010be7d00a6b5bafd476e38a1df8f_9914805.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8d53e80ee8de9cf374ae70d84228a2a9_12492889.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/94b71c60f34ce49f298f23cc8b467a00_94893433.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/05313d5e62793ce917e089fc8c03e635_31752167.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8efacbb0d0cb93094966cc3c708503cf_3971605.png change filename to text .imagette215704381742555220/ imagette215704381742555220/1742554873_737089_1345969300_de32a425358dcb4846b1e06d661f7b27_rle_crop_3721838848_0.png.png imagette215704381742555220/1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843484_0.png.png imagette215704381742555220/1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842648_0.png.png imagette215704381742555220/1742554852_736327_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837815_0.png.png imagette215704381742555220/1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837815_0.png.png imagette215704381742555220/1742554852_736327_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837896_0.png.png imagette215704381742555220/1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837825_0.png.png imagette215704381742555220/1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837896_0.png.png imagette215704381742555220/1742554894_737439_1345969495_1483960f9851abea4713983ac7657a46_rle_crop_3721841085_0.png.png imagette215704381742555220/1742554852_736327_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837825_0.png.png imagette215704381742555220/1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843474_0.png.png imagette215704381742555220/1742554731_724723_1345969176_edb411dc9e7954d11f0e86b5e3c1cd27_rle_crop_3721837578_0.png.png imagette215704381742555220/1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839143_0.png.png imagette215704381742555220/1742554913_737657_1345969352_779725b783e8915b108dd86cab257506_rle_crop_3721841098_0.png.png imagette215704391742555221/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f0a1712a3476fb938a16c5add4733e6e_40137701.png imagette215704381742555220 21570439 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=21570439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704391742555221 21570440 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=21570440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972419: '1742555032_741149_1345969693_59301a37b8a99dfa45f6496d6ba9d5c2_rle_crop_3721842633_0.png', 1345971518: '1742554894_737439_1345969518_bbde1fc5e6ad2df1e1f781171bcdd8e1_rle_crop_3721841017_0.png', 1345971524: '1742554894_737439_1345969495_1483960f9851abea4713983ac7657a46_rle_crop_3721841090_0.png', 1345971528: '1742554894_737439_1345969366_cbb5eaeac7860719ff0c1323ebb84b9e_rle_crop_3721841126_0.png', 1345971529: '1742554894_737439_1345969363_e908d7a5d6c01d60ecb89afbc10fe10b_rle_crop_3721841174_0.png', 1345971530: '1742554894_737439_1345969363_e908d7a5d6c01d60ecb89afbc10fe10b_rle_crop_3721841170_0.png', 1345971531: '1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841643_0.png', 1345971532: '1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841648_0.png', 1345971533: '1742554894_737439_1345969358_34b5b9db74845726b123731283ec1e69_rle_crop_3721841661_0.png', 1345972417: '1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842617_0.png', 1345972418: '1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842625_0.png', 1345971487: '1742554873_737089_1345969290_ff87cb3b4fda8212aeedcd5a857a887c_rle_crop_3721839425_0.png', 1345972420: '1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842657_0.png', 1345972511: '1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842966_0.png', 1345972512: '1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842962_0.png', 1345972771: '1742555092_741996_1345970694_d856b593eb911433dae25a9c50780473_rle_crop_3721843443_0.png', 1345972772: '1742555092_741996_1345970650_3ecf5546116cb3a5e37d3dd4d2f2d7c3_rle_crop_3721843466_0.png', 1345972773: '1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843497_0.png', 1345972774: '1742555092_741996_1345970505_3507e45ac6e0bec8046641fdc27d0643_rle_crop_3721843515_0.png', 1345972776: '1742555092_741996_1345969780_00d5aa1aae26b26dbe642eeeb9129621_rle_crop_3721843530_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bc5c38049ddf8edf3afd09c1573cff6e_4443287.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71f0d1796bfe9d9cb754dd430dd18468_26571426.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/4b70a5a95d0ae33d7935b3a821ae9f97_7693266.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f057a04b039e37bc3a94440d77a6b1ff_38981874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f0ac3e5b4f2c272e02585f3c9fbbfe28_82995734.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/61042d408c06d3126223e266db65b7e6_97115347.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/fd673abff6da36b46e0306a73a965724_78924190.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/dbf97dcab45e29158c61861cde9b3340_93575799.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/fc0ebb25689549c838e2a8aaa293f60c_80171739.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e80cccee102d9601f644d1fcbf0ec616_97170752.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/4f749c4c9ca5f0bb7f52c6d4133fbfd8_28707164.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a85089c1e3cb52f08c5dc1b809978835_54263525.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c15e894f0b05b713ec8b3bcdd3fc9ab0_36079843.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/20a48c48120bc81f15e269f008e28666_24225621.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/7b4da7b2f51ef9091b4e93ba55e07008_14424004.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/065e2883c699c59e4d5bed74daf0d97e_60103705.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/07cff63ffd374b3df499b66973c508b2_35688809.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/3669db616e90cc31dce63f7ebbc0e41f_55690988.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/50f4b53d2cba032159895bd36df5dfc4_71748383.png change filename to text .imagette215704401742555221/ imagette215704401742555221/1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842617_0.png.png imagette215704401742555221/1742554894_737439_1345969363_e908d7a5d6c01d60ecb89afbc10fe10b_rle_crop_3721841170_0.png.png imagette215704401742555221/1742555092_741996_1345969780_00d5aa1aae26b26dbe642eeeb9129621_rle_crop_3721843530_0.png.png imagette215704401742555221/1742554873_737089_1345969290_ff87cb3b4fda8212aeedcd5a857a887c_rle_crop_3721839425_0.png.png imagette215704401742555221/1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841648_0.png.png imagette215704401742555221/1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842966_0.png.png imagette215704401742555221/1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841643_0.png.png imagette215704401742555221/1742554894_737439_1345969358_34b5b9db74845726b123731283ec1e69_rle_crop_3721841661_0.png.png imagette215704401742555221/1742555092_741996_1345970505_3507e45ac6e0bec8046641fdc27d0643_rle_crop_3721843515_0.png.png imagette215704401742555221/1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843497_0.png.png imagette215704401742555221/1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842657_0.png.png imagette215704401742555221/1742555092_741996_1345970650_3ecf5546116cb3a5e37d3dd4d2f2d7c3_rle_crop_3721843466_0.png.png imagette215704401742555221/1742555092_741996_1345970694_d856b593eb911433dae25a9c50780473_rle_crop_3721843443_0.png.png imagette215704401742555221/1742555032_741149_1345969693_59301a37b8a99dfa45f6496d6ba9d5c2_rle_crop_3721842633_0.png.png imagette215704401742555221/1742554894_737439_1345969363_e908d7a5d6c01d60ecb89afbc10fe10b_rle_crop_3721841174_0.png.png imagette215704401742555221/1742554894_737439_1345969366_cbb5eaeac7860719ff0c1323ebb84b9e_rle_crop_3721841126_0.png.png imagette215704401742555221/1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842962_0.png.png imagette215704401742555221/1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842625_0.png.png imagette215704401742555221/1742554894_737439_1345969518_bbde1fc5e6ad2df1e1f781171bcdd8e1_rle_crop_3721841017_0.png.png imagette215704401742555221/1742554894_737439_1345969495_1483960f9851abea4713983ac7657a46_rle_crop_3721841090_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d199d921d19c0e68eb382f09553f16ac_2297412.png imagette215704401742555221 21570444 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=21570444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972831: '1742555092_741996_1345969748_233b3dbafca780f771f66ae6cb159a98_rle_crop_3721843565_0.png'} change filename to text .imagette215704441742555222/ imagette215704441742555222/1742555092_741996_1345969748_233b3dbafca780f771f66ae6cb159a98_rle_crop_3721843565_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a74fbf48e78194632887d78ed0aaa82f_50809137.png imagette215704441742555222 21570446 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=21570446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345971601: '1742554894_737439_1345969366_cbb5eaeac7860719ff0c1323ebb84b9e_rle_crop_3721841123_0.png', 1345972451: '1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842655_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/62723c8295e9c953e756e9b0691b5add_27584967.png change filename to text .imagette215704461742555222/ imagette215704461742555222/1742554894_737439_1345969366_cbb5eaeac7860719ff0c1323ebb84b9e_rle_crop_3721841123_0.png.png imagette215704461742555222/1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842655_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/13b79b3904ca02716af0c950b2b5c41e_76712799.png imagette215704461742555222 21570435 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=21570435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970862: '1742554817_729608_1345969107_914d3c591c6c948d014b5ece3117dc07_rle_crop_3721840207_0.png', 1345970863: '1742554817_729608_1345969101_97f110011f702f2c2d95c6a02cc59a2e_rle_crop_3721840257_0.png', 1345971410: '1742554913_737657_1345969356_07cdf06d7bb6f240dd19cc36c3c78c23_rle_crop_3721841079_0.png', 1345971411: '1742554913_737657_1345969327_34ea8957e5394c78ef2c433fb1e6594e_rle_crop_3721841199_0.png', 1345971432: '1742554873_737089_1345969302_febb0b3a15cc9be373d91a506afd0ce1_rle_crop_3721838156_0.png', 1345971434: '1742554873_737089_1345969300_de32a425358dcb4846b1e06d661f7b27_rle_crop_3721838851_0.png', 1345971484: '1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841644_0.png', 1345972396: '1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842620_0.png', 1345972397: '1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842652_0.png', 1345972756: '1742555092_741996_1345969780_00d5aa1aae26b26dbe642eeeb9129621_rle_crop_3721843532_0.png', 1345972757: '1742555092_741996_1345969748_233b3dbafca780f771f66ae6cb159a98_rle_crop_3721843568_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a1de3bfc271c4099d232281b2eaad42e_69442094.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/04da670bc0f9660c2515320838b540e0_51532494.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1d9ec876bd7fde73194d58b9747e1718_97305876.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e5f637f11b4f54194a11162ada90082d_16022092.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a938d7fc7423919d750c4237de4b3eba_48913670.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/52d5d60c082da92763c78b09301fa7c4_90202286.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/01fb48099d6d49862765e3840e097e2c_66248942.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ee823b3ecd241605ef0e7c9eb5994d87_52131561.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/7b2a72fda0ad9b7990e3ceef1d1b108c_36450928.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/11ca1a07e548dc2806b0b38d0c64c3af_19333315.png change filename to text .imagette215704351742555222/ imagette215704351742555222/1742554817_729608_1345969101_97f110011f702f2c2d95c6a02cc59a2e_rle_crop_3721840257_0.png.png imagette215704351742555222/1742554913_737657_1345969327_34ea8957e5394c78ef2c433fb1e6594e_rle_crop_3721841199_0.png.png imagette215704351742555222/1742554913_737657_1345969356_07cdf06d7bb6f240dd19cc36c3c78c23_rle_crop_3721841079_0.png.png imagette215704351742555222/1742555032_741149_1345969638_cbb42c986b83c0f0be5f8855356cf71c_rle_crop_3721842652_0.png.png imagette215704351742555222/1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841644_0.png.png imagette215704351742555222/1742555092_741996_1345969748_233b3dbafca780f771f66ae6cb159a98_rle_crop_3721843568_0.png.png imagette215704351742555222/1742554873_737089_1345969302_febb0b3a15cc9be373d91a506afd0ce1_rle_crop_3721838156_0.png.png imagette215704351742555222/1742554873_737089_1345969300_de32a425358dcb4846b1e06d661f7b27_rle_crop_3721838851_0.png.png imagette215704351742555222/1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842620_0.png.png imagette215704351742555222/1742555092_741996_1345969780_00d5aa1aae26b26dbe642eeeb9129621_rle_crop_3721843532_0.png.png imagette215704351742555222/1742554817_729608_1345969107_914d3c591c6c948d014b5ece3117dc07_rle_crop_3721840207_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/73734d3b0790af64e2745273b41dd7d4_57049802.png imagette215704351742555222 21570445 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=21570445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970158: '1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837605_0.png', 1345970219: '1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837646_0.png', 1345970222: '1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837799_0.png', 1345971193: '1742554852_736327_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837646_0.png', 1345971194: '1742554852_736327_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837799_0.png', 1345971557: '1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839151_0.png', 1345971582: '1742554894_737439_1345969366_cbb5eaeac7860719ff0c1323ebb84b9e_rle_crop_3721841124_0.png', 1345971583: '1742554894_737439_1345969358_34b5b9db74845726b123731283ec1e69_rle_crop_3721841660_0.png', 1345972537: '1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842959_0.png', 1345972538: '1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842964_0.png', 1345972539: '1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842956_0.png', 1345972812: '1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843479_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a933c31db225d239058b6364ce5e6d2c_50378266.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71e8d55d71bffb21533e42f38220db29_74534559.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71e8d55d71bffb21533e42f38220db29_17681335.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71e8d55d71bffb21533e42f38220db29_52535874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71e8d55d71bffb21533e42f38220db29_27165353.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/639689335ee42fdcd29e90363ee8c8ba_73994408.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/fd42fce4db1a20788ba9ecbac73133bf_1401127.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/85724b80f0415797dab4b0586e25a337_25051611.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8aa900cc36a980c54513a0952ed5a282_50874735.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/0a1d212097f5f947244162c8d3b4155e_77227368.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5c40aa2d9ac7a656eaf2cd72a6445a34_24162497.png change filename to text .imagette215704451742555223/ imagette215704451742555223/1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842956_0.png.png imagette215704451742555223/1742554894_737439_1345969366_cbb5eaeac7860719ff0c1323ebb84b9e_rle_crop_3721841124_0.png.png imagette215704451742555223/1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842964_0.png.png imagette215704451742555223/1742554852_736327_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837799_0.png.png imagette215704451742555223/1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839151_0.png.png imagette215704451742555223/1742554852_736327_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837646_0.png.png imagette215704451742555223/1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837799_0.png.png imagette215704451742555223/1742554894_737439_1345969358_34b5b9db74845726b123731283ec1e69_rle_crop_3721841660_0.png.png imagette215704451742555223/1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843479_0.png.png imagette215704451742555223/1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842959_0.png.png imagette215704451742555223/1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837605_0.png.png imagette215704451742555223/1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837646_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f0fc932c4c4a27d71637050239d70e9f_70434794.png imagette215704451742555223 21570447 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=21570447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345971131: '1742554852_736327_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837812_0.png', 1345972799: '1742555092_741996_1345969748_233b3dbafca780f771f66ae6cb159a98_rle_crop_3721843567_0.png', 1345972798: '1742555092_741996_1345969780_00d5aa1aae26b26dbe642eeeb9129621_rle_crop_3721843528_0.png', 1345972797: '1742555092_741996_1345970505_3507e45ac6e0bec8046641fdc27d0643_rle_crop_3721843506_0.png', 1345972796: '1742555092_741996_1345970505_3507e45ac6e0bec8046641fdc27d0643_rle_crop_3721843507_0.png', 1345972794: '1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843488_0.png', 1345972793: '1742555092_741996_1345970650_3ecf5546116cb3a5e37d3dd4d2f2d7c3_rle_crop_3721843461_0.png', 1345972520: '1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842961_0.png', 1345972429: '1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842618_0.png', 1345971546: '1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841645_0.png', 1345971525: '1742554873_737089_1345969290_ff87cb3b4fda8212aeedcd5a857a887c_rle_crop_3721839421_0.png', 1345971519: '1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839150_0.png', 1345971516: '1742554873_737089_1345969302_febb0b3a15cc9be373d91a506afd0ce1_rle_crop_3721838154_0.png', 1345971136: '1742554852_736327_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837895_0.png', 1345971135: '1742554852_736327_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837891_0.png', 1345971132: '1742554852_736327_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837822_0.png', 1345970139: '1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837602_0.png', 1345971130: '1742554852_736327_1345969243_2b6f8694e54b98a7820af6156b839743_bib_crop_3721837805_0.jpg', 1345971125: '1742554852_736327_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721840364_0.png', 1345971119: '1742554852_736327_1345969247_2900097dedb5c0d18a4f5c02a153b058_bib_crop_3721837652_0.jpg'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bde7a47eadb6739e78f82a0e4ec6cf94_61190092.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/9afe941ce3805732a233b0cc89486b6d_11505102.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b15527a6019f78fee7e19eaedf270eff_64636293.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d71e3aa60c6c0c322ee14e068139f663_95456350.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/184bd509c60c6d8ee3c3fa751fc724c7_59016326.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/aef437dd037d13839df6c67bf49015fb_44890130.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/0584cb0fd3366630ecb559d0b61cedc1_53328741.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/6123256fd0b60fd5cc42bd84527c2133_24498478.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/9823d399b53aaf943c2642b76848f597_25369247.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1896965626690a59c6f21cbd71fff053_62101197.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/17877b37963ddd51fa6c610c294230f4_90335155.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/85414856892f3a110567db43638ea571_65833271.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e0ed564d2a8f0a358cbcd940d1a1304d_60466212.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/da5876cd654005013ccb68dd0866a1f3_81284662.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/cd68ee39ba4280ba9b05e57e84a24beb_64068041.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bde7a47eadb6739e78f82a0e4ec6cf94_67340544.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c24ffe3bfea318f17808edeb656560cd_56946038.png change filename to text .wget -O 18.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/68450122e428f618a8845a57042807b2_47330376.jpg change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d1cbe598039c75edfbedc69412ed1032_11617218.png change filename to text .imagette215704471742555223/ imagette215704471742555223/1742554852_736327_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837822_0.png.png imagette215704471742555223/1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837602_0.png.png imagette215704471742555223/1742554873_737089_1345969290_ff87cb3b4fda8212aeedcd5a857a887c_rle_crop_3721839421_0.png.png imagette215704471742555223/1742555092_741996_1345970611_17d6bd6bbb47cf3c8bda1d82b45517cf_rle_crop_3721843488_0.png.png imagette215704471742555223/1742554873_737089_1345969293_14e5ad14d961b1ea71ed074e132024ad_rle_crop_3721839150_0.png.png imagette215704471742555223/1742555092_741996_1345969748_233b3dbafca780f771f66ae6cb159a98_rle_crop_3721843567_0.png.png imagette215704471742555223/1742555092_741996_1345970505_3507e45ac6e0bec8046641fdc27d0643_rle_crop_3721843506_0.png.png imagette215704471742555223/1742555072_741780_1345970834_1bc9540ef6c009f9324aac708b31232f_rle_crop_3721842961_0.png.png imagette215704471742555223/1742554852_736327_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837895_0.png.png imagette215704471742555223/1742554852_736327_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837812_0.png.png imagette215704471742555223/1742555032_741149_1345969718_bb8384489e00aaf1d0dfcdc57201657a_rle_crop_3721842618_0.png.png imagette215704471742555223/1742554873_737089_1345969302_febb0b3a15cc9be373d91a506afd0ce1_rle_crop_3721838154_0.png.png imagette215704471742555223/1742554852_736327_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721840364_0.png.png imagette215704471742555223/1742554852_736327_1345969243_2b6f8694e54b98a7820af6156b839743_bib_crop_3721837805_0.jpg.jpg imagette215704471742555223/1742555092_741996_1345970505_3507e45ac6e0bec8046641fdc27d0643_rle_crop_3721843507_0.png.png imagette215704471742555223/1742555092_741996_1345969780_00d5aa1aae26b26dbe642eeeb9129621_rle_crop_3721843528_0.png.png imagette215704471742555223/1742554894_737439_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e_rle_crop_3721841645_0.png.png imagette215704471742555223/1742555092_741996_1345970650_3ecf5546116cb3a5e37d3dd4d2f2d7c3_rle_crop_3721843461_0.png.png imagette215704471742555223/1742554852_736327_1345969247_2900097dedb5c0d18a4f5c02a153b058_bib_crop_3721837652_0.jpg.jpg imagette215704471742555223/1742554852_736327_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837891_0.png.png wget -O 20.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/68450122e428f618a8845a57042807b2_8481202.jpg imagette215704471742555223 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21570421 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21570448,21570449,21570450,21570451,21570452,21570453,21570454,21570455,21570456,21570457,21570458,21570459?tags=mal_croppe,Teint_Dans_La_Masse,plastique,cartonnette,flou,autre_refus,papier,environnement,metal,Carton_brun,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1345972470] : ('0.075329715260755',) no score found for photo 1345972470 We are sending mail with results at report@fotonower.com args[1345972435] : ('0.075329715260755',) no score found for photo 1345972435 We are sending mail with results at report@fotonower.com args[1345972394] : ('0.075329715260755',) no score found for photo 1345972394 We are sending mail with results at report@fotonower.com args[1345972369] : ('0.075329715260755',) no score found for photo 1345972369 We are sending mail with results at report@fotonower.com args[1345972341] : ('0.075329715260755',) no score found for photo 1345972341 We are sending mail with results at report@fotonower.com args[1345972302] : ('0.075329715260755',) no score found for photo 1345972302 We are sending mail with results at report@fotonower.com args[1345972015] : ('0.075329715260755',) no score found for photo 1345972015 We are sending mail with results at report@fotonower.com args[1345971991] : ('0.075329715260755',) no score found for photo 1345971991 We are sending mail with results at report@fotonower.com args[1345971968] : ('0.075329715260755',) no score found for photo 1345971968 We are sending mail with results at report@fotonower.com args[1345971938] : ('0.075329715260755',) no score found for photo 1345971938 We are sending mail with results at report@fotonower.com args[1345971899] : ('0.075329715260755',) no score found for photo 1345971899 We are sending mail with results at report@fotonower.com args[1345971824] : ('0.075329715260755',) no score found for photo 1345971824 We are sending mail with results at report@fotonower.com args[1345971651] : ('0.075329715260755',) no score found for photo 1345971651 We are sending mail with results at report@fotonower.com args[1345971620] : ('0.075329715260755',) no score found for photo 1345971620 We are sending mail with results at report@fotonower.com refus_total : 0.075329715260755 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=21570421 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_P21570421_21-03-2025_12_07_00.pdf results_Auto_P21570421_21-03-2025_12_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_07_00.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','21570421','results_Auto_P21570421_21-03-2025_12_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_07_00.pdf','pdf','','0.35','0.075329715260755') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21570421]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] map_info['map_portfolio_photo'] : {21570421: [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620, 1345971337, 1345970906, 1345970834, 1345970765, 1345970694, 1345970650, 1345970611, 1345970505, 1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : False mtd_id 4302 list_pids : [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] 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, '2678727') ('4302', '21570421', '1345972470', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972435', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972394', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972369', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972341', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972302', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972015', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971991', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971968', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971938', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971899', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971824', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971651', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971620', None, None, None, None, None, '2678727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '21570421', '1345972470', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972435', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972394', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972369', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972341', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972302', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972015', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971991', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971968', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971938', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971899', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971824', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971651', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971620', None, None, None, None, None, '2678727')] time used for this insertion : 0.013844966888427734 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.5234973430633545 time spend to save output : 0.014715194702148438 total time spend for step 4 : 6.538212537765503 step5:split_time_score Fri Mar 21 12:07:06 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 : ['21570421'] 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 : [('21570421',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21570421) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1345972435: {'path': 'temp/1742555219_3369197_1345972435_aee49e7d33d93877ce22996ce340e9db.jpg', 'extension': 'jpg'}, 1345972470: {'path': 'temp/1742555219_3369197_1345972470_83e38e9951863e3fd266748f287158cb.jpg', 'extension': 'jpg'}, 1345971991: {'path': 'temp/1742555219_3369197_1345971991_a0efb0dafc4f72950ea786ba8b8624da.jpg', 'extension': 'jpg'}, 1345972015: {'path': 'temp/1742555219_3369197_1345972015_3f4ba59b58c7f60970522001a89cce46.jpg', 'extension': 'jpg'}, 1345972302: {'path': 'temp/1742555219_3369197_1345972302_690649251beab1cf7a3e1b3c0cc06b3d.jpg', 'extension': 'jpg'}, 1345971899: {'path': 'temp/1742555219_3369197_1345971899_fb9d73d589d9c52c8a514474d08f38bf.jpg', 'extension': 'jpg'}, 1345971938: {'path': 'temp/1742555219_3369197_1345971938_3ebe32769c6570aa89952366499c73f5.jpg', 'extension': 'jpg'}, 1345971968: {'path': 'temp/1742555219_3369197_1345971968_20902a8c617a557acc47977a1d3eab0c.jpg', 'extension': 'jpg'}, 1345971620: {'path': 'temp/1742555219_3369197_1345971620_8b644acca01521694a87695f5a26d0fd.jpg', 'extension': 'jpg'}, 1345971651: {'path': 'temp/1742555219_3369197_1345971651_129ed93120236b24881758290cc9980f.jpg', 'extension': 'jpg'}, 1345971824: {'path': 'temp/1742555219_3369197_1345971824_8a66b988b13e668589281f5ddfa2ba3a.jpg', 'extension': 'jpg'}, 1345972341: {'path': 'temp/1742555219_3369197_1345972341_0ee285d141055c9b249246a197789b7b.jpg', 'extension': 'jpg'}, 1345972369: {'path': 'temp/1742555219_3369197_1345972369_043c5d7e8b53d72d5100ba4ce9feab7d.jpg', 'extension': 'jpg'}, 1345972394: {'path': 'temp/1742555219_3369197_1345972394_5a0b0951c1c8a837056c5dc096bca47a.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 = 21570421; (('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 = 21570421 group by h (('11', 60),) 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=21570421 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 (21570421) 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 (21570421) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21032025 21570421 Nombre de photos uploadées : 60 / 23040 (0%) 21032025 21570421 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 21032025 21570421 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1345972470, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/83e38e9951863e3fd266748f287158cb.jpg', 'username': None, 'uploaded_at': 1742555097, 'text': 'image_21032025_11_30_03_10157.jpg'}, {'photo_id': 1345972435, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/aee49e7d33d93877ce22996ce340e9db.jpg', 'username': None, 'uploaded_at': 1742555097, 'text': 'image_21032025_11_30_14_10142.jpg'}, {'photo_id': 1345972394, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5a0b0951c1c8a837056c5dc096bca47a.jpg', 'username': None, 'uploaded_at': 1742555097, 'text': 'image_21032025_11_30_24_10139.jpg'}, {'photo_id': 1345972369, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/043c5d7e8b53d72d5100ba4ce9feab7d.jpg', 'username': None, 'uploaded_at': 1742555097, 'text': 'image_21032025_11_30_34_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029044151306152344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21570421, '2025-03-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1678259,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022233963012695312 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= 1678259 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685732, 'mtr_portfolio_id': 21570421, 'dashboard_result_id': 9529172, '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_P21570421_21-03-2025_12_04_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685732, 'mtr_portfolio_id': 21570422, 'dashboard_result_id': 9529173, '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_P21570422_21-03-2025_12_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685732, 'mtr_portfolio_id': 21571177, 'dashboard_result_id': 9529174, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21570421 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': 2678727, 'mtr_portfolio_id': 21570421, 'created_at': datetime.datetime(2025, 3, 21, 12, 6, 59), 'result': '0.075329715260755', 'result_long': None, 'result_double': None}] Qualite : 0.075329715260755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21570421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21570421 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_P21570421_21-03-2025_12_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, 'pht': 3726}}" where mtr_portfolio_id = 21570421 and dashboard_run_id = 1685732 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`=21570421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9529172, 0.075329715260755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, '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 = 21570422 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': 2678728, 'mtr_portfolio_id': 21570422, 'created_at': datetime.datetime(2025, 3, 21, 12, 3, 29), 'result': '0.09206318773132281', 'result_long': None, 'result_double': None}] Qualite : 0.09206318773132281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21570422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570422_21-03-2025_12_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21570422 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_P21570422_21-03-2025_12_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, 'pht': 3726}}" where mtr_portfolio_id = 21570422 and dashboard_run_id = 1685732 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`=21570422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9529173, 0.09206318773132281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570422_21-03-2025_12_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, '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 = 21571177 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21571177 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21571177 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21571177%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21571177 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21571177 and dashboard_run_id = 1685732 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421,21570422,21571177) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,), (1345968918,), (1345968922,), (1345968928,), (1345968933,), (1345968935,), (1345968938,), (1345968943,), (1345968946,), (1345968949,), (1345968953,), (1345968961,), (1345968975,), (1345969003,), (1345969007,), (1345969010,), (1345969012,), (1345969015,), (1345969017,), (1345969027,), (1345969028,), (1345969031,), (1345969032,), (1345969036,), (1345969037,), (1345969039,), (1345969042,), (1345969043,), (1345969047,), (1345969049,), (1345969053,), (1345969068,), (1345969072,), (1345969077,), (1345969081,), (1345969086,), (1345969089,), (1345969127,), (1345969132,), (1345969137,), (1345969140,), (1345969144,), (1345969148,), (1345969201,), (1345969202,), (1345969204,), (1345969205,), (1345969211,), (1345969212,), (1345969218,), (1345969219,), (1345969256,), (1345969259,), (1345969263,), (1345969267,), (1345969271,), (1345969275,), (1345969312,), (1345969315,), (1345969319,), (1345969322,), (1345969375,), (1345969376,), (1345969379,), (1345969381,), (1345969390,), (1345969392,), (1345969402,), (1345969408,), (1345969412,), (1345969414,), (1345969416,), (1345969427,), (1345969443,), (1345969448,), (1345969460,), (1345969479,), (1345969890,), (1345969893,), (1345969908,), (1345969911,), (1345969918,), (1345969925,), (1345969939,), (1345969946,), (1345969961,), (1345969973,), (1345969986,), (1345969999,), (1345970276,), (1345970339,), (1345970368,), (1345970418,), (1345970464,), (1345971250,), (1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21032025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21570421]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] map_info['map_portfolio_photo'] : {21570421: [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620, 1345971337, 1345970906, 1345970834, 1345970765, 1345970694, 1345970650, 1345970611, 1345970505, 1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : True mtd_id 4302 list_pids : [1345972470, 1345972435, 1345972394, 1345972369, 1345972341, 1345972302, 1345972015, 1345971991, 1345971968, 1345971938, 1345971899, 1345971824, 1345971651, 1345971620] Looping around the photos to save general results len do output : 1 /21570421Didn'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, '2678727') ('4302', '21570421', '1345972470', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972435', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972394', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972369', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972341', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972302', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345972015', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971991', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971968', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971938', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971899', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971824', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971651', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345971620', None, None, None, None, None, '2678727') 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', None, '21570421', 'None', None, None, None, None, '2678727'), ('4302', '21570421', '1345972470', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972435', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972394', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972369', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972341', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972302', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345972015', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971991', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971968', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971938', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971899', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971824', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971651', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345971620', None, None, None, None, None, '2678727')] time used for this insertion : 0.014897823333740234 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1622679233551025 time spend to save output : 0.015195608139038086 total time spend for step 5 : 1.1774635314941406 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 (2678727) 2.60user 1.71system 0:12.39elapsed 34%CPU (0avgtext+0avgdata 162044maxresident)k 70048inputs+20432outputs (420major+75236minor)pagefaults 0swaps