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 : 1537317 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 (2686623) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2686623) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661302 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2686623'] with mtr_portfolio_ids : ['21661302'] and first list_photo_ids : [] new path : /proc/1537317/ Name: python3 Umask: 0002 State: R (running) Tgid: 1537317 Ngid: 0 Pid: 1537317 PPid: 1537316 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1537317 NSpid: 1537317 NSpgid: 1535194 NSsid: 1535194 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97520 kB VmRSS: 97520 kB RssAnon: 59760 kB RssFile: 37760 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 71 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1537317', 'Ngid': '0', 'Pid': '1537317', 'PPid': '1537316', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1537317', 'NSpid': '1537317', 'NSpgid': '1535194', 'NSsid': '1535194', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97520 kB', 'VmRSS': '97520 kB', 'RssAnon': '59760 kB', 'RssFile': '37760 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '71', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '1537317', '1106840', '0', '1106840', '865588', '97520', b'', 'marlene', '2686623') 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 (21661302) 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 (2686623 ) ) 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 (21661302) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346888614, 'portfolio_id': 21661302}, {'photo_id': 1346888156, 'portfolio_id': 21661302}, {'photo_id': 1346888091, 'portfolio_id': 21661302}, {'photo_id': 1346887867, 'portfolio_id': 21661302}, {'photo_id': 1346887800, 'portfolio_id': 21661302}, {'photo_id': 1346887594, 'portfolio_id': 21661302}, {'photo_id': 1346887511, 'portfolio_id': 21661302}, {'photo_id': 1346887470, 'portfolio_id': 21661302}, {'photo_id': 1346887385, 'portfolio_id': 21661302}, {'photo_id': 1346887338, 'portfolio_id': 21661302}, {'photo_id': 1346886449, 'portfolio_id': 21661302}, {'photo_id': 1346886427, 'portfolio_id': 21661302}, {'photo_id': 1346886360, 'portfolio_id': 21661302}, {'photo_id': 1346886336, 'portfolio_id': 21661302}, {'photo_id': 1346886263, 'portfolio_id': 21661302}, {'photo_id': 1346886252, 'portfolio_id': 21661302}, {'photo_id': 1346885804, 'portfolio_id': 21661302}, {'photo_id': 1346885551, 'portfolio_id': 21661302}, {'photo_id': 1346885505, 'portfolio_id': 21661302}, {'photo_id': 1346885454, 'portfolio_id': 21661302}, {'photo_id': 1346885402, 'portfolio_id': 21661302}, {'photo_id': 1346885144, 'portfolio_id': 21661302}, {'photo_id': 1346885101, 'portfolio_id': 21661302}, {'photo_id': 1346885020, 'portfolio_id': 21661302}, {'photo_id': 1346885001, 'portfolio_id': 21661302}, {'photo_id': 1346884963, 'portfolio_id': 21661302}, {'photo_id': 1346884939, 'portfolio_id': 21661302}, {'photo_id': 1346884510, 'portfolio_id': 21661302}, {'photo_id': 1346884480, 'portfolio_id': 21661302}, {'photo_id': 1346884475, 'portfolio_id': 21661302}, {'photo_id': 1346884379, 'portfolio_id': 21661302}, {'photo_id': 1346884344, 'portfolio_id': 21661302}, {'photo_id': 1346884175, 'portfolio_id': 21661302}, {'photo_id': 1346884104, 'portfolio_id': 21661302}, {'photo_id': 1346883973, 'portfolio_id': 21661302}, {'photo_id': 1346883286, 'portfolio_id': 21661302}, {'photo_id': 1346883270, 'portfolio_id': 21661302}, {'photo_id': 1346883077, 'portfolio_id': 21661302}, {'photo_id': 1346883067, 'portfolio_id': 21661302}, {'photo_id': 1346882767, 'portfolio_id': 21661302}, {'photo_id': 1346882758, 'portfolio_id': 21661302}, {'photo_id': 1346882729, 'portfolio_id': 21661302}, {'photo_id': 1346882699, 'portfolio_id': 21661302}, {'photo_id': 1346882675, 'portfolio_id': 21661302}, {'photo_id': 1346882419, 'portfolio_id': 21661302}, {'photo_id': 1346882387, 'portfolio_id': 21661302}, {'photo_id': 1346882367, 'portfolio_id': 21661302}, {'photo_id': 1346882339, 'portfolio_id': 21661302}, {'photo_id': 1346882186, 'portfolio_id': 21661302}, {'photo_id': 1346882179, 'portfolio_id': 21661302}, {'photo_id': 1346882172, 'portfolio_id': 21661302}, {'photo_id': 1346882133, 'portfolio_id': 21661302}, {'photo_id': 1346882113, 'portfolio_id': 21661302}, {'photo_id': 1346882111, 'portfolio_id': 21661302}, {'photo_id': 1346882057, 'portfolio_id': 21661302}, {'photo_id': 1346882053, 'portfolio_id': 21661302}, {'photo_id': 1346882043, 'portfolio_id': 21661302}, {'photo_id': 1346882037, 'portfolio_id': 21661302}, {'photo_id': 1346882005, 'portfolio_id': 21661302}, {'photo_id': 1346881998, 'portfolio_id': 21661302}, {'photo_id': 1346881989, 'portfolio_id': 21661302}, {'photo_id': 1346881966, 'portfolio_id': 21661302}, {'photo_id': 1346881887, 'portfolio_id': 21661302}, {'photo_id': 1346881655, 'portfolio_id': 21661302}, {'photo_id': 1346881595, 'portfolio_id': 21661302}, {'photo_id': 1346881560, 'portfolio_id': 21661302}, {'photo_id': 1346881519, 'portfolio_id': 21661302}, {'photo_id': 1346881513, 'portfolio_id': 21661302}] map_portfolio_id_photo_id: {21661302: [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338, 1346886449, 1346886427, 1346886360, 1346886336, 1346886263, 1346886252, 1346885804, 1346885551, 1346885505, 1346885454, 1346885402, 1346885144, 1346885101, 1346885020, 1346885001, 1346884963, 1346884939, 1346884510, 1346884480, 1346884475, 1346884379, 1346884344, 1346884175, 1346884104, 1346883973, 1346883286, 1346883270, 1346883077, 1346883067, 1346882767, 1346882758, 1346882729, 1346882699, 1346882675, 1346882419, 1346882387, 1346882367, 1346882339, 1346882186, 1346882179, 1346882172, 1346882133, 1346882113, 1346882111, 1346882057, 1346882053, 1346882043, 1346882037, 1346882005, 1346881998, 1346881989, 1346881966, 1346881887, 1346881655, 1346881595, 1346881560, 1346881519, 1346881513]} ##### 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.018779754638671875 #### 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 Mon Mar 24 19:04:01 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 (21661302) 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 : 21661302 get user id for portfolio 21661302 get sub ptf for main ptf 21661302, type 3726 and hashtags ['papier', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'kraft', 'Carton_brun', 'plastique', 'mal_croppe', 'metal', 'Carton_gris', 'cartonnette', 'flou'] 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`=21661302 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','environnement','kraft','Carton_brun','plastique','mal_croppe','metal','Carton_gris','cartonnette','flou')) 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`=21661302 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','environnement','kraft','Carton_brun','plastique','mal_croppe','metal','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21661302, 'sub_port_id': 21661382, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196547, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21661302, 'sub_port_id': 21661383, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196548, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'Carton_brun': {'main_port_id': 21661302, 'sub_port_id': 21661384, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196549, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'cartonnette': {'main_port_id': 21661302, 'sub_port_id': 21661385, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196550, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'environnement': {'main_port_id': 21661302, 'sub_port_id': 21661386, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196551, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'autre_refus': {'main_port_id': 21661302, 'sub_port_id': 21661387, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196552, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'plastique': {'main_port_id': 21661302, 'sub_port_id': 21661388, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196553, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'mal_croppe': {'main_port_id': 21661302, 'sub_port_id': 21661389, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196554, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'metal': {'main_port_id': 21661302, 'sub_port_id': 21661390, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196555, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'flou': {'main_port_id': 21661302, 'sub_port_id': 21661391, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196556, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'Carton_gris': {'main_port_id': 21661302, 'sub_port_id': 21661392, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196557, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}, 'papier': {'main_port_id': 21661302, 'sub_port_id': 21661393, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196558, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21661382 , 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=21661302 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 (21661382) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661383 , 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=21661302 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 (21661383) result : ((1346882491,), (1346882494,), (1346882496,), (1346882497,), (1346882498,), (1346882499,), (1346882912,), (1346882913,), (1346882914,), (1346882915,), (1346886423,), (1346886424,), (1346886652,), (1346886653,), (1346886859,), (1346887818,), (1346887964,), (1346888469,), (1346888470,), (1346888471,), (1346888472,), (1346888473,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661384 , 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=21661302 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 (21661384) result : ((1346882377,), (1346882566,), (1346883094,), (1346886447,), (1346887066,), (1346888611,), (1346888615,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661385 , 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=21661302 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 (21661385) result : ((1346882371,), (1346882372,), (1346882561,), (1346882946,), (1346882947,), (1346883090,), (1346884078,), (1346884079,), (1346884082,), (1346887051,), (1346887052,), (1346888582,), (1346888583,), (1346888584,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661386 , 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=21661302 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 (21661386) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661387 , 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=21661302 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 (21661387) result : ((1346882350,), (1346882527,), (1346882528,), (1346882529,), (1346882530,), (1346882531,), (1346882532,), (1346882534,), (1346882928,), (1346883078,), (1346883998,), (1346884000,), (1346884002,), (1346884004,), (1346884023,), (1346884034,), (1346884046,), (1346886436,), (1346886688,), (1346886689,), (1346886690,), (1346886871,), (1346887021,), (1346887024,), (1346887876,), (1346887890,), (1346887903,), (1346888041,), (1346888535,), (1346888536,), (1346888537,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661388 , 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=21661302 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 (21661388) result : ((1346882574,), (1346884143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661389 , 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=21661302 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 (21661389) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661390 , 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=21661302 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 (21661390) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661391 , 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=21661302 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 (21661391) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661392 , 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=21661302 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 (21661392) result : ((1346882358,), (1346882547,), (1346882548,), (1346882549,), (1346882937,), (1346882938,), (1346883086,), (1346884051,), (1346884052,), (1346884054,), (1346886442,), (1346886707,), (1346888568,), (1346888574,), (1346888575,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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 21661393 , 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=21661302 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 (21661393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21661302) result : ((1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) 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 (1346887800) 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`=21661302 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','environnement','kraft','Carton_brun','plastique','mal_croppe','metal','Carton_gris','cartonnette','flou')) 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`=21661302 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','environnement','kraft','Carton_brun','plastique','mal_croppe','metal','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21661302, 'sub_port_id': 21661394, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196559, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 21661302, 'sub_port_id': 21661395, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196560, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'Carton_brun': {'main_port_id': 21661302, 'sub_port_id': 21661396, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196561, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'cartonnette': {'main_port_id': 21661302, 'sub_port_id': 21661397, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196562, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'environnement': {'main_port_id': 21661302, 'sub_port_id': 21661398, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196563, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'autre_refus': {'main_port_id': 21661302, 'sub_port_id': 21661399, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196564, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'plastique': {'main_port_id': 21661302, 'sub_port_id': 21661400, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196565, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'mal_croppe': {'main_port_id': 21661302, 'sub_port_id': 21661401, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196566, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'metal': {'main_port_id': 21661302, 'sub_port_id': 21661402, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196567, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'flou': {'main_port_id': 21661302, 'sub_port_id': 21661403, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196568, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'Carton_gris': {'main_port_id': 21661302, 'sub_port_id': 21661404, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196569, 'last_updated_at': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 18, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}, 'papier': {'main_port_id': 21661302, 'sub_port_id': 21661405, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14196570, 'last_updated_at': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 19, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 18, 50, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661394,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661382 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661395,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661383 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661396,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661384 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21661405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21661393 lien utilise dans velours : https://www.fotonower.com/velours/21661394,21661395,21661396,21661397,21661398,21661399,21661400,21661401,21661402,21661403,21661404,21661405?tags=kraft,Teint_Dans_La_Masse,Carton_brun,cartonnette,environnement,autre_refus,plastique,mal_croppe,metal,flou,Carton_gris,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21661302]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] map_info['map_portfolio_photo'] : {21661302: [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338, 1346886449, 1346886427, 1346886360, 1346886336, 1346886263, 1346886252, 1346885804, 1346885551, 1346885505, 1346885454, 1346885402, 1346885144, 1346885101, 1346885020, 1346885001, 1346884963, 1346884939, 1346884510, 1346884480, 1346884475, 1346884379, 1346884344, 1346884175, 1346884104, 1346883973, 1346883286, 1346883270, 1346883077, 1346883067, 1346882767, 1346882758, 1346882729, 1346882699, 1346882675, 1346882419, 1346882387, 1346882367, 1346882339, 1346882186, 1346882179, 1346882172, 1346882133, 1346882113, 1346882111, 1346882057, 1346882053, 1346882043, 1346882037, 1346882005, 1346881998, 1346881989, 1346881966, 1346881887, 1346881655, 1346881595, 1346881560, 1346881519, 1346881513]} final : False mtd_id 4302 list_pids : [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] Looping around the photos to save general results len do output : 1 /21661302. 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, '2686623') ('4302', '21661302', '1346888614', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888156', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888091', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887867', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887800', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887594', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887511', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887470', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887385', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887338', None, None, None, None, None, '2686623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21661302', "{'kraft': 21661382, 'Teint_Dans_La_Masse': 21661383, 'Carton_brun': 21661384, 'cartonnette': 21661385, 'environnement': 21661386, 'autre_refus': 21661387, 'plastique': 21661388, 'mal_croppe': 21661389, 'metal': 21661390, 'flou': 21661391, 'Carton_gris': 21661392, 'papier': 21661393}", None, None, None, None, '2686623'), ('4302', '21661302', '1346888614', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346888156', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346888091', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887867', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887800', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887594', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887511', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887470', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887385', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887338', None, None, None, None, None, '2686623')] time used for this insertion : 0.014266014099121094 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7016034126281738 time spend to save output : 0.014606475830078125 total time spend for step 1 : 1.716209888458252 step2:final Mon Mar 24 19:04:02 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 (21661302) 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 21661302 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346881655,1346881595,1346881560,1346881519,1346881513,1346882005,1346881998,1346881989,1346881966,1346881887,1346882057,1346882053,1346882043,1346882037,1346882186,1346882179,1346882172,1346882133,1346882113,1346882111,1346882419,1346882387,1346882367,1346882339,1346882767,1346882758,1346882729,1346882699,1346882675,1346883077,1346883067,1346883286,1346883270,1346884379,1346884344,1346884175,1346884104,1346883973,1346884510,1346884480,1346884475,1346885144,1346885101,1346885020,1346885001,1346884963,1346884939,1346885804,1346885551,1346885505,1346885454,1346885402,1346886449,1346886427,1346886360,1346886336,1346886263,1346886252,1346887594,1346887511,1346887470,1346887385,1346887338,1346888156,1346888091,1346887867,1346887800,1346888614); 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([21661302]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} new output for save of step final : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] map_info['map_portfolio_photo'] : {21661302: [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338, 1346886449, 1346886427, 1346886360, 1346886336, 1346886263, 1346886252, 1346885804, 1346885551, 1346885505, 1346885454, 1346885402, 1346885144, 1346885101, 1346885020, 1346885001, 1346884963, 1346884939, 1346884510, 1346884480, 1346884475, 1346884379, 1346884344, 1346884175, 1346884104, 1346883973, 1346883286, 1346883270, 1346883077, 1346883067, 1346882767, 1346882758, 1346882729, 1346882699, 1346882675, 1346882419, 1346882387, 1346882367, 1346882339, 1346882186, 1346882179, 1346882172, 1346882133, 1346882113, 1346882111, 1346882057, 1346882053, 1346882043, 1346882037, 1346882005, 1346881998, 1346881989, 1346881966, 1346881887, 1346881655, 1346881595, 1346881560, 1346881519, 1346881513]} final : False mtd_id 4302 list_pids : [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] Looping around the photos to save general results len do output : 10 /1346888614.Didn't retrieve data . /1346888156.Didn't retrieve data . /1346888091.Didn't retrieve data . /1346887867.Didn't retrieve data . /1346887800.Didn't retrieve data . /1346887594.Didn't retrieve data . /1346887511.Didn't retrieve data . /1346887470.Didn't retrieve data . /1346887385.Didn't retrieve data . /1346887338.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, '2686623') ('4302', '21661302', '1346888614', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888156', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888091', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887867', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887800', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887594', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887511', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887470', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887385', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887338', None, None, None, None, None, '2686623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21661302', '1346888614', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346888156', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346888091', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346887867', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346887800', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346887594', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346887511', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346887470', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346887385', '0.05933573640212682', None, None, None, None, '2686623'), ('4302', '21661302', '1346887338', '0.05933573640212682', None, None, None, None, '2686623')] time used for this insertion : 0.015370607376098633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07306361198425293 time spend to save output : 0.01598048210144043 total time spend for step 2 : 0.08904409408569336 step3:velours_tree Mon Mar 24 19:04:02 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 : {21661302: [{'kraft': 21661382, 'Teint_Dans_La_Masse': 21661383, 'Carton_brun': 21661384, 'cartonnette': 21661385, 'environnement': 21661386, 'autre_refus': 21661387, 'plastique': 21661388, 'mal_croppe': 21661389, 'metal': 21661390, 'flou': 21661391, 'Carton_gris': 21661392, 'papier': 21661393}]} input_args_next_step : {21661302: ()} output_args : {21661302: [{'kraft': 21661382, 'Teint_Dans_La_Masse': 21661383, 'Carton_brun': 21661384, 'cartonnette': 21661385, 'environnement': 21661386, 'autre_refus': 21661387, 'plastique': 21661388, 'mal_croppe': 21661389, 'metal': 21661390, 'flou': 21661391, 'Carton_gris': 21661392, 'papier': 21661393}]} args : 21661302 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 : ({'kraft': 21661382, 'Teint_Dans_La_Masse': 21661383, 'Carton_brun': 21661384, 'cartonnette': 21661385, 'environnement': 21661386, 'autre_refus': 21661387, 'plastique': 21661388, 'mal_croppe': 21661389, 'metal': 21661390, 'flou': 21661391, 'Carton_gris': 21661392, 'papier': 21661393},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21661302) 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([21661302]) 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.3064305782318115 time spend to save output : 3.838539123535156e-05 total time spend for step 3 : 0.3064689636230469 step4:send_mail_cod Mon Mar 24 19:04:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} input_args_next_step : {1346888614: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346888614 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346888156 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346888091 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346887867 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346887800 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346887594 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346887511 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346887470 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346887385 depend.output_id : 0 input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ()} output_args : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',)} args : 1346887338 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 : {21661302: [{'kraft': 21661382, 'Teint_Dans_La_Masse': 21661383, 'Carton_brun': 21661384, 'cartonnette': 21661385, 'environnement': 21661386, 'autre_refus': 21661387, 'plastique': 21661388, 'mal_croppe': 21661389, 'metal': 21661390, 'flou': 21661391, 'Carton_gris': 21661392, 'papier': 21661393}]} input_args_next_step : {1346888614: ('0.05933573640212682',), 1346888156: ('0.05933573640212682',), 1346888091: ('0.05933573640212682',), 1346887867: ('0.05933573640212682',), 1346887800: ('0.05933573640212682',), 1346887594: ('0.05933573640212682',), 1346887511: ('0.05933573640212682',), 1346887470: ('0.05933573640212682',), 1346887385: ('0.05933573640212682',), 1346887338: ('0.05933573640212682',), 21661302: ()} output_args : {21661302: [{'kraft': 21661382, 'Teint_Dans_La_Masse': 21661383, 'Carton_brun': 21661384, 'cartonnette': 21661385, 'environnement': 21661386, 'autre_refus': 21661387, 'plastique': 21661388, 'mal_croppe': 21661389, 'metal': 21661390, 'flou': 21661391, 'Carton_gris': 21661392, 'papier': 21661393}]} args : 21661302 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.05933573640212682',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21661302) 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 (1346888614,1346888156,1346888091,1346887867,1346887800,1346887594,1346887511,1346887470,1346887385,1346887338) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346887338 begin to download photo : 1346887511 begin to download photo : 1346887867 begin to download photo : 1346888614 download finish for photo 1346887867 begin to download photo : 1346888091 download finish for photo 1346887511 begin to download photo : 1346887594 download finish for photo 1346888614 download finish for photo 1346887338 begin to download photo : 1346887385 download finish for photo 1346887594 begin to download photo : 1346887800 download finish for photo 1346888091 begin to download photo : 1346888156 download finish for photo 1346887385 begin to download photo : 1346887470 download finish for photo 1346888156 download finish for photo 1346887470 download finish for photo 1346887800 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216613821742839443/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21661302_24-03-2025_19_04_03.pdf 21661382 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=21661382 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216613821742839443 21661385 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=21661385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346882371: '1742838614_3646582_1346881998_40332b5f71af3fd465e4fa879b3df597_rle_crop_3727308671_0.png', 1346882372: '1742838614_3646582_1346881887_f4055a70253223ea29458ab45fd3dbe0_rle_crop_3727308907_0.png', 1346882561: '1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310535_0.png', 1346882946: '1742838730_3648244_1346882179_bd0f5b57f3db167700b2b23e7f682e96_rle_crop_3727311100_0.png', 1346882947: '1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311133_0.png', 1346883090: '1742838753_3648406_1346882053_2e5d402b3cf04998275fa676bdc56444_rle_crop_3727312913_0.png', 1346884078: '1742838882_1388494_1346882387_060260b4cf7de13a6cf38d38659cc3fa_rle_crop_3727314934_0.png', 1346884079: '1742838852_3649305_1346882758_e6beb7e4a1fe4cc145a414a68b67cf1b_rle_crop_3727314886_0.png', 1346884082: '1742838852_3649305_1346882729_56d2af7398053210679d22d58933d2c2_rle_crop_3727314898_0.png', 1346887051: '1742839192_3651862_1346884379_6d3c4dd8c53cc744f49f4884cd0ad0f6_rle_crop_3727351604_0.png', 1346887052: '1742839192_3651862_1346883270_b047fd41e414c22abec51b80ec47f1ae_rle_crop_3727351711_0.png', 1346888582: '1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359204_0.png', 1346888583: '1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359208_0.png', 1346888584: '1742839235_3653045_1346884963_53f2261955d297ab6f5ae4e4891df953_rle_crop_3727359578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7f675b0b6416d6eeee16a4df4a73d833_96679139.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/35139fa8c863f7f55d1a9ead5772b7a0_30736407.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9103561ba54944ddd831a6436de70c35_57486583.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b480549e2f5622dd3b76dd6b7a0c6f99_37256218.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/38aca11535db95ebd4ef67a8d150fcf2_46806914.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/bdb09c6d6014233b18edc9b6f78c0fa0_39202567.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/541eb4ff24487bbb931f024681f89f90_26123523.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/57c2078a5f3cefc8fc0d18cf89f0b058_35361313.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7f6497d43caa932829ac901d583e3d6d_20733451.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/18d39dbc2e5e70a419ec95f6100f6b89_13905191.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c349de608dded5c6395fd77eb0fd2090_3897949.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5ba47343211e0eeef978547603e1ba6e_9894898.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7434ee4a505b1d94ec985d8455f96b45_42828879.png change filename to text .imagette216613851742839443/ imagette216613851742839443/1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359208_0.png.png imagette216613851742839443/1742838852_3649305_1346882758_e6beb7e4a1fe4cc145a414a68b67cf1b_rle_crop_3727314886_0.png.png imagette216613851742839443/1742839192_3651862_1346883270_b047fd41e414c22abec51b80ec47f1ae_rle_crop_3727351711_0.png.png imagette216613851742839443/1742838852_3649305_1346882729_56d2af7398053210679d22d58933d2c2_rle_crop_3727314898_0.png.png imagette216613851742839443/1742839235_3653045_1346884963_53f2261955d297ab6f5ae4e4891df953_rle_crop_3727359578_0.png.png imagette216613851742839443/1742838882_1388494_1346882387_060260b4cf7de13a6cf38d38659cc3fa_rle_crop_3727314934_0.png.png imagette216613851742839443/1742838614_3646582_1346881998_40332b5f71af3fd465e4fa879b3df597_rle_crop_3727308671_0.png.png imagette216613851742839443/1742839192_3651862_1346884379_6d3c4dd8c53cc744f49f4884cd0ad0f6_rle_crop_3727351604_0.png.png imagette216613851742839443/1742838753_3648406_1346882053_2e5d402b3cf04998275fa676bdc56444_rle_crop_3727312913_0.png.png imagette216613851742839443/1742838614_3646582_1346881887_f4055a70253223ea29458ab45fd3dbe0_rle_crop_3727308907_0.png.png imagette216613851742839443/1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311133_0.png.png imagette216613851742839443/1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359204_0.png.png imagette216613851742839443/1742838730_3648244_1346882179_bd0f5b57f3db167700b2b23e7f682e96_rle_crop_3727311100_0.png.png imagette216613851742839443/1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310535_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0d274b5d138b41de43be6ff73c18b228_40599982.png imagette216613851742839443 21661387 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=21661387 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346884034: '1742838882_1388494_1346882387_060260b4cf7de13a6cf38d38659cc3fa_rle_crop_3727314935_0.png', 1346888537: '1742839235_3653045_1346884963_53f2261955d297ab6f5ae4e4891df953_rle_crop_3727359586_0.png', 1346888536: '1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359210_0.png', 1346888535: '1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358828_0.png', 1346888041: '1742839216_3652324_1346883067_0c0cde9e1d6b0db4ee16051ee2b39cc6_rle_crop_3727351412_0.png', 1346887903: '1742839242_1393449_1346885402_d02598d081dc3135848f16c8fd0075f3_rle_crop_3727355288_0.png', 1346887890: '1742839242_1393449_1346885402_d02598d081dc3135848f16c8fd0075f3_rle_crop_3727355287_0.png', 1346887876: '1742839242_1393449_1346885454_1b6c9c5c158d4d840e9cace6b680fc18_rle_crop_3727355277_0.png', 1346887024: '1742839192_3651862_1346883270_b047fd41e414c22abec51b80ec47f1ae_rle_crop_3727351712_0.png', 1346887021: '1742839192_3651862_1346884379_6d3c4dd8c53cc744f49f4884cd0ad0f6_rle_crop_3727351606_0.png', 1346886871: '1742839174_3651637_1346883067_0c0cde9e1d6b0db4ee16051ee2b39cc6_rle_crop_3727351412_0.png', 1346886690: '1742839153_3651406_1346883973_afbb17fcf5f0924167ee4880db8ec835_rle_crop_3727348904_0.png', 1346886689: '1742839153_3651406_1346884104_086700c56334e7ce2f1f6050924534c0_rle_crop_3727348853_0.png', 1346886688: '1742839153_3651406_1346884344_9a36b67fc3e8eb3b350652e13542f1b1_rle_crop_3727348649_0.png', 1346886436: '1742839133_3651275_1346884480_cc2dafb13f181bef31d3ffa02e411cbc_rle_crop_3727345618_0.png', 1346884046: '1742838882_1388494_1346882367_a680995a3cb34f3eb3ff54e4ea83d361_rle_crop_3727314976_0.png', 1346882350: '1742838614_3646582_1346881887_f4055a70253223ea29458ab45fd3dbe0_rle_crop_3727308915_0.png', 1346884023: '1742838882_1388494_1346882387_060260b4cf7de13a6cf38d38659cc3fa_rle_crop_3727314943_0.png', 1346884004: '1742838852_3649305_1346882675_539ea44802a559636fcc30a192b5ddfe_rle_crop_3727314995_0.png', 1346884002: '1742838852_3649305_1346882699_85a642246ba9d49cc49fec047616f221_rle_crop_3727314963_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/39f7b38c794cee8067de9881910bb8a2_60638094.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5eb1aac4e2ce060a994905cb952d7e98_62755146.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7e61bf931b63fdd5239e84d6896fc658_75634964.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ddc92c9cb45481a8112cc7895f5a5749_92210068.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d93ea92f5352e728ea80f323892b2a45_21006557.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/661be03071feda05209a65a2c43e04a6_21577426.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ef772a49bb8a87de5afc427e99821980_25494751.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cda0fb1b0e75d75ea9b02a1bde7af69a_19448025.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9c5d56075ddc0a04fd198696d0d8ab49_20936603.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/75fb8d119224b2febbe165f05ecf1eea_8993676.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d93ea92f5352e728ea80f323892b2a45_73996665.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a8de3f36b7b194f6bd74b4c1355503a3_62938252.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d4b289dcf15c3dd4573c8dd626fc91d5_82682177.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a472c48786484b9743998f09285eeb46_94426934.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ca661ace0d0752b6ee2eff61d684f16a_53253223.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/49edcd836a68ef672bf8f0be9331fbe8_98503568.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cd3d213552fd45d9f8a5640a90daad53_67791280.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d60d81e0dc7fcf3ea1859c00756f19ee_81006707.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6f243320b3a63e91156d931ac208389e_7604390.png change filename to text .imagette216613871742839444/ imagette216613871742839444/1742838882_1388494_1346882387_060260b4cf7de13a6cf38d38659cc3fa_rle_crop_3727314935_0.png.png imagette216613871742839444/1742839133_3651275_1346884480_cc2dafb13f181bef31d3ffa02e411cbc_rle_crop_3727345618_0.png.png imagette216613871742839444/1742838882_1388494_1346882367_a680995a3cb34f3eb3ff54e4ea83d361_rle_crop_3727314976_0.png.png imagette216613871742839444/1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359210_0.png.png imagette216613871742839444/1742839192_3651862_1346883270_b047fd41e414c22abec51b80ec47f1ae_rle_crop_3727351712_0.png.png imagette216613871742839444/1742839235_3653045_1346884963_53f2261955d297ab6f5ae4e4891df953_rle_crop_3727359586_0.png.png imagette216613871742839444/1742839153_3651406_1346884344_9a36b67fc3e8eb3b350652e13542f1b1_rle_crop_3727348649_0.png.png imagette216613871742839444/1742838614_3646582_1346881887_f4055a70253223ea29458ab45fd3dbe0_rle_crop_3727308915_0.png.png imagette216613871742839444/1742838852_3649305_1346882699_85a642246ba9d49cc49fec047616f221_rle_crop_3727314963_0.png.png imagette216613871742839444/1742839216_3652324_1346883067_0c0cde9e1d6b0db4ee16051ee2b39cc6_rle_crop_3727351412_0.png.png imagette216613871742839444/1742839174_3651637_1346883067_0c0cde9e1d6b0db4ee16051ee2b39cc6_rle_crop_3727351412_0.png.png imagette216613871742839444/1742839242_1393449_1346885454_1b6c9c5c158d4d840e9cace6b680fc18_rle_crop_3727355277_0.png.png imagette216613871742839444/1742838882_1388494_1346882387_060260b4cf7de13a6cf38d38659cc3fa_rle_crop_3727314943_0.png.png imagette216613871742839444/1742839192_3651862_1346884379_6d3c4dd8c53cc744f49f4884cd0ad0f6_rle_crop_3727351606_0.png.png imagette216613871742839444/1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358828_0.png.png imagette216613871742839444/1742839242_1393449_1346885402_d02598d081dc3135848f16c8fd0075f3_rle_crop_3727355288_0.png.png imagette216613871742839444/1742838852_3649305_1346882675_539ea44802a559636fcc30a192b5ddfe_rle_crop_3727314995_0.png.png imagette216613871742839444/1742839153_3651406_1346883973_afbb17fcf5f0924167ee4880db8ec835_rle_crop_3727348904_0.png.png imagette216613871742839444/1742839242_1393449_1346885402_d02598d081dc3135848f16c8fd0075f3_rle_crop_3727355287_0.png.png imagette216613871742839444/1742839153_3651406_1346884104_086700c56334e7ce2f1f6050924534c0_rle_crop_3727348853_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e1aaff72ca86488a7cb3f0888e033a63_43750413.png imagette216613871742839444 21661388 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=21661388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346882574: '1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310461_0.png', 1346884143: '1742838882_1388494_1346882367_a680995a3cb34f3eb3ff54e4ea83d361_rle_crop_3727314971_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b48c61437f3ca1256a5ca4ca955c0892_57252605.png change filename to text .imagette216613881742839445/ imagette216613881742839445/1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310461_0.png.png imagette216613881742839445/1742838882_1388494_1346882367_a680995a3cb34f3eb3ff54e4ea83d361_rle_crop_3727314971_0.png.png imagette216613891742839445/ imagette216613901742839445/ imagette216613911742839445/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a1c808749495186db6563715cbc6a008_73933034.png imagette216613881742839445 21661389 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=21661389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216613891742839445 21661390 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=21661390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216613901742839445 21661391 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=21661391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216613911742839445 21661383 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=21661383 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346886424: '1742839133_3651275_1346884475_e1641ba446a6c83f8590bcbb1226be05_rle_crop_3727348398_0.png', 1346888473: '1742839235_3653045_1346884939_5beb3caf51f89e861a3c4eabe3a7b771_rle_crop_3727359603_0.png', 1346888472: '1742839235_3653045_1346884963_53f2261955d297ab6f5ae4e4891df953_rle_crop_3727359577_0.png', 1346888471: '1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359205_0.png', 1346888470: '1742839235_3653045_1346885804_3b116457b16e7b464fdbd3560da24de4_rle_crop_3727358809_0.png', 1346888469: '1742839235_3653045_1346885804_3b116457b16e7b464fdbd3560da24de4_rle_crop_3727358811_0.png', 1346887964: '1742839216_3652324_1346883286_fae870df3df8e2536dcb19d1ac1a7add_rle_crop_3727351204_0.png', 1346887818: '1742839242_1393449_1346885454_1b6c9c5c158d4d840e9cace6b680fc18_rle_crop_3727355274_0.png', 1346886859: '1742839174_3651637_1346883286_fae870df3df8e2536dcb19d1ac1a7add_rle_crop_3727351204_0.png', 1346886653: '1742839153_3651406_1346884175_07858a3c0a137761eee0eef365c207b1_rle_crop_3727348765_0.png', 1346886652: '1742839153_3651406_1346884344_9a36b67fc3e8eb3b350652e13542f1b1_rle_crop_3727348652_0.png', 1346882491: '1742838631_3647236_1346882005_892ac83182b2a5d749ac6fb6c43a51e9_rle_crop_3727310089_0.png', 1346886423: '1742839133_3651275_1346884480_cc2dafb13f181bef31d3ffa02e411cbc_rle_crop_3727345622_0.png', 1346882915: '1742838730_3648244_1346882113_196b3b23f757b038bfdbe7f9656d917e_rle_crop_3727311147_0.png', 1346882914: '1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311136_0.png', 1346882913: '1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311128_0.png', 1346882912: '1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311135_0.png', 1346882499: '1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310537_0.png', 1346882498: '1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310456_0.png', 1346882497: '1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310459_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/90a3fabcf75b1ea8993b0ee3702c8868_89063016.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/863be3404f0d361bfc70c8e197b891bc_25953699.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0b9f6d6d54d108eaa8b645828d7f3dfe_86370833.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7c3ce8bae0898b3d611fb4094f38885e_432325.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/bc8e6a9cecc8bcc720d8a79e7ee3c506_65475636.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2ecaa89f74a6c7691be79749a5dd8288_42719390.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a203adea516a81f9193dad28d57168d2_90562865.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e00b00f34d67938bb751a83fb2136e37_69674764.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a203adea516a81f9193dad28d57168d2_29013348.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2530a511126b0b604cd19f197c455312_43824940.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4d7fa2e1fc2c1216104dba5b43e3b437_93053302.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/604e453d174e9874fad80b3c5736b39c_11174334.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/73161f680beecac5be2f0da5e1f94e0e_70731260.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/71aed50a6f6f92b1729e2a82a53e8588_84635935.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/06ce9c06f2fdadb9a3968c3eab8067b3_85513856.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d8034f8f81c90d9e40777c643f8f33fa_5941829.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/488a8372ace6c3e99c2c0b39583b325e_77572090.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0d69f40c6b2c20485c299c2132c0f651_73593435.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/21d4fff3e68fc04af8a1c3d0d2807f05_13192924.png change filename to text .imagette216613831742839445/ imagette216613831742839445/1742839153_3651406_1346884175_07858a3c0a137761eee0eef365c207b1_rle_crop_3727348765_0.png.png imagette216613831742839445/1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311135_0.png.png imagette216613831742839445/1742839174_3651637_1346883286_fae870df3df8e2536dcb19d1ac1a7add_rle_crop_3727351204_0.png.png imagette216613831742839445/1742839235_3653045_1346885804_3b116457b16e7b464fdbd3560da24de4_rle_crop_3727358809_0.png.png imagette216613831742839445/1742838730_3648244_1346882113_196b3b23f757b038bfdbe7f9656d917e_rle_crop_3727311147_0.png.png imagette216613831742839445/1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311136_0.png.png imagette216613831742839445/1742839235_3653045_1346884963_53f2261955d297ab6f5ae4e4891df953_rle_crop_3727359577_0.png.png imagette216613831742839445/1742838730_3648244_1346882133_00f25cf41c6f723fda037e057a4f0ba1_rle_crop_3727311128_0.png.png imagette216613831742839445/1742839133_3651275_1346884480_cc2dafb13f181bef31d3ffa02e411cbc_rle_crop_3727345622_0.png.png imagette216613831742839445/1742839133_3651275_1346884475_e1641ba446a6c83f8590bcbb1226be05_rle_crop_3727348398_0.png.png imagette216613831742839445/1742839235_3653045_1346885804_3b116457b16e7b464fdbd3560da24de4_rle_crop_3727358811_0.png.png imagette216613831742839445/1742839235_3653045_1346884939_5beb3caf51f89e861a3c4eabe3a7b771_rle_crop_3727359603_0.png.png imagette216613831742839445/1742839216_3652324_1346883286_fae870df3df8e2536dcb19d1ac1a7add_rle_crop_3727351204_0.png.png imagette216613831742839445/1742838631_3647236_1346882005_892ac83182b2a5d749ac6fb6c43a51e9_rle_crop_3727310089_0.png.png imagette216613831742839445/1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310537_0.png.png imagette216613831742839445/1742839242_1393449_1346885454_1b6c9c5c158d4d840e9cace6b680fc18_rle_crop_3727355274_0.png.png imagette216613831742839445/1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310459_0.png.png imagette216613831742839445/1742839235_3653045_1346885001_1fc09fafb611cc1413dc1c5ac65c8aea_rle_crop_3727359205_0.png.png imagette216613831742839445/1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310456_0.png.png imagette216613831742839445/1742839153_3651406_1346884344_9a36b67fc3e8eb3b350652e13542f1b1_rle_crop_3727348652_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/27227271e7db3dfe8a28fe00eec0b989_27352186.png imagette216613831742839445 21661384 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=21661384 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346882377: '1742838614_3646582_1346881998_40332b5f71af3fd465e4fa879b3df597_rle_crop_3727308672_0.png', 1346882566: '1742838631_3647236_1346881595_c12316b0f660c9d0690cd3aeb39bb45c_rle_crop_3727310394_0.png', 1346883094: '1742838753_3648406_1346882053_2e5d402b3cf04998275fa676bdc56444_rle_crop_3727312916_0.png', 1346886447: '1742839133_3651275_1346884480_cc2dafb13f181bef31d3ffa02e411cbc_rle_crop_3727345615_0.png', 1346887066: '1742839192_3651862_1346883270_b047fd41e414c22abec51b80ec47f1ae_rle_crop_3727351718_0.png', 1346888611: '1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358824_0.png', 1346888615: '1742839235_3653045_1346885020_eacfcc27aff8d8ee4b37497badbf1955_rle_crop_3727358838_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c0aeea26b7a36844a571e5439a58140d_94211597.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3a72ea1ea5e8c03ffe612b62a5f5ec6f_36340001.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e770b15deff3fd797de8db1f3e1be0cc_90878628.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0455b65d5ca211b78570d3b07024c6a3_55681277.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/85b88a6b89408ced623a52aee26407f0_80523174.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/20e6b0ac862c6b1fe7a08313aa0c8820_3885937.png change filename to text .imagette216613841742839447/ imagette216613841742839447/1742839192_3651862_1346883270_b047fd41e414c22abec51b80ec47f1ae_rle_crop_3727351718_0.png.png imagette216613841742839447/1742839133_3651275_1346884480_cc2dafb13f181bef31d3ffa02e411cbc_rle_crop_3727345615_0.png.png imagette216613841742839447/1742838631_3647236_1346881595_c12316b0f660c9d0690cd3aeb39bb45c_rle_crop_3727310394_0.png.png imagette216613841742839447/1742838753_3648406_1346882053_2e5d402b3cf04998275fa676bdc56444_rle_crop_3727312916_0.png.png imagette216613841742839447/1742839235_3653045_1346885020_eacfcc27aff8d8ee4b37497badbf1955_rle_crop_3727358838_0.png.png imagette216613841742839447/1742838614_3646582_1346881998_40332b5f71af3fd465e4fa879b3df597_rle_crop_3727308672_0.png.png imagette216613841742839447/1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358824_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cdad68c2ec9d973b4520e2e05dd04147_65201139.png imagette216613841742839447 21661392 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=21661392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346882358: '1742838614_3646582_1346881989_5db279c354bfc93ee889e7014cbc486d_rle_crop_3727308681_0.png', 1346882547: '1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310458_0.png', 1346882548: '1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310529_0.png', 1346882549: '1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310530_0.png', 1346882937: '1742838730_3648244_1346882172_43f096e7ba8af344649827a203e7100a_rle_crop_3727311110_0.png', 1346882938: '1742838730_3648244_1346882113_196b3b23f757b038bfdbe7f9656d917e_rle_crop_3727311149_0.png', 1346883086: '1742838753_3648406_1346882053_2e5d402b3cf04998275fa676bdc56444_rle_crop_3727312909_0.png', 1346884051: '1742838852_3649305_1346882729_56d2af7398053210679d22d58933d2c2_rle_crop_3727314900_0.png', 1346884052: '1742838852_3649305_1346882699_85a642246ba9d49cc49fec047616f221_rle_crop_3727314957_0.png', 1346884054: '1742838852_3649305_1346882675_539ea44802a559636fcc30a192b5ddfe_rle_crop_3727315000_0.png', 1346886442: '1742839133_3651275_1346884475_e1641ba446a6c83f8590bcbb1226be05_rle_crop_3727348388_0.png', 1346886707: '1742839153_3651406_1346883973_afbb17fcf5f0924167ee4880db8ec835_rle_crop_3727348893_0.png', 1346888568: '1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358821_0.png', 1346888574: '1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358825_0.png', 1346888575: '1742839235_3653045_1346885020_eacfcc27aff8d8ee4b37497badbf1955_rle_crop_3727358839_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ef1a52760a7ddb5d40567a63c6721d1d_45182402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/44a0c3418ca792bacdc74499b59abde7_47583695.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/242da79cec715afd74387a02165ff600_38144509.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4de55fbec3c7d9c80f65e2eecf16711a_44824076.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a3c8bc7ddfebda48cbe8bcf58547bab9_98352286.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7bb51909f8eee6804c7e20bb484d62ce_56844078.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/648a9057d6095ae745cf5ad55f5862dc_2939606.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/67f1121d9b48ff9c1799a412ddf1464d_7801440.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8e72c5b291123ec5bc82563404a34615_72336921.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/27e80f352cf353feaf88c4f1cb7a1a97_42390149.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/db7f15717d0848bf5ab44c4440e49f49_55620747.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cffa907ea50a0b1bbc40afaa12ba8667_11554640.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/18c618787b5cf56396ba637a02e8f241_24184747.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3f96849d99f86374f61a023c0441351c_84829638.png change filename to text .imagette216613921742839447/ imagette216613921742839447/1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358825_0.png.png imagette216613921742839447/1742838631_3647236_1346881560_3845f155594a648bcd887deab3bcf927_rle_crop_3727310458_0.png.png imagette216613921742839447/1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310530_0.png.png imagette216613921742839447/1742839235_3653045_1346885101_09aafe94d51d6b60a9448ea6e720569f_rle_crop_3727358821_0.png.png imagette216613921742839447/1742838730_3648244_1346882113_196b3b23f757b038bfdbe7f9656d917e_rle_crop_3727311149_0.png.png imagette216613921742839447/1742838852_3649305_1346882699_85a642246ba9d49cc49fec047616f221_rle_crop_3727314957_0.png.png imagette216613921742839447/1742838753_3648406_1346882053_2e5d402b3cf04998275fa676bdc56444_rle_crop_3727312909_0.png.png imagette216613921742839447/1742838852_3649305_1346882675_539ea44802a559636fcc30a192b5ddfe_rle_crop_3727315000_0.png.png imagette216613921742839447/1742838852_3649305_1346882729_56d2af7398053210679d22d58933d2c2_rle_crop_3727314900_0.png.png imagette216613921742839447/1742839133_3651275_1346884475_e1641ba446a6c83f8590bcbb1226be05_rle_crop_3727348388_0.png.png imagette216613921742839447/1742839153_3651406_1346883973_afbb17fcf5f0924167ee4880db8ec835_rle_crop_3727348893_0.png.png imagette216613921742839447/1742839235_3653045_1346885020_eacfcc27aff8d8ee4b37497badbf1955_rle_crop_3727358839_0.png.png imagette216613921742839447/1742838614_3646582_1346881989_5db279c354bfc93ee889e7014cbc486d_rle_crop_3727308681_0.png.png imagette216613921742839447/1742838631_3647236_1346881513_2b00d0823b610761259b7352f6af27ec_rle_crop_3727310529_0.png.png imagette216613921742839447/1742838730_3648244_1346882172_43f096e7ba8af344649827a203e7100a_rle_crop_3727311110_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/38aedc2ebf158e09c13c5978a5505b9c_53027181.png imagette216613921742839447 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21661302 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21661394,21661395,21661396,21661397,21661398,21661399,21661400,21661401,21661402,21661403,21661404,21661405?tags=kraft,Teint_Dans_La_Masse,Carton_brun,cartonnette,environnement,autre_refus,plastique,mal_croppe,metal,flou,Carton_gris,papier your option no_mail is active, we will not send the real mail to your client args[1346888614] : ('0.05933573640212682',) no score found for photo 1346888614 We are sending mail with results at report@fotonower.com args[1346888156] : ('0.05933573640212682',) no score found for photo 1346888156 We are sending mail with results at report@fotonower.com args[1346888091] : ('0.05933573640212682',) no score found for photo 1346888091 We are sending mail with results at report@fotonower.com args[1346887867] : ('0.05933573640212682',) no score found for photo 1346887867 We are sending mail with results at report@fotonower.com args[1346887800] : ('0.05933573640212682',) no score found for photo 1346887800 We are sending mail with results at report@fotonower.com args[1346887594] : ('0.05933573640212682',) no score found for photo 1346887594 We are sending mail with results at report@fotonower.com args[1346887511] : ('0.05933573640212682',) no score found for photo 1346887511 We are sending mail with results at report@fotonower.com args[1346887470] : ('0.05933573640212682',) no score found for photo 1346887470 We are sending mail with results at report@fotonower.com args[1346887385] : ('0.05933573640212682',) no score found for photo 1346887385 We are sending mail with results at report@fotonower.com args[1346887338] : ('0.05933573640212682',) no score found for photo 1346887338 We are sending mail with results at report@fotonower.com refus_total : 0.05933573640212682 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=21661302 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_P21661302_24-03-2025_19_04_03.pdf results_Auto_P21661302_24-03-2025_19_04_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21661302_24-03-2025_19_04_03.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','21661302','results_Auto_P21661302_24-03-2025_19_04_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21661302_24-03-2025_19_04_03.pdf','pdf','','0.33','0.05933573640212682') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21661302]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] map_info['map_portfolio_photo'] : {21661302: [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338, 1346886449, 1346886427, 1346886360, 1346886336, 1346886263, 1346886252, 1346885804, 1346885551, 1346885505, 1346885454, 1346885402, 1346885144, 1346885101, 1346885020, 1346885001, 1346884963, 1346884939, 1346884510, 1346884480, 1346884475, 1346884379, 1346884344, 1346884175, 1346884104, 1346883973, 1346883286, 1346883270, 1346883077, 1346883067, 1346882767, 1346882758, 1346882729, 1346882699, 1346882675, 1346882419, 1346882387, 1346882367, 1346882339, 1346882186, 1346882179, 1346882172, 1346882133, 1346882113, 1346882111, 1346882057, 1346882053, 1346882043, 1346882037, 1346882005, 1346881998, 1346881989, 1346881966, 1346881887, 1346881655, 1346881595, 1346881560, 1346881519, 1346881513]} final : False mtd_id 4302 list_pids : [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] 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, '2686623') ('4302', '21661302', '1346888614', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888156', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888091', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887867', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887800', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887594', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887511', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887470', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887385', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887338', None, None, None, None, None, '2686623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21661302', '1346888614', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346888156', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346888091', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887867', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887800', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887594', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887511', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887470', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887385', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887338', None, None, None, None, None, '2686623')] time used for this insertion : 0.016481876373291016 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.486153841018677 time spend to save output : 0.016864538192749023 total time spend for step 4 : 6.503018379211426 step5:split_time_score Mon Mar 24 19:04:09 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 : ['21661302'] 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 : [('21661302',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21661302) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346888614: {'path': 'temp/1742839443_1537317_1346888614_e31d6431d8305af310be95474a1d2e3d.jpg', 'extension': 'jpg'}, 1346887867: {'path': 'temp/1742839443_1537317_1346887867_4658d45908383127b8b4ee6598fc300c.jpg', 'extension': 'jpg'}, 1346888091: {'path': 'temp/1742839443_1537317_1346888091_1c86c935201f3915482547b2b95c974b.jpg', 'extension': 'jpg'}, 1346888156: {'path': 'temp/1742839443_1537317_1346888156_8223007459f6e4981e4f95ccd7eb374a.jpg', 'extension': 'jpg'}, 1346887338: {'path': 'temp/1742839443_1537317_1346887338_9da91b4af041886956fea53e46679282.jpg', 'extension': 'jpg'}, 1346887385: {'path': 'temp/1742839443_1537317_1346887385_66a2ef37aab9a53bba975c2fa2e67916.jpg', 'extension': 'jpg'}, 1346887470: {'path': 'temp/1742839443_1537317_1346887470_ad4e04b49107860789a6eab653cc4fcb.jpg', 'extension': 'jpg'}, 1346887511: {'path': 'temp/1742839443_1537317_1346887511_8fdee4f8168189d21d9a81131113f1f9.jpg', 'extension': 'jpg'}, 1346887594: {'path': 'temp/1742839443_1537317_1346887594_fc7417749931e493c844b6928a1d3560.jpg', 'extension': 'jpg'}, 1346887800: {'path': 'temp/1742839443_1537317_1346887800_0f908ddac2168a283ce131618e510e14.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 = 21661302; (('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 = 21661302 group by h (('18', 68),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21661302 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 (21661302) 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 (21661302) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21661302 Nombre de photos uploadées : 68 / 23040 (0%) 24032025 21661302 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 24032025 21661302 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1346881655, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e16fd27b5df4fb3278eb084591bbd676.jpg', 'username': None, 'uploaded_at': 1742838435, 'text': 'image_24032025_18_45_04_010160m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346881595, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c12316b0f660c9d0690cd3aeb39bb45c.jpg', 'username': None, 'uploaded_at': 1742838435, 'text': 'image_24032025_18_45_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346881560, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3845f155594a648bcd887deab3bcf927.jpg', 'username': None, 'uploaded_at': 1742838435, 'text': 'image_24032025_18_45_25_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346881519, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4a68f607fa75dc16ade0b37c634d2219.jpg', 'username': None, 'uploaded_at': 1742838435, 'text': 'image_24032025_18_45_35_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026712417602539062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21661302, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027456283569335938 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1692361, 'mtr_portfolio_id': 21659759, 'dashboard_result_id': 9587850, '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_P21659759_24-03-2025_18_33_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21659784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21659785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21659786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21659787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21659788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21659789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21659790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21659791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21659792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21659793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21659794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21659795, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1692361, 'mtr_portfolio_id': 21660328, 'dashboard_result_id': 9587851, '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_P21660328_24-03-2025_18_38_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21660377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21660378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21660379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21660380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21660381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21660382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21660383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21660384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21660385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21660386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21660387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21660388, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1692361, 'mtr_portfolio_id': 21661302, 'dashboard_result_id': 9587852, '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_P21661302_24-03-2025_19_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21661382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21661383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21661384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21661385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21661386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21661387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21661388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21661389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21661390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21661391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21661392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21661393, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21659759 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': 2686528, 'mtr_portfolio_id': 21659759, 'created_at': datetime.datetime(2025, 3, 24, 18, 33, 58), 'result': '0.10469821195140089', 'result_long': None, 'result_double': None}] Qualite : 0.10469821195140089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21659759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21659759_24-03-2025_18_33_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21659759 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_P21659759_24-03-2025_18_33_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21659784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21659785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21659786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21659787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21659788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21659789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21659790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21659791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21659792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21659793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21659794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21659795, 'pht': 3726}}" where mtr_portfolio_id = 21659759 and dashboard_run_id = 1692361 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`=21659759 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9587850, 0.10469821195140089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21659759_24-03-2025_18_33_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21659784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21659785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21659786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21659787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21659788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21659789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21659790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21659791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21659792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21659793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21659794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21659795, '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 = 21660328 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': 2686564, 'mtr_portfolio_id': 21660328, 'created_at': datetime.datetime(2025, 3, 24, 18, 43, 58), 'result': '0.08658160321013149', 'result_long': None, 'result_double': None}] Qualite : 0.08658160321013149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21660328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21660328_24-03-2025_18_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21660328 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_P21660328_24-03-2025_18_38_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21660377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21660378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21660379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21660380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21660381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21660382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21660383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21660384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21660385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21660386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21660387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21660388, 'pht': 3726}}" where mtr_portfolio_id = 21660328 and dashboard_run_id = 1692361 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`=21660328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9587851, 0.08658160321013149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21660328_24-03-2025_18_38_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21660377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21660378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21660379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21660380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21660381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21660382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21660383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21660384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21660385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21660386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21660387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21660388, '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 = 21661302 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': 2686623, 'mtr_portfolio_id': 21661302, 'created_at': datetime.datetime(2025, 3, 24, 19, 4, 2), 'result': '0.05933573640212682', 'result_long': None, 'result_double': None}] Qualite : 0.05933573640212682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21661302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21661302_24-03-2025_19_04_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21661302 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_P21661302_24-03-2025_19_04_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21661382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21661383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21661384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21661385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21661386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21661387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21661388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21661389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21661390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21661391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21661392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21661393, 'pht': 3726}}" where mtr_portfolio_id = 21661302 and dashboard_run_id = 1692361 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`=21661302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9587852, 0.05933573640212682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21661302_24-03-2025_19_04_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21661382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21661383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21661384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21661385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21661386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21661387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21661388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21661389, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21661390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21661391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21661392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21661393, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21659759,21660328,21661302) result : ((1346869504,), (1346869550,), (1346869630,), (1346870299,), (1346870391,), (1346870440,), (1346870492,), (1346870876,), (1346870891,), (1346870898,), (1346870918,), (1346871120,), (1346871141,), (1346871155,), (1346871180,), (1346871194,), (1346871224,), (1346871381,), (1346871386,), (1346871389,), (1346871401,), (1346871472,), (1346871507,), (1346871545,), (1346871574,), (1346871796,), (1346871806,), (1346871812,), (1346871822,), (1346871834,), (1346871866,), (1346872017,), (1346872033,), (1346872049,), (1346872055,), (1346872086,), (1346872091,), (1346872098,), (1346872108,), (1346872124,), (1346872131,), (1346872149,), (1346872153,), (1346872157,), (1346872163,), (1346872366,), (1346872396,), (1346872415,), (1346872422,), (1346872446,), (1346872457,), (1346872526,), (1346872539,), (1346872548,), (1346872575,), (1346872589,), (1346872826,), (1346872852,), (1346872886,), (1346872911,), (1346872942,), (1346873222,), (1346873238,), (1346873243,), (1346873248,), (1346873269,), (1346873544,), (1346873600,), (1346873628,), (1346873661,), (1346873694,), (1346873932,), (1346873859,), (1346873902,), (1346873923,), (1346873927,), (1346873961,), (1346873966,), (1346873975,), (1346873982,), (1346873986,), (1346873991,), (1346874148,), (1346874169,), (1346874186,), (1346874337,), (1346874872,), (1346874907,), (1346874956,), (1346874980,), (1346875032,), (1346875547,), (1346875600,), (1346875745,), (1346875790,), (1346875851,), (1346876084,), (1346876091,), (1346876098,), (1346876103,), (1346876117,), (1346876254,), (1346876280,), (1346876298,), (1346876339,), (1346876422,), (1346876442,), (1346876623,), (1346876651,), (1346876700,), (1346876759,), (1346877205,), (1346877244,), (1346877293,), (1346877352,), (1346877383,), (1346877445,), (1346877724,), (1346877750,), (1346877776,), (1346877845,), (1346878364,), (1346878413,), (1346878430,), (1346878475,), (1346878504,), (1346878545,), (1346878836,), (1346878881,), (1346878944,), (1346879007,), (1346879453,), (1346879485,), (1346879501,), (1346879531,), (1346879566,), (1346879777,), (1346879821,), (1346879892,), (1346879959,), (1346880036,), (1346880819,), (1346880869,), (1346880906,), (1346881023,), (1346881692,), (1346881513,), (1346881519,), (1346881560,), (1346881595,), (1346881655,), (1346881887,), (1346881966,), (1346881989,), (1346881998,), (1346882005,), (1346882037,), (1346882043,), (1346882053,), (1346882057,), (1346882111,), (1346882113,), (1346882133,), (1346882172,), (1346882179,), (1346882186,), (1346882339,), (1346882367,), (1346882387,), (1346882419,), (1346882675,), (1346882699,), (1346882729,), (1346882758,), (1346882767,), (1346883067,), (1346883077,), (1346883270,), (1346883286,), (1346883973,), (1346884104,), (1346884175,), (1346884344,), (1346884379,), (1346884475,), (1346884480,), (1346884510,), (1346884939,), (1346884963,), (1346885001,), (1346885020,), (1346885101,), (1346885144,), (1346885402,), (1346885454,), (1346885505,), (1346885551,), (1346885804,), (1346886252,), (1346886263,), (1346886336,), (1346886360,), (1346886427,), (1346886449,), (1346887338,), (1346887385,), (1346887470,), (1346887511,), (1346887594,), (1346887800,), (1346887867,), (1346888091,), (1346888156,), (1346888614,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21661302]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] map_info['map_portfolio_photo'] : {21661302: [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338, 1346886449, 1346886427, 1346886360, 1346886336, 1346886263, 1346886252, 1346885804, 1346885551, 1346885505, 1346885454, 1346885402, 1346885144, 1346885101, 1346885020, 1346885001, 1346884963, 1346884939, 1346884510, 1346884480, 1346884475, 1346884379, 1346884344, 1346884175, 1346884104, 1346883973, 1346883286, 1346883270, 1346883077, 1346883067, 1346882767, 1346882758, 1346882729, 1346882699, 1346882675, 1346882419, 1346882387, 1346882367, 1346882339, 1346882186, 1346882179, 1346882172, 1346882133, 1346882113, 1346882111, 1346882057, 1346882053, 1346882043, 1346882037, 1346882005, 1346881998, 1346881989, 1346881966, 1346881887, 1346881655, 1346881595, 1346881560, 1346881519, 1346881513]} final : True mtd_id 4302 list_pids : [1346888614, 1346888156, 1346888091, 1346887867, 1346887800, 1346887594, 1346887511, 1346887470, 1346887385, 1346887338] Looping around the photos to save general results len do output : 1 /21661302Didn'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, '2686623') ('4302', '21661302', '1346888614', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888156', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346888091', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887867', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887800', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887594', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887511', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887470', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887385', None, None, None, None, None, '2686623') ('4302', None, None, None, None, None, None, None, '2686623') ('4302', '21661302', '1346887338', None, None, None, None, None, '2686623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21661302', 'None', None, None, None, None, '2686623'), ('4302', '21661302', '1346888614', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346888156', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346888091', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887867', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887800', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887594', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887511', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887470', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887385', None, None, None, None, None, '2686623'), ('4302', '21661302', '1346887338', None, None, None, None, None, '2686623')] time used for this insertion : 0.013102531433105469 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29747843742370605 time spend to save output : 0.013410806655883789 total time spend for step 5 : 0.31088924407958984 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 (2686623) 2.34user 2.28system 0:12.42elapsed 37%CPU (0avgtext+0avgdata 159756maxresident)k 608inputs+16600outputs (9major+74713minor)pagefaults 0swaps