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 : 299915 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 (2612373) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2612373) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798362 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2612373'] with mtr_portfolio_ids : ['20798362'] and first list_photo_ids : [] new path : /proc/299915/ Name: python3 Umask: 0002 State: R (running) Tgid: 299915 Ngid: 0 Pid: 299915 PPid: 299914 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 299915 NSpid: 299915 NSpgid: 295307 NSsid: 295307 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99048 kB VmRSS: 99048 kB RssAnon: 59756 kB RssFile: 39292 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 42 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '299915', 'Ngid': '0', 'Pid': '299915', 'PPid': '299914', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '299915', 'NSpid': '299915', 'NSpgid': '295307', 'NSsid': '295307', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99048 kB', 'VmRSS': '99048 kB', 'RssAnon': '59756 kB', 'RssFile': '39292 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '42', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '299915', '1106844', '0', '1106844', '865592', '99048', b'', 'marlene', '2612373') 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 (20798362) 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 (2612373 ) ) 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 (20798362) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339524105, 'portfolio_id': 20798362}, {'photo_id': 1339524099, 'portfolio_id': 20798362}, {'photo_id': 1339524096, 'portfolio_id': 20798362}, {'photo_id': 1339524092, 'portfolio_id': 20798362}, {'photo_id': 1339524090, 'portfolio_id': 20798362}, {'photo_id': 1339524078, 'portfolio_id': 20798362}, {'photo_id': 1339524075, 'portfolio_id': 20798362}, {'photo_id': 1339524071, 'portfolio_id': 20798362}, {'photo_id': 1339524067, 'portfolio_id': 20798362}, {'photo_id': 1339524063, 'portfolio_id': 20798362}, {'photo_id': 1339524059, 'portfolio_id': 20798362}, {'photo_id': 1339524012, 'portfolio_id': 20798362}, {'photo_id': 1339524008, 'portfolio_id': 20798362}, {'photo_id': 1339524005, 'portfolio_id': 20798362}, {'photo_id': 1339524001, 'portfolio_id': 20798362}, {'photo_id': 1339523987, 'portfolio_id': 20798362}, {'photo_id': 1339523984, 'portfolio_id': 20798362}, {'photo_id': 1339523980, 'portfolio_id': 20798362}, {'photo_id': 1339523977, 'portfolio_id': 20798362}, {'photo_id': 1339523975, 'portfolio_id': 20798362}, {'photo_id': 1339523972, 'portfolio_id': 20798362}, {'photo_id': 1339523942, 'portfolio_id': 20798362}, {'photo_id': 1339523939, 'portfolio_id': 20798362}, {'photo_id': 1339523935, 'portfolio_id': 20798362}, {'photo_id': 1339523903, 'portfolio_id': 20798362}, {'photo_id': 1339523900, 'portfolio_id': 20798362}, {'photo_id': 1339523895, 'portfolio_id': 20798362}, {'photo_id': 1339523890, 'portfolio_id': 20798362}, {'photo_id': 1339523886, 'portfolio_id': 20798362}, {'photo_id': 1339523883, 'portfolio_id': 20798362}, {'photo_id': 1339523866, 'portfolio_id': 20798362}, {'photo_id': 1339523832, 'portfolio_id': 20798362}, {'photo_id': 1339523828, 'portfolio_id': 20798362}, {'photo_id': 1339523791, 'portfolio_id': 20798362}, {'photo_id': 1339523788, 'portfolio_id': 20798362}, {'photo_id': 1339523382, 'portfolio_id': 20798362}, {'photo_id': 1339523380, 'portfolio_id': 20798362}, {'photo_id': 1339523376, 'portfolio_id': 20798362}, {'photo_id': 1339523373, 'portfolio_id': 20798362}, {'photo_id': 1339523362, 'portfolio_id': 20798362}, {'photo_id': 1339523354, 'portfolio_id': 20798362}, {'photo_id': 1339523351, 'portfolio_id': 20798362}, {'photo_id': 1339523346, 'portfolio_id': 20798362}, {'photo_id': 1339523341, 'portfolio_id': 20798362}, {'photo_id': 1339523337, 'portfolio_id': 20798362}, {'photo_id': 1339523297, 'portfolio_id': 20798362}, {'photo_id': 1339523292, 'portfolio_id': 20798362}, {'photo_id': 1339523287, 'portfolio_id': 20798362}, {'photo_id': 1339523281, 'portfolio_id': 20798362}, {'photo_id': 1339523278, 'portfolio_id': 20798362}, {'photo_id': 1339523274, 'portfolio_id': 20798362}, {'photo_id': 1339523238, 'portfolio_id': 20798362}, {'photo_id': 1339523233, 'portfolio_id': 20798362}, {'photo_id': 1339523222, 'portfolio_id': 20798362}, {'photo_id': 1339523218, 'portfolio_id': 20798362}, {'photo_id': 1339523191, 'portfolio_id': 20798362}, {'photo_id': 1339523187, 'portfolio_id': 20798362}, {'photo_id': 1339523183, 'portfolio_id': 20798362}, {'photo_id': 1339523179, 'portfolio_id': 20798362}, {'photo_id': 1339523172, 'portfolio_id': 20798362}, {'photo_id': 1339523159, 'portfolio_id': 20798362}, {'photo_id': 1339523099, 'portfolio_id': 20798362}, {'photo_id': 1339523085, 'portfolio_id': 20798362}, {'photo_id': 1339523024, 'portfolio_id': 20798362}, {'photo_id': 1339523020, 'portfolio_id': 20798362}, {'photo_id': 1339523017, 'portfolio_id': 20798362}, {'photo_id': 1339522714, 'portfolio_id': 20798362}, {'photo_id': 1339522711, 'portfolio_id': 20798362}, {'photo_id': 1339522708, 'portfolio_id': 20798362}, {'photo_id': 1339522704, 'portfolio_id': 20798362}] map_portfolio_id_photo_id: {20798362: [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059, 1339524012, 1339524008, 1339524005, 1339524001, 1339523987, 1339523984, 1339523980, 1339523977, 1339523975, 1339523972, 1339523942, 1339523939, 1339523935, 1339523903, 1339523900, 1339523895, 1339523890, 1339523886, 1339523883, 1339523866, 1339523832, 1339523828, 1339523791, 1339523788, 1339523382, 1339523380, 1339523376, 1339523373, 1339523362, 1339523354, 1339523351, 1339523346, 1339523341, 1339523337, 1339523297, 1339523292, 1339523287, 1339523281, 1339523278, 1339523274, 1339523238, 1339523233, 1339523222, 1339523218, 1339523191, 1339523187, 1339523183, 1339523179, 1339523172, 1339523159, 1339523099, 1339523085, 1339523024, 1339523020, 1339523017, 1339522714, 1339522711, 1339522708, 1339522704]} ##### 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.01612091064453125 #### 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 Tue Feb 25 10:30: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 (20798362) 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 : 20798362 get user id for portfolio 20798362 get sub ptf for main ptf 20798362, type 3726 and hashtags ['mal_croppe', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'metal', 'Carton_brun', 'Carton_gris', 'kraft', 'plastique', 'cartonnette', 'papier', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20798362 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','autre_refus','environnement','metal','Carton_brun','Carton_gris','kraft','plastique','cartonnette','papier','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20798362 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','autre_refus','environnement','metal','Carton_brun','Carton_gris','kraft','plastique','cartonnette','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20798362, 'sub_port_id': 20798436, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436411, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'autre_refus': {'main_port_id': 20798362, 'sub_port_id': 20798437, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436412, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'metal': {'main_port_id': 20798362, 'sub_port_id': 20798438, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436413, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'cartonnette': {'main_port_id': 20798362, 'sub_port_id': 20798439, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436414, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'Carton_gris': {'main_port_id': 20798362, 'sub_port_id': 20798440, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436415, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'plastique': {'main_port_id': 20798362, 'sub_port_id': 20798441, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436416, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 20798362, 'sub_port_id': 20798442, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436417, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'Carton_brun': {'main_port_id': 20798362, 'sub_port_id': 20798443, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436418, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'environnement': {'main_port_id': 20798362, 'sub_port_id': 20798444, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436419, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'mal_croppe': {'main_port_id': 20798362, 'sub_port_id': 20798445, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436420, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'papier': {'main_port_id': 20798362, 'sub_port_id': 20798446, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436421, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}, 'kraft': {'main_port_id': 20798362, 'sub_port_id': 20798447, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436422, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20798436 , 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=20798362 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 (20798436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798437 , 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=20798362 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 (20798437) result : ((1339523303,), (1339523304,), (1339523320,), (1339523321,), (1339523910,), (1339523911,), (1339524040,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798438 , 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=20798362 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 (20798438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798439 , 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=20798362 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 (20798439) result : ((1339523309,), (1339523326,), (1339523913,), (1339523914,), (1339523915,), (1339523950,), (1339523951,), (1339524045,), (1339524046,), (1339524047,), (1339524048,), (1339524111,), (1339524112,), (1339524119,), (1339524120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798440 , 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=20798362 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 (20798440) result : ((1339523306,), (1339523307,), (1339523308,), (1339523323,), (1339523324,), (1339523356,), (1339523675,), (1339523834,), (1339523912,), (1339523963,), (1339524024,), (1339524025,), (1339524041,), (1339524042,), (1339524043,), (1339524109,), (1339524110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798441 , 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=20798362 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 (20798441) result : ((1339523314,), (1339523713,), (1339523917,), (1339523954,), (1339523965,), (1339524050,), (1339524114,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798442 , 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=20798362 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 (20798442) result : ((1339523302,), (1339523318,), (1339523319,), (1339523355,), (1339523831,), (1339523907,), (1339523908,), (1339523909,), (1339523949,), (1339524038,), (1339524039,), (1339524108,), (1339524117,), (1339524118,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798443 , 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=20798362 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 (20798443) result : ((1339523311,), (1339523312,), (1339523313,), (1339523327,), (1339523358,), (1339523699,), (1339523854,), (1339523874,), (1339523916,), (1339523952,), (1339523953,), (1339524049,), (1339524113,), (1339524121,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798444 , 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=20798362 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 (20798444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798445 , 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=20798362 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 (20798445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798446 , 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=20798362 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 (20798446) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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 20798447 , 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=20798362 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 (20798447) result : ((1339523918,), (1339523919,), (1339523966,), (1339523967,), (1339524115,), (1339524116,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20798362) result : ((1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) 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 (1339523900) 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`=20798362 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','autre_refus','environnement','metal','Carton_brun','Carton_gris','kraft','plastique','cartonnette','papier','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20798362 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','autre_refus','environnement','metal','Carton_brun','Carton_gris','kraft','plastique','cartonnette','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20798362, 'sub_port_id': 20798448, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436423, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'autre_refus': {'main_port_id': 20798362, 'sub_port_id': 20798449, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436424, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'metal': {'main_port_id': 20798362, 'sub_port_id': 20798450, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436425, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'cartonnette': {'main_port_id': 20798362, 'sub_port_id': 20798451, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436426, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'Carton_gris': {'main_port_id': 20798362, 'sub_port_id': 20798452, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436427, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'plastique': {'main_port_id': 20798362, 'sub_port_id': 20798453, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436428, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 20798362, 'sub_port_id': 20798454, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436429, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'Carton_brun': {'main_port_id': 20798362, 'sub_port_id': 20798455, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436430, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'environnement': {'main_port_id': 20798362, 'sub_port_id': 20798456, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436431, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'mal_croppe': {'main_port_id': 20798362, 'sub_port_id': 20798457, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436432, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'papier': {'main_port_id': 20798362, 'sub_port_id': 20798458, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436433, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}, 'kraft': {'main_port_id': 20798362, 'sub_port_id': 20798459, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13436434, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 19, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20798459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20798447 lien utilise dans velours : https://www.fotonower.com/velours/20798448,20798449,20798450,20798451,20798452,20798453,20798454,20798455,20798456,20798457,20798458,20798459?tags=flou,autre_refus,metal,cartonnette,Carton_gris,plastique,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,papier,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20798362]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] map_info['map_portfolio_photo'] : {20798362: [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059, 1339524012, 1339524008, 1339524005, 1339524001, 1339523987, 1339523984, 1339523980, 1339523977, 1339523975, 1339523972, 1339523942, 1339523939, 1339523935, 1339523903, 1339523900, 1339523895, 1339523890, 1339523886, 1339523883, 1339523866, 1339523832, 1339523828, 1339523791, 1339523788, 1339523382, 1339523380, 1339523376, 1339523373, 1339523362, 1339523354, 1339523351, 1339523346, 1339523341, 1339523337, 1339523297, 1339523292, 1339523287, 1339523281, 1339523278, 1339523274, 1339523238, 1339523233, 1339523222, 1339523218, 1339523191, 1339523187, 1339523183, 1339523179, 1339523172, 1339523159, 1339523099, 1339523085, 1339523024, 1339523020, 1339523017, 1339522714, 1339522711, 1339522708, 1339522704]} final : False mtd_id 4302 list_pids : [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] Looping around the photos to save general results len do output : 1 /20798362. 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, '2612373') ('4302', '20798362', '1339524105', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524099', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524096', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524092', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524090', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524078', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524075', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524071', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524067', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524063', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524059', None, None, None, None, None, '2612373') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20798362', "{'flou': 20798436, 'autre_refus': 20798437, 'metal': 20798438, 'cartonnette': 20798439, 'Carton_gris': 20798440, 'plastique': 20798441, 'Teint_Dans_La_Masse': 20798442, 'Carton_brun': 20798443, 'environnement': 20798444, 'mal_croppe': 20798445, 'papier': 20798446, 'kraft': 20798447}", None, None, None, None, '2612373'), ('4302', '20798362', '1339524105', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524099', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524096', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524092', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524090', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524078', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524075', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524071', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524067', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524063', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524059', None, None, None, None, None, '2612373')] time used for this insertion : 0.013544797897338867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4811394214630127 time spend to save output : 0.013912677764892578 total time spend for step 1 : 0.4950520992279053 step2:final Tue Feb 25 10:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20798362) 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 20798362 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339522714,1339522711,1339522708,1339522704,1339523099,1339523085,1339523024,1339523020,1339523017,1339523191,1339523187,1339523183,1339523179,1339523172,1339523159,1339523238,1339523233,1339523222,1339523218,1339523297,1339523292,1339523287,1339523281,1339523278,1339523274,1339523354,1339523351,1339523346,1339523341,1339523337,1339523382,1339523362,1339523380,1339523376,1339523373,1339523866,1339523832,1339523828,1339523791,1339523788,1339523903,1339523900,1339523895,1339523890,1339523886,1339523883,1339523942,1339523939,1339523935,1339523987,1339523984,1339523980,1339523977,1339523975,1339523972,1339524012,1339524008,1339524005,1339524001,1339524078,1339524075,1339524071,1339524067,1339524063,1339524059,1339524105,1339524099,1339524096,1339524092,1339524090); 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([20798362]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} new output for save of step final : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] map_info['map_portfolio_photo'] : {20798362: [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059, 1339524012, 1339524008, 1339524005, 1339524001, 1339523987, 1339523984, 1339523980, 1339523977, 1339523975, 1339523972, 1339523942, 1339523939, 1339523935, 1339523903, 1339523900, 1339523895, 1339523890, 1339523886, 1339523883, 1339523866, 1339523832, 1339523828, 1339523791, 1339523788, 1339523382, 1339523380, 1339523376, 1339523373, 1339523362, 1339523354, 1339523351, 1339523346, 1339523341, 1339523337, 1339523297, 1339523292, 1339523287, 1339523281, 1339523278, 1339523274, 1339523238, 1339523233, 1339523222, 1339523218, 1339523191, 1339523187, 1339523183, 1339523179, 1339523172, 1339523159, 1339523099, 1339523085, 1339523024, 1339523020, 1339523017, 1339522714, 1339522711, 1339522708, 1339522704]} final : False mtd_id 4302 list_pids : [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] Looping around the photos to save general results len do output : 11 /1339524105.Didn't retrieve data . /1339524099.Didn't retrieve data . /1339524096.Didn't retrieve data . /1339524092.Didn't retrieve data . /1339524090.Didn't retrieve data . /1339524078.Didn't retrieve data . /1339524075.Didn't retrieve data . /1339524071.Didn't retrieve data . /1339524067.Didn't retrieve data . /1339524063.Didn't retrieve data . /1339524059.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, '2612373') ('4302', '20798362', '1339524105', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524099', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524096', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524092', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524090', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524078', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524075', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524071', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524067', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524063', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524059', None, None, None, None, None, '2612373') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20798362', '1339524105', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524099', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524096', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524092', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524090', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524078', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524075', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524071', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524067', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524063', '0.04648261566553525', None, None, None, None, '2612373'), ('4302', '20798362', '1339524059', '0.04648261566553525', None, None, None, None, '2612373')] time used for this insertion : 0.013442516326904297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07102751731872559 time spend to save output : 0.014163732528686523 total time spend for step 2 : 0.08519124984741211 step3:velours_tree Tue Feb 25 10:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20798362: [{'flou': 20798436, 'autre_refus': 20798437, 'metal': 20798438, 'cartonnette': 20798439, 'Carton_gris': 20798440, 'plastique': 20798441, 'Teint_Dans_La_Masse': 20798442, 'Carton_brun': 20798443, 'environnement': 20798444, 'mal_croppe': 20798445, 'papier': 20798446, 'kraft': 20798447}]} input_args_next_step : {20798362: ()} output_args : {20798362: [{'flou': 20798436, 'autre_refus': 20798437, 'metal': 20798438, 'cartonnette': 20798439, 'Carton_gris': 20798440, 'plastique': 20798441, 'Teint_Dans_La_Masse': 20798442, 'Carton_brun': 20798443, 'environnement': 20798444, 'mal_croppe': 20798445, 'papier': 20798446, 'kraft': 20798447}]} args : 20798362 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 : ({'flou': 20798436, 'autre_refus': 20798437, 'metal': 20798438, 'cartonnette': 20798439, 'Carton_gris': 20798440, 'plastique': 20798441, 'Teint_Dans_La_Masse': 20798442, 'Carton_brun': 20798443, 'environnement': 20798444, 'mal_croppe': 20798445, 'papier': 20798446, 'kraft': 20798447},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20798362) 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([20798362]) 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.32523536682128906 time spend to save output : 7.224082946777344e-05 total time spend for step 3 : 0.32530760765075684 step4:send_mail_cod Tue Feb 25 10:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} input_args_next_step : {1339524105: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524105 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524099 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524096 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524092 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524090 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524078 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524075 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524071 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524067 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524063 depend.output_id : 0 input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ()} output_args : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',)} args : 1339524059 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 : {20798362: [{'flou': 20798436, 'autre_refus': 20798437, 'metal': 20798438, 'cartonnette': 20798439, 'Carton_gris': 20798440, 'plastique': 20798441, 'Teint_Dans_La_Masse': 20798442, 'Carton_brun': 20798443, 'environnement': 20798444, 'mal_croppe': 20798445, 'papier': 20798446, 'kraft': 20798447}]} input_args_next_step : {1339524105: ('0.04648261566553525',), 1339524099: ('0.04648261566553525',), 1339524096: ('0.04648261566553525',), 1339524092: ('0.04648261566553525',), 1339524090: ('0.04648261566553525',), 1339524078: ('0.04648261566553525',), 1339524075: ('0.04648261566553525',), 1339524071: ('0.04648261566553525',), 1339524067: ('0.04648261566553525',), 1339524063: ('0.04648261566553525',), 1339524059: ('0.04648261566553525',), 20798362: ()} output_args : {20798362: [{'flou': 20798436, 'autre_refus': 20798437, 'metal': 20798438, 'cartonnette': 20798439, 'Carton_gris': 20798440, 'plastique': 20798441, 'Teint_Dans_La_Masse': 20798442, 'Carton_brun': 20798443, 'environnement': 20798444, 'mal_croppe': 20798445, 'papier': 20798446, 'kraft': 20798447}]} args : 20798362 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 :12, first value : ('0.04648261566553525',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20798362) 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 (1339524105,1339524099,1339524096,1339524092,1339524090,1339524078,1339524075,1339524071,1339524067,1339524063,1339524059) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339524059 begin to download photo : 1339524071 begin to download photo : 1339524090 begin to download photo : 1339524099 download finish for photo 1339524099 begin to download photo : 1339524105 download finish for photo 1339524090 begin to download photo : 1339524092 download finish for photo 1339524071 begin to download photo : 1339524075 download finish for photo 1339524059 begin to download photo : 1339524063 download finish for photo 1339524092 begin to download photo : 1339524096 download finish for photo 1339524075 begin to download photo : 1339524078 download finish for photo 1339524105 download finish for photo 1339524063 begin to download photo : 1339524067 download finish for photo 1339524078 download finish for photo 1339524096 download finish for photo 1339524067 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette207984361740475858/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20798362_25-02-2025_10_30_58.pdf 20798436 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=20798436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207984361740475858 20798437 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=20798437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339523303: '1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299404_0.png', 1339523304: '1740475213_1252773_1339523179_4211ca5169e58acf3bf553fd7d39753b_rle_crop_3686299524_0.png', 1339523320: '1740475231_1253033_1339523085_3979aa01ec067279ce9cc038881557cc_rle_crop_3686300933_0.png', 1339523321: '1740475231_1253033_1339523020_612594c1806238d069dddd621a525dcf_rle_crop_3686301496_0.png', 1339523910: '1740475433_1255866_1339523287_b70e522e9b7c92d71bdfb6c5f93bb00a_rle_crop_3686302801_0.png', 1339523911: '1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302848_0.png', 1339524040: '1740475634_1258887_1339523895_4e57cd30bcc9e0e58781733ebf731d20_rle_crop_3686304320_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1dd898858fb2e65773fb384802d0b78e_7180170.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c860bb19557d0ea3cf68f12d982acc97_41530770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/109605af8f49c07939c26752300fa42a_39425930.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/53b3e71c20539bd7b5988e9a52af6f10_20453101.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ab077920b92d5c942132041b54d08e9c_24648993.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0bffc515842adcfe5c185f9dbf91bf98_16541147.png change filename to text .imagette207984371740475858/ imagette207984371740475858/1740475231_1253033_1339523020_612594c1806238d069dddd621a525dcf_rle_crop_3686301496_0.png.png imagette207984371740475858/1740475231_1253033_1339523085_3979aa01ec067279ce9cc038881557cc_rle_crop_3686300933_0.png.png imagette207984371740475858/1740475213_1252773_1339523179_4211ca5169e58acf3bf553fd7d39753b_rle_crop_3686299524_0.png.png imagette207984371740475858/1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302848_0.png.png imagette207984371740475858/1740475433_1255866_1339523287_b70e522e9b7c92d71bdfb6c5f93bb00a_rle_crop_3686302801_0.png.png imagette207984371740475858/1740475634_1258887_1339523895_4e57cd30bcc9e0e58781733ebf731d20_rle_crop_3686304320_0.png.png imagette207984371740475858/1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299404_0.png.png imagette207984381740475859/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a4cb726c96a245711b40f6c39168faa7_5134286.png imagette207984371740475858 20798438 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=20798438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207984381740475859 20798439 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=20798439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339523309: '1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299407_0.png', 1339523326: '1740475231_1253033_1339523085_3979aa01ec067279ce9cc038881557cc_rle_crop_3686300936_0.png', 1339523913: '1740475433_1255866_1339523278_3c910ceba34f1d3e973f5f918e6a7117_rle_crop_3686302838_0.png', 1339523914: '1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302849_0.png', 1339523915: '1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302852_0.png', 1339523950: '1740475511_1257218_1339523828_4d61605ff3927511bde8819dd19de946_rle_crop_3686303800_0.png', 1339523951: '1740475511_1257218_1339523791_52dcb1d227b87130938f820da6ef9faa_rle_crop_3686303808_0.png', 1339524045: '1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304278_0.png', 1339524046: '1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304282_0.png', 1339524047: '1740475634_1258887_1339523900_a4b62e597d97859f32ba9643a469f5d7_rle_crop_3686304308_0.png', 1339524048: '1740475634_1258887_1339523895_4e57cd30bcc9e0e58781733ebf731d20_rle_crop_3686304321_0.png', 1339524111: '1740475752_1260202_1339524012_d4494451f25245b614408df11e822bf5_rle_crop_3686304561_0.png', 1339524112: '1740475752_1260202_1339523980_5b02be9d9081883e9f7be8604cbb5817_rle_crop_3686304650_0.png', 1339524119: '1740475771_1260394_1339524008_dd26ff6410c961251c503586337c81b0_rle_crop_3686304707_0.png', 1339524120: '1740475771_1260394_1339524008_dd26ff6410c961251c503586337c81b0_rle_crop_3686304705_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0dc601b4c070007ba209e47f9b9840ed_93949743.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d3fb9aa9405f7da13094c6b10f147f6a_7422792.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/66e084109d435d077e2044b91ce1ba9a_97942367.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/04c273e32fc5f5abc2f432de7a951c44_72183163.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4fe357bf6c5b6c6cce4cf38ed5ce92ea_77646573.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/238525cf576d0403b22b962febe98027_31647622.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3231a2f697304f214cbcd20e4a16176a_8080274.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ce8932430d1a351c052048a9c6490d8d_24366241.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c6dafa37e43068db20ef5b1652180d11_3460640.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/874b82ff03f5a1bba4e18cb0f01e7e85_28706373.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ec171c2befa119a9d25693fd048816ac_68097989.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7cae580dbfb524890510a53bb09fc26c_12829456.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/59de61bd28eb345fdb182a49a662adce_53698095.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/2d95d32e1d8ff32cc3a0f2646c17b833_71459285.png change filename to text .imagette207984391740475859/ imagette207984391740475859/1740475752_1260202_1339524012_d4494451f25245b614408df11e822bf5_rle_crop_3686304561_0.png.png imagette207984391740475859/1740475511_1257218_1339523828_4d61605ff3927511bde8819dd19de946_rle_crop_3686303800_0.png.png imagette207984391740475859/1740475634_1258887_1339523900_a4b62e597d97859f32ba9643a469f5d7_rle_crop_3686304308_0.png.png imagette207984391740475859/1740475231_1253033_1339523085_3979aa01ec067279ce9cc038881557cc_rle_crop_3686300936_0.png.png imagette207984391740475859/1740475511_1257218_1339523791_52dcb1d227b87130938f820da6ef9faa_rle_crop_3686303808_0.png.png imagette207984391740475859/1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302849_0.png.png imagette207984391740475859/1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304282_0.png.png imagette207984391740475859/1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304278_0.png.png imagette207984391740475859/1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302852_0.png.png imagette207984391740475859/1740475433_1255866_1339523278_3c910ceba34f1d3e973f5f918e6a7117_rle_crop_3686302838_0.png.png imagette207984391740475859/1740475752_1260202_1339523980_5b02be9d9081883e9f7be8604cbb5817_rle_crop_3686304650_0.png.png imagette207984391740475859/1740475771_1260394_1339524008_dd26ff6410c961251c503586337c81b0_rle_crop_3686304705_0.png.png imagette207984391740475859/1740475634_1258887_1339523895_4e57cd30bcc9e0e58781733ebf731d20_rle_crop_3686304321_0.png.png imagette207984391740475859/1740475771_1260394_1339524008_dd26ff6410c961251c503586337c81b0_rle_crop_3686304707_0.png.png imagette207984391740475859/1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299407_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/222f6978dc05253c0bac2e770420312b_5407756.png imagette207984391740475859 20798441 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=20798441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339523314: '1740475213_1252773_1339523179_4211ca5169e58acf3bf553fd7d39753b_rle_crop_3686299527_0.png', 1339523713: '1740475352_1254681_1339523222_87c5fd9881659d59883b01e75670bf6c_rle_crop_3686302887_0.png', 1339523917: '1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302791_0.png', 1339523954: '1740475511_1257218_1339523828_4d61605ff3927511bde8819dd19de946_rle_crop_3686303801_0.png', 1339523965: '1740475531_1257507_1339523376_13bf80a6d509da5c06e9cdb866debe6a_rle_crop_3686303978_0.png', 1339524050: '1740475634_1258887_1339523900_a4b62e597d97859f32ba9643a469f5d7_rle_crop_3686304315_0.png', 1339524114: '1740475752_1260202_1339523980_5b02be9d9081883e9f7be8604cbb5817_rle_crop_3686304653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a37a35fd79a3919ed7ca0198783e26b8_74327037.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bcfae4991c9917e768e6a557065ec658_65856386.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c30796ee7bf739b86e438beb51ca8b66_69652341.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/76018aaaf82fe3c54290443c190eb2ed_40273254.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9c2b66996517b24ad7daa72dab51384a_5178105.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/cb4b4d719a31a192a06f720240d3991f_91300623.png change filename to text .imagette207984411740475859/ imagette207984411740475859/1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302791_0.png.png imagette207984411740475859/1740475634_1258887_1339523900_a4b62e597d97859f32ba9643a469f5d7_rle_crop_3686304315_0.png.png imagette207984411740475859/1740475752_1260202_1339523980_5b02be9d9081883e9f7be8604cbb5817_rle_crop_3686304653_0.png.png imagette207984411740475859/1740475511_1257218_1339523828_4d61605ff3927511bde8819dd19de946_rle_crop_3686303801_0.png.png imagette207984411740475859/1740475213_1252773_1339523179_4211ca5169e58acf3bf553fd7d39753b_rle_crop_3686299527_0.png.png imagette207984411740475859/1740475352_1254681_1339523222_87c5fd9881659d59883b01e75670bf6c_rle_crop_3686302887_0.png.png imagette207984411740475859/1740475531_1257507_1339523376_13bf80a6d509da5c06e9cdb866debe6a_rle_crop_3686303978_0.png.png imagette207984451740475860/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/aeb634c71749ce23c4587c7b39624120_58785964.png imagette207984411740475859 20798445 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=20798445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207984451740475860 20798447 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=20798447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339523918: '1740475433_1255866_1339523354_edc261ee2b070210e21fdc91605fcab6_rle_crop_3686303485_0.png', 1339523919: '1740475433_1255866_1339523287_b70e522e9b7c92d71bdfb6c5f93bb00a_rle_crop_3686302799_0.png', 1339523966: '1740475531_1257507_1339523373_db670a5cceaa2f8600097eb7b82804a4_rle_crop_3686303998_0.png', 1339523967: '1740475531_1257507_1339523362_6912eed181333c100617df15f98128a1_rle_crop_3686304014_0.png', 1339524115: '1740475752_1260202_1339523977_5a20acfc2b679136ed1bbafba67e011c_rle_crop_3686304668_0.png', 1339524116: '1740475752_1260202_1339523975_866b3f91be3db4abe66742b6824443b7_rle_crop_3686304680_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4c66d68983691e233e7d7c9e11588cc9_89982127.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/aa2e3d0b13f0a4dea4213d2ab80efbf1_8625333.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/083888aa67556c208db7648c8fdccfd9_53572707.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/2e6b304ad7c096a0bdbfa0e2440a27b8_4786568.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9ddb83e54944d98e5ef9ced88f6c9c68_81296948.png change filename to text .imagette207984471740475860/ imagette207984471740475860/1740475752_1260202_1339523975_866b3f91be3db4abe66742b6824443b7_rle_crop_3686304680_0.png.png imagette207984471740475860/1740475433_1255866_1339523354_edc261ee2b070210e21fdc91605fcab6_rle_crop_3686303485_0.png.png imagette207984471740475860/1740475433_1255866_1339523287_b70e522e9b7c92d71bdfb6c5f93bb00a_rle_crop_3686302799_0.png.png imagette207984471740475860/1740475531_1257507_1339523362_6912eed181333c100617df15f98128a1_rle_crop_3686304014_0.png.png imagette207984471740475860/1740475531_1257507_1339523373_db670a5cceaa2f8600097eb7b82804a4_rle_crop_3686303998_0.png.png imagette207984471740475860/1740475752_1260202_1339523977_5a20acfc2b679136ed1bbafba67e011c_rle_crop_3686304668_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/91c7374dcef210e72dce63bb4a6fe6bc_63462320.png imagette207984471740475860 20798440 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=20798440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339523912: '1740475433_1255866_1339523278_3c910ceba34f1d3e973f5f918e6a7117_rle_crop_3686302836_0.png', 1339524110: '1740475752_1260202_1339523977_5a20acfc2b679136ed1bbafba67e011c_rle_crop_3686304666_0.png', 1339524109: '1740475752_1260202_1339524012_d4494451f25245b614408df11e822bf5_rle_crop_3686304560_0.png', 1339524043: '1740475634_1258887_1339523886_2ad7728dbf51f4309f1f019f8d67c4a0_rle_crop_3686304344_0.png', 1339524042: '1740475634_1258887_1339523890_03a2cf4a6f99c1d1d9c5b5410364c8d8_rle_crop_3686304338_0.png', 1339524041: '1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304281_0.png', 1339524025: '1740475653_1259100_1339523935_9850fb51066b1ae3994b67263a6f1909_rle_crop_3686304297_0.png', 1339524024: '1740475653_1259100_1339523935_9850fb51066b1ae3994b67263a6f1909_rle_crop_3686304293_0.png', 1339523963: '1740475531_1257507_1339523380_30b1c8382de0694d3d9b40d97bd92702_rle_crop_3686303974_0.png', 1339523306: '1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299405_0.png', 1339523834: '1740475372_1254925_1339523099_9298ea0625020b843360bcc04f6870b7_rle_crop_3686302476_0.png', 1339523675: '1740475352_1254681_1339523222_87c5fd9881659d59883b01e75670bf6c_rle_crop_3686302881_0.png', 1339523356: '1740475273_1253562_1339523099_9298ea0625020b843360bcc04f6870b7_rle_crop_3686302476_0.png', 1339523324: '1740475231_1253033_1339523024_aedddd6cac8ff49e1ca0bb0e76136417_rle_crop_3686301484_0.png', 1339523323: '1740475231_1253033_1339523024_aedddd6cac8ff49e1ca0bb0e76136417_rle_crop_3686301483_0.png', 1339523308: '1740475213_1252773_1339523159_deda386d5e71620d16c5644215a9665c_rle_crop_3686299555_0.png', 1339523307: '1740475213_1252773_1339523172_c614c1fb9c221155304e5db8650246ea_rle_crop_3686299538_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/876fb014103eba74c045d2471c5ac389_40569984.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9b93549c0731d1428452e46f0d5b2596_83797522.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/315ade01bde2282eaaa577aca892cac6_94270846.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/488bbf849074e3615dd955e38b56c300_67834439.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ac4a7ee9f855764f739cc5603d43351a_52068647.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dbe2dbc3a009a4064143904ee44ab7ed_18993884.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/57171b48372297cf335d96b681164b69_59308517.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bf9822dd17cb4a32c1666d9dc1df54db_56468193.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/713ae5f67041348d2fa7f3426885fd21_53516100.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/065536263ec5be48fb0b0f296d4670e6_67935803.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6bd65d98b7d9b624924fbed6a36b82b9_15633263.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f738ad7cab9a19c6cf0d12f46edcf9f3_59696363.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6bd65d98b7d9b624924fbed6a36b82b9_5652067.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/68dde0fbdfd08e4833eaf3b1e2af67d0_43691700.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/97e7f9da6c3239aa7a496a2822cf27ec_29017567.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6cb71466c08965a237b9174f57af0987_9771596.png change filename to text .imagette207984401740475860/ imagette207984401740475860/1740475634_1258887_1339523886_2ad7728dbf51f4309f1f019f8d67c4a0_rle_crop_3686304344_0.png.png imagette207984401740475860/1740475231_1253033_1339523024_aedddd6cac8ff49e1ca0bb0e76136417_rle_crop_3686301483_0.png.png imagette207984401740475860/1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299405_0.png.png imagette207984401740475860/1740475531_1257507_1339523380_30b1c8382de0694d3d9b40d97bd92702_rle_crop_3686303974_0.png.png imagette207984401740475860/1740475653_1259100_1339523935_9850fb51066b1ae3994b67263a6f1909_rle_crop_3686304293_0.png.png imagette207984401740475860/1740475213_1252773_1339523172_c614c1fb9c221155304e5db8650246ea_rle_crop_3686299538_0.png.png imagette207984401740475860/1740475752_1260202_1339524012_d4494451f25245b614408df11e822bf5_rle_crop_3686304560_0.png.png imagette207984401740475860/1740475231_1253033_1339523024_aedddd6cac8ff49e1ca0bb0e76136417_rle_crop_3686301484_0.png.png imagette207984401740475860/1740475634_1258887_1339523890_03a2cf4a6f99c1d1d9c5b5410364c8d8_rle_crop_3686304338_0.png.png imagette207984401740475860/1740475352_1254681_1339523222_87c5fd9881659d59883b01e75670bf6c_rle_crop_3686302881_0.png.png imagette207984401740475860/1740475213_1252773_1339523159_deda386d5e71620d16c5644215a9665c_rle_crop_3686299555_0.png.png imagette207984401740475860/1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304281_0.png.png imagette207984401740475860/1740475752_1260202_1339523977_5a20acfc2b679136ed1bbafba67e011c_rle_crop_3686304666_0.png.png imagette207984401740475860/1740475273_1253562_1339523099_9298ea0625020b843360bcc04f6870b7_rle_crop_3686302476_0.png.png imagette207984401740475860/1740475372_1254925_1339523099_9298ea0625020b843360bcc04f6870b7_rle_crop_3686302476_0.png.png imagette207984401740475860/1740475433_1255866_1339523278_3c910ceba34f1d3e973f5f918e6a7117_rle_crop_3686302836_0.png.png imagette207984401740475860/1740475653_1259100_1339523935_9850fb51066b1ae3994b67263a6f1909_rle_crop_3686304297_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f0fd0bd8f03528cc201e46646a28a5be_3598499.png imagette207984401740475860 20798442 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=20798442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339523302: '1740475213_1252773_1339523159_deda386d5e71620d16c5644215a9665c_rle_crop_3686299565_0.png', 1339523318: '1740475231_1253033_1339523085_3979aa01ec067279ce9cc038881557cc_rle_crop_3686300932_0.png', 1339523319: '1740475231_1253033_1339523020_612594c1806238d069dddd621a525dcf_rle_crop_3686301498_0.png', 1339523355: '1740475273_1253562_1339522708_b32463c6194fa3df9a0d11ce33c6e2b7_rle_crop_3686302517_0.png', 1339523831: '1740475372_1254925_1339522708_b32463c6194fa3df9a0d11ce33c6e2b7_rle_crop_3686302517_0.png', 1339523907: '1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302784_0.png', 1339523908: '1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302787_0.png', 1339523909: '1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302853_0.png', 1339523949: '1740475511_1257218_1339523828_4d61605ff3927511bde8819dd19de946_rle_crop_3686303802_0.png', 1339524038: '1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304275_0.png', 1339524039: '1740475634_1258887_1339523890_03a2cf4a6f99c1d1d9c5b5410364c8d8_rle_crop_3686304339_0.png', 1339524108: '1740475752_1260202_1339524012_d4494451f25245b614408df11e822bf5_rle_crop_3686304566_0.png', 1339524117: '1740475771_1260394_1339524005_97af6ffafab9e51b5448df9563789b90_rle_crop_3686304728_0.png', 1339524118: '1740475771_1260394_1339524005_97af6ffafab9e51b5448df9563789b90_rle_crop_3686304726_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/25582877ebcdac2a279a29f0d755a9e9_77360007.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e6ae2d5a9be442aeefce2783be16ad26_57425552.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/506eabeadb8b358fc82ba90d37043985_97647383.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8faba5d05f140db6961a7900aff85937_38595312.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8faba5d05f140db6961a7900aff85937_21085479.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b5721b4d0673cdcb299f847aceb4aead_62070010.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a3b6b909e4ba78160f88f420232b010d_77171738.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e7af67b5b0b11c3bfd29fe3f0f8e566a_1685606.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dba29e874030fb1818779f053351188d_59431192.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f237e60be869b9b00fcedd6c4f588594_17286132.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ff105211e892c3dadc4df5d3ee56cb14_5711723.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7cd67353714aa4e7c018bdfc7ded17c1_58927586.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/88fd6f0ac79f5df05cd4857be1c7aeca_10354873.png change filename to text .imagette207984421740475861/ imagette207984421740475861/1740475634_1258887_1339523890_03a2cf4a6f99c1d1d9c5b5410364c8d8_rle_crop_3686304339_0.png.png imagette207984421740475861/1740475771_1260394_1339524005_97af6ffafab9e51b5448df9563789b90_rle_crop_3686304726_0.png.png imagette207984421740475861/1740475231_1253033_1339523085_3979aa01ec067279ce9cc038881557cc_rle_crop_3686300932_0.png.png imagette207984421740475861/1740475752_1260202_1339524012_d4494451f25245b614408df11e822bf5_rle_crop_3686304566_0.png.png imagette207984421740475861/1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302787_0.png.png imagette207984421740475861/1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302784_0.png.png imagette207984421740475861/1740475433_1255866_1339523274_115a01170e3569fb70697346ea2744aa_rle_crop_3686302853_0.png.png imagette207984421740475861/1740475273_1253562_1339522708_b32463c6194fa3df9a0d11ce33c6e2b7_rle_crop_3686302517_0.png.png imagette207984421740475861/1740475634_1258887_1339523942_d5f55766db3a192f9d85104d82f9c4f0_rle_crop_3686304275_0.png.png imagette207984421740475861/1740475372_1254925_1339522708_b32463c6194fa3df9a0d11ce33c6e2b7_rle_crop_3686302517_0.png.png imagette207984421740475861/1740475511_1257218_1339523828_4d61605ff3927511bde8819dd19de946_rle_crop_3686303802_0.png.png imagette207984421740475861/1740475771_1260394_1339524005_97af6ffafab9e51b5448df9563789b90_rle_crop_3686304728_0.png.png imagette207984421740475861/1740475213_1252773_1339523159_deda386d5e71620d16c5644215a9665c_rle_crop_3686299565_0.png.png imagette207984421740475861/1740475231_1253033_1339523020_612594c1806238d069dddd621a525dcf_rle_crop_3686301498_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/44985ce767c13c4b589d36c8df174ece_68054770.png imagette207984421740475861 20798443 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=20798443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339523311: '1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299412_0.png', 1339523312: '1740475213_1252773_1339523179_4211ca5169e58acf3bf553fd7d39753b_rle_crop_3686299526_0.png', 1339523313: '1740475213_1252773_1339523172_c614c1fb9c221155304e5db8650246ea_rle_crop_3686299542_0.png', 1339523327: '1740475231_1253033_1339523020_612594c1806238d069dddd621a525dcf_rle_crop_3686301492_0.png', 1339523358: '1740475273_1253562_1339522711_db4eff3126478a156ee331df216d5ec7_rle_crop_3686302501_0.png', 1339523699: '1740475352_1254681_1339523233_f56f75a3d51f9979d1c2b30288c58703_rle_crop_3686302871_0.png', 1339523854: '1740475372_1254925_1339522711_db4eff3126478a156ee331df216d5ec7_rle_crop_3686302501_0.png', 1339523874: '1740475391_1255223_1339523337_e365cc8554a7e96b74f3a2bd3f6296f9_rle_crop_3686303249_0.png', 1339523916: '1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302786_0.png', 1339523952: '1740475511_1257218_1339523791_52dcb1d227b87130938f820da6ef9faa_rle_crop_3686303818_0.png', 1339523953: '1740475511_1257218_1339523788_18e80d99c6269dd195809ef6eb1ca1af_rle_crop_3686303937_0.png', 1339524049: '1740475634_1258887_1339523900_a4b62e597d97859f32ba9643a469f5d7_rle_crop_3686304307_0.png', 1339524113: '1740475752_1260202_1339523972_19ad588dfc6ad806c439322373cbaac3_rle_crop_3686304700_0.png', 1339524121: '1740475771_1260394_1339524008_dd26ff6410c961251c503586337c81b0_rle_crop_3686304709_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/2c369351a7fa0f7993e43fd502da4169_9116357.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9f6a5d3134588253c73bbf89549bd763_19072310.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f950d1349a995968358b83501cbecc5d_14148638.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3e47a12add18a1bdf0340d0df0a1c166_75454873.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/07b086d45ae1f35a84c6d62559bd01f8_33615123.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b598aa1d5bd2c604658aeb09c43fe7ca_29220529.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/07b086d45ae1f35a84c6d62559bd01f8_9974824.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/36d6ac761951c9bf18d8d9e391df4054_70652730.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dd5df41f172979b15226f9324c74aca0_50811018.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a689f2a7a1846416a6b7c98e19d0fbf8_85296221.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/963cf1980a377d5808fb5bc74f599806_43675440.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/80b218775676ccb10dfeee994a0cbb42_46437527.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f1764c86bdee76ed97b312af525c03d6_26694597.png change filename to text .imagette207984431740475862/ imagette207984431740475862/1740475511_1257218_1339523791_52dcb1d227b87130938f820da6ef9faa_rle_crop_3686303818_0.png.png imagette207984431740475862/1740475391_1255223_1339523337_e365cc8554a7e96b74f3a2bd3f6296f9_rle_crop_3686303249_0.png.png imagette207984431740475862/1740475231_1253033_1339523020_612594c1806238d069dddd621a525dcf_rle_crop_3686301492_0.png.png imagette207984431740475862/1740475433_1255866_1339523292_b84bcc0b9cda0df3cb1e387abff95260_rle_crop_3686302786_0.png.png imagette207984431740475862/1740475273_1253562_1339522711_db4eff3126478a156ee331df216d5ec7_rle_crop_3686302501_0.png.png imagette207984431740475862/1740475752_1260202_1339523972_19ad588dfc6ad806c439322373cbaac3_rle_crop_3686304700_0.png.png imagette207984431740475862/1740475511_1257218_1339523788_18e80d99c6269dd195809ef6eb1ca1af_rle_crop_3686303937_0.png.png imagette207984431740475862/1740475634_1258887_1339523900_a4b62e597d97859f32ba9643a469f5d7_rle_crop_3686304307_0.png.png imagette207984431740475862/1740475352_1254681_1339523233_f56f75a3d51f9979d1c2b30288c58703_rle_crop_3686302871_0.png.png imagette207984431740475862/1740475213_1252773_1339523187_c10df1062ee1d96f92a9a6cb34a0a3e5_rle_crop_3686299412_0.png.png imagette207984431740475862/1740475213_1252773_1339523179_4211ca5169e58acf3bf553fd7d39753b_rle_crop_3686299526_0.png.png imagette207984431740475862/1740475771_1260394_1339524008_dd26ff6410c961251c503586337c81b0_rle_crop_3686304709_0.png.png imagette207984431740475862/1740475372_1254925_1339522711_db4eff3126478a156ee331df216d5ec7_rle_crop_3686302501_0.png.png imagette207984431740475862/1740475213_1252773_1339523172_c614c1fb9c221155304e5db8650246ea_rle_crop_3686299542_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c51dac2307bf6b6f6e612c67bccbae73_13733197.png imagette207984431740475862 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20798362 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20798448,20798449,20798450,20798451,20798452,20798453,20798454,20798455,20798456,20798457,20798458,20798459?tags=flou,autre_refus,metal,cartonnette,Carton_gris,plastique,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,papier,kraft your option no_mail is active, we will not send the real mail to your client args[1339524105] : ('0.04648261566553525',) no score found for photo 1339524105 We are sending mail with results at report@fotonower.com args[1339524099] : ('0.04648261566553525',) no score found for photo 1339524099 We are sending mail with results at report@fotonower.com args[1339524096] : ('0.04648261566553525',) no score found for photo 1339524096 We are sending mail with results at report@fotonower.com args[1339524092] : ('0.04648261566553525',) no score found for photo 1339524092 We are sending mail with results at report@fotonower.com args[1339524090] : ('0.04648261566553525',) no score found for photo 1339524090 We are sending mail with results at report@fotonower.com args[1339524078] : ('0.04648261566553525',) no score found for photo 1339524078 We are sending mail with results at report@fotonower.com args[1339524075] : ('0.04648261566553525',) no score found for photo 1339524075 We are sending mail with results at report@fotonower.com args[1339524071] : ('0.04648261566553525',) no score found for photo 1339524071 We are sending mail with results at report@fotonower.com args[1339524067] : ('0.04648261566553525',) no score found for photo 1339524067 We are sending mail with results at report@fotonower.com args[1339524063] : ('0.04648261566553525',) no score found for photo 1339524063 We are sending mail with results at report@fotonower.com args[1339524059] : ('0.04648261566553525',) no score found for photo 1339524059 We are sending mail with results at report@fotonower.com refus_total : 0.04648261566553525 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=20798362 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_P20798362_25-02-2025_10_30_58.pdf results_Auto_P20798362_25-02-2025_10_30_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_25-02-2025_10_30_58.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','20798362','results_Auto_P20798362_25-02-2025_10_30_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_25-02-2025_10_30_58.pdf','pdf','','0.34','0.04648261566553525') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20798362]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] map_info['map_portfolio_photo'] : {20798362: [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059, 1339524012, 1339524008, 1339524005, 1339524001, 1339523987, 1339523984, 1339523980, 1339523977, 1339523975, 1339523972, 1339523942, 1339523939, 1339523935, 1339523903, 1339523900, 1339523895, 1339523890, 1339523886, 1339523883, 1339523866, 1339523832, 1339523828, 1339523791, 1339523788, 1339523382, 1339523380, 1339523376, 1339523373, 1339523362, 1339523354, 1339523351, 1339523346, 1339523341, 1339523337, 1339523297, 1339523292, 1339523287, 1339523281, 1339523278, 1339523274, 1339523238, 1339523233, 1339523222, 1339523218, 1339523191, 1339523187, 1339523183, 1339523179, 1339523172, 1339523159, 1339523099, 1339523085, 1339523024, 1339523020, 1339523017, 1339522714, 1339522711, 1339522708, 1339522704]} final : False mtd_id 4302 list_pids : [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] 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, '2612373') ('4302', '20798362', '1339524105', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524099', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524096', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524092', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524090', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524078', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524075', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524071', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524067', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524063', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524059', None, None, None, None, None, '2612373') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20798362', '1339524105', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524099', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524096', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524092', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524090', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524078', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524075', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524071', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524067', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524063', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524059', None, None, None, None, None, '2612373')] time used for this insertion : 0.014423370361328125 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.492467403411865 time spend to save output : 0.014678239822387695 total time spend for step 4 : 6.507145643234253 step5:split_time_score Tue Feb 25 10:31:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20798362'] 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 : [('20798362',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20798362) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339524099: {'path': 'temp/1740475858_299915_1339524099_7b8cb0ea2a06c4acd99d4e921bcab888.jpg', 'extension': 'jpg'}, 1339524105: {'path': 'temp/1740475858_299915_1339524105_377e01391d5b4c812ee9b506f3cf5c6a.jpg', 'extension': 'jpg'}, 1339524071: {'path': 'temp/1740475858_299915_1339524071_bce084320f4e4049369ef478b18e6384.jpg', 'extension': 'jpg'}, 1339524075: {'path': 'temp/1740475858_299915_1339524075_37f94927cc031e66f42b8d8337e267ab.jpg', 'extension': 'jpg'}, 1339524078: {'path': 'temp/1740475858_299915_1339524078_69700f21d29e4c2cc6a4b1d72c53c3f6.jpg', 'extension': 'jpg'}, 1339524090: {'path': 'temp/1740475858_299915_1339524090_5d23f47e17114ce69a78d76d6dfe9493.jpg', 'extension': 'jpg'}, 1339524092: {'path': 'temp/1740475858_299915_1339524092_1f6d339cd155ec5f5b6d12e20334173d.jpg', 'extension': 'jpg'}, 1339524096: {'path': 'temp/1740475858_299915_1339524096_1eadc02cd7ba9e379b5fcdfbe8b46ccd.jpg', 'extension': 'jpg'}, 1339524059: {'path': 'temp/1740475858_299915_1339524059_e9c5ca85e2f83c55ea89d1ea99316144.jpg', 'extension': 'jpg'}, 1339524063: {'path': 'temp/1740475858_299915_1339524063_0eef0b3431fae053416e5c2ad229c1bf.jpg', 'extension': 'jpg'}, 1339524067: {'path': 'temp/1740475858_299915_1339524067_381ee4521204b4a985b7fc8f6d1ad1ec.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 = 20798362; (('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 = 20798362 group by h (('10', 70),) 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=20798362 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 (20798362) 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 (20798362) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20798362 Nombre de photos uploadées : 70 / 23040 (0%) 25022025 20798362 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 25022025 20798362 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1339522714, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/30adcc2197394edddb01601ab4001bd3.jpg', 'username': None, 'uploaded_at': 1740474993, 'text': 'image_25022025_10_15_14_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339522711, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/db4eff3126478a156ee331df216d5ec7.jpg', 'username': None, 'uploaded_at': 1740474993, 'text': 'image_25022025_10_15_24_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339522708, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b32463c6194fa3df9a0d11ce33c6e2b7.jpg', 'username': None, 'uploaded_at': 1740474993, 'text': 'image_25022025_10_15_33_009128m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339522704, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ed106aae4aca23d68a1666851fdf7d05.jpg', 'username': None, 'uploaded_at': 1740474993, 'text': 'image_25022025_10_15_44_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 5.245208740234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.3113021850585938e-05 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003690958023071289 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20798362, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024229764938354492 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630512, 'mtr_portfolio_id': 20796930, 'dashboard_result_id': 9045889, '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_P20796930_25-02-2025_09_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20796935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20796936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20796937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20796938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20796939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20796940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20796941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20796942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20796943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20796944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20796945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20796946, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630512, 'mtr_portfolio_id': 20797353, 'dashboard_result_id': 9045890, '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_P20797353_25-02-2025_10_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797390, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630512, 'mtr_portfolio_id': 20797921, 'dashboard_result_id': 9045891, '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_P20797921_25-02-2025_10_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630512, 'mtr_portfolio_id': 20798362, 'dashboard_result_id': 9045892, '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_P20798362_25-02-2025_10_28_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, '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 = 20796930 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': 2612256, 'mtr_portfolio_id': 20796930, 'created_at': datetime.datetime(2025, 2, 25, 9, 49, 30), 'result': '0.03995147340665584', 'result_long': None, 'result_double': None}] Qualite : 0.03995147340665584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20796930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20796930_25-02-2025_09_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20796930 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_P20796930_25-02-2025_09_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20796935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20796936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20796937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20796938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20796939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20796940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20796941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20796942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20796943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20796944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20796945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20796946, 'pht': 3726}}" where mtr_portfolio_id = 20796930 and dashboard_run_id = 1630512 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`=20796930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9045889, 0.03995147340665584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20796930_25-02-2025_09_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20796935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20796936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20796937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20796938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20796939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20796940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20796941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20796942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20796943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20796944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20796945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20796946, '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 = 20797353 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': 2612289, 'mtr_portfolio_id': 20797353, 'created_at': datetime.datetime(2025, 2, 25, 10, 2, 58), 'result': '0.03292834746427582', 'result_long': None, 'result_double': None}] Qualite : 0.03292834746427582 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20797353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797353_25-02-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20797353 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_P20797353_25-02-2025_10_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797390, 'pht': 3726}}" where mtr_portfolio_id = 20797353 and dashboard_run_id = 1630512 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`=20797353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9045890, 0.03292834746427582, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797353_25-02-2025_10_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797390, '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 = 20797921 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': 2612344, 'mtr_portfolio_id': 20797921, 'created_at': datetime.datetime(2025, 2, 25, 10, 18, 57), 'result': '0.038828250295461816', 'result_long': None, 'result_double': None}] Qualite : 0.038828250295461816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20797921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797921_25-02-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20797921 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_P20797921_25-02-2025_10_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, 'pht': 3726}}" where mtr_portfolio_id = 20797921 and dashboard_run_id = 1630512 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`=20797921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9045891, 0.038828250295461816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797921_25-02-2025_10_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, '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 = 20798362 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': 2612373, 'mtr_portfolio_id': 20798362, 'created_at': datetime.datetime(2025, 2, 25, 10, 30, 58), 'result': '0.04648261566553525', 'result_long': None, 'result_double': None}] Qualite : 0.04648261566553525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20798362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_25-02-2025_10_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20798362 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_P20798362_25-02-2025_10_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, 'pht': 3726}}" where mtr_portfolio_id = 20798362 and dashboard_run_id = 1630512 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`=20798362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9045892, 0.04648261566553525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_25-02-2025_10_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, '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 (20796930,20797353,20797921,20798362) result : ((1339519660,), (1339519715,), (1339519720,), (1339519732,), (1339519741,), (1339519745,), (1339519757,), (1339519761,), (1339519765,), (1339519770,), (1339519774,), (1339519777,), (1339519835,), (1339519888,), (1339519921,), (1339520047,), (1339520147,), (1339520155,), (1339520160,), (1339520164,), (1339520167,), (1339520170,), (1339520177,), (1339520187,), (1339520191,), (1339520206,), (1339520211,), (1339520221,), (1339520238,), (1339520242,), (1339520413,), (1339520417,), (1339520421,), (1339520427,), (1339520433,), (1339520463,), (1339520497,), (1339520500,), (1339520508,), (1339520516,), (1339520550,), (1339520556,), (1339520559,), (1339520563,), (1339520568,), (1339520597,), (1339520604,), (1339520608,), (1339520612,), (1339520671,), (1339520674,), (1339520719,), (1339520723,), (1339520727,), (1339520731,), (1339520751,), (1339520755,), (1339520774,), (1339520779,), (1339520781,), (1339520784,), (1339520795,), (1339520799,), (1339520803,), (1339520809,), (1339520814,), (1339520845,), (1339520871,), (1339520875,), (1339520879,), (1339520882,), (1339520940,), (1339520902,), (1339520918,), (1339520928,), (1339520933,), (1339520937,), (1339520950,), (1339520965,), (1339521048,), (1339521053,), (1339521196,), (1339521211,), (1339521216,), (1339521220,), (1339521223,), (1339521228,), (1339521284,), (1339521287,), (1339521293,), (1339521299,), (1339521303,), (1339521321,), (1339521325,), (1339521327,), (1339521330,), (1339521333,), (1339521336,), (1339521351,), (1339521355,), (1339521360,), (1339521365,), (1339521383,), (1339521386,), (1339521393,), (1339521396,), (1339521400,), (1339521404,), (1339521443,), (1339521446,), (1339521449,), (1339521459,), (1339521470,), (1339521493,), (1339521497,), (1339521516,), (1339521531,), (1339521535,), (1339521539,), (1339521542,), (1339521547,), (1339521572,), (1339521575,), (1339521578,), (1339521596,), (1339521600,), (1339521603,), (1339521606,), (1339521624,), (1339521627,), (1339521687,), (1339521697,), (1339521735,), (1339521768,), (1339521772,), (1339521876,), (1339522038,), (1339522136,), (1339522140,), (1339522144,), (1339522170,), (1339522181,), (1339522189,), (1339522192,), (1339522198,), (1339522201,), (1339522233,), (1339522237,), (1339522240,), (1339522243,), (1339522249,), (1339522267,), (1339522271,), (1339522275,), (1339522280,), (1339522286,), (1339522289,), (1339522305,), (1339522310,), (1339522315,), (1339522325,), (1339522387,), (1339522416,), (1339522419,), (1339522423,), (1339522427,), (1339522430,), (1339522458,), (1339522462,), (1339522465,), (1339522469,), (1339522491,), (1339522495,), (1339522499,), (1339522503,), (1339522515,), (1339522529,), (1339522535,), (1339522544,), (1339522548,), (1339522553,), (1339522562,), (1339522581,), (1339522585,), (1339522589,), (1339522593,), (1339522605,), (1339522609,), (1339522613,), (1339522616,), (1339522620,), (1339522624,), (1339522634,), (1339522638,), (1339522642,), (1339522645,), (1339522651,), (1339522675,), (1339522678,), (1339522682,), (1339522687,), (1339522691,), (1339522727,), (1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20798362]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] map_info['map_portfolio_photo'] : {20798362: [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059, 1339524012, 1339524008, 1339524005, 1339524001, 1339523987, 1339523984, 1339523980, 1339523977, 1339523975, 1339523972, 1339523942, 1339523939, 1339523935, 1339523903, 1339523900, 1339523895, 1339523890, 1339523886, 1339523883, 1339523866, 1339523832, 1339523828, 1339523791, 1339523788, 1339523382, 1339523380, 1339523376, 1339523373, 1339523362, 1339523354, 1339523351, 1339523346, 1339523341, 1339523337, 1339523297, 1339523292, 1339523287, 1339523281, 1339523278, 1339523274, 1339523238, 1339523233, 1339523222, 1339523218, 1339523191, 1339523187, 1339523183, 1339523179, 1339523172, 1339523159, 1339523099, 1339523085, 1339523024, 1339523020, 1339523017, 1339522714, 1339522711, 1339522708, 1339522704]} final : True mtd_id 4302 list_pids : [1339524105, 1339524099, 1339524096, 1339524092, 1339524090, 1339524078, 1339524075, 1339524071, 1339524067, 1339524063, 1339524059] Looping around the photos to save general results len do output : 1 /20798362Didn'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, '2612373') ('4302', '20798362', '1339524105', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524099', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524096', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524092', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524090', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524078', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524075', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524071', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524067', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524063', None, None, None, None, None, '2612373') ('4302', None, None, None, None, None, None, None, '2612373') ('4302', '20798362', '1339524059', None, None, None, None, None, '2612373') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20798362', 'None', None, None, None, None, '2612373'), ('4302', '20798362', '1339524105', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524099', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524096', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524092', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524090', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524078', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524075', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524071', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524067', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524063', None, None, None, None, None, '2612373'), ('4302', '20798362', '1339524059', None, None, None, None, None, '2612373')] time used for this insertion : 0.014445781707763672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3623034954071045 time spend to save output : 0.01486515998840332 total time spend for step 5 : 0.3771686553955078 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 (2612373) 2.40user 2.44system 0:09.58elapsed 50%CPU (0avgtext+0avgdata 161540maxresident)k 928inputs+18688outputs (22major+75421minor)pagefaults 0swaps