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 : 1510668 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 (2610234) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2610234) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776731 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2610234'] with mtr_portfolio_ids : ['20776731'] and first list_photo_ids : [] new path : /proc/1510668/ Name: python3 Umask: 0002 State: R (running) Tgid: 1510668 Ngid: 0 Pid: 1510668 PPid: 1510667 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1510668 NSpid: 1510668 NSpgid: 1508787 NSsid: 1508787 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99404 kB VmRSS: 99404 kB RssAnon: 59756 kB RssFile: 39648 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 54 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1510668', 'Ngid': '0', 'Pid': '1510668', 'PPid': '1510667', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1510668', 'NSpid': '1510668', 'NSpgid': '1508787', 'NSsid': '1508787', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99404 kB', 'VmRSS': '99404 kB', 'RssAnon': '59756 kB', 'RssFile': '39648 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '54', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '1510668', '1106844', '0', '1106844', '865592', '99404', b'', 'marlene', '2610234') 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 (20776731) 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 (2610234 ) ) 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 (20776731) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339360508, 'portfolio_id': 20776731}, {'photo_id': 1339360505, 'portfolio_id': 20776731}, {'photo_id': 1339360500, 'portfolio_id': 20776731}, {'photo_id': 1339360452, 'portfolio_id': 20776731}, {'photo_id': 1339360441, 'portfolio_id': 20776731}, {'photo_id': 1339360426, 'portfolio_id': 20776731}, {'photo_id': 1339360422, 'portfolio_id': 20776731}, {'photo_id': 1339360405, 'portfolio_id': 20776731}, {'photo_id': 1339360400, 'portfolio_id': 20776731}, {'photo_id': 1339360396, 'portfolio_id': 20776731}, {'photo_id': 1339360392, 'portfolio_id': 20776731}, {'photo_id': 1339360344, 'portfolio_id': 20776731}, {'photo_id': 1339360341, 'portfolio_id': 20776731}, {'photo_id': 1339360338, 'portfolio_id': 20776731}, {'photo_id': 1339360336, 'portfolio_id': 20776731}, {'photo_id': 1339360322, 'portfolio_id': 20776731}, {'photo_id': 1339360318, 'portfolio_id': 20776731}, {'photo_id': 1339360314, 'portfolio_id': 20776731}, {'photo_id': 1339360310, 'portfolio_id': 20776731}, {'photo_id': 1339360302, 'portfolio_id': 20776731}, {'photo_id': 1339360276, 'portfolio_id': 20776731}, {'photo_id': 1339360246, 'portfolio_id': 20776731}, {'photo_id': 1339360242, 'portfolio_id': 20776731}, {'photo_id': 1339360229, 'portfolio_id': 20776731}, {'photo_id': 1339360225, 'portfolio_id': 20776731}, {'photo_id': 1339360215, 'portfolio_id': 20776731}, {'photo_id': 1339360165, 'portfolio_id': 20776731}, {'photo_id': 1339360162, 'portfolio_id': 20776731}, {'photo_id': 1339360157, 'portfolio_id': 20776731}, {'photo_id': 1339360146, 'portfolio_id': 20776731}, {'photo_id': 1339360144, 'portfolio_id': 20776731}, {'photo_id': 1339360140, 'portfolio_id': 20776731}, {'photo_id': 1339360119, 'portfolio_id': 20776731}, {'photo_id': 1339360115, 'portfolio_id': 20776731}, {'photo_id': 1339360111, 'portfolio_id': 20776731}, {'photo_id': 1339359801, 'portfolio_id': 20776731}, {'photo_id': 1339359797, 'portfolio_id': 20776731}, {'photo_id': 1339359792, 'portfolio_id': 20776731}, {'photo_id': 1339359784, 'portfolio_id': 20776731}, {'photo_id': 1339359780, 'portfolio_id': 20776731}, {'photo_id': 1339359774, 'portfolio_id': 20776731}, {'photo_id': 1339359770, 'portfolio_id': 20776731}, {'photo_id': 1339359766, 'portfolio_id': 20776731}] map_portfolio_id_photo_id: {20776731: [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422, 1339360405, 1339360400, 1339360396, 1339360392, 1339360344, 1339360341, 1339360338, 1339360336, 1339360322, 1339360318, 1339360314, 1339360310, 1339360302, 1339360276, 1339360246, 1339360242, 1339360229, 1339360225, 1339360215, 1339360165, 1339360162, 1339360157, 1339360146, 1339360144, 1339360140, 1339360119, 1339360115, 1339360111, 1339359801, 1339359797, 1339359792, 1339359784, 1339359780, 1339359774, 1339359770, 1339359766]} ##### 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.014321327209472656 #### 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 Feb 24 16:56:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20776731) 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 : 20776731 get user id for portfolio 20776731 get sub ptf for main ptf 20776731, type 3726 and hashtags ['flou', 'metal', 'cartonnette', 'mal_croppe', 'plastique', 'Carton_gris', 'environnement', 'kraft', 'papier', 'Carton_brun', 'autre_refus', 'Teint_Dans_La_Masse'] 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`=20776731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','cartonnette','mal_croppe','plastique','Carton_gris','environnement','kraft','papier','Carton_brun','autre_refus','Teint_Dans_La_Masse')) 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`=20776731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','cartonnette','mal_croppe','plastique','Carton_gris','environnement','kraft','papier','Carton_brun','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20776731, 'sub_port_id': 20776739, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416854, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'Carton_gris': {'main_port_id': 20776731, 'sub_port_id': 20776740, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416855, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'papier': {'main_port_id': 20776731, 'sub_port_id': 20776741, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416856, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'environnement': {'main_port_id': 20776731, 'sub_port_id': 20776742, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416857, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'metal': {'main_port_id': 20776731, 'sub_port_id': 20776743, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416858, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'flou': {'main_port_id': 20776731, 'sub_port_id': 20776744, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416859, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'Carton_brun': {'main_port_id': 20776731, 'sub_port_id': 20776745, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416860, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'autre_refus': {'main_port_id': 20776731, 'sub_port_id': 20776746, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416861, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 20776731, 'sub_port_id': 20776747, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416862, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'plastique': {'main_port_id': 20776731, 'sub_port_id': 20776748, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416863, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'cartonnette': {'main_port_id': 20776731, 'sub_port_id': 20776749, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416864, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}, 'mal_croppe': {'main_port_id': 20776731, 'sub_port_id': 20776750, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416865, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20776739 , 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=20776731 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 (20776739) result : ((1339360380,), (1339360381,), (1339360453,), (1339360543,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776740 , 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=20776731 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 (20776740) result : ((1339360374,), (1339360375,), (1339360442,), (1339360443,), (1339360444,), (1339360524,), (1339360525,), (1339360527,), (1339360528,), (1339360529,), (1339360563,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776741 , 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=20776731 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 (20776741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776742 , 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=20776731 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 (20776742) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776743 , 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=20776731 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 (20776743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776744 , 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=20776731 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 (20776744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776745 , 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=20776731 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 (20776745) result : ((1339360356,), (1339360385,), (1339360451,), (1339360530,), (1339360542,), (1339360544,), (1339360545,), (1339360569,), (1339360570,), (1339360571,), (1339360572,), (1339360573,), (1339360574,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776746 , 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=20776731 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 (20776746) result : ((1339360372,), (1339360373,), (1339360560,), (1339360561,), (1339360562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776747 , 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=20776731 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 (20776747) result : ((1339360345,), (1339360346,), (1339360347,), (1339360348,), (1339360365,), (1339360367,), (1339360368,), (1339360369,), (1339360370,), (1339360384,), (1339360429,), (1339360430,), (1339360431,), (1339360432,), (1339360433,), (1339360512,), (1339360513,), (1339360514,), (1339360515,), (1339360516,), (1339360517,), (1339360518,), (1339360519,), (1339360520,), (1339360521,), (1339360522,), (1339360526,), (1339360554,), (1339360555,), (1339360556,), (1339360557,), (1339360558,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776748 , 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=20776731 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 (20776748) result : ((1339360357,), (1339360358,), (1339360379,), (1339360386,), (1339360533,), (1339360576,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776749 , 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=20776731 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 (20776749) result : ((1339360352,), (1339360353,), (1339360354,), (1339360355,), (1339360377,), (1339360378,), (1339360446,), (1339360532,), (1339360536,), (1339360537,), (1339360539,), (1339360540,), (1339360541,), (1339360564,), (1339360565,), (1339360566,), (1339360567,), (1339360568,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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 20776750 , 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=20776731 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 (20776750) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20776731) result : ((1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) 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 (1339360400,1339360500) 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`=20776731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','cartonnette','mal_croppe','plastique','Carton_gris','environnement','kraft','papier','Carton_brun','autre_refus','Teint_Dans_La_Masse')) 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`=20776731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','cartonnette','mal_croppe','plastique','Carton_gris','environnement','kraft','papier','Carton_brun','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20776731, 'sub_port_id': 20776751, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416866, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'Carton_gris': {'main_port_id': 20776731, 'sub_port_id': 20776752, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416867, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'papier': {'main_port_id': 20776731, 'sub_port_id': 20776753, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416868, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'environnement': {'main_port_id': 20776731, 'sub_port_id': 20776754, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416869, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'metal': {'main_port_id': 20776731, 'sub_port_id': 20776755, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416870, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'flou': {'main_port_id': 20776731, 'sub_port_id': 20776756, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416871, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'Carton_brun': {'main_port_id': 20776731, 'sub_port_id': 20776757, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416872, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'autre_refus': {'main_port_id': 20776731, 'sub_port_id': 20776758, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416873, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20776731, 'sub_port_id': 20776759, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416874, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'plastique': {'main_port_id': 20776731, 'sub_port_id': 20776760, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416875, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'cartonnette': {'main_port_id': 20776731, 'sub_port_id': 20776761, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416876, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}, 'mal_croppe': {'main_port_id': 20776731, 'sub_port_id': 20776762, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13416877, 'last_updated_at': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 24, 16, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 24, 16, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20776762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20776750 lien utilise dans velours : https://www.fotonower.com/velours/20776751,20776752,20776753,20776754,20776755,20776756,20776757,20776758,20776759,20776760,20776761,20776762?tags=kraft,Carton_gris,papier,environnement,metal,flou,Carton_brun,autre_refus,Teint_Dans_La_Masse,plastique,cartonnette,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20776731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] map_info['map_portfolio_photo'] : {20776731: [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422, 1339360405, 1339360400, 1339360396, 1339360392, 1339360344, 1339360341, 1339360338, 1339360336, 1339360322, 1339360318, 1339360314, 1339360310, 1339360302, 1339360276, 1339360246, 1339360242, 1339360229, 1339360225, 1339360215, 1339360165, 1339360162, 1339360157, 1339360146, 1339360144, 1339360140, 1339360119, 1339360115, 1339360111, 1339359801, 1339359797, 1339359792, 1339359784, 1339359780, 1339359774, 1339359770, 1339359766]} final : False mtd_id 4302 list_pids : [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] Looping around the photos to save general results len do output : 1 /20776731. 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, '2610234') ('4302', '20776731', '1339360508', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360505', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360500', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360452', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360441', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360426', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360422', None, None, None, None, None, '2610234') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '20776731', "{'kraft': 20776739, 'Carton_gris': 20776740, 'papier': 20776741, 'environnement': 20776742, 'metal': 20776743, 'flou': 20776744, 'Carton_brun': 20776745, 'autre_refus': 20776746, 'Teint_Dans_La_Masse': 20776747, 'plastique': 20776748, 'cartonnette': 20776749, 'mal_croppe': 20776750}", None, None, None, None, '2610234'), ('4302', '20776731', '1339360508', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360505', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360500', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360452', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360441', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360426', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360422', None, None, None, None, None, '2610234')] time used for this insertion : 0.013898134231567383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47638559341430664 time spend to save output : 0.014154195785522461 total time spend for step 1 : 0.4905397891998291 step2:final Mon Feb 24 16:56:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20776731) 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 20776731 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339359784,1339359780,1339359774,1339359770,1339359766,1339359801,1339359797,1339359792,1339360146,1339360144,1339360140,1339360119,1339360115,1339360111,1339360165,1339360162,1339360157,1339360276,1339360246,1339360242,1339360229,1339360225,1339360215,1339360322,1339360318,1339360314,1339360310,1339360302,1339360344,1339360341,1339360338,1339360336,1339360405,1339360400,1339360396,1339360392,1339360452,1339360441,1339360426,1339360422,1339360508,1339360505,1339360500); 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([20776731]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} new output for save of step final : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] map_info['map_portfolio_photo'] : {20776731: [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422, 1339360405, 1339360400, 1339360396, 1339360392, 1339360344, 1339360341, 1339360338, 1339360336, 1339360322, 1339360318, 1339360314, 1339360310, 1339360302, 1339360276, 1339360246, 1339360242, 1339360229, 1339360225, 1339360215, 1339360165, 1339360162, 1339360157, 1339360146, 1339360144, 1339360140, 1339360119, 1339360115, 1339360111, 1339359801, 1339359797, 1339359792, 1339359784, 1339359780, 1339359774, 1339359770, 1339359766]} final : False mtd_id 4302 list_pids : [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] Looping around the photos to save general results len do output : 7 /1339360508.Didn't retrieve data . /1339360505.Didn't retrieve data . /1339360500.Didn't retrieve data . /1339360452.Didn't retrieve data . /1339360441.Didn't retrieve data . /1339360426.Didn't retrieve data . /1339360422.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, '2610234') ('4302', '20776731', '1339360508', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360505', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360500', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360452', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360441', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360426', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360422', None, None, None, None, None, '2610234') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '20776731', '1339360508', '0.05024976378575702', None, None, None, None, '2610234'), ('4302', '20776731', '1339360505', '0.05024976378575702', None, None, None, None, '2610234'), ('4302', '20776731', '1339360500', '0.05024976378575702', None, None, None, None, '2610234'), ('4302', '20776731', '1339360452', '0.05024976378575702', None, None, None, None, '2610234'), ('4302', '20776731', '1339360441', '0.05024976378575702', None, None, None, None, '2610234'), ('4302', '20776731', '1339360426', '0.05024976378575702', None, None, None, None, '2610234'), ('4302', '20776731', '1339360422', '0.05024976378575702', None, None, None, None, '2610234')] time used for this insertion : 0.012926340103149414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06684398651123047 time spend to save output : 0.01332712173461914 total time spend for step 2 : 0.08017110824584961 step3:velours_tree Mon Feb 24 16:56:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20776731: [{'kraft': 20776739, 'Carton_gris': 20776740, 'papier': 20776741, 'environnement': 20776742, 'metal': 20776743, 'flou': 20776744, 'Carton_brun': 20776745, 'autre_refus': 20776746, 'Teint_Dans_La_Masse': 20776747, 'plastique': 20776748, 'cartonnette': 20776749, 'mal_croppe': 20776750}]} input_args_next_step : {20776731: ()} output_args : {20776731: [{'kraft': 20776739, 'Carton_gris': 20776740, 'papier': 20776741, 'environnement': 20776742, 'metal': 20776743, 'flou': 20776744, 'Carton_brun': 20776745, 'autre_refus': 20776746, 'Teint_Dans_La_Masse': 20776747, 'plastique': 20776748, 'cartonnette': 20776749, 'mal_croppe': 20776750}]} args : 20776731 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 20776739, 'Carton_gris': 20776740, 'papier': 20776741, 'environnement': 20776742, 'metal': 20776743, 'flou': 20776744, 'Carton_brun': 20776745, 'autre_refus': 20776746, 'Teint_Dans_La_Masse': 20776747, 'plastique': 20776748, 'cartonnette': 20776749, 'mal_croppe': 20776750},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20776731) 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([20776731]) 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.2826659679412842 time spend to save output : 4.4345855712890625e-05 total time spend for step 3 : 0.28271031379699707 step4:send_mail_cod Mon Feb 24 16:56:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} input_args_next_step : {1339360508: ()} output_args : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} args : 1339360508 depend.output_id : 0 input_args_next_step : {1339360508: ('0.05024976378575702',), 1339360505: ()} output_args : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} args : 1339360505 depend.output_id : 0 input_args_next_step : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ()} output_args : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} args : 1339360500 depend.output_id : 0 input_args_next_step : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ()} output_args : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} args : 1339360452 depend.output_id : 0 input_args_next_step : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ()} output_args : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} args : 1339360441 depend.output_id : 0 input_args_next_step : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ()} output_args : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} args : 1339360426 depend.output_id : 0 input_args_next_step : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ()} output_args : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',)} args : 1339360422 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 : {20776731: [{'kraft': 20776739, 'Carton_gris': 20776740, 'papier': 20776741, 'environnement': 20776742, 'metal': 20776743, 'flou': 20776744, 'Carton_brun': 20776745, 'autre_refus': 20776746, 'Teint_Dans_La_Masse': 20776747, 'plastique': 20776748, 'cartonnette': 20776749, 'mal_croppe': 20776750}]} input_args_next_step : {1339360508: ('0.05024976378575702',), 1339360505: ('0.05024976378575702',), 1339360500: ('0.05024976378575702',), 1339360452: ('0.05024976378575702',), 1339360441: ('0.05024976378575702',), 1339360426: ('0.05024976378575702',), 1339360422: ('0.05024976378575702',), 20776731: ()} output_args : {20776731: [{'kraft': 20776739, 'Carton_gris': 20776740, 'papier': 20776741, 'environnement': 20776742, 'metal': 20776743, 'flou': 20776744, 'Carton_brun': 20776745, 'autre_refus': 20776746, 'Teint_Dans_La_Masse': 20776747, 'plastique': 20776748, 'cartonnette': 20776749, 'mal_croppe': 20776750}]} args : 20776731 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 :8, first value : ('0.05024976378575702',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20776731) 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 (1339360508,1339360505,1339360500,1339360452,1339360441,1339360426,1339360422) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339360422 begin to download photo : 1339360441 begin to download photo : 1339360500 begin to download photo : 1339360508 download finish for photo 1339360508 download finish for photo 1339360422 begin to download photo : 1339360426 download finish for photo 1339360500 begin to download photo : 1339360505 download finish for photo 1339360441 begin to download photo : 1339360452 download finish for photo 1339360426 download finish for photo 1339360505 download finish for photo 1339360452 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 : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P20776731_24-02-2025_16_57_02.pdf 20776739 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=20776739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339360380: '1740412290_98897_1339360165_bd2957362c537dd3f50270c46d13ca4b_rle_crop_3685291528_0.png', 1339360381: '1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291697_0.png', 1339360453: '1740412351_99660_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292134_0.png', 1339360543: '1740412393_100144_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292134_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/7f9cd45b8b482a873ebcc5d468e98fff_23234659.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/726fe449fafac64355599c7ae6803267_53439850.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/0ce05ec47f016add730b8131490c9572_97161561.png change filename to text .imagette207767391740412622/ imagette207767391740412622/1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291697_0.png.png imagette207767391740412622/1740412393_100144_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292134_0.png.png imagette207767391740412622/1740412290_98897_1339360165_bd2957362c537dd3f50270c46d13ca4b_rle_crop_3685291528_0.png.png imagette207767391740412622/1740412351_99660_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292134_0.png.png imagette207767431740412623/ imagette207767441740412623/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/0ce05ec47f016add730b8131490c9572_62169342.png imagette207767391740412622 20776743 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=20776743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207767431740412623 20776744 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=20776744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207767441740412623 20776746 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=20776746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339360372: '1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291694_0.png', 1339360373: '1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291699_0.png', 1339360560: '1740412432_100708_1339360246_6ed81ca2b35d8155959b4251a14cd5cf_rle_crop_3685293394_0.png', 1339360561: '1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293426_0.png', 1339360562: '1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293454_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/46f37aa942570ce363130772ae4cf062_11037227.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/72aaacb705701141bbc4f140d26b3af9_52130512.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/b9c6c10566ee4def0f0b308f8aa983ba_46567551.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/9df23de5b03e68c3dc67ffcc8bd08b15_76811265.png change filename to text .imagette207767461740412623/ imagette207767461740412623/1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293454_0.png.png imagette207767461740412623/1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291694_0.png.png imagette207767461740412623/1740412432_100708_1339360246_6ed81ca2b35d8155959b4251a14cd5cf_rle_crop_3685293394_0.png.png imagette207767461740412623/1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291699_0.png.png imagette207767461740412623/1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293426_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/30a6e6650ffe38953296c614a5543bbe_75989816.png imagette207767461740412623 20776748 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=20776748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339360357: '1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291512_0.png', 1339360358: '1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291536_0.png', 1339360379: '1740412290_98897_1339360165_bd2957362c537dd3f50270c46d13ca4b_rle_crop_3685291527_0.png', 1339360386: '1740412334_99362_1339360146_b1271f0bd7aa00e0caf22c7b37b81b30_rle_crop_3685291737_0.png', 1339360533: '1740412457_101122_1339360146_b1271f0bd7aa00e0caf22c7b37b81b30_rle_crop_3685291737_0.png', 1339360576: '1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293462_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/caeacd3758a55ad76a20fe52e3ff77b8_83380035.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/1cf619f8f04483bbcdf883b741e73d52_70384626.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d67ab216a7c1333dc62517ef7851e3ca_50698602.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/179d1488ec58fb4b244d0df0203f2ccf_11649095.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/179d1488ec58fb4b244d0df0203f2ccf_88505924.png change filename to text .imagette207767481740412623/ imagette207767481740412623/1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291512_0.png.png imagette207767481740412623/1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293462_0.png.png imagette207767481740412623/1740412457_101122_1339360146_b1271f0bd7aa00e0caf22c7b37b81b30_rle_crop_3685291737_0.png.png imagette207767481740412623/1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291536_0.png.png imagette207767481740412623/1740412334_99362_1339360146_b1271f0bd7aa00e0caf22c7b37b81b30_rle_crop_3685291737_0.png.png imagette207767481740412623/1740412290_98897_1339360165_bd2957362c537dd3f50270c46d13ca4b_rle_crop_3685291527_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/2f7606d491feb12c12490e8d64356d41_96425320.png imagette207767481740412623 20776749 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=20776749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339360537: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293194_0.png', 1339360568: '1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293464_0.png', 1339360567: '1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293428_0.png', 1339360566: '1740412432_100708_1339360242_abae31fb6fbd1f51f66e39dcd42c98cd_rle_crop_3685293417_0.png', 1339360565: '1740412432_100708_1339360242_abae31fb6fbd1f51f66e39dcd42c98cd_rle_crop_3685293410_0.png', 1339360564: '1740412432_100708_1339360246_6ed81ca2b35d8155959b4251a14cd5cf_rle_crop_3685293393_0.png', 1339360541: '1740412413_100429_1339360302_2b5687b4694bd382fc4c02b1cbd0618b_rle_crop_3685293282_0.png', 1339360540: '1740412413_100429_1339360310_1038bdf419b2addeb8b675f6e37a4099_rle_crop_3685293227_0.png', 1339360539: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293192_0.png', 1339360352: '1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291509_0.png', 1339360536: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293191_0.png', 1339360532: '1740412393_100144_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292139_0.png', 1339360446: '1740412351_99660_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292139_0.png', 1339360378: '1740412290_98897_1339360144_19817ec78bc8ff414aef59e50511fdf5_rle_crop_3685291568_0.png', 1339360377: '1740412290_98897_1339360165_bd2957362c537dd3f50270c46d13ca4b_rle_crop_3685291521_0.png', 1339360355: '1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291543_0.png', 1339360354: '1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291546_0.png', 1339360353: '1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291537_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/8bc964022ae3b59e7d444ec5e21e4d8b_69012619.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/cb38e10ae4bbe333394a37fcea9aed85_77297926.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/fd4ea0e44bbb325c2e72b617889b6d4c_23675972.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/defa26eea038aada5924033b527d8399_21289746.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/4cb0eb1aa23830b3cf37c38fdba3625f_94911772.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/c26407646c880c0dba840d084bd8a286_79978720.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/86b5cac998b7a33ed14d39213e3ede3b_33180368.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/aba60299989e2573f816f2f5d8d70551_36336476.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/7ac4e9c2473e650d0c38b69da07b152d_31953131.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/22a95f1b6ed0fcb82a627a2c1aaf78de_31772745.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/8e06b46b6f4b3f2af992de5eb93403e4_87663651.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d31d1a5db4fda95e586a9dc2b310c78b_81229321.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d31d1a5db4fda95e586a9dc2b310c78b_4973536.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/4fc98fcc7b9eece9b29006882be02831_23256726.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/9ff26cb3616d430f69b0e975522991c3_75476467.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/ba3715476ecd7c371d91b63fbe2c800a_32211002.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/927799f04b8a18ca6f6316e26e04dfee_30096586.png change filename to text .imagette207767491740412623/ imagette207767491740412623/1740412290_98897_1339360165_bd2957362c537dd3f50270c46d13ca4b_rle_crop_3685291521_0.png.png imagette207767491740412623/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293194_0.png.png imagette207767491740412623/1740412432_100708_1339360246_6ed81ca2b35d8155959b4251a14cd5cf_rle_crop_3685293393_0.png.png imagette207767491740412623/1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293464_0.png.png imagette207767491740412623/1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293428_0.png.png imagette207767491740412623/1740412413_100429_1339360302_2b5687b4694bd382fc4c02b1cbd0618b_rle_crop_3685293282_0.png.png imagette207767491740412623/1740412413_100429_1339360310_1038bdf419b2addeb8b675f6e37a4099_rle_crop_3685293227_0.png.png imagette207767491740412623/1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291509_0.png.png imagette207767491740412623/1740412290_98897_1339360144_19817ec78bc8ff414aef59e50511fdf5_rle_crop_3685291568_0.png.png imagette207767491740412623/1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291537_0.png.png imagette207767491740412623/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293192_0.png.png imagette207767491740412623/1740412393_100144_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292139_0.png.png imagette207767491740412623/1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291543_0.png.png imagette207767491740412623/1740412351_99660_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292139_0.png.png imagette207767491740412623/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293191_0.png.png imagette207767491740412623/1740412432_100708_1339360242_abae31fb6fbd1f51f66e39dcd42c98cd_rle_crop_3685293410_0.png.png imagette207767491740412623/1740412311_99116_1339360157_35f9114b37108bf1d53af7b543c53468_rle_crop_3685291546_0.png.png imagette207767491740412623/1740412432_100708_1339360242_abae31fb6fbd1f51f66e39dcd42c98cd_rle_crop_3685293417_0.png.png imagette207767501740412624/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/9fdc03b720418c5946e9b5472d03a593_48844853.png imagette207767491740412623 20776750 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=20776750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207767501740412624 20776740 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=20776740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339360374: '1740412290_98897_1339360140_cdfdc22feada967e971b5a27eeeaa295_rle_crop_3685291653_0.png', 1339360375: '1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291700_0.png', 1339360442: '1740412351_99660_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292136_0.png', 1339360443: '1740412351_99660_1339359780_28e8e8743c780a5b10ccace50e3f2228_rle_crop_3685292336_0.png', 1339360444: '1740412351_99660_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292534_0.png', 1339360524: '1740412413_100429_1339360318_1a73ef8e2f1573fb425eca1598b97d98_rle_crop_3685293084_0.png', 1339360525: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293189_0.png', 1339360527: '1740412393_100144_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292136_0.png', 1339360528: '1740412393_100144_1339359780_28e8e8743c780a5b10ccace50e3f2228_rle_crop_3685292336_0.png', 1339360529: '1740412393_100144_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292534_0.png', 1339360563: '1740412432_100708_1339360242_abae31fb6fbd1f51f66e39dcd42c98cd_rle_crop_3685293408_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/74a8720c67acb502d7d4576ed37fca1f_25932705.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/7d6215e731b8f9827bad41c300412177_96803627.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/cc1a04c60185c38ef60f8f578dd95672_83626831.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/fd3907d01e2423afc434c92ce0bddd9f_99259548.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/1feeab240a2e36c12166611ec429b8a1_68960126.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/70dd1a971b75d590738a335920f99a26_18177590.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/b15ce32d32fe6e3a123542958064307a_29112991.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/cc1a04c60185c38ef60f8f578dd95672_59332527.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/fd3907d01e2423afc434c92ce0bddd9f_32224242.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/1feeab240a2e36c12166611ec429b8a1_11037290.png change filename to text .imagette207767401740412624/ imagette207767401740412624/1740412413_100429_1339360318_1a73ef8e2f1573fb425eca1598b97d98_rle_crop_3685293084_0.png.png imagette207767401740412624/1740412351_99660_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292534_0.png.png imagette207767401740412624/1740412351_99660_1339359780_28e8e8743c780a5b10ccace50e3f2228_rle_crop_3685292336_0.png.png imagette207767401740412624/1740412393_100144_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292136_0.png.png imagette207767401740412624/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293189_0.png.png imagette207767401740412624/1740412290_98897_1339360111_88fe6c9e026fa48202105aa76e690e81_rle_crop_3685291700_0.png.png imagette207767401740412624/1740412393_100144_1339359780_28e8e8743c780a5b10ccace50e3f2228_rle_crop_3685292336_0.png.png imagette207767401740412624/1740412351_99660_1339359784_ca71343f5fdae6a14fbc608bc10ea3ce_rle_crop_3685292136_0.png.png imagette207767401740412624/1740412290_98897_1339360140_cdfdc22feada967e971b5a27eeeaa295_rle_crop_3685291653_0.png.png imagette207767401740412624/1740412432_100708_1339360242_abae31fb6fbd1f51f66e39dcd42c98cd_rle_crop_3685293408_0.png.png imagette207767401740412624/1740412393_100144_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292534_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/a7f44d691f4e278f1371ab76db82f0d8_56419443.png imagette207767401740412624 20776745 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=20776745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339360356: '1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291506_0.png', 1339360385: '1740412334_99362_1339359797_e75d4a39b78405011dda04ca37a21dc9_rle_crop_3685291942_0.png', 1339360451: '1740412351_99660_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292357_0.png', 1339360530: '1740412457_101122_1339359797_e75d4a39b78405011dda04ca37a21dc9_rle_crop_3685291942_0.png', 1339360542: '1740412393_100144_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292357_0.png', 1339360544: '1740412413_100429_1339360318_1a73ef8e2f1573fb425eca1598b97d98_rle_crop_3685293086_0.png', 1339360545: '1740412413_100429_1339360310_1038bdf419b2addeb8b675f6e37a4099_rle_crop_3685293234_0.png', 1339360569: '1740412432_100708_1339360246_6ed81ca2b35d8155959b4251a14cd5cf_rle_crop_3685293395_0.png', 1339360570: '1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293435_0.png', 1339360571: '1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293434_0.png', 1339360572: '1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293465_0.png', 1339360573: '1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293466_0.png', 1339360574: '1740412432_100708_1339360215_aaa414584523a30e8f9333987cd5e6ff_rle_crop_3685293490_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/c5eee3867d8daead71f998100cf74922_26001900.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/2d2af0f5ea8daaa4a26af690856fe00f_15558156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/a29a9d2135d8013a5b6a15352dc78c59_54236060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/2d2af0f5ea8daaa4a26af690856fe00f_27063988.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/a29a9d2135d8013a5b6a15352dc78c59_215714.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/22d18fa249c1a16a1f7977bb750e535d_54611988.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/2099ac04a404c876fe436fa1ef8efb9a_86483279.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/92f51b085b00aa339bafb588ec973f19_118338.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/2d4d9a8f7586e657c9dc734de387f59b_27217560.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/9eeb2309e29fd0f2a5197ea15f0b6508_42069031.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/af98983d36797a3cb349b374dd62d6fd_40458118.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d45f801f0f6ae50ffa1af33af9926b79_32167253.png change filename to text .imagette207767451740412625/ imagette207767451740412625/1740412457_101122_1339359797_e75d4a39b78405011dda04ca37a21dc9_rle_crop_3685291942_0.png.png imagette207767451740412625/1740412432_100708_1339360215_aaa414584523a30e8f9333987cd5e6ff_rle_crop_3685293490_0.png.png imagette207767451740412625/1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293466_0.png.png imagette207767451740412625/1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291506_0.png.png imagette207767451740412625/1740412334_99362_1339359797_e75d4a39b78405011dda04ca37a21dc9_rle_crop_3685291942_0.png.png imagette207767451740412625/1740412432_100708_1339360246_6ed81ca2b35d8155959b4251a14cd5cf_rle_crop_3685293395_0.png.png imagette207767451740412625/1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293435_0.png.png imagette207767451740412625/1740412413_100429_1339360310_1038bdf419b2addeb8b675f6e37a4099_rle_crop_3685293234_0.png.png imagette207767451740412625/1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293465_0.png.png imagette207767451740412625/1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293434_0.png.png imagette207767451740412625/1740412413_100429_1339360318_1a73ef8e2f1573fb425eca1598b97d98_rle_crop_3685293086_0.png.png imagette207767451740412625/1740412351_99660_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292357_0.png.png imagette207767451740412625/1740412393_100144_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292357_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/4acf53dd940183aa6f61f294dc13ef13_23715716.png imagette207767451740412625 20776747 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=20776747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339360513: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293190_0.png', 1339360558: '1740412432_100708_1339360215_aaa414584523a30e8f9333987cd5e6ff_rle_crop_3685293485_0.png', 1339360557: '1740412432_100708_1339360215_aaa414584523a30e8f9333987cd5e6ff_rle_crop_3685293488_0.png', 1339360556: '1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293468_0.png', 1339360555: '1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293432_0.png', 1339360554: '1740412432_100708_1339360322_511a924cd26fc3f186ee0104523a7391_rle_crop_3685293347_0.png', 1339360526: '1740412457_101122_1339360146_b1271f0bd7aa00e0caf22c7b37b81b30_rle_crop_3685291745_0.png', 1339360522: '1740412393_100144_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292540_0.png', 1339360521: '1740412393_100144_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292356_0.png', 1339360520: '1740412393_100144_1339359780_28e8e8743c780a5b10ccace50e3f2228_rle_crop_3685292343_0.png', 1339360519: '1740412393_100144_1339359801_4dde851e8c41ea2d0be03ea5b943abc5_rle_crop_3685292118_0.png', 1339360518: '1740412393_100144_1339359801_4dde851e8c41ea2d0be03ea5b943abc5_rle_crop_3685292125_0.png', 1339360517: '1740412413_100429_1339360310_1038bdf419b2addeb8b675f6e37a4099_rle_crop_3685293229_0.png', 1339360516: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293199_0.png', 1339360515: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293195_0.png', 1339360514: '1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293197_0.png', 1339360345: '1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291516_0.png', 1339360512: '1740412413_100429_1339360318_1a73ef8e2f1573fb425eca1598b97d98_rle_crop_3685293089_0.png', 1339360433: '1740412351_99660_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292540_0.png', 1339360432: '1740412351_99660_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292356_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/bc69bdf09219da9249bf544a8951e385_35076402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/ddbb207a1d92fa04998587d723ba7478_74781283.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/4fd0f46788452015f76ecfb63e92ee57_38272159.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/fa1e473624579e484b2394ac30d33cde_69970376.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/59ab4ea15f797ce4a1f37539712af6a3_65893769.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/7c172a9c336cc7c2a1ec89e139dcc82b_31223980.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/bf8a569a87c6ccdabe9de2fbcb714405_84605691.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/aed210eb0e778407e1cadfff107822f6_71475872.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/621463e89140a3ffd8b49523ac645b80_70019581.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/70f0ca7a2e03d1417bff40004c34c8af_82804075.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/912fd6c1db351febce994940f85d11f8_74034420.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d641ddc8da3d778c88a72ca2be521393_32513244.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/668c20b740fd5e2e146031503090db0f_84144190.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/9a58e9b7329db873974fce741744d441_9542510.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/0bc073c9c8a69cb19d0f1ecdcb602cca_28163037.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/06927003309e50df06340ba8950b210d_60279089.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d89e10f63efddbdd364a8d9487701646_51526838.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d7a456b9968d925b1e7c49aac72c296a_90215614.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/aed210eb0e778407e1cadfff107822f6_684450.png change filename to text .imagette207767471740412626/ imagette207767471740412626/1740412393_100144_1339359801_4dde851e8c41ea2d0be03ea5b943abc5_rle_crop_3685292118_0.png.png imagette207767471740412626/1740412413_100429_1339360318_1a73ef8e2f1573fb425eca1598b97d98_rle_crop_3685293089_0.png.png imagette207767471740412626/1740412432_100708_1339360215_aaa414584523a30e8f9333987cd5e6ff_rle_crop_3685293485_0.png.png imagette207767471740412626/1740412432_100708_1339360225_f07ff128bca53255e832f52c9448276e_rle_crop_3685293468_0.png.png imagette207767471740412626/1740412457_101122_1339360146_b1271f0bd7aa00e0caf22c7b37b81b30_rle_crop_3685291745_0.png.png imagette207767471740412626/1740412393_100144_1339359801_4dde851e8c41ea2d0be03ea5b943abc5_rle_crop_3685292125_0.png.png imagette207767471740412626/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293197_0.png.png imagette207767471740412626/1740412432_100708_1339360322_511a924cd26fc3f186ee0104523a7391_rle_crop_3685293347_0.png.png imagette207767471740412626/1740412351_99660_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292540_0.png.png imagette207767471740412626/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293195_0.png.png imagette207767471740412626/1740412432_100708_1339360229_6d242f3dff0bcc2e44cf1be30790d909_rle_crop_3685293432_0.png.png imagette207767471740412626/1740412393_100144_1339359770_d03930aa24e8f36869387dcfc62a75fc_rle_crop_3685292540_0.png.png imagette207767471740412626/1740412393_100144_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292356_0.png.png imagette207767471740412626/1740412351_99660_1339359774_6867967278520a83c4be105b89852eff_rle_crop_3685292356_0.png.png imagette207767471740412626/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293199_0.png.png imagette207767471740412626/1740412311_99116_1339360162_dd29a257309780d34b9e2a0f8933509b_rle_crop_3685291516_0.png.png imagette207767471740412626/1740412393_100144_1339359780_28e8e8743c780a5b10ccace50e3f2228_rle_crop_3685292343_0.png.png imagette207767471740412626/1740412413_100429_1339360314_3063ca20a4ed2433b55e9f6d00dcaf27_rle_crop_3685293190_0.png.png imagette207767471740412626/1740412432_100708_1339360215_aaa414584523a30e8f9333987cd5e6ff_rle_crop_3685293488_0.png.png imagette207767471740412626/1740412413_100429_1339360310_1038bdf419b2addeb8b675f6e37a4099_rle_crop_3685293229_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/621463e89140a3ffd8b49523ac645b80_60453539.png imagette207767471740412626 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20776731 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20776751,20776752,20776753,20776754,20776755,20776756,20776757,20776758,20776759,20776760,20776761,20776762?tags=kraft,Carton_gris,papier,environnement,metal,flou,Carton_brun,autre_refus,Teint_Dans_La_Masse,plastique,cartonnette,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1339360508] : ('0.05024976378575702',) no score found for photo 1339360508 We are sending mail with results at report@fotonower.com args[1339360505] : ('0.05024976378575702',) no score found for photo 1339360505 We are sending mail with results at report@fotonower.com args[1339360500] : ('0.05024976378575702',) no score found for photo 1339360500 We are sending mail with results at report@fotonower.com args[1339360452] : ('0.05024976378575702',) no score found for photo 1339360452 We are sending mail with results at report@fotonower.com args[1339360441] : ('0.05024976378575702',) no score found for photo 1339360441 We are sending mail with results at report@fotonower.com args[1339360426] : ('0.05024976378575702',) no score found for photo 1339360426 We are sending mail with results at report@fotonower.com args[1339360422] : ('0.05024976378575702',) no score found for photo 1339360422 We are sending mail with results at report@fotonower.com refus_total : 0.05024976378575702 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=20776731 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_P20776731_24-02-2025_16_57_02.pdf results_Auto_P20776731_24-02-2025_16_57_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776731_24-02-2025_16_57_02.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','20776731','results_Auto_P20776731_24-02-2025_16_57_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776731_24-02-2025_16_57_02.pdf','pdf','','0.25','0.05024976378575702') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20776731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] map_info['map_portfolio_photo'] : {20776731: [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422, 1339360405, 1339360400, 1339360396, 1339360392, 1339360344, 1339360341, 1339360338, 1339360336, 1339360322, 1339360318, 1339360314, 1339360310, 1339360302, 1339360276, 1339360246, 1339360242, 1339360229, 1339360225, 1339360215, 1339360165, 1339360162, 1339360157, 1339360146, 1339360144, 1339360140, 1339360119, 1339360115, 1339360111, 1339359801, 1339359797, 1339359792, 1339359784, 1339359780, 1339359774, 1339359770, 1339359766]} final : False mtd_id 4302 list_pids : [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] 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, '2610234') ('4302', '20776731', '1339360508', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360505', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360500', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360452', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360441', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360426', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360422', None, None, None, None, None, '2610234') 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', '20776731', '1339360508', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360505', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360500', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360452', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360441', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360426', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360422', None, None, None, None, None, '2610234')] time used for this insertion : 0.0127410888671875 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.345412254333496 time spend to save output : 0.012942790985107422 total time spend for step 4 : 10.358355045318604 step5:split_time_score Mon Feb 24 16:57:08 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 : ['20776731'] 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 : [('20776731',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20776731) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339360508: {'path': 'temp/1740412617_1510668_1339360508_7755a1d51153697fcc45da6d5f9c44bc.jpg', 'extension': 'jpg'}, 1339360422: {'path': 'temp/1740412617_1510668_1339360422_c0803f09dd3a42ecf72ad143219b7f85.jpg', 'extension': 'jpg'}, 1339360426: {'path': 'temp/1740412617_1510668_1339360426_d49109a4defb8a6d24d661b5e796a028.jpg', 'extension': 'jpg'}, 1339360500: {'path': 'temp/1740412617_1510668_1339360500_3c6696d5149851457cce387328479152.jpg', 'extension': 'jpg'}, 1339360505: {'path': 'temp/1740412617_1510668_1339360505_1c8a8dc42908e6f2cec2955d46ae6117.jpg', 'extension': 'jpg'}, 1339360441: {'path': 'temp/1740412617_1510668_1339360441_19a644d39a6b87141c6399a5f12ab14b.jpg', 'extension': 'jpg'}, 1339360452: {'path': 'temp/1740412617_1510668_1339360452_8fe42c24e8ed013e6cd66729eaeb87b5.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 = 20776731; (('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 = 20776731 group by h (('16', 43),) 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=20776731 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 (20776731) 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 (20776731) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24022025 20776731 Nombre de photos uploadées : 43 / 23040 (0%) 24022025 20776731 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 24022025 20776731 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1339359784, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/ca71343f5fdae6a14fbc608bc10ea3ce.jpg', 'username': None, 'uploaded_at': 1740411991, 'text': 'image_24022025_16_45_04_010140m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339359780, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/28e8e8743c780a5b10ccace50e3f2228.jpg', 'username': None, 'uploaded_at': 1740411991, 'text': 'image_24022025_16_45_13_009127m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339359774, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/6867967278520a83c4be105b89852eff.jpg', 'username': None, 'uploaded_at': 1740411991, 'text': 'image_24022025_16_45_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339359770, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d03930aa24e8f36869387dcfc62a75fc.jpg', 'username': None, 'uploaded_at': 1740411991, 'text': 'image_24022025_16_45_34_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018911361694335938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20776731, '2025-02-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1620556,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0230863094329834 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= 1620556 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1620556, 'dashboard_run_id': 1628374, 'mtr_portfolio_id': 20775009, 'dashboard_result_id': 9030802, '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_P20775009_24-02-2025_16_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775052, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1628374, 'mtr_portfolio_id': 20775939, 'dashboard_result_id': 9030803, '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_P20775939_24-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775953, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1628374, 'mtr_portfolio_id': 20776308, 'dashboard_result_id': 9030804, '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_P20776308_24-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776322, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1628374, 'mtr_portfolio_id': 20776731, 'dashboard_result_id': 9030805, '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_P20776731_24-02-2025_16_55_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776750, '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 = 20775009 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': 2610056, 'mtr_portfolio_id': 20775009, 'created_at': datetime.datetime(2025, 2, 24, 16, 22, 59), 'result': '0.04247487164839394', 'result_long': None, 'result_double': None}] Qualite : 0.04247487164839394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20775009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775009_24-02-2025_16_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20775009 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_P20775009_24-02-2025_16_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775052, 'pht': 3726}}" where mtr_portfolio_id = 20775009 and dashboard_run_id = 1628374 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`=20775009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9030802, 0.04247487164839394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775009_24-02-2025_16_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775052, '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 = 20775939 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': 2610127, 'mtr_portfolio_id': 20775939, 'created_at': datetime.datetime(2025, 2, 24, 16, 32, 59), 'result': '0.04219419557097414', 'result_long': None, 'result_double': None}] Qualite : 0.04219419557097414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20775939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775939_24-02-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20775939 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_P20775939_24-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775953, 'pht': 3726}}" where mtr_portfolio_id = 20775939 and dashboard_run_id = 1628374 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`=20775939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9030803, 0.04219419557097414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775939_24-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775953, '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 = 20776308 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': 2610171, 'mtr_portfolio_id': 20776308, 'created_at': datetime.datetime(2025, 2, 24, 16, 48, 59), 'result': '0.044373387629729096', 'result_long': None, 'result_double': None}] Qualite : 0.044373387629729096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20776308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776308_24-02-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20776308 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_P20776308_24-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776322, 'pht': 3726}}" where mtr_portfolio_id = 20776308 and dashboard_run_id = 1628374 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`=20776308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9030804, 0.044373387629729096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776308_24-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776322, '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 = 20776731 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': 2610234, 'mtr_portfolio_id': 20776731, 'created_at': datetime.datetime(2025, 2, 24, 16, 56, 57), 'result': '0.05024976378575702', 'result_long': None, 'result_double': None}] Qualite : 0.05024976378575702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20776731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776731_24-02-2025_16_57_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20776731 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_P20776731_24-02-2025_16_57_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776750, 'pht': 3726}}" where mtr_portfolio_id = 20776731 and dashboard_run_id = 1628374 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`=20776731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9030805, 0.05024976378575702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776731_24-02-2025_16_57_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776750, '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 (20775009,20775939,20776308,20776731) result : ((1339355652,), (1339355654,), (1339355663,), (1339355666,), (1339355686,), (1339355690,), (1339355692,), (1339355696,), (1339355700,), (1339355703,), (1339356387,), (1339356390,), (1339356393,), (1339356428,), (1339356437,), (1339357704,), (1339358418,), (1339358410,), (1339358414,), (1339358643,), (1339358660,), (1339358664,), (1339358705,), (1339358712,), (1339358721,), (1339358725,), (1339358729,), (1339358755,), (1339358759,), (1339358763,), (1339358766,), (1339358783,), (1339358788,), (1339358794,), (1339358801,), (1339358822,), (1339358825,), (1339358828,), (1339358831,), (1339358835,), (1339358858,), (1339358863,), (1339358867,), (1339358872,), (1339358895,), (1339358898,), (1339358901,), (1339358919,), (1339358930,), (1339358935,), (1339358941,), (1339358945,), (1339358949,), (1339358994,), (1339358997,), (1339359002,), (1339359006,), (1339359010,), (1339359155,), (1339359145,), (1339359149,), (1339359153,), (1339359195,), (1339359198,), (1339359201,), (1339359203,), (1339359204,), (1339359214,), (1339359226,), (1339359230,), (1339359233,), (1339359236,), (1339359239,), (1339359264,), (1339359266,), (1339359268,), (1339359270,), (1339359273,), (1339359288,), (1339359293,), (1339359307,), (1339359312,), (1339359329,), (1339359339,), (1339359360,), (1339359363,), (1339359456,), (1339359462,), (1339359466,), (1339359471,), (1339359486,), (1339359490,), (1339359494,), (1339359498,), (1339359512,), (1339359515,), (1339359527,), (1339359539,), (1339359542,), (1339359551,), (1339359609,), (1339359614,), (1339359638,), (1339359641,), (1339359644,), (1339359650,), (1339359658,), (1339359680,), (1339359684,), (1339359686,), (1339359694,), (1339359703,), (1339359741,), (1339359745,), (1339359749,), (1339359753,), (1339359757,), (1339359786,), (1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24022025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20776731]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] map_info['map_portfolio_photo'] : {20776731: [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422, 1339360405, 1339360400, 1339360396, 1339360392, 1339360344, 1339360341, 1339360338, 1339360336, 1339360322, 1339360318, 1339360314, 1339360310, 1339360302, 1339360276, 1339360246, 1339360242, 1339360229, 1339360225, 1339360215, 1339360165, 1339360162, 1339360157, 1339360146, 1339360144, 1339360140, 1339360119, 1339360115, 1339360111, 1339359801, 1339359797, 1339359792, 1339359784, 1339359780, 1339359774, 1339359770, 1339359766]} final : True mtd_id 4302 list_pids : [1339360508, 1339360505, 1339360500, 1339360452, 1339360441, 1339360426, 1339360422] Looping around the photos to save general results len do output : 1 /20776731Didn'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, '2610234') ('4302', '20776731', '1339360508', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360505', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360500', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360452', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360441', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360426', None, None, None, None, None, '2610234') ('4302', None, None, None, None, None, None, None, '2610234') ('4302', '20776731', '1339360422', None, None, None, None, None, '2610234') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '20776731', 'None', None, None, None, None, '2610234'), ('4302', '20776731', '1339360508', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360505', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360500', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360452', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360441', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360426', None, None, None, None, None, '2610234'), ('4302', '20776731', '1339360422', None, None, None, None, None, '2610234')] time used for this insertion : 0.013187170028686523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33666348457336426 time spend to save output : 0.013369083404541016 total time spend for step 5 : 0.3500325679779053 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 (2610234) 2.07user 2.35system 0:12.89elapsed 34%CPU (0avgtext+0avgdata 160124maxresident)k 736inputs+14672outputs (10major+63949minor)pagefaults 0swaps