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 : 3632896 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 (2630133) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2630133) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986474 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2630133'] with mtr_portfolio_ids : ['20986474'] and first list_photo_ids : [] new path : /proc/3632896/ Name: python3 Umask: 0002 State: R (running) Tgid: 3632896 Ngid: 0 Pid: 3632896 PPid: 3632895 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3632896 NSpid: 3632896 NSpgid: 3629940 NSsid: 3629940 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99124 kB VmRSS: 99124 kB RssAnon: 59760 kB RssFile: 39364 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 55 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3632896', 'Ngid': '0', 'Pid': '3632896', 'PPid': '3632895', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3632896', 'NSpid': '3632896', 'NSpgid': '3629940', 'NSsid': '3629940', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99124 kB', 'VmRSS': '99124 kB', 'RssAnon': '59760 kB', 'RssFile': '39364 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '55', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '3632896', '1106844', '0', '1106844', '865592', '99124', b'', 'marlene', '2630133') 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 (20986474) 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 (2630133 ) ) 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 (20986474) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340658315, 'portfolio_id': 20986474}, {'photo_id': 1340658255, 'portfolio_id': 20986474}, {'photo_id': 1340658223, 'portfolio_id': 20986474}, {'photo_id': 1340658219, 'portfolio_id': 20986474}, {'photo_id': 1340658207, 'portfolio_id': 20986474}, {'photo_id': 1340658192, 'portfolio_id': 20986474}, {'photo_id': 1340658170, 'portfolio_id': 20986474}, {'photo_id': 1340658157, 'portfolio_id': 20986474}, {'photo_id': 1340658143, 'portfolio_id': 20986474}, {'photo_id': 1340658134, 'portfolio_id': 20986474}, {'photo_id': 1340658130, 'portfolio_id': 20986474}, {'photo_id': 1340658126, 'portfolio_id': 20986474}, {'photo_id': 1340658108, 'portfolio_id': 20986474}, {'photo_id': 1340658104, 'portfolio_id': 20986474}, {'photo_id': 1340658100, 'portfolio_id': 20986474}, {'photo_id': 1340658096, 'portfolio_id': 20986474}, {'photo_id': 1340658091, 'portfolio_id': 20986474}, {'photo_id': 1340658048, 'portfolio_id': 20986474}, {'photo_id': 1340657901, 'portfolio_id': 20986474}, {'photo_id': 1340657896, 'portfolio_id': 20986474}, {'photo_id': 1340657872, 'portfolio_id': 20986474}, {'photo_id': 1340657851, 'portfolio_id': 20986474}, {'photo_id': 1340657840, 'portfolio_id': 20986474}, {'photo_id': 1340657825, 'portfolio_id': 20986474}, {'photo_id': 1340657730, 'portfolio_id': 20986474}, {'photo_id': 1340657718, 'portfolio_id': 20986474}, {'photo_id': 1340657705, 'portfolio_id': 20986474}, {'photo_id': 1340657697, 'portfolio_id': 20986474}, {'photo_id': 1340657695, 'portfolio_id': 20986474}, {'photo_id': 1340657657, 'portfolio_id': 20986474}, {'photo_id': 1340657654, 'portfolio_id': 20986474}, {'photo_id': 1340657621, 'portfolio_id': 20986474}, {'photo_id': 1340657617, 'portfolio_id': 20986474}, {'photo_id': 1340657614, 'portfolio_id': 20986474}, {'photo_id': 1340657579, 'portfolio_id': 20986474}, {'photo_id': 1340657575, 'portfolio_id': 20986474}, {'photo_id': 1340657570, 'portfolio_id': 20986474}, {'photo_id': 1340657563, 'portfolio_id': 20986474}, {'photo_id': 1340657560, 'portfolio_id': 20986474}, {'photo_id': 1340657557, 'portfolio_id': 20986474}, {'photo_id': 1340657377, 'portfolio_id': 20986474}] map_portfolio_id_photo_id: {20986474: [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192, 1340658170, 1340658157, 1340658143, 1340658134, 1340658130, 1340658126, 1340658108, 1340658104, 1340658100, 1340658096, 1340658091, 1340658048, 1340657901, 1340657896, 1340657872, 1340657851, 1340657840, 1340657825, 1340657730, 1340657718, 1340657705, 1340657697, 1340657695, 1340657657, 1340657654, 1340657621, 1340657617, 1340657614, 1340657579, 1340657575, 1340657570, 1340657563, 1340657560, 1340657557, 1340657377]} ##### 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.015201330184936523 #### 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 3 18:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20986474) 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 : 20986474 get user id for portfolio 20986474 get sub ptf for main ptf 20986474, type 3726 and hashtags ['kraft', 'flou', 'Teint_Dans_La_Masse', 'autre_refus', 'metal', 'plastique', 'Carton_gris', 'papier', 'mal_croppe', 'environnement', 'Carton_brun', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20986474 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','metal','plastique','Carton_gris','papier','mal_croppe','environnement','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20986474 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','metal','plastique','Carton_gris','papier','mal_croppe','environnement','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20986474, 'sub_port_id': 20986476, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606284, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'autre_refus': {'main_port_id': 20986474, 'sub_port_id': 20986477, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606285, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'environnement': {'main_port_id': 20986474, 'sub_port_id': 20986478, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606286, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'papier': {'main_port_id': 20986474, 'sub_port_id': 20986479, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606287, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'Carton_gris': {'main_port_id': 20986474, 'sub_port_id': 20986480, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606288, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'flou': {'main_port_id': 20986474, 'sub_port_id': 20986481, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606289, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'Carton_brun': {'main_port_id': 20986474, 'sub_port_id': 20986482, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606290, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'plastique': {'main_port_id': 20986474, 'sub_port_id': 20986483, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606291, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 20986474, 'sub_port_id': 20986484, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606292, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'metal': {'main_port_id': 20986474, 'sub_port_id': 20986485, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606293, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'kraft': {'main_port_id': 20986474, 'sub_port_id': 20986486, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606294, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}, 'mal_croppe': {'main_port_id': 20986474, 'sub_port_id': 20986487, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606295, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20986476 , 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=20986474 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 (20986476) result : ((1340657849,), (1340658158,), (1340658172,), (1340658212,), (1340658284,), (1340658285,), (1340658301,), (1340658302,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986477 , 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=20986474 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 (20986477) result : ((1340657669,), (1340657670,), (1340657671,), (1340657707,), (1340657708,), (1340657709,), (1340657710,), (1340657711,), (1340657712,), (1340657842,), (1340657843,), (1340657844,), (1340657845,), (1340657846,), (1340658145,), (1340658146,), (1340658147,), (1340658148,), (1340658149,), (1340658150,), (1340658151,), (1340658201,), (1340658202,), (1340658204,), (1340658205,), (1340658206,), (1340658252,), (1340658253,), (1340658254,), (1340658276,), (1340658277,), (1340658278,), (1340658279,), (1340658292,), (1340658294,), (1340658295,), (1340658296,), (1340658297,), (1340658298,), (1340658299,), (1340658300,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986478 , 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=20986474 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 (20986478) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986479 , 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=20986474 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 (20986479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986480 , 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=20986474 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 (20986480) result : ((1340657713,), (1340657714,), (1340657715,), (1340657716,), (1340657717,), (1340657847,), (1340657848,), (1340658154,), (1340658155,), (1340658208,), (1340658209,), (1340658281,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986481 , 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=20986474 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 (20986481) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986482 , 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=20986474 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 (20986482) result : ((1340657722,), (1340657723,), (1340657724,), (1340657725,), (1340657726,), (1340658160,), (1340658161,), (1340658214,), (1340658215,), (1340658303,), (1340658304,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986483 , 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=20986474 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 (20986483) result : ((1340657672,), (1340657727,), (1340658162,), (1340658216,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986484 , 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=20986474 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 (20986484) result : ((1340657701,), (1340657702,), (1340657703,), (1340657704,), (1340657838,), (1340657839,), (1340658140,), (1340658141,), (1340658171,), (1340658194,), (1340658195,), (1340658196,), (1340658197,), (1340658198,), (1340658199,), (1340658275,), (1340658289,), (1340658290,), (1340658291,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986485 , 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=20986474 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 (20986485) result : ((1340658169,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986486 , 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=20986474 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 (20986486) result : ((1340658165,), (1340658166,), (1340658173,), (1340658217,), (1340658305,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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 20986487 , 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=20986474 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 (20986487) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20986474) result : ((1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) 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 (1340658100) 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`=20986474 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','metal','plastique','Carton_gris','papier','mal_croppe','environnement','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20986474 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','Teint_Dans_La_Masse','autre_refus','metal','plastique','Carton_gris','papier','mal_croppe','environnement','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20986474, 'sub_port_id': 20986488, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606296, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'autre_refus': {'main_port_id': 20986474, 'sub_port_id': 20986489, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606297, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'environnement': {'main_port_id': 20986474, 'sub_port_id': 20986490, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606298, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'papier': {'main_port_id': 20986474, 'sub_port_id': 20986491, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606299, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'Carton_gris': {'main_port_id': 20986474, 'sub_port_id': 20986492, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606300, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'flou': {'main_port_id': 20986474, 'sub_port_id': 20986493, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606301, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'Carton_brun': {'main_port_id': 20986474, 'sub_port_id': 20986494, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606302, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'plastique': {'main_port_id': 20986474, 'sub_port_id': 20986495, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606303, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20986474, 'sub_port_id': 20986496, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606304, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'metal': {'main_port_id': 20986474, 'sub_port_id': 20986497, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606305, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'kraft': {'main_port_id': 20986474, 'sub_port_id': 20986498, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606306, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}, 'mal_croppe': {'main_port_id': 20986474, 'sub_port_id': 20986499, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13606307, 'last_updated_at': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 18, 20, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20986499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20986487 lien utilise dans velours : https://www.fotonower.com/velours/20986488,20986489,20986490,20986491,20986492,20986493,20986494,20986495,20986496,20986497,20986498,20986499?tags=cartonnette,autre_refus,environnement,papier,Carton_gris,flou,Carton_brun,plastique,Teint_Dans_La_Masse,metal,kraft,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20986474]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] map_info['map_portfolio_photo'] : {20986474: [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192, 1340658170, 1340658157, 1340658143, 1340658134, 1340658130, 1340658126, 1340658108, 1340658104, 1340658100, 1340658096, 1340658091, 1340658048, 1340657901, 1340657896, 1340657872, 1340657851, 1340657840, 1340657825, 1340657730, 1340657718, 1340657705, 1340657697, 1340657695, 1340657657, 1340657654, 1340657621, 1340657617, 1340657614, 1340657579, 1340657575, 1340657570, 1340657563, 1340657560, 1340657557, 1340657377]} final : False mtd_id 4302 list_pids : [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] Looping around the photos to save general results len do output : 1 /20986474. 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, '2630133') ('4302', '20986474', '1340658315', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658255', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658223', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658219', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658207', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658192', None, None, None, None, None, '2630133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20986474', "{'cartonnette': 20986476, 'autre_refus': 20986477, 'environnement': 20986478, 'papier': 20986479, 'Carton_gris': 20986480, 'flou': 20986481, 'Carton_brun': 20986482, 'plastique': 20986483, 'Teint_Dans_La_Masse': 20986484, 'metal': 20986485, 'kraft': 20986486, 'mal_croppe': 20986487}", None, None, None, None, '2630133'), ('4302', '20986474', '1340658315', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658255', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658223', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658219', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658207', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658192', None, None, None, None, None, '2630133')] time used for this insertion : 0.04163622856140137 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0984597206115723 time spend to save output : 0.04191017150878906 total time spend for step 1 : 1.1403698921203613 step2:final Mon Mar 3 18:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20986474) 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 20986474 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340657377,1340657579,1340657575,1340657570,1340657563,1340657560,1340657557,1340657621,1340657617,1340657614,1340657657,1340657654,1340657730,1340657718,1340657705,1340657697,1340657695,1340657901,1340657896,1340657872,1340657851,1340657840,1340657825,1340658108,1340658104,1340658048,1340658100,1340658096,1340658091,1340658170,1340658157,1340658143,1340658134,1340658130,1340658126,1340658223,1340658219,1340658207,1340658192,1340658255,1340658315); 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([20986474]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} new output for save of step final : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] map_info['map_portfolio_photo'] : {20986474: [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192, 1340658170, 1340658157, 1340658143, 1340658134, 1340658130, 1340658126, 1340658108, 1340658104, 1340658100, 1340658096, 1340658091, 1340658048, 1340657901, 1340657896, 1340657872, 1340657851, 1340657840, 1340657825, 1340657730, 1340657718, 1340657705, 1340657697, 1340657695, 1340657657, 1340657654, 1340657621, 1340657617, 1340657614, 1340657579, 1340657575, 1340657570, 1340657563, 1340657560, 1340657557, 1340657377]} final : False mtd_id 4302 list_pids : [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] Looping around the photos to save general results len do output : 6 /1340658315.Didn't retrieve data . /1340658255.Didn't retrieve data . /1340658223.Didn't retrieve data . /1340658219.Didn't retrieve data . /1340658207.Didn't retrieve data . /1340658192.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, '2630133') ('4302', '20986474', '1340658315', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658255', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658223', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658219', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658207', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658192', None, None, None, None, None, '2630133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '20986474', '1340658315', '0.10024727052557054', None, None, None, None, '2630133'), ('4302', '20986474', '1340658255', '0.10024727052557054', None, None, None, None, '2630133'), ('4302', '20986474', '1340658223', '0.10024727052557054', None, None, None, None, '2630133'), ('4302', '20986474', '1340658219', '0.10024727052557054', None, None, None, None, '2630133'), ('4302', '20986474', '1340658207', '0.10024727052557054', None, None, None, None, '2630133'), ('4302', '20986474', '1340658192', '0.10024727052557054', None, None, None, None, '2630133')] time used for this insertion : 0.012625694274902344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06499195098876953 time spend to save output : 0.012994527816772461 total time spend for step 2 : 0.07798647880554199 step3:velours_tree Mon Mar 3 18:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20986474: [{'cartonnette': 20986476, 'autre_refus': 20986477, 'environnement': 20986478, 'papier': 20986479, 'Carton_gris': 20986480, 'flou': 20986481, 'Carton_brun': 20986482, 'plastique': 20986483, 'Teint_Dans_La_Masse': 20986484, 'metal': 20986485, 'kraft': 20986486, 'mal_croppe': 20986487}]} input_args_next_step : {20986474: ()} output_args : {20986474: [{'cartonnette': 20986476, 'autre_refus': 20986477, 'environnement': 20986478, 'papier': 20986479, 'Carton_gris': 20986480, 'flou': 20986481, 'Carton_brun': 20986482, 'plastique': 20986483, 'Teint_Dans_La_Masse': 20986484, 'metal': 20986485, 'kraft': 20986486, 'mal_croppe': 20986487}]} args : 20986474 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 : ({'cartonnette': 20986476, 'autre_refus': 20986477, 'environnement': 20986478, 'papier': 20986479, 'Carton_gris': 20986480, 'flou': 20986481, 'Carton_brun': 20986482, 'plastique': 20986483, 'Teint_Dans_La_Masse': 20986484, 'metal': 20986485, 'kraft': 20986486, 'mal_croppe': 20986487},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20986474) 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([20986474]) 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.28725290298461914 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.28730177879333496 step4:send_mail_cod Mon Mar 3 18:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} input_args_next_step : {1340658315: ()} output_args : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} args : 1340658315 depend.output_id : 0 input_args_next_step : {1340658315: ('0.10024727052557054',), 1340658255: ()} output_args : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} args : 1340658255 depend.output_id : 0 input_args_next_step : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ()} output_args : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} args : 1340658223 depend.output_id : 0 input_args_next_step : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ()} output_args : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} args : 1340658219 depend.output_id : 0 input_args_next_step : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ()} output_args : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} args : 1340658207 depend.output_id : 0 input_args_next_step : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ()} output_args : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',)} args : 1340658192 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 : {20986474: [{'cartonnette': 20986476, 'autre_refus': 20986477, 'environnement': 20986478, 'papier': 20986479, 'Carton_gris': 20986480, 'flou': 20986481, 'Carton_brun': 20986482, 'plastique': 20986483, 'Teint_Dans_La_Masse': 20986484, 'metal': 20986485, 'kraft': 20986486, 'mal_croppe': 20986487}]} input_args_next_step : {1340658315: ('0.10024727052557054',), 1340658255: ('0.10024727052557054',), 1340658223: ('0.10024727052557054',), 1340658219: ('0.10024727052557054',), 1340658207: ('0.10024727052557054',), 1340658192: ('0.10024727052557054',), 20986474: ()} output_args : {20986474: [{'cartonnette': 20986476, 'autre_refus': 20986477, 'environnement': 20986478, 'papier': 20986479, 'Carton_gris': 20986480, 'flou': 20986481, 'Carton_brun': 20986482, 'plastique': 20986483, 'Teint_Dans_La_Masse': 20986484, 'metal': 20986485, 'kraft': 20986486, 'mal_croppe': 20986487}]} args : 20986474 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 :7, first value : ('0.10024727052557054',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20986474) 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 (1340658315,1340658255,1340658223,1340658219,1340658207,1340658192) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340658192 begin to download photo : 1340658219 begin to download photo : 1340658255 download finish for photo 1340658255 begin to download photo : 1340658315 download finish for photo 1340658219 begin to download photo : 1340658223 download finish for photo 1340658192 begin to download photo : 1340658207 download finish for photo 1340658315 download finish for photo 1340658223 download finish for photo 1340658207 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P20986474_03-03-2025_18_27_00.pdf 20986476 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=20986476 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340657849: '1741022452_2963805_1340657617_0b1562e122662d65b1a447531c0cdb58_rle_crop_3692550501_0.png', 1340658158: '1741022573_2964748_1340657872_c942be1f0b0f3fb11d015431d43d80d3_rle_crop_3692551170_0.png', 1340658172: '1741022592_2964973_1340657654_13a2bae445626508c89beac271289118_rle_crop_3692551234_0.png', 1340658212: '1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551433_0.png', 1340658284: '1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552013_0.png', 1340658285: '1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552025_0.png', 1340658301: '1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552035_0.png', 1340658302: '1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552034_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d4dc2287a2a26dd5150b43d1fbce11a7_15175301.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0fc17c1a00b7dd5b25e2c93865f5b59c_55237514.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f8614c357b1908e8bd63f069422fb3d2_2419764.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/457222ac21ec7a77b06eee97074529f4_8743644.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0e1aa8d80b6a295d3a45f9525e485557_82119448.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/039c335f0d11a01061383a7fab14eab9_69447699.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e8981a7fc512df81196f5ffe3944485b_59714459.png change filename to text .imagette209864761741022820/ imagette209864761741022820/1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551433_0.png.png imagette209864761741022820/1741022592_2964973_1340657654_13a2bae445626508c89beac271289118_rle_crop_3692551234_0.png.png imagette209864761741022820/1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552013_0.png.png imagette209864761741022820/1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552035_0.png.png imagette209864761741022820/1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552034_0.png.png imagette209864761741022820/1741022573_2964748_1340657872_c942be1f0b0f3fb11d015431d43d80d3_rle_crop_3692551170_0.png.png imagette209864761741022820/1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552025_0.png.png imagette209864761741022820/1741022452_2963805_1340657617_0b1562e122662d65b1a447531c0cdb58_rle_crop_3692550501_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bfb51271878d46babadfc5780c88bd2b_2901472.png imagette209864761741022820 20986477 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=20986477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340658278: '1741022701_2966485_1340658096_39887cdf46831be5d7dc65d84be09acd_rle_crop_3692552002_0.png', 1340658201: '1741022612_2965241_1340657901_7ffb3626a06bbc7e91e93198b0686d4a_rle_crop_3692551397_0.png', 1340658202: '1741022612_2965241_1340657718_5244d26725c93cced9ffa35106ddf570_rle_crop_3692551404_0.png', 1340658204: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551418_0.png', 1340658205: '1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551435_0.png', 1340658206: '1741022612_2965241_1340657695_f053cb7814254c1c5e83a83cc03e2aaa_rle_crop_3692551454_0.png', 1340658252: '1741022690_2966333_1340658108_c06ca9117c8006827bb6d163efe1516f_rle_crop_3692551489_0.png', 1340658253: '1741022690_2966333_1340658108_c06ca9117c8006827bb6d163efe1516f_rle_crop_3692551490_0.png', 1340658254: '1741022690_2966333_1340658108_c06ca9117c8006827bb6d163efe1516f_rle_crop_3692551485_0.png', 1340658276: '1741022701_2966485_1340658170_1f8ae024f6ab40017dd46cc23afcfc01_rle_crop_3692551986_0.png', 1340658277: '1741022701_2966485_1340658104_e8ca7462ff2789e7771bca13d71bd1bb_rle_crop_3692551991_0.png', 1340658151: '1741022573_2964748_1340657825_03d91adc46be6b42f5fc6609d8e3a9a0_rle_crop_3692551217_0.png', 1340658279: '1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552021_0.png', 1340658292: '1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552042_0.png', 1340658294: '1741022712_2966679_1340658143_7579d46e1bd8827ca9aa998810f1fbf9_rle_crop_3692552054_0.png', 1340658295: '1741022712_2966679_1340658143_7579d46e1bd8827ca9aa998810f1fbf9_rle_crop_3692552053_0.png', 1340658296: '1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552070_0.png', 1340658297: '1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552064_0.png', 1340658298: '1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552069_0.png', 1340658299: '1741022712_2966679_1340658130_9e28c959153fb5aa7e047898ee86b731_rle_crop_3692552085_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f928142cfecfb3751d0d934510aac256_24190961.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bd2a41026fb618fcc8d8f9fae49b86c4_32818479.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0e7c8a0f9d612fb6b7d11addb1d08390_6694278.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c9ca25a95e41cbc5904778123c99d1e9_73785624.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/30c5ea87fd18635101b9e8f0c9cb1f45_41041273.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bec500318d9c5c78541c5d032a790557_22241340.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2d7640b74e6ae0ec06a3685d955ff964_46366455.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ab03f32cca9fc8428e0a6736498438f7_38760310.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/494d3be64180fa3a6959092fc1487531_64984118.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4bba25c8a04ec752547fb34a1a486bcc_45023968.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/970bbf3b553104ab78eb0f97b6eac488_94319038.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9bef7c01d73f159d4b2f645d6441e029_88294031.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3363a7ecf75d028ae11114ad776761b5_18010519.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9b6bd621d95e064726f54b5cf60afb93_22455362.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d04638f16917d794e96bb52e8e8661d7_2350225.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/52dd98f9f5e2683c45cf0667d69598b9_39720904.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/75ead0aff7d00d880fc605f52ea40427_70339203.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/af33bd840d99f73f79851e1b3f13c234_57037054.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/897f1b0bf59447961b46a5c7588cbc15_78130112.png change filename to text .imagette209864771741022820/ imagette209864771741022820/1741022701_2966485_1340658104_e8ca7462ff2789e7771bca13d71bd1bb_rle_crop_3692551991_0.png.png imagette209864771741022820/1741022701_2966485_1340658170_1f8ae024f6ab40017dd46cc23afcfc01_rle_crop_3692551986_0.png.png imagette209864771741022820/1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552021_0.png.png imagette209864771741022820/1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552069_0.png.png imagette209864771741022820/1741022612_2965241_1340657718_5244d26725c93cced9ffa35106ddf570_rle_crop_3692551404_0.png.png imagette209864771741022820/1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551435_0.png.png imagette209864771741022820/1741022612_2965241_1340657695_f053cb7814254c1c5e83a83cc03e2aaa_rle_crop_3692551454_0.png.png imagette209864771741022820/1741022701_2966485_1340658096_39887cdf46831be5d7dc65d84be09acd_rle_crop_3692552002_0.png.png imagette209864771741022820/1741022612_2965241_1340657901_7ffb3626a06bbc7e91e93198b0686d4a_rle_crop_3692551397_0.png.png imagette209864771741022820/1741022690_2966333_1340658108_c06ca9117c8006827bb6d163efe1516f_rle_crop_3692551489_0.png.png imagette209864771741022820/1741022712_2966679_1340658130_9e28c959153fb5aa7e047898ee86b731_rle_crop_3692552085_0.png.png imagette209864771741022820/1741022712_2966679_1340658143_7579d46e1bd8827ca9aa998810f1fbf9_rle_crop_3692552054_0.png.png imagette209864771741022820/1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552042_0.png.png imagette209864771741022820/1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552064_0.png.png imagette209864771741022820/1741022573_2964748_1340657825_03d91adc46be6b42f5fc6609d8e3a9a0_rle_crop_3692551217_0.png.png imagette209864771741022820/1741022712_2966679_1340658143_7579d46e1bd8827ca9aa998810f1fbf9_rle_crop_3692552053_0.png.png imagette209864771741022820/1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552070_0.png.png imagette209864771741022820/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551418_0.png.png imagette209864771741022820/1741022690_2966333_1340658108_c06ca9117c8006827bb6d163efe1516f_rle_crop_3692551490_0.png.png imagette209864771741022820/1741022690_2966333_1340658108_c06ca9117c8006827bb6d163efe1516f_rle_crop_3692551485_0.png.png imagette209864811741022821/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fd564d289cfe3b97622865ebce0a5d11_22178950.png imagette209864771741022820 20986481 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=20986481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209864811741022821 20986483 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=20986483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340657672: '1741022351_2962741_1340657579_3fd9144f27955154838a14b8eb7fd1bb_rle_crop_3692548974_0.png', 1340657727: '1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549224_0.png', 1340658162: '1741022573_2964748_1340657825_03d91adc46be6b42f5fc6609d8e3a9a0_rle_crop_3692551214_0.png', 1340658216: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551423_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fc5e75db647f2950eee32cb56a4ed190_48012704.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2c0a9d03ab774c6a8517784ed25ec67b_541452.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/16eb4eac658fe5cbbed8deb21589dfb2_44165952.png change filename to text .imagette209864831741022821/ imagette209864831741022821/1741022573_2964748_1340657825_03d91adc46be6b42f5fc6609d8e3a9a0_rle_crop_3692551214_0.png.png imagette209864831741022821/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551423_0.png.png imagette209864831741022821/1741022351_2962741_1340657579_3fd9144f27955154838a14b8eb7fd1bb_rle_crop_3692548974_0.png.png imagette209864831741022821/1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549224_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/211e9a07c41d948e5515d4d422b53f15_70064704.png imagette209864831741022821 20986485 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=20986485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340658169: '1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551200_0.png'} change filename to text .imagette209864851741022821/ imagette209864851741022821/1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551200_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4d237ce1275e8c511a52c02017652656_4149569.png imagette209864851741022821 20986486 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=20986486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340658165: '1741022573_2964748_1340657896_2fcf804cc416755de2f03222ebf771c1_rle_crop_3692551155_0.png', 1340658166: '1741022573_2964748_1340657872_c942be1f0b0f3fb11d015431d43d80d3_rle_crop_3692551172_0.png', 1340658173: '1741022592_2964973_1340657654_13a2bae445626508c89beac271289118_rle_crop_3692551241_0.png', 1340658217: '1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551431_0.png', 1340658305: '1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552065_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2e5a1e46f453ad8898e2ec901117c969_74915782.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c254996ea9b9c31197f36fb7351443f6_608524.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bf7322c0e1aff33a1bd8b3b51feb5d01_92178776.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/23a6db5936f1b73f7fec08ea8b80d3e6_7693662.png change filename to text .imagette209864861741022821/ imagette209864861741022821/1741022573_2964748_1340657872_c942be1f0b0f3fb11d015431d43d80d3_rle_crop_3692551172_0.png.png imagette209864861741022821/1741022592_2964973_1340657654_13a2bae445626508c89beac271289118_rle_crop_3692551241_0.png.png imagette209864861741022821/1741022573_2964748_1340657896_2fcf804cc416755de2f03222ebf771c1_rle_crop_3692551155_0.png.png imagette209864861741022821/1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552065_0.png.png imagette209864861741022821/1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551431_0.png.png imagette209864871741022822/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/20f20d5b62b1648eac62f3b08279816d_51559542.png imagette209864861741022821 20986487 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=20986487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209864871741022822 20986480 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=20986480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340657713: '1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549233_0.png', 1340657714: '1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549225_0.png', 1340657715: '1741022372_2963018_1340657563_cd04f9968f3581be81f42dac18baa28f_rle_crop_3692549255_0.png', 1340657716: '1741022372_2963018_1340657563_cd04f9968f3581be81f42dac18baa28f_rle_crop_3692549250_0.png', 1340657717: '1741022372_2963018_1340657560_285998312581f1a69b125b6e1fae5fe9_rle_crop_3692549268_0.png', 1340657847: '1741022452_2963805_1340657657_741e4b165f95311d43b55369bd1e1c33_rle_crop_3692550487_0.png', 1340657848: '1741022452_2963805_1340657614_4057b1b23b08aa99c159a6225c5fd13d_rle_crop_3692550519_0.png', 1340658154: '1741022573_2964748_1340657851_e0bbd6889eb250ec62a2f3bc94da2613_rle_crop_3692551190_0.png', 1340658155: '1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551202_0.png', 1340658208: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551414_0.png', 1340658209: '1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551434_0.png', 1340658281: '1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552014_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a4df71630183e10483aae7d2fc659d28_7744460.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ab4d136c615914add1228e7b25d4e550_34434825.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/cda2ee3ae1fdb1d40e1b1d3792f57ce7_720061.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/25d53381fb510b2d1cf98336eee3fd5b_58846541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/19ff43f67eeba9d7e587850e1de34908_38376905.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0e651d76b80c3a82b94718a8a55fdbf5_77207847.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8eee00c743d43846d9e6f33adb12c0c9_7000037.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3b394b064aa80bd0c7f647d76c4305ce_48059002.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ba6f4a185b704930b5ea8ebd91ce5628_15024037.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ecdc5ba16d88976d5287dfd210e8c472_5426299.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9a88cf10b5caaf46e1d1c52302afe7c4_57443549.png change filename to text .imagette209864801741022822/ imagette209864801741022822/1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551202_0.png.png imagette209864801741022822/1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552014_0.png.png imagette209864801741022822/1741022452_2963805_1340657614_4057b1b23b08aa99c159a6225c5fd13d_rle_crop_3692550519_0.png.png imagette209864801741022822/1741022372_2963018_1340657563_cd04f9968f3581be81f42dac18baa28f_rle_crop_3692549250_0.png.png imagette209864801741022822/1741022573_2964748_1340657851_e0bbd6889eb250ec62a2f3bc94da2613_rle_crop_3692551190_0.png.png imagette209864801741022822/1741022372_2963018_1340657560_285998312581f1a69b125b6e1fae5fe9_rle_crop_3692549268_0.png.png imagette209864801741022822/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551414_0.png.png imagette209864801741022822/1741022372_2963018_1340657563_cd04f9968f3581be81f42dac18baa28f_rle_crop_3692549255_0.png.png imagette209864801741022822/1741022452_2963805_1340657657_741e4b165f95311d43b55369bd1e1c33_rle_crop_3692550487_0.png.png imagette209864801741022822/1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549233_0.png.png imagette209864801741022822/1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549225_0.png.png imagette209864801741022822/1741022612_2965241_1340657697_d3c740fb4ca214115f1a4e920bd43758_rle_crop_3692551434_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/bbd58655edc86d72753811b659177ce6_1741399.png imagette209864801741022822 20986482 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=20986482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340657722: '1741022372_2963018_1340657575_5a6d85d63a3c4824a007ee16a5ab1b4f_rle_crop_3692549207_0.png', 1340657723: '1741022372_2963018_1340657575_5a6d85d63a3c4824a007ee16a5ab1b4f_rle_crop_3692549205_0.png', 1340657724: '1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549239_0.png', 1340657725: '1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549220_0.png', 1340657726: '1741022372_2963018_1340657557_adf080580b7b17cf116ec2b0e20e175a_rle_crop_3692549365_0.png', 1340658160: '1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551201_0.png', 1340658161: '1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551203_0.png', 1340658214: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551422_0.png', 1340658215: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551412_0.png', 1340658303: '1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552037_0.png', 1340658304: '1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552066_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/f48458f30687689ba2d0a8b02a881d94_22526507.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/0d1ae1c9ffe53c1f531559ea8b985cc9_15510035.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3e20f63b916a3dbc037648a505ff75fa_53605723.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/2f11b622942f9afe789619b16daa799f_263146.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/eac1d8a144b7de94deb7e422d40f2e65_79763670.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/dbff98815c781087b8a03a7065ba0643_70785795.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4cadce14fe08da5c26f3b0951caa6ac4_22172705.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/787217d8e0ca091f7fc68f110e2f2210_60644976.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b1c81a7d2ba091aaf0ad7b20ef2d80b9_95576880.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7bc172359d3ecb4ebfea34777a5a138d_60169844.png change filename to text .imagette209864821741022822/ imagette209864821741022822/1741022372_2963018_1340657575_5a6d85d63a3c4824a007ee16a5ab1b4f_rle_crop_3692549205_0.png.png imagette209864821741022822/1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551201_0.png.png imagette209864821741022822/1741022372_2963018_1340657557_adf080580b7b17cf116ec2b0e20e175a_rle_crop_3692549365_0.png.png imagette209864821741022822/1741022712_2966679_1340658134_3f3743e42f64867460fb32f603297b16_rle_crop_3692552066_0.png.png imagette209864821741022822/1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551203_0.png.png imagette209864821741022822/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551412_0.png.png imagette209864821741022822/1741022712_2966679_1340658157_b2b70932d990424b0b2b8e72ed144a16_rle_crop_3692552037_0.png.png imagette209864821741022822/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551422_0.png.png imagette209864821741022822/1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549220_0.png.png imagette209864821741022822/1741022372_2963018_1340657575_5a6d85d63a3c4824a007ee16a5ab1b4f_rle_crop_3692549207_0.png.png imagette209864821741022822/1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549239_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1a954b3a9cbe795f38eede64ab0ebd09_12665198.png imagette209864821741022822 20986484 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=20986484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340658194: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551425_0.png', 1340658291: '1741022712_2966679_1340658126_c5ca257b5dbd79420f94f2b1d69342e0_rle_crop_3692552098_0.png', 1340658290: '1741022712_2966679_1340658126_c5ca257b5dbd79420f94f2b1d69342e0_rle_crop_3692552094_0.png', 1340658289: '1741022712_2966679_1340658130_9e28c959153fb5aa7e047898ee86b731_rle_crop_3692552080_0.png', 1340658275: '1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552022_0.png', 1340658199: '1741022612_2965241_1340657695_f053cb7814254c1c5e83a83cc03e2aaa_rle_crop_3692551451_0.png', 1340658198: '1741022612_2965241_1340657695_f053cb7814254c1c5e83a83cc03e2aaa_rle_crop_3692551447_0.png', 1340658197: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551415_0.png', 1340658196: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551419_0.png', 1340658195: '1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551417_0.png', 1340657701: '1741022372_2963018_1340657575_5a6d85d63a3c4824a007ee16a5ab1b4f_rle_crop_3692549215_0.png', 1340658171: '1741022592_2964973_1340657654_13a2bae445626508c89beac271289118_rle_crop_3692551240_0.png', 1340658141: '1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551207_0.png', 1340658140: '1741022573_2964748_1340657851_e0bbd6889eb250ec62a2f3bc94da2613_rle_crop_3692551191_0.png', 1340657839: '1741022452_2963805_1340657614_4057b1b23b08aa99c159a6225c5fd13d_rle_crop_3692550522_0.png', 1340657838: '1741022452_2963805_1340657657_741e4b165f95311d43b55369bd1e1c33_rle_crop_3692550489_0.png', 1340657704: '1741022372_2963018_1340657560_285998312581f1a69b125b6e1fae5fe9_rle_crop_3692549281_0.png', 1340657703: '1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549223_0.png', 1340657702: '1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549234_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6af1fd21a3f6292addc886df46a6ba1a_13151682.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ebcfcfc56425c9bb37cc4a160c5aa9a5_93479221.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a87ca222dfe35fac3164df33cab9eccd_92647.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1ba3ac4d31c904c29dbf574e1aea9501_9344751.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/54bcb6985d27acc06fb23e0e9a058b67_92564441.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9a8c67e1f65002d34427bb7ad86df478_41103999.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/7c53c8142b55e1a9f5566c118fc6a7e1_98712975.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1cbf727b6932ebfb312da08f1b157e14_14231637.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/29d224b06fdb961fe171c5be152daca2_16896635.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/1410dd79184c0207e558eb131b6d5f9a_52135904.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/476999df1f1f7a4daaaeaf1a0e8dee4e_71046304.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/51531ec07534a407eda085a121a81171_61479282.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8602be94c93e5f640c0842dab11e61f9_98018061.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c3088eb92d47eada3695b3e6b3dcc193_4832274.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d55a23a309f415a77127da430c0ce3b3_38248125.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/69aa4c657f9559931f1abd42640ebaf0_60756451.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c731e50f2cf6a4d1d72c13485a39173a_22203813.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/87f2d362d0a3b9bc1e2efe2f22274961_12538176.png change filename to text .imagette209864841741022823/ imagette209864841741022823/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551415_0.png.png imagette209864841741022823/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551419_0.png.png imagette209864841741022823/1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549234_0.png.png imagette209864841741022823/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551425_0.png.png imagette209864841741022823/1741022372_2963018_1340657560_285998312581f1a69b125b6e1fae5fe9_rle_crop_3692549281_0.png.png imagette209864841741022823/1741022612_2965241_1340657705_00e688e4de342435f4cb75e6d5ff7fed_rle_crop_3692551417_0.png.png imagette209864841741022823/1741022712_2966679_1340658126_c5ca257b5dbd79420f94f2b1d69342e0_rle_crop_3692552094_0.png.png imagette209864841741022823/1741022372_2963018_1340657575_5a6d85d63a3c4824a007ee16a5ab1b4f_rle_crop_3692549215_0.png.png imagette209864841741022823/1741022612_2965241_1340657695_f053cb7814254c1c5e83a83cc03e2aaa_rle_crop_3692551451_0.png.png imagette209864841741022823/1741022612_2965241_1340657695_f053cb7814254c1c5e83a83cc03e2aaa_rle_crop_3692551447_0.png.png imagette209864841741022823/1741022712_2966679_1340658130_9e28c959153fb5aa7e047898ee86b731_rle_crop_3692552080_0.png.png imagette209864841741022823/1741022452_2963805_1340657614_4057b1b23b08aa99c159a6225c5fd13d_rle_crop_3692550522_0.png.png imagette209864841741022823/1741022573_2964748_1340657851_e0bbd6889eb250ec62a2f3bc94da2613_rle_crop_3692551191_0.png.png imagette209864841741022823/1741022452_2963805_1340657657_741e4b165f95311d43b55369bd1e1c33_rle_crop_3692550489_0.png.png imagette209864841741022823/1741022701_2966485_1340658091_dbf5ff58cfbe07912a78b8ab3499429e_rle_crop_3692552022_0.png.png imagette209864841741022823/1741022372_2963018_1340657570_81c258a4d9a0d92895b691fc8c89ee3c_rle_crop_3692549223_0.png.png imagette209864841741022823/1741022592_2964973_1340657654_13a2bae445626508c89beac271289118_rle_crop_3692551240_0.png.png imagette209864841741022823/1741022712_2966679_1340658126_c5ca257b5dbd79420f94f2b1d69342e0_rle_crop_3692552098_0.png.png imagette209864841741022823/1741022573_2964748_1340657840_3d9ebf37dfc6687788bf90d481245aae_rle_crop_3692551207_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/896a930f5cf8824abcca47c5c7d7902a_87630394.png imagette209864841741022823 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20986474 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20986488,20986489,20986490,20986491,20986492,20986493,20986494,20986495,20986496,20986497,20986498,20986499?tags=cartonnette,autre_refus,environnement,papier,Carton_gris,flou,Carton_brun,plastique,Teint_Dans_La_Masse,metal,kraft,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1340658315] : ('0.10024727052557054',) no score found for photo 1340658315 We are sending mail with results at report@fotonower.com args[1340658255] : ('0.10024727052557054',) no score found for photo 1340658255 We are sending mail with results at report@fotonower.com args[1340658223] : ('0.10024727052557054',) no score found for photo 1340658223 We are sending mail with results at report@fotonower.com args[1340658219] : ('0.10024727052557054',) no score found for photo 1340658219 We are sending mail with results at report@fotonower.com args[1340658207] : ('0.10024727052557054',) no score found for photo 1340658207 We are sending mail with results at report@fotonower.com args[1340658192] : ('0.10024727052557054',) no score found for photo 1340658192 We are sending mail with results at report@fotonower.com refus_total : 0.10024727052557054 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=20986474 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_P20986474_03-03-2025_18_27_00.pdf results_Auto_P20986474_03-03-2025_18_27_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_27_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20986474','results_Auto_P20986474_03-03-2025_18_27_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_27_00.pdf','pdf','','0.3','0.10024727052557054') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20986474]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] map_info['map_portfolio_photo'] : {20986474: [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192, 1340658170, 1340658157, 1340658143, 1340658134, 1340658130, 1340658126, 1340658108, 1340658104, 1340658100, 1340658096, 1340658091, 1340658048, 1340657901, 1340657896, 1340657872, 1340657851, 1340657840, 1340657825, 1340657730, 1340657718, 1340657705, 1340657697, 1340657695, 1340657657, 1340657654, 1340657621, 1340657617, 1340657614, 1340657579, 1340657575, 1340657570, 1340657563, 1340657560, 1340657557, 1340657377]} final : False mtd_id 4302 list_pids : [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] 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, '2630133') ('4302', '20986474', '1340658315', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658255', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658223', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658219', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658207', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658192', None, None, None, None, None, '2630133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '20986474', '1340658315', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658255', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658223', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658219', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658207', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658192', None, None, None, None, None, '2630133')] time used for this insertion : 0.012761116027832031 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.8031511306762695 time spend to save output : 0.012947797775268555 total time spend for step 4 : 5.816098928451538 step5:split_time_score Mon Mar 3 18:27:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20986474'] 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 : [('20986474',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20986474) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340658255: {'path': 'temp/1741022819_3632896_1340658255_ec537a86deed4855ebc3c770af7d2ad5.jpg', 'extension': 'jpg'}, 1340658315: {'path': 'temp/1741022819_3632896_1340658315_65ed750f50d4d25d9fcfa4d556c6e263.jpg', 'extension': 'jpg'}, 1340658219: {'path': 'temp/1741022819_3632896_1340658219_dc13d937696cddb2bac75ab38fc695d3.jpg', 'extension': 'jpg'}, 1340658223: {'path': 'temp/1741022819_3632896_1340658223_1f9253fb10634940628a901b07105b23.jpg', 'extension': 'jpg'}, 1340658192: {'path': 'temp/1741022819_3632896_1340658192_0a21677b16e3986e0969fa1b9283df88.jpg', 'extension': 'jpg'}, 1340658207: {'path': 'temp/1741022819_3632896_1340658207_9bf13828259b447d50b30bf02a525fe8.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 = 20986474; (('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 = 20986474 group by h (('18', 41),) 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=20986474 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 (20986474) 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 (20986474) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20986474 Nombre de photos uploadées : 41 / 23040 (0%) 03032025 20986474 Nombre de photos taguées (types de déchets): 0 / 41 (0%) 03032025 20986474 Nombre de photos taguées (volume) : 0 / 41 (0%) [{'photo_id': 1340657377, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9da171b8af5f243feddfdf522c0515e7.jpg', 'username': None, 'uploaded_at': 1741022180, 'text': 'image_03032025_18_15_44_9123.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340657579, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/3fd9144f27955154838a14b8eb7fd1bb.jpg', 'username': None, 'uploaded_at': 1741022240, 'text': 'image_03032025_18_15_54_10135.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1340657575, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5a6d85d63a3c4824a007ee16a5ab1b4f.jpg', 'username': None, 'uploaded_at': 1741022240, 'text': 'image_03032025_18_16_04_10143.jpg'}, {'photo_id': 1340657570, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/81c258a4d9a0d92895b691fc8c89ee3c.jpg', 'username': None, 'uploaded_at': 1741022240, 'text': 'image_03032025_18_16_14_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016741752624511719 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20986474, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.9083547592163086 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= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1643157, 'mtr_portfolio_id': 20986044, 'dashboard_result_id': 9177028, '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_P20986044_03-03-2025_18_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986058, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1643157, 'mtr_portfolio_id': 20986474, 'dashboard_result_id': 9177029, '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_P20986474_03-03-2025_18_25_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986487, '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 = 20986044 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': 2630102, 'mtr_portfolio_id': 20986044, 'created_at': datetime.datetime(2025, 3, 3, 18, 18, 58), 'result': '0.11375549327867752', 'result_long': None, 'result_double': None}] Qualite : 0.11375549327867752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20986044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986044_03-03-2025_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20986044 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_P20986044_03-03-2025_18_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986058, 'pht': 3726}}" where mtr_portfolio_id = 20986044 and dashboard_run_id = 1643157 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`=20986044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9177028, 0.11375549327867752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986044_03-03-2025_18_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986058, '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 = 20986474 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': 2630133, 'mtr_portfolio_id': 20986474, 'created_at': datetime.datetime(2025, 3, 3, 18, 26, 59), 'result': '0.10024727052557054', 'result_long': None, 'result_double': None}] Qualite : 0.10024727052557054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20986474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20986474 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_P20986474_03-03-2025_18_27_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986487, 'pht': 3726}}" where mtr_portfolio_id = 20986474 and dashboard_run_id = 1643157 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`=20986474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9177029, 0.10024727052557054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_27_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986487, '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 (20986044,20986474) result : ((1340653674,), (1340654425,), (1340654484,), (1340654509,), (1340654522,), (1340654524,), (1340654817,), (1340654822,), (1340654826,), (1340654871,), (1340654909,), (1340654912,), (1340654914,), (1340654918,), (1340654972,), (1340654975,), (1340654978,), (1340654980,), (1340654985,), (1340654989,), (1340655010,), (1340655015,), (1340655018,), (1340655020,), (1340655025,), (1340655045,), (1340655085,), (1340655089,), (1340655092,), (1340655095,), (1340655127,), (1340655132,), (1340655139,), (1340655145,), (1340655160,), (1340655165,), (1340655194,), (1340655198,), (1340655200,), (1340655205,), (1340656383,), (1340657382,), (1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 41, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20986474]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] map_info['map_portfolio_photo'] : {20986474: [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192, 1340658170, 1340658157, 1340658143, 1340658134, 1340658130, 1340658126, 1340658108, 1340658104, 1340658100, 1340658096, 1340658091, 1340658048, 1340657901, 1340657896, 1340657872, 1340657851, 1340657840, 1340657825, 1340657730, 1340657718, 1340657705, 1340657697, 1340657695, 1340657657, 1340657654, 1340657621, 1340657617, 1340657614, 1340657579, 1340657575, 1340657570, 1340657563, 1340657560, 1340657557, 1340657377]} final : True mtd_id 4302 list_pids : [1340658315, 1340658255, 1340658223, 1340658219, 1340658207, 1340658192] Looping around the photos to save general results len do output : 1 /20986474Didn'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, '2630133') ('4302', '20986474', '1340658315', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658255', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658223', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658219', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658207', None, None, None, None, None, '2630133') ('4302', None, None, None, None, None, None, None, '2630133') ('4302', '20986474', '1340658192', None, None, None, None, None, '2630133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20986474', 'None', None, None, None, None, '2630133'), ('4302', '20986474', '1340658315', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658255', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658223', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658219', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658207', None, None, None, None, None, '2630133'), ('4302', '20986474', '1340658192', None, None, None, None, None, '2630133')] time used for this insertion : 0.013412952423095703 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1173906326293945 time spend to save output : 0.01365041732788086 total time spend for step 5 : 1.1310410499572754 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 (2630133) 2.09user 2.33system 0:10.92elapsed 40%CPU (0avgtext+0avgdata 158996maxresident)k 144inputs+14776outputs (0major+64042minor)pagefaults 0swaps