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 : 717697 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 (2725719) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2725719) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074294 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2725719'] with mtr_portfolio_ids : ['22074294'] and first list_photo_ids : [] new path : /proc/717697/ Name: python3 Umask: 0002 State: R (running) Tgid: 717697 Ngid: 0 Pid: 717697 PPid: 717696 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 717697 NSpid: 717697 NSpgid: 714015 NSsid: 714015 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98796 kB VmRSS: 98796 kB RssAnon: 59800 kB RssFile: 38996 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 540 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 136 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '717697', 'Ngid': '0', 'Pid': '717697', 'PPid': '717696', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '717697', 'NSpid': '717697', 'NSpgid': '714015', 'NSsid': '714015', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98796 kB', 'VmRSS': '98796 kB', 'RssAnon': '59800 kB', 'RssFile': '38996 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '540 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '136'} ('datou_batch_current', '717697', '1106828', '0', '1106828', '865576', '98796', b'', 'marlene', '2725719') 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 (22074294) 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 (2725719 ) ) 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 (22074294) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350236180, 'portfolio_id': 22074294}, {'photo_id': 1350235815, 'portfolio_id': 22074294}, {'photo_id': 1350235783, 'portfolio_id': 22074294}, {'photo_id': 1350235714, 'portfolio_id': 22074294}, {'photo_id': 1350235661, 'portfolio_id': 22074294}, {'photo_id': 1350235489, 'portfolio_id': 22074294}, {'photo_id': 1350235433, 'portfolio_id': 22074294}, {'photo_id': 1350235364, 'portfolio_id': 22074294}, {'photo_id': 1350235292, 'portfolio_id': 22074294}, {'photo_id': 1350235271, 'portfolio_id': 22074294}, {'photo_id': 1350235261, 'portfolio_id': 22074294}, {'photo_id': 1350234539, 'portfolio_id': 22074294}, {'photo_id': 1350234512, 'portfolio_id': 22074294}, {'photo_id': 1350234482, 'portfolio_id': 22074294}, {'photo_id': 1350234414, 'portfolio_id': 22074294}, {'photo_id': 1350234406, 'portfolio_id': 22074294}, {'photo_id': 1350234369, 'portfolio_id': 22074294}, {'photo_id': 1350234365, 'portfolio_id': 22074294}, {'photo_id': 1350234359, 'portfolio_id': 22074294}, {'photo_id': 1350234354, 'portfolio_id': 22074294}, {'photo_id': 1350234351, 'portfolio_id': 22074294}, {'photo_id': 1350234345, 'portfolio_id': 22074294}, {'photo_id': 1350234316, 'portfolio_id': 22074294}, {'photo_id': 1350234313, 'portfolio_id': 22074294}, {'photo_id': 1350234306, 'portfolio_id': 22074294}, {'photo_id': 1350234301, 'portfolio_id': 22074294}, {'photo_id': 1350234297, 'portfolio_id': 22074294}, {'photo_id': 1350234293, 'portfolio_id': 22074294}, {'photo_id': 1350234259, 'portfolio_id': 22074294}, {'photo_id': 1350234253, 'portfolio_id': 22074294}, {'photo_id': 1350234246, 'portfolio_id': 22074294}, {'photo_id': 1350234240, 'portfolio_id': 22074294}, {'photo_id': 1350234232, 'portfolio_id': 22074294}, {'photo_id': 1350234137, 'portfolio_id': 22074294}, {'photo_id': 1350234133, 'portfolio_id': 22074294}, {'photo_id': 1350234129, 'portfolio_id': 22074294}, {'photo_id': 1350234126, 'portfolio_id': 22074294}, {'photo_id': 1350234120, 'portfolio_id': 22074294}, {'photo_id': 1350234052, 'portfolio_id': 22074294}, {'photo_id': 1350234035, 'portfolio_id': 22074294}, {'photo_id': 1350234030, 'portfolio_id': 22074294}, {'photo_id': 1350234025, 'portfolio_id': 22074294}, {'photo_id': 1350233969, 'portfolio_id': 22074294}, {'photo_id': 1350233965, 'portfolio_id': 22074294}, {'photo_id': 1350233909, 'portfolio_id': 22074294}, {'photo_id': 1350233900, 'portfolio_id': 22074294}, {'photo_id': 1350233896, 'portfolio_id': 22074294}, {'photo_id': 1350233875, 'portfolio_id': 22074294}, {'photo_id': 1350233314, 'portfolio_id': 22074294}, {'photo_id': 1350233298, 'portfolio_id': 22074294}, {'photo_id': 1350233289, 'portfolio_id': 22074294}, {'photo_id': 1350233223, 'portfolio_id': 22074294}, {'photo_id': 1350233217, 'portfolio_id': 22074294}, {'photo_id': 1350233210, 'portfolio_id': 22074294}, {'photo_id': 1350233204, 'portfolio_id': 22074294}, {'photo_id': 1350233196, 'portfolio_id': 22074294}, {'photo_id': 1350233145, 'portfolio_id': 22074294}, {'photo_id': 1350233131, 'portfolio_id': 22074294}, {'photo_id': 1350233097, 'portfolio_id': 22074294}, {'photo_id': 1350233076, 'portfolio_id': 22074294}, {'photo_id': 1350233062, 'portfolio_id': 22074294}, {'photo_id': 1350232806, 'portfolio_id': 22074294}, {'photo_id': 1350232801, 'portfolio_id': 22074294}, {'photo_id': 1350232791, 'portfolio_id': 22074294}, {'photo_id': 1350232782, 'portfolio_id': 22074294}, {'photo_id': 1350232774, 'portfolio_id': 22074294}, {'photo_id': 1350232688, 'portfolio_id': 22074294}, {'photo_id': 1350232685, 'portfolio_id': 22074294}, {'photo_id': 1350232669, 'portfolio_id': 22074294}, {'photo_id': 1350232648, 'portfolio_id': 22074294}, {'photo_id': 1350232643, 'portfolio_id': 22074294}, {'photo_id': 1350232631, 'portfolio_id': 22074294}, {'photo_id': 1350232440, 'portfolio_id': 22074294}, {'photo_id': 1350232434, 'portfolio_id': 22074294}, {'photo_id': 1350232422, 'portfolio_id': 22074294}] map_portfolio_id_photo_id: {22074294: [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261, 1350234539, 1350234512, 1350234482, 1350234414, 1350234406, 1350234369, 1350234365, 1350234359, 1350234354, 1350234351, 1350234345, 1350234316, 1350234313, 1350234306, 1350234301, 1350234297, 1350234293, 1350234259, 1350234253, 1350234246, 1350234240, 1350234232, 1350234137, 1350234133, 1350234129, 1350234126, 1350234120, 1350234052, 1350234035, 1350234030, 1350234025, 1350233969, 1350233965, 1350233909, 1350233900, 1350233896, 1350233875, 1350233314, 1350233298, 1350233289, 1350233223, 1350233217, 1350233210, 1350233204, 1350233196, 1350233145, 1350233131, 1350233097, 1350233076, 1350233062, 1350232806, 1350232801, 1350232791, 1350232782, 1350232774, 1350232688, 1350232685, 1350232669, 1350232648, 1350232643, 1350232631, 1350232440, 1350232434, 1350232422]} ##### 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.014576435089111328 #### 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 Wed Apr 16 12:02:30 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 (22074294) 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 : 22074294 get user id for portfolio 22074294 get sub ptf for main ptf 22074294, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_brun', 'kraft', 'papier', 'mal_croppe', 'autre_refus', 'metal', 'environnement', 'flou', 'Carton_gris', 'plastique', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22074294 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','papier','mal_croppe','autre_refus','metal','environnement','flou','Carton_gris','plastique','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22074294 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','papier','mal_croppe','autre_refus','metal','environnement','flou','Carton_gris','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22074294, 'sub_port_id': 22074299, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562165, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'kraft': {'main_port_id': 22074294, 'sub_port_id': 22074300, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562166, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'Carton_brun': {'main_port_id': 22074294, 'sub_port_id': 22074301, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562167, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'Carton_gris': {'main_port_id': 22074294, 'sub_port_id': 22074302, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562168, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'autre_refus': {'main_port_id': 22074294, 'sub_port_id': 22074303, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562169, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'cartonnette': {'main_port_id': 22074294, 'sub_port_id': 22074304, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562170, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'papier': {'main_port_id': 22074294, 'sub_port_id': 22074305, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562171, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'plastique': {'main_port_id': 22074294, 'sub_port_id': 22074306, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562172, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'environnement': {'main_port_id': 22074294, 'sub_port_id': 22074307, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562173, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'mal_croppe': {'main_port_id': 22074294, 'sub_port_id': 22074308, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562174, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22074294, 'sub_port_id': 22074309, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562175, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}, 'metal': {'main_port_id': 22074294, 'sub_port_id': 22074310, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562176, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 50, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22074299 , 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=22074294 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 (22074299) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074300 , 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=22074294 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 (22074300) result : ((1350233809,), (1350234223,), (1350234327,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074301 , 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=22074294 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 (22074301) result : ((1350232949,), (1350233198,), (1350233290,), (1350233805,), (1350233857,), (1350234018,), (1350234221,), (1350234326,), (1350234377,), (1350235265,), (1350236816,), (1350236819,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074302 , 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=22074294 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 (22074302) result : ((1350233286,), (1350233792,), (1350234016,), (1350234219,), (1350235243,), (1350236787,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074303 , 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=22074294 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 (22074303) result : ((1350232948,), (1350233285,), (1350233774,), (1350234013,), (1350234217,), (1350234374,), (1350234412,), (1350235260,), (1350236768,), (1350236771,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074304 , 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=22074294 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 (22074304) result : ((1350233287,), (1350233803,), (1350233804,), (1350234017,), (1350234375,), (1350234413,), (1350234667,), (1350234668,), (1350235263,), (1350235877,), (1350236800,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074305 , 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=22074294 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 (22074305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074306 , 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=22074294 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 (22074306) result : ((1350233293,), (1350234020,), (1350234222,), (1350235883,), (1350236833,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074307 , 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=22074294 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 (22074307) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074308 , 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=22074294 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 (22074308) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074309 , 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=22074294 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 (22074309) result : ((1350232942,), (1350233193,), (1350233280,), (1350233770,), (1350233771,), (1350233772,), (1350234011,), (1350234216,), (1350234322,), (1350234323,), (1350234408,), (1350234409,), (1350234656,), (1350235238,), (1350235239,), (1350235240,), (1350235241,), (1350236744,), (1350236747,), (1350236750,), (1350236753,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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 22074310 , 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=22074294 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 (22074310) result : ((1350234379,), (1350235267,), (1350235887,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22074294) result : ((1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) 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 (1350233900) 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`=22074294 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','papier','mal_croppe','autre_refus','metal','environnement','flou','Carton_gris','plastique','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22074294 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','papier','mal_croppe','autre_refus','metal','environnement','flou','Carton_gris','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22074294, 'sub_port_id': 22074311, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562177, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'kraft': {'main_port_id': 22074294, 'sub_port_id': 22074312, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562178, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'Carton_brun': {'main_port_id': 22074294, 'sub_port_id': 22074313, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562179, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'Carton_gris': {'main_port_id': 22074294, 'sub_port_id': 22074314, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562180, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'autre_refus': {'main_port_id': 22074294, 'sub_port_id': 22074315, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562181, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'cartonnette': {'main_port_id': 22074294, 'sub_port_id': 22074316, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562182, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'papier': {'main_port_id': 22074294, 'sub_port_id': 22074317, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562183, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'plastique': {'main_port_id': 22074294, 'sub_port_id': 22074318, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562184, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'environnement': {'main_port_id': 22074294, 'sub_port_id': 22074319, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562185, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'mal_croppe': {'main_port_id': 22074294, 'sub_port_id': 22074320, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562186, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 22074294, 'sub_port_id': 22074321, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562187, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}, 'metal': {'main_port_id': 22074294, 'sub_port_id': 22074322, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562188, 'last_updated_at': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 11, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 11, 51)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22074322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22074310 lien utilise dans velours : https://www.fotonower.com/velours/22074311,22074312,22074313,22074314,22074315,22074316,22074317,22074318,22074319,22074320,22074321,22074322?tags=flou,kraft,Carton_brun,Carton_gris,autre_refus,cartonnette,papier,plastique,environnement,mal_croppe,Teint_Dans_La_Masse,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22074294]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] map_info['map_portfolio_photo'] : {22074294: [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261, 1350234539, 1350234512, 1350234482, 1350234414, 1350234406, 1350234369, 1350234365, 1350234359, 1350234354, 1350234351, 1350234345, 1350234316, 1350234313, 1350234306, 1350234301, 1350234297, 1350234293, 1350234259, 1350234253, 1350234246, 1350234240, 1350234232, 1350234137, 1350234133, 1350234129, 1350234126, 1350234120, 1350234052, 1350234035, 1350234030, 1350234025, 1350233969, 1350233965, 1350233909, 1350233900, 1350233896, 1350233875, 1350233314, 1350233298, 1350233289, 1350233223, 1350233217, 1350233210, 1350233204, 1350233196, 1350233145, 1350233131, 1350233097, 1350233076, 1350233062, 1350232806, 1350232801, 1350232791, 1350232782, 1350232774, 1350232688, 1350232685, 1350232669, 1350232648, 1350232643, 1350232631, 1350232440, 1350232434, 1350232422]} final : False mtd_id 4302 list_pids : [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] Looping around the photos to save general results len do output : 1 /22074294. 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, '2725719') ('4302', '22074294', '1350236180', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235815', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235783', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235714', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235661', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235489', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235433', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235364', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235292', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235271', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235261', None, None, None, None, None, '2725719') 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, '22074294', "{'flou': 22074299, 'kraft': 22074300, 'Carton_brun': 22074301, 'Carton_gris': 22074302, 'autre_refus': 22074303, 'cartonnette': 22074304, 'papier': 22074305, 'plastique': 22074306, 'environnement': 22074307, 'mal_croppe': 22074308, 'Teint_Dans_La_Masse': 22074309, 'metal': 22074310}", None, None, None, None, '2725719'), ('4302', '22074294', '1350236180', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235815', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235783', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235714', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235661', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235489', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235433', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235364', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235292', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235271', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235261', None, None, None, None, None, '2725719')] time used for this insertion : 0.015579938888549805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5128397941589355 time spend to save output : 0.01578807830810547 total time spend for step 1 : 0.528627872467041 step2:final Wed Apr 16 12:02:31 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 (22074294) 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 22074294 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350232440,1350232434,1350232422,1350232688,1350232685,1350232669,1350232648,1350232643,1350232631,1350232806,1350232801,1350232791,1350232782,1350232774,1350233145,1350233131,1350233097,1350233076,1350233062,1350233223,1350233217,1350233210,1350233204,1350233196,1350233314,1350233298,1350233289,1350233969,1350233965,1350233909,1350233900,1350233896,1350233875,1350234052,1350234035,1350234030,1350234025,1350234137,1350234133,1350234129,1350234126,1350234120,1350234259,1350234253,1350234246,1350234240,1350234232,1350234316,1350234313,1350234306,1350234301,1350234297,1350234293,1350234369,1350234365,1350234359,1350234354,1350234351,1350234345,1350234539,1350234512,1350234482,1350234414,1350234406,1350235489,1350235433,1350235364,1350235292,1350235271,1350235261,1350235815,1350235783,1350235714,1350235661,1350236180); 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([22074294]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} new output for save of step final : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] map_info['map_portfolio_photo'] : {22074294: [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261, 1350234539, 1350234512, 1350234482, 1350234414, 1350234406, 1350234369, 1350234365, 1350234359, 1350234354, 1350234351, 1350234345, 1350234316, 1350234313, 1350234306, 1350234301, 1350234297, 1350234293, 1350234259, 1350234253, 1350234246, 1350234240, 1350234232, 1350234137, 1350234133, 1350234129, 1350234126, 1350234120, 1350234052, 1350234035, 1350234030, 1350234025, 1350233969, 1350233965, 1350233909, 1350233900, 1350233896, 1350233875, 1350233314, 1350233298, 1350233289, 1350233223, 1350233217, 1350233210, 1350233204, 1350233196, 1350233145, 1350233131, 1350233097, 1350233076, 1350233062, 1350232806, 1350232801, 1350232791, 1350232782, 1350232774, 1350232688, 1350232685, 1350232669, 1350232648, 1350232643, 1350232631, 1350232440, 1350232434, 1350232422]} final : False mtd_id 4302 list_pids : [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] Looping around the photos to save general results len do output : 11 /1350236180.Didn't retrieve data . /1350235815.Didn't retrieve data . /1350235783.Didn't retrieve data . /1350235714.Didn't retrieve data . /1350235661.Didn't retrieve data . /1350235489.Didn't retrieve data . /1350235433.Didn't retrieve data . /1350235364.Didn't retrieve data . /1350235292.Didn't retrieve data . /1350235271.Didn't retrieve data . /1350235261.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, '2725719') ('4302', '22074294', '1350236180', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235815', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235783', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235714', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235661', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235489', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235433', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235364', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235292', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235271', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235261', None, None, None, None, None, '2725719') 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', '22074294', '1350236180', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235815', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235783', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235714', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235661', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235489', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235433', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235364', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235292', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235271', '0.029682255329962406', None, None, None, None, '2725719'), ('4302', '22074294', '1350235261', '0.029682255329962406', None, None, None, None, '2725719')] time used for this insertion : 0.017333507537841797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0721578598022461 time spend to save output : 0.01786184310913086 total time spend for step 2 : 0.09001970291137695 step3:velours_tree Wed Apr 16 12:02:31 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 : {22074294: [{'flou': 22074299, 'kraft': 22074300, 'Carton_brun': 22074301, 'Carton_gris': 22074302, 'autre_refus': 22074303, 'cartonnette': 22074304, 'papier': 22074305, 'plastique': 22074306, 'environnement': 22074307, 'mal_croppe': 22074308, 'Teint_Dans_La_Masse': 22074309, 'metal': 22074310}]} input_args_next_step : {22074294: ()} output_args : {22074294: [{'flou': 22074299, 'kraft': 22074300, 'Carton_brun': 22074301, 'Carton_gris': 22074302, 'autre_refus': 22074303, 'cartonnette': 22074304, 'papier': 22074305, 'plastique': 22074306, 'environnement': 22074307, 'mal_croppe': 22074308, 'Teint_Dans_La_Masse': 22074309, 'metal': 22074310}]} args : 22074294 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': 22074299, 'kraft': 22074300, 'Carton_brun': 22074301, 'Carton_gris': 22074302, 'autre_refus': 22074303, 'cartonnette': 22074304, 'papier': 22074305, 'plastique': 22074306, 'environnement': 22074307, 'mal_croppe': 22074308, 'Teint_Dans_La_Masse': 22074309, 'metal': 22074310},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22074294) 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([22074294]) 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.41213250160217285 time spend to save output : 5.602836608886719e-05 total time spend for step 3 : 0.4121885299682617 step4:send_mail_cod Wed Apr 16 12:02:31 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 : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} input_args_next_step : {1350236180: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350236180 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235815 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235783 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235714 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235661 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235489 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235433 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235364 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235292 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235271 depend.output_id : 0 input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ()} output_args : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',)} args : 1350235261 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 : {22074294: [{'flou': 22074299, 'kraft': 22074300, 'Carton_brun': 22074301, 'Carton_gris': 22074302, 'autre_refus': 22074303, 'cartonnette': 22074304, 'papier': 22074305, 'plastique': 22074306, 'environnement': 22074307, 'mal_croppe': 22074308, 'Teint_Dans_La_Masse': 22074309, 'metal': 22074310}]} input_args_next_step : {1350236180: ('0.029682255329962406',), 1350235815: ('0.029682255329962406',), 1350235783: ('0.029682255329962406',), 1350235714: ('0.029682255329962406',), 1350235661: ('0.029682255329962406',), 1350235489: ('0.029682255329962406',), 1350235433: ('0.029682255329962406',), 1350235364: ('0.029682255329962406',), 1350235292: ('0.029682255329962406',), 1350235271: ('0.029682255329962406',), 1350235261: ('0.029682255329962406',), 22074294: ()} output_args : {22074294: [{'flou': 22074299, 'kraft': 22074300, 'Carton_brun': 22074301, 'Carton_gris': 22074302, 'autre_refus': 22074303, 'cartonnette': 22074304, 'papier': 22074305, 'plastique': 22074306, 'environnement': 22074307, 'mal_croppe': 22074308, 'Teint_Dans_La_Masse': 22074309, 'metal': 22074310}]} args : 22074294 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.029682255329962406',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22074294) 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 (1350236180,1350235815,1350235783,1350235714,1350235661,1350235489,1350235433,1350235364,1350235292,1350235271,1350235261) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350235261 begin to download photo : 1350235364 begin to download photo : 1350235661 begin to download photo : 1350235815 download finish for photo 1350235364 begin to download photo : 1350235433 download finish for photo 1350235661 begin to download photo : 1350235714 download finish for photo 1350235261 begin to download photo : 1350235271 download finish for photo 1350235815 begin to download photo : 1350236180 download finish for photo 1350235433 begin to download photo : 1350235489 download finish for photo 1350235714 begin to download photo : 1350235783 download finish for photo 1350235489 download finish for photo 1350235271 begin to download photo : 1350235292 download finish for photo 1350236180 download finish for photo 1350235783 download finish for photo 1350235292 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220742991744797752/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22074294_16-04-2025_12_02_32.pdf 22074299 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=22074299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220742991744797752 22074300 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=22074300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350233809: '1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810086_0.png', 1350234223: '1744797251_1728572_1350233900_22dc697fb9ed86af741f56fc7507d749_rle_crop_3748812400_0.png', 1350234327: '1744797372_1729883_1350234120_ab923a1d2ac6be63c5306ce5ea5f32cb_rle_crop_3748834057_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0e09572c8e81a0259da7f721db9b7ff1_17217750.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7fbb835d71b82e326b94409587353550_84692235.png change filename to text .imagette220743001744797752/ imagette220743001744797752/1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810086_0.png.png imagette220743001744797752/1744797251_1728572_1350233900_22dc697fb9ed86af741f56fc7507d749_rle_crop_3748812400_0.png.png imagette220743001744797752/1744797372_1729883_1350234120_ab923a1d2ac6be63c5306ce5ea5f32cb_rle_crop_3748834057_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/bbe1258f5a2cbd8511093e7ce52cd627_33009870.png imagette220743001744797752 22074303 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=22074303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350232948: '1744796892_1724477_1350232422_8c0b842cdffc57abaf15b7410adff594_rle_crop_3748808813_0.png', 1350233285: '1744797014_1726020_1350232648_68c9d909aec361ca075def7b96e90ace_rle_crop_3748809718_0.png', 1350233774: '1744797072_1726718_1350233062_23e7035ddddaa102fc908a06b712d7fc_rle_crop_3748810098_0.png', 1350234013: '1744797130_1727418_1350232648_68c9d909aec361ca075def7b96e90ace_rle_crop_3748809718_0.png', 1350234217: '1744797251_1728572_1350233875_d3e593621957ea3330c093fcec704cce_rle_crop_3748812418_0.png', 1350234374: '1744797421_1730324_1350234035_e22cd95cdfaca1cd1bf0e1976b487636_rle_crop_3748845392_0.png', 1350234412: '1744797461_2579812_1350233217_fb4632287b16528b6f769aa106c2623d_rle_crop_3748845574_0.png', 1350235260: '1744797581_2582499_1350234035_e22cd95cdfaca1cd1bf0e1976b487636_rle_crop_3748845392_0.png', 1350236768: '1744797709_2632266_1350234365_821d046a1854fdabf6bbe9b9a0a6f43f_rle_crop_3748849607_0.png', 1350236771: '1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849636_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c07e31b853b110ba95b473b426540e11_71899516.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2a4d73e84880a104573bb98673a4a212_62797737.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7d56c9bc0c1a439fede4104edeb65b01_29656525.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2a4d73e84880a104573bb98673a4a212_74087903.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7e561839e5c5e958c471d89283cd31af_70608785.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c4d7be9d40ff67173a0d1bc89f0f1d56_58336185.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6720265dd96b27c582bb4c3a4bfc3537_86683242.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c4d7be9d40ff67173a0d1bc89f0f1d56_38601501.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7f2b936dd739cf3f61e7f318c90b4778_25043132.png change filename to text .imagette220743031744797752/ imagette220743031744797752/1744797014_1726020_1350232648_68c9d909aec361ca075def7b96e90ace_rle_crop_3748809718_0.png.png imagette220743031744797752/1744797709_2632266_1350234365_821d046a1854fdabf6bbe9b9a0a6f43f_rle_crop_3748849607_0.png.png imagette220743031744797752/1744797461_2579812_1350233217_fb4632287b16528b6f769aa106c2623d_rle_crop_3748845574_0.png.png imagette220743031744797752/1744797130_1727418_1350232648_68c9d909aec361ca075def7b96e90ace_rle_crop_3748809718_0.png.png imagette220743031744797752/1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849636_0.png.png imagette220743031744797752/1744796892_1724477_1350232422_8c0b842cdffc57abaf15b7410adff594_rle_crop_3748808813_0.png.png imagette220743031744797752/1744797072_1726718_1350233062_23e7035ddddaa102fc908a06b712d7fc_rle_crop_3748810098_0.png.png imagette220743031744797752/1744797421_1730324_1350234035_e22cd95cdfaca1cd1bf0e1976b487636_rle_crop_3748845392_0.png.png imagette220743031744797752/1744797581_2582499_1350234035_e22cd95cdfaca1cd1bf0e1976b487636_rle_crop_3748845392_0.png.png imagette220743031744797752/1744797251_1728572_1350233875_d3e593621957ea3330c093fcec704cce_rle_crop_3748812418_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2c246a8680fd4b697e925db524787631_55436542.png imagette220743031744797752 22074304 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=22074304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350233287: '1744797014_1726020_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809661_0.png', 1350233803: '1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810083_0.png', 1350233804: '1744797072_1726718_1350233062_23e7035ddddaa102fc908a06b712d7fc_rle_crop_3748810097_0.png', 1350234017: '1744797130_1727418_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809661_0.png', 1350234375: '1744797421_1730324_1350234025_c4a065e3e9e5d4e014a3cfdffcd4c2e1_rle_crop_3748845421_0.png', 1350234413: '1744797461_2579812_1350233217_fb4632287b16528b6f769aa106c2623d_rle_crop_3748845578_0.png', 1350234667: '1744797492_1731235_1350234293_1648a833491f4fb58b5945248b738201_rle_crop_3748845722_0.png', 1350234668: '1744797492_1731235_1350234293_1648a833491f4fb58b5945248b738201_rle_crop_3748845724_0.png', 1350235263: '1744797581_2582499_1350234025_c4a065e3e9e5d4e014a3cfdffcd4c2e1_rle_crop_3748845421_0.png', 1350235877: '1744797615_1737868_1350234414_8e56c81af465dd2fe1b600156bd2da02_rle_crop_3748846545_0.png', 1350236800: '1744797709_2632266_1350234351_e3eff0e423618cbf1b8625f026c413ea_rle_crop_3748849648_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5c50011075c76130469ee4d9230b507c_40950662.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6c038ae06b36dc30de46cefcc4e2ee18_26092269.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a3f94cba1a6aabce4db6104a9349c012_2647581.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5c50011075c76130469ee4d9230b507c_12541278.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ffcade416461e268f505eb0b3a5f262a_43857554.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f5ad22500b3d36a41d7f490ac10881b9_97955336.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/735770692056f12422dd811d72f0c2a0_71575560.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8974b0051033c86840dfad08b4ab0dff_45721199.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ffcade416461e268f505eb0b3a5f262a_12402426.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/25f192265eb5e462126986659c75e5f2_6153307.png change filename to text .imagette220743041744797752/ imagette220743041744797752/1744797130_1727418_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809661_0.png.png imagette220743041744797752/1744797014_1726020_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809661_0.png.png imagette220743041744797752/1744797581_2582499_1350234025_c4a065e3e9e5d4e014a3cfdffcd4c2e1_rle_crop_3748845421_0.png.png imagette220743041744797752/1744797461_2579812_1350233217_fb4632287b16528b6f769aa106c2623d_rle_crop_3748845578_0.png.png imagette220743041744797752/1744797421_1730324_1350234025_c4a065e3e9e5d4e014a3cfdffcd4c2e1_rle_crop_3748845421_0.png.png imagette220743041744797752/1744797492_1731235_1350234293_1648a833491f4fb58b5945248b738201_rle_crop_3748845724_0.png.png imagette220743041744797752/1744797709_2632266_1350234351_e3eff0e423618cbf1b8625f026c413ea_rle_crop_3748849648_0.png.png imagette220743041744797752/1744797615_1737868_1350234414_8e56c81af465dd2fe1b600156bd2da02_rle_crop_3748846545_0.png.png imagette220743041744797752/1744797492_1731235_1350234293_1648a833491f4fb58b5945248b738201_rle_crop_3748845722_0.png.png imagette220743041744797752/1744797072_1726718_1350233062_23e7035ddddaa102fc908a06b712d7fc_rle_crop_3748810097_0.png.png imagette220743041744797752/1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810083_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/622ce612196df609282fc03c03d8808f_99723662.png imagette220743041744797752 22074306 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=22074306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350233293: '1744797014_1726020_1350232631_e76b431581d170f5d7e7a1a08b4c675d_rle_crop_3748809754_0.png', 1350234020: '1744797130_1727418_1350232631_e76b431581d170f5d7e7a1a08b4c675d_rle_crop_3748809754_0.png', 1350234222: '1744797251_1728572_1350233965_2ee54fe25f07c97952617fb5406ca77b_rle_crop_3748812367_0.png', 1350235883: '1744797615_1737868_1350234414_8e56c81af465dd2fe1b600156bd2da02_rle_crop_3748846547_0.png', 1350236833: '1744797709_2632266_1350234365_821d046a1854fdabf6bbe9b9a0a6f43f_rle_crop_3748849608_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a2aefcee9adff88cfbe7e40157c8b7c7_26116778.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a2aefcee9adff88cfbe7e40157c8b7c7_9367421.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c26e02d38d32fdb4555846ccedea9899_70695749.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/53f8598106686acf2c4746100a6494e8_19521988.png change filename to text .imagette220743061744797753/ imagette220743061744797753/1744797251_1728572_1350233965_2ee54fe25f07c97952617fb5406ca77b_rle_crop_3748812367_0.png.png imagette220743061744797753/1744797709_2632266_1350234365_821d046a1854fdabf6bbe9b9a0a6f43f_rle_crop_3748849608_0.png.png imagette220743061744797753/1744797615_1737868_1350234414_8e56c81af465dd2fe1b600156bd2da02_rle_crop_3748846547_0.png.png imagette220743061744797753/1744797014_1726020_1350232631_e76b431581d170f5d7e7a1a08b4c675d_rle_crop_3748809754_0.png.png imagette220743061744797753/1744797130_1727418_1350232631_e76b431581d170f5d7e7a1a08b4c675d_rle_crop_3748809754_0.png.png imagette220743081744797753/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/dc98998f106bfedf613f168fe5166dfd_59114161.png imagette220743061744797753 22074308 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=22074308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220743081744797753 22074310 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=22074310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350234379: '1744797421_1730324_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845406_0.png', 1350235267: '1744797581_2582499_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845406_0.png', 1350235887: '1744797615_1737868_1350234414_8e56c81af465dd2fe1b600156bd2da02_rle_crop_3748846546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5c74f505e3307b2c70867043a8af3dca_59467421.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5c74f505e3307b2c70867043a8af3dca_67222997.png change filename to text .imagette220743101744797753/ imagette220743101744797753/1744797615_1737868_1350234414_8e56c81af465dd2fe1b600156bd2da02_rle_crop_3748846546_0.png.png imagette220743101744797753/1744797581_2582499_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845406_0.png.png imagette220743101744797753/1744797421_1730324_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845406_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3ec1e4c325f7ebaea0aa731c3cb6ab2c_59125603.png imagette220743101744797753 22074301 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=22074301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350232949: '1744796892_1724477_1350232422_8c0b842cdffc57abaf15b7410adff594_rle_crop_3748808817_0.png', 1350233198: '1744796983_2569401_1350232801_c39736b83ff1b85fbe1ba246b2befbb8_rle_crop_3748809263_0.png', 1350233290: '1744797014_1726020_1350232669_5a4438ec75c4e1d29b061feee8672f93_rle_crop_3748809688_0.png', 1350233805: '1744797072_1726718_1350233062_23e7035ddddaa102fc908a06b712d7fc_rle_crop_3748810099_0.png', 1350233857: '1744797107_2572235_1350232688_b4eadf7c50770683741250b1317131fd_rle_crop_3748810139_0.png', 1350234018: '1744797130_1727418_1350232669_5a4438ec75c4e1d29b061feee8672f93_rle_crop_3748809688_0.png', 1350234221: '1744797251_1728572_1350233965_2ee54fe25f07c97952617fb5406ca77b_rle_crop_3748812366_0.png', 1350234326: '1744797372_1729883_1350234129_8f416f451be06e5a7fb995f25ebcaec5_rle_crop_3748833038_0.png', 1350234377: '1744797421_1730324_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845411_0.png', 1350235265: '1744797581_2582499_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845411_0.png', 1350236816: '1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849633_0.png', 1350236819: '1744797709_2632266_1350234345_a81534dab6205be30a65a01a61f4a07d_rle_crop_3748849660_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4597987ea65e4912dbb872a9e58ef6b3_3674466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f4388014a27c075e21ec3aaa39db251f_53975676.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d83e8700afb944cdef933957926f7d78_80437662.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8cb0ec61440519bd103b6eec2526e5ff_46175576.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c09e0635dc819fe0b47ba5cf235ae9d7_5992985.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d83e8700afb944cdef933957926f7d78_18648470.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b70717fe1d4dcf61c9a1284e82effd96_5131545.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/03d6f444c99b259026506b5899a12a42_20391018.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b814e9cdbb69f60de190a62ade20678e_51886219.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b814e9cdbb69f60de190a62ade20678e_47462482.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/097a02b4401b7370cb29c46d9d4d5a2f_12315926.png change filename to text .imagette220743011744797753/ imagette220743011744797753/1744797421_1730324_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845411_0.png.png imagette220743011744797753/1744797581_2582499_1350234030_8bea20987854d52d0fdefffbcc52f74b_rle_crop_3748845411_0.png.png imagette220743011744797753/1744797014_1726020_1350232669_5a4438ec75c4e1d29b061feee8672f93_rle_crop_3748809688_0.png.png imagette220743011744797753/1744797107_2572235_1350232688_b4eadf7c50770683741250b1317131fd_rle_crop_3748810139_0.png.png imagette220743011744797753/1744797072_1726718_1350233062_23e7035ddddaa102fc908a06b712d7fc_rle_crop_3748810099_0.png.png imagette220743011744797753/1744797130_1727418_1350232669_5a4438ec75c4e1d29b061feee8672f93_rle_crop_3748809688_0.png.png imagette220743011744797753/1744797372_1729883_1350234129_8f416f451be06e5a7fb995f25ebcaec5_rle_crop_3748833038_0.png.png imagette220743011744797753/1744797709_2632266_1350234345_a81534dab6205be30a65a01a61f4a07d_rle_crop_3748849660_0.png.png imagette220743011744797753/1744796983_2569401_1350232801_c39736b83ff1b85fbe1ba246b2befbb8_rle_crop_3748809263_0.png.png imagette220743011744797753/1744797251_1728572_1350233965_2ee54fe25f07c97952617fb5406ca77b_rle_crop_3748812366_0.png.png imagette220743011744797753/1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849633_0.png.png imagette220743011744797753/1744796892_1724477_1350232422_8c0b842cdffc57abaf15b7410adff594_rle_crop_3748808817_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ab15505e87b6a7732980a95b67303cac_42386359.png imagette220743011744797753 22074302 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=22074302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350233286: '1744797014_1726020_1350232685_2dd1c19841b3e88f4a62b51ae4e87220_rle_crop_3748809681_0.png', 1350233792: '1744797072_1726718_1350233097_9edde8deed1addb8a07aae4170112699_rle_crop_3748810071_0.png', 1350234016: '1744797130_1727418_1350232685_2dd1c19841b3e88f4a62b51ae4e87220_rle_crop_3748809681_0.png', 1350234219: '1744797251_1728572_1350233900_22dc697fb9ed86af741f56fc7507d749_rle_crop_3748812401_0.png', 1350235243: '1744797551_1731760_1350234253_5ed1b3180a35e06f78129076a996665a_rle_crop_3748845816_0.png', 1350236787: '1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849628_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9aa6b12171aa1c63968762275970680c_342042.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c80d9f88bb5dd225336a1104fff79e2c_43435566.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9aa6b12171aa1c63968762275970680c_86083144.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/fe2056a76e40dc4f67a165fbfa99c24d_28793069.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7849fdde3650b0a034d219ff5ecbc901_81030894.png change filename to text .imagette220743021744797754/ imagette220743021744797754/1744797251_1728572_1350233900_22dc697fb9ed86af741f56fc7507d749_rle_crop_3748812401_0.png.png imagette220743021744797754/1744797551_1731760_1350234253_5ed1b3180a35e06f78129076a996665a_rle_crop_3748845816_0.png.png imagette220743021744797754/1744797072_1726718_1350233097_9edde8deed1addb8a07aae4170112699_rle_crop_3748810071_0.png.png imagette220743021744797754/1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849628_0.png.png imagette220743021744797754/1744797130_1727418_1350232685_2dd1c19841b3e88f4a62b51ae4e87220_rle_crop_3748809681_0.png.png imagette220743021744797754/1744797014_1726020_1350232685_2dd1c19841b3e88f4a62b51ae4e87220_rle_crop_3748809681_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d04330f07bcf6d2b801b358bb30989e8_71430770.png imagette220743021744797754 22074309 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=22074309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350234408: '1744797461_2579812_1350233210_fa005e7154dd27edbc6016add6470ab4_rle_crop_3748845586_0.png', 1350236753: '1744797709_2632266_1350234345_a81534dab6205be30a65a01a61f4a07d_rle_crop_3748849662_0.png', 1350236750: '1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849637_0.png', 1350236747: '1744797709_2632266_1350234359_0824b85e2a656e87b85cad79c26b18cf_rle_crop_3748849620_0.png', 1350236744: '1744797709_2632266_1350234359_0824b85e2a656e87b85cad79c26b18cf_rle_crop_3748849618_0.png', 1350235241: '1744797551_1731760_1350234240_0977358be70c02be3d755c125e784460_rle_crop_3748845905_0.png', 1350235240: '1744797551_1731760_1350234240_0977358be70c02be3d755c125e784460_rle_crop_3748845909_0.png', 1350235239: '1744797551_1731760_1350234253_5ed1b3180a35e06f78129076a996665a_rle_crop_3748845819_0.png', 1350235238: '1744797551_1731760_1350234253_5ed1b3180a35e06f78129076a996665a_rle_crop_3748845830_0.png', 1350234656: '1744797492_1731235_1350234293_1648a833491f4fb58b5945248b738201_rle_crop_3748845726_0.png', 1350234409: '1744797461_2579812_1350233196_0899c1e6f9d6bab2907d7c784dbd64b6_rle_crop_3748845612_0.png', 1350232942: '1744796892_1724477_1350232422_8c0b842cdffc57abaf15b7410adff594_rle_crop_3748808818_0.png', 1350234323: '1744797372_1729883_1350234120_ab923a1d2ac6be63c5306ce5ea5f32cb_rle_crop_3748834051_0.png', 1350234322: '1744797372_1729883_1350234126_7f4e16f7497f98bf34dc2453a8cf6323_rle_crop_3748833046_0.png', 1350234216: '1744797251_1728572_1350233875_d3e593621957ea3330c093fcec704cce_rle_crop_3748812422_0.png', 1350234011: '1744797130_1727418_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809663_0.png', 1350233772: '1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810084_0.png', 1350233771: '1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810085_0.png', 1350233770: '1744797072_1726718_1350233097_9edde8deed1addb8a07aae4170112699_rle_crop_3748810078_0.png', 1350233280: '1744797014_1726020_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809663_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4ee7e84feeabb932cca172822b6ac156_17103958.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0bc6b1c98ecdfe9ae534025830714eb8_48936569.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/bd1d3717c32d56fa85d82fe532b4ca90_864803.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/60dd41aeff95c09d49f217fb16393627_93865581.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3dcac7071414591da7946f1f1080cfb1_2959540.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9524ec216bfb56bb7a98c98104ebdf2f_75926723.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7695a1190ef0556b8a779831a9258fc8_95413466.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d807352cb7e0101518f00a94f9b98520_396169.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c068ee4adf63ee14d8d4a0beb73526b9_80213842.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/373210635da3e76d34f7961b5ba641a4_37433370.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/84b84dba938b4c01a0bb36c043fdbbea_66579113.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/310d56d00a1d50c4319c16e57bb41e43_76906757.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/02295ac68fa79f48ff939db33f30445b_19088602.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e74e4375ab824e5848693638356dfa44_53954918.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/79260170d62a8f079d8ff55a3a37825c_17204212.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/74ed399236fd430fca7ad1a406b6a5ef_70161074.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/81d7b0ecec449c2e6d5ee1b38fd1674f_52975381.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f78f5daf2afbb5ff37973f81e0591623_4629107.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7835238e9684a40be23ffd03aae58d57_11785117.png change filename to text .imagette220743091744797754/ imagette220743091744797754/1744797551_1731760_1350234240_0977358be70c02be3d755c125e784460_rle_crop_3748845909_0.png.png imagette220743091744797754/1744797130_1727418_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809663_0.png.png imagette220743091744797754/1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810084_0.png.png imagette220743091744797754/1744797709_2632266_1350234354_b8372365ea8d8f80ba769ef4c6ca4b44_rle_crop_3748849637_0.png.png imagette220743091744797754/1744797551_1731760_1350234240_0977358be70c02be3d755c125e784460_rle_crop_3748845905_0.png.png imagette220743091744797754/1744797461_2579812_1350233196_0899c1e6f9d6bab2907d7c784dbd64b6_rle_crop_3748845612_0.png.png imagette220743091744797754/1744797014_1726020_1350232806_a2a22f4592f7511e1a873494b8e555fd_rle_crop_3748809663_0.png.png imagette220743091744797754/1744797551_1731760_1350234253_5ed1b3180a35e06f78129076a996665a_rle_crop_3748845830_0.png.png imagette220743091744797754/1744797461_2579812_1350233210_fa005e7154dd27edbc6016add6470ab4_rle_crop_3748845586_0.png.png imagette220743091744797754/1744797072_1726718_1350233097_9edde8deed1addb8a07aae4170112699_rle_crop_3748810078_0.png.png imagette220743091744797754/1744797251_1728572_1350233875_d3e593621957ea3330c093fcec704cce_rle_crop_3748812422_0.png.png imagette220743091744797754/1744797372_1729883_1350234120_ab923a1d2ac6be63c5306ce5ea5f32cb_rle_crop_3748834051_0.png.png imagette220743091744797754/1744797709_2632266_1350234359_0824b85e2a656e87b85cad79c26b18cf_rle_crop_3748849620_0.png.png imagette220743091744797754/1744797551_1731760_1350234253_5ed1b3180a35e06f78129076a996665a_rle_crop_3748845819_0.png.png imagette220743091744797754/1744796892_1724477_1350232422_8c0b842cdffc57abaf15b7410adff594_rle_crop_3748808818_0.png.png imagette220743091744797754/1744797072_1726718_1350233076_4834edd4f96d48c76f1e083e5e9b2f5d_rle_crop_3748810085_0.png.png imagette220743091744797754/1744797372_1729883_1350234126_7f4e16f7497f98bf34dc2453a8cf6323_rle_crop_3748833046_0.png.png imagette220743091744797754/1744797709_2632266_1350234345_a81534dab6205be30a65a01a61f4a07d_rle_crop_3748849662_0.png.png imagette220743091744797754/1744797492_1731235_1350234293_1648a833491f4fb58b5945248b738201_rle_crop_3748845726_0.png.png imagette220743091744797754/1744797709_2632266_1350234359_0824b85e2a656e87b85cad79c26b18cf_rle_crop_3748849618_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/74ed399236fd430fca7ad1a406b6a5ef_31218117.png imagette220743091744797754 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22074294 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22074311,22074312,22074313,22074314,22074315,22074316,22074317,22074318,22074319,22074320,22074321,22074322?tags=flou,kraft,Carton_brun,Carton_gris,autre_refus,cartonnette,papier,plastique,environnement,mal_croppe,Teint_Dans_La_Masse,metal your option no_mail is active, we will not send the real mail to your client args[1350236180] : ('0.029682255329962406',) no score found for photo 1350236180 We are sending mail with results at report@fotonower.com args[1350235815] : ('0.029682255329962406',) no score found for photo 1350235815 We are sending mail with results at report@fotonower.com args[1350235783] : ('0.029682255329962406',) no score found for photo 1350235783 We are sending mail with results at report@fotonower.com args[1350235714] : ('0.029682255329962406',) no score found for photo 1350235714 We are sending mail with results at report@fotonower.com args[1350235661] : ('0.029682255329962406',) no score found for photo 1350235661 We are sending mail with results at report@fotonower.com args[1350235489] : ('0.029682255329962406',) no score found for photo 1350235489 We are sending mail with results at report@fotonower.com args[1350235433] : ('0.029682255329962406',) no score found for photo 1350235433 We are sending mail with results at report@fotonower.com args[1350235364] : ('0.029682255329962406',) no score found for photo 1350235364 We are sending mail with results at report@fotonower.com args[1350235292] : ('0.029682255329962406',) no score found for photo 1350235292 We are sending mail with results at report@fotonower.com args[1350235271] : ('0.029682255329962406',) no score found for photo 1350235271 We are sending mail with results at report@fotonower.com args[1350235261] : ('0.029682255329962406',) no score found for photo 1350235261 We are sending mail with results at report@fotonower.com refus_total : 0.029682255329962406 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=22074294 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_P22074294_16-04-2025_12_02_32.pdf results_Auto_P22074294_16-04-2025_12_02_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074294_16-04-2025_12_02_32.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','22074294','results_Auto_P22074294_16-04-2025_12_02_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074294_16-04-2025_12_02_32.pdf','pdf','','0.25','0.029682255329962406') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22074294]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] map_info['map_portfolio_photo'] : {22074294: [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261, 1350234539, 1350234512, 1350234482, 1350234414, 1350234406, 1350234369, 1350234365, 1350234359, 1350234354, 1350234351, 1350234345, 1350234316, 1350234313, 1350234306, 1350234301, 1350234297, 1350234293, 1350234259, 1350234253, 1350234246, 1350234240, 1350234232, 1350234137, 1350234133, 1350234129, 1350234126, 1350234120, 1350234052, 1350234035, 1350234030, 1350234025, 1350233969, 1350233965, 1350233909, 1350233900, 1350233896, 1350233875, 1350233314, 1350233298, 1350233289, 1350233223, 1350233217, 1350233210, 1350233204, 1350233196, 1350233145, 1350233131, 1350233097, 1350233076, 1350233062, 1350232806, 1350232801, 1350232791, 1350232782, 1350232774, 1350232688, 1350232685, 1350232669, 1350232648, 1350232643, 1350232631, 1350232440, 1350232434, 1350232422]} final : False mtd_id 4302 list_pids : [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] 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, '2725719') ('4302', '22074294', '1350236180', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235815', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235783', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235714', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235661', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235489', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235433', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235364', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235292', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235271', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235261', None, None, None, None, None, '2725719') 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', '22074294', '1350236180', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235815', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235783', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235714', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235661', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235489', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235433', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235364', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235292', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235271', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235261', None, None, None, None, None, '2725719')] time used for this insertion : 0.013422012329101562 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.565051078796387 time spend to save output : 0.013826131820678711 total time spend for step 4 : 7.578877210617065 step5:split_time_score Wed Apr 16 12:02:39 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 : ['22074294'] 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 : [('22074294',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22074294) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350235364: {'path': 'temp/1744797751_717697_1350235364_3eddae2b0b2c9e8d9fd63ea45aaa3095.jpg', 'extension': 'jpg'}, 1350235433: {'path': 'temp/1744797751_717697_1350235433_6ee96cad7d9c452e9143648fc6e044e9.jpg', 'extension': 'jpg'}, 1350235489: {'path': 'temp/1744797751_717697_1350235489_9719c3406f76a09b2b4773c138f2cf92.jpg', 'extension': 'jpg'}, 1350235815: {'path': 'temp/1744797751_717697_1350235815_63a3e44307d44ffbf0e1429822bc18ca.jpg', 'extension': 'jpg'}, 1350236180: {'path': 'temp/1744797751_717697_1350236180_ac1d4bbb7dbe15f153575f43537c0495.jpg', 'extension': 'jpg'}, 1350235661: {'path': 'temp/1744797751_717697_1350235661_31fce4f33b968f884ab785f62518e56a.jpg', 'extension': 'jpg'}, 1350235714: {'path': 'temp/1744797751_717697_1350235714_58d1f5e4537f6c891a9228fb531be580.jpg', 'extension': 'jpg'}, 1350235783: {'path': 'temp/1744797751_717697_1350235783_384fc00e9a98ec591e0474491e966484.jpg', 'extension': 'jpg'}, 1350235261: {'path': 'temp/1744797751_717697_1350235261_861e387d8f6baae68a12d5c20369c1fc.jpg', 'extension': 'jpg'}, 1350235271: {'path': 'temp/1744797751_717697_1350235271_862a57f8535f46939aaafa3d02b74c25.jpg', 'extension': 'jpg'}, 1350235292: {'path': 'temp/1744797751_717697_1350235292_b05022d4f94ef909bcb7aca5cdcb8395.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 = 22074294; (('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 = 22074294 group by h (('11', 75),) 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=22074294 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 (22074294) 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 (22074294) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22074294 Nombre de photos uploadées : 75 / 23040 (0%) 16042025 22074294 Nombre de photos taguées (types de déchets): 0 / 75 (0%) 16042025 22074294 Nombre de photos taguées (volume) : 0 / 75 (0%) [{'photo_id': 1350232440, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e0e5de850aab3a70935899ae14aa7594.jpg', 'username': None, 'uploaded_at': 1744796767, 'text': 'image_16042025_11_45_04_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350232434, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/404f5ae8a814ab3774e4fcabd90fa1a6.jpg', 'username': None, 'uploaded_at': 1744796767, 'text': 'image_16042025_11_45_34_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350232422, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8c0b842cdffc57abaf15b7410adff594.jpg', 'username': None, 'uploaded_at': 1744796767, 'text': 'image_16042025_11_45_44_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350232688, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b4eadf7c50770683741250b1317131fd.jpg', 'username': None, 'uploaded_at': 1744796827, 'text': 'image_16042025_11_45_54_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003513336181640625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22074294, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029478073120117188 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726488, 'mtr_portfolio_id': 22072955, 'dashboard_result_id': 9882000, '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_P22072955_16-04-2025_11_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22072975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072986, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726488, 'mtr_portfolio_id': 22073578, 'dashboard_result_id': 9882001, '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_P22073578_16-04-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22073614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22073615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22073616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22073617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22073618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22073619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22073620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22073621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22073622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22073623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22073624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22073625, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726488, 'mtr_portfolio_id': 22074294, 'dashboard_result_id': 9882002, '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_P22074294_16-04-2025_11_59_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22074299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074310, '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 = 22072955 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': 2725607, 'mtr_portfolio_id': 22072955, 'created_at': datetime.datetime(2025, 4, 16, 11, 33, 2), 'result': '0.04039442742867696', 'result_long': None, 'result_double': None}] Qualite : 0.04039442742867696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22072955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22072955_16-04-2025_11_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22072955 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_P22072955_16-04-2025_11_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22072975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072986, 'pht': 3726}}" where mtr_portfolio_id = 22072955 and dashboard_run_id = 1726488 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`=22072955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9882000, 0.04039442742867696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22072955_16-04-2025_11_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22072975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072986, '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 = 22073578 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': 2725665, 'mtr_portfolio_id': 22073578, 'created_at': datetime.datetime(2025, 4, 16, 11, 46, 30), 'result': '0.03969681658411427', 'result_long': None, 'result_double': None}] Qualite : 0.03969681658411427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22073578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22073578_16-04-2025_11_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22073578 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_P22073578_16-04-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22073614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22073615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22073616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22073617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22073618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22073619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22073620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22073621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22073622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22073623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22073624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22073625, 'pht': 3726}}" where mtr_portfolio_id = 22073578 and dashboard_run_id = 1726488 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`=22073578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9882001, 0.03969681658411427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22073578_16-04-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22073614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22073615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22073616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22073617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22073618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22073619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22073620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22073621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22073622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22073623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22073624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22073625, '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 = 22074294 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': 2725719, 'mtr_portfolio_id': 22074294, 'created_at': datetime.datetime(2025, 4, 16, 12, 2, 31), 'result': '0.029682255329962406', 'result_long': None, 'result_double': None}] Qualite : 0.029682255329962406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22074294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074294_16-04-2025_12_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22074294 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_P22074294_16-04-2025_12_02_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22074299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074310, 'pht': 3726}}" where mtr_portfolio_id = 22074294 and dashboard_run_id = 1726488 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`=22074294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9882002, 0.029682255329962406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074294_16-04-2025_12_02_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22074299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074310, '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 (22072955,22073578,22074294) result : ((1350228367,), (1350228370,), (1350228376,), (1350228422,), (1350228426,), (1350228435,), (1350228437,), (1350228438,), (1350228449,), (1350228506,), (1350228510,), (1350228514,), (1350228518,), (1350228620,), (1350228626,), (1350228640,), (1350228643,), (1350228648,), (1350228652,), (1350228805,), (1350228808,), (1350228812,), (1350228816,), (1350228893,), (1350228901,), (1350228906,), (1350228909,), (1350228914,), (1350228918,), (1350228950,), (1350228955,), (1350228960,), (1350228964,), (1350229023,), (1350229029,), (1350229034,), (1350229040,), (1350229046,), (1350229049,), (1350229125,), (1350229131,), (1350229136,), (1350229147,), (1350229199,), (1350229203,), (1350229207,), (1350229212,), (1350229217,), (1350229222,), (1350229285,), (1350229291,), (1350229303,), (1350229307,), (1350229347,), (1350229349,), (1350229496,), (1350229499,), (1350229515,), (1350229522,), (1350229610,), (1350229615,), (1350229628,), (1350229639,), (1350229643,), (1350229677,), (1350229680,), (1350229682,), (1350229685,), (1350229688,), (1350229732,), (1350229740,), (1350229745,), (1350229748,), (1350229753,), (1350229867,), (1350229827,), (1350229832,), (1350229837,), (1350229862,), (1350229931,), (1350229935,), (1350229937,), (1350229942,), (1350229994,), (1350229998,), (1350230002,), (1350230005,), (1350230009,), (1350230018,), (1350230084,), (1350230088,), (1350230092,), (1350230094,), (1350230197,), (1350230202,), (1350230229,), (1350230233,), (1350230235,), (1350230359,), (1350230365,), (1350230372,), (1350230623,), (1350230896,), (1350231183,), (1350231189,), (1350231195,), (1350231199,), (1350231202,), (1350231204,), (1350231274,), (1350231279,), (1350231281,), (1350231282,), (1350231339,), (1350231357,), (1350231369,), (1350231403,), (1350231415,), (1350231418,), (1350231595,), (1350231603,), (1350231642,), (1350232185,), (1350232189,), (1350232193,), (1350232198,), (1350232207,), (1350232225,), (1350232357,), (1350232360,), (1350232364,), (1350232368,), (1350232373,), (1350232378,), (1350232444,), (1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 75, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22074294]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] map_info['map_portfolio_photo'] : {22074294: [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261, 1350234539, 1350234512, 1350234482, 1350234414, 1350234406, 1350234369, 1350234365, 1350234359, 1350234354, 1350234351, 1350234345, 1350234316, 1350234313, 1350234306, 1350234301, 1350234297, 1350234293, 1350234259, 1350234253, 1350234246, 1350234240, 1350234232, 1350234137, 1350234133, 1350234129, 1350234126, 1350234120, 1350234052, 1350234035, 1350234030, 1350234025, 1350233969, 1350233965, 1350233909, 1350233900, 1350233896, 1350233875, 1350233314, 1350233298, 1350233289, 1350233223, 1350233217, 1350233210, 1350233204, 1350233196, 1350233145, 1350233131, 1350233097, 1350233076, 1350233062, 1350232806, 1350232801, 1350232791, 1350232782, 1350232774, 1350232688, 1350232685, 1350232669, 1350232648, 1350232643, 1350232631, 1350232440, 1350232434, 1350232422]} final : True mtd_id 4302 list_pids : [1350236180, 1350235815, 1350235783, 1350235714, 1350235661, 1350235489, 1350235433, 1350235364, 1350235292, 1350235271, 1350235261] Looping around the photos to save general results len do output : 1 /22074294Didn'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, '2725719') ('4302', '22074294', '1350236180', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235815', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235783', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235714', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235661', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235489', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235433', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235364', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235292', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235271', None, None, None, None, None, '2725719') ('4302', None, None, None, None, None, None, None, '2725719') ('4302', '22074294', '1350235261', None, None, None, None, None, '2725719') 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, '22074294', 'None', None, None, None, None, '2725719'), ('4302', '22074294', '1350236180', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235815', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235783', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235714', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235661', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235489', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235433', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235364', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235292', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235271', None, None, None, None, None, '2725719'), ('4302', '22074294', '1350235261', None, None, None, None, None, '2725719')] time used for this insertion : 0.018271923065185547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3023664951324463 time spend to save output : 0.018584489822387695 total time spend for step 5 : 0.320950984954834 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 (2725719) 2.35user 2.21system 0:13.54elapsed 33%CPU (0avgtext+0avgdata 161024maxresident)k 42096inputs+14720outputs (139major+77172minor)pagefaults 0swaps