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 : 2582919 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 (4231947) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4231947) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451566 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4231947'] with mtr_portfolio_ids : ['29451566'] and first list_photo_ids : [] new path : /proc/2582919/ Name: python3 Umask: 0002 State: R (running) Tgid: 2582919 Ngid: 0 Pid: 2582919 PPid: 2582918 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2582919 NSpid: 2582919 NSpgid: 2581763 NSsid: 2581763 VmPeak: 1113372 kB VmSize: 1113372 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105064 kB VmRSS: 105064 kB RssAnon: 66312 kB RssFile: 38752 kB RssShmem: 0 kB VmData: 872100 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 624 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 47 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2582919', 'Ngid': '0', 'Pid': '2582919', 'PPid': '2582918', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2582919', 'NSpid': '2582919', 'NSpgid': '2581763', 'NSsid': '2581763', 'VmPeak': '1113372 kB', 'VmSize': '1113372 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105064 kB', 'VmRSS': '105064 kB', 'RssAnon': '66312 kB', 'RssFile': '38752 kB', 'RssShmem': '0 kB', 'VmData': '872100 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '624 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '47', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2582919', '1113372', '0', '1113372', '872100', '105064', b'', 'marlene', '4231947') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29451566) 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 (4231947 ) ) 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 (29451566) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399575450, 'portfolio_id': 29451566}, {'photo_id': 1399575037, 'portfolio_id': 29451566}, {'photo_id': 1399575015, 'portfolio_id': 29451566}, {'photo_id': 1399575013, 'portfolio_id': 29451566}, {'photo_id': 1399575012, 'portfolio_id': 29451566}, {'photo_id': 1399574986, 'portfolio_id': 29451566}, {'photo_id': 1399574985, 'portfolio_id': 29451566}, {'photo_id': 1399574984, 'portfolio_id': 29451566}, {'photo_id': 1399574983, 'portfolio_id': 29451566}, {'photo_id': 1399574969, 'portfolio_id': 29451566}, {'photo_id': 1399574967, 'portfolio_id': 29451566}, {'photo_id': 1399574958, 'portfolio_id': 29451566}, {'photo_id': 1399574956, 'portfolio_id': 29451566}, {'photo_id': 1399574953, 'portfolio_id': 29451566}, {'photo_id': 1399574951, 'portfolio_id': 29451566}, {'photo_id': 1399574950, 'portfolio_id': 29451566}, {'photo_id': 1399574949, 'portfolio_id': 29451566}, {'photo_id': 1399574842, 'portfolio_id': 29451566}, {'photo_id': 1399574841, 'portfolio_id': 29451566}, {'photo_id': 1399574840, 'portfolio_id': 29451566}, {'photo_id': 1399574839, 'portfolio_id': 29451566}, {'photo_id': 1399574597, 'portfolio_id': 29451566}, {'photo_id': 1399574565, 'portfolio_id': 29451566}, {'photo_id': 1399574535, 'portfolio_id': 29451566}, {'photo_id': 1399574156, 'portfolio_id': 29451566}, {'photo_id': 1399574125, 'portfolio_id': 29451566}, {'photo_id': 1399574095, 'portfolio_id': 29451566}, {'photo_id': 1399574091, 'portfolio_id': 29451566}, {'photo_id': 1399574049, 'portfolio_id': 29451566}, {'photo_id': 1399574047, 'portfolio_id': 29451566}, {'photo_id': 1399574046, 'portfolio_id': 29451566}, {'photo_id': 1399574045, 'portfolio_id': 29451566}, {'photo_id': 1399574044, 'portfolio_id': 29451566}, {'photo_id': 1399574031, 'portfolio_id': 29451566}, {'photo_id': 1399574028, 'portfolio_id': 29451566}, {'photo_id': 1399574025, 'portfolio_id': 29451566}, {'photo_id': 1399574024, 'portfolio_id': 29451566}, {'photo_id': 1399574023, 'portfolio_id': 29451566}, {'photo_id': 1399574022, 'portfolio_id': 29451566}, {'photo_id': 1399574000, 'portfolio_id': 29451566}, {'photo_id': 1399573999, 'portfolio_id': 29451566}, {'photo_id': 1399573998, 'portfolio_id': 29451566}, {'photo_id': 1399573997, 'portfolio_id': 29451566}, {'photo_id': 1399573987, 'portfolio_id': 29451566}, {'photo_id': 1399573984, 'portfolio_id': 29451566}, {'photo_id': 1399573981, 'portfolio_id': 29451566}, {'photo_id': 1399573980, 'portfolio_id': 29451566}, {'photo_id': 1399573979, 'portfolio_id': 29451566}, {'photo_id': 1399573978, 'portfolio_id': 29451566}, {'photo_id': 1399573954, 'portfolio_id': 29451566}, {'photo_id': 1399573953, 'portfolio_id': 29451566}, {'photo_id': 1399573952, 'portfolio_id': 29451566}, {'photo_id': 1399573938, 'portfolio_id': 29451566}, {'photo_id': 1399573935, 'portfolio_id': 29451566}, {'photo_id': 1399573932, 'portfolio_id': 29451566}, {'photo_id': 1399573931, 'portfolio_id': 29451566}, {'photo_id': 1399573930, 'portfolio_id': 29451566}, {'photo_id': 1399573929, 'portfolio_id': 29451566}, {'photo_id': 1399573873, 'portfolio_id': 29451566}, {'photo_id': 1399573860, 'portfolio_id': 29451566}, {'photo_id': 1399573858, 'portfolio_id': 29451566}, {'photo_id': 1399573834, 'portfolio_id': 29451566}, {'photo_id': 1399573585, 'portfolio_id': 29451566}, {'photo_id': 1399573583, 'portfolio_id': 29451566}, {'photo_id': 1399573582, 'portfolio_id': 29451566}, {'photo_id': 1399573580, 'portfolio_id': 29451566}, {'photo_id': 1399573555, 'portfolio_id': 29451566}, {'photo_id': 1399573552, 'portfolio_id': 29451566}, {'photo_id': 1399573551, 'portfolio_id': 29451566}, {'photo_id': 1399573550, 'portfolio_id': 29451566}] map_portfolio_id_photo_id: {29451566: [1399575450, 1399575037, 1399575015, 1399575013, 1399575012, 1399574986, 1399574985, 1399574984, 1399574983, 1399574969, 1399574967, 1399574958, 1399574956, 1399574953, 1399574951, 1399574950, 1399574949, 1399574842, 1399574841, 1399574840, 1399574839, 1399574597, 1399574565, 1399574535, 1399574156, 1399574125, 1399574095, 1399574091, 1399574049, 1399574047, 1399574046, 1399574045, 1399574044, 1399574031, 1399574028, 1399574025, 1399574024, 1399574023, 1399574022, 1399574000, 1399573999, 1399573998, 1399573997, 1399573987, 1399573984, 1399573981, 1399573980, 1399573979, 1399573978, 1399573954, 1399573953, 1399573952, 1399573938, 1399573935, 1399573932, 1399573931, 1399573930, 1399573929, 1399573873, 1399573860, 1399573858, 1399573834, 1399573585, 1399573583, 1399573582, 1399573580, 1399573555, 1399573552, 1399573551, 1399573550]} ##### 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.020212411880493164 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 16 00:46:56 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 (29451566) 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 : 29451566 get user id for portfolio 29451566 get sub ptf for main ptf 29451566, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_gris', 'plastique', 'Carton_brun', 'kraft', 'mal_croppe', 'autre_refus', 'papier', 'metal', 'environnement', 'flou', '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`=29451566 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','kraft','mal_croppe','autre_refus','papier','metal','environnement','flou','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`=29451566 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','kraft','mal_croppe','autre_refus','papier','metal','environnement','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29451566, 'sub_port_id': 29451574, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074424, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'kraft': {'main_port_id': 29451566, 'sub_port_id': 29451575, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074425, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'flou': {'main_port_id': 29451566, 'sub_port_id': 29451576, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074426, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'autre_refus': {'main_port_id': 29451566, 'sub_port_id': 29451577, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074427, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'metal': {'main_port_id': 29451566, 'sub_port_id': 29451578, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074428, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29451566, 'sub_port_id': 29451579, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074429, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'cartonnette': {'main_port_id': 29451566, 'sub_port_id': 29451580, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074430, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'Carton_brun': {'main_port_id': 29451566, 'sub_port_id': 29451581, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074431, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'mal_croppe': {'main_port_id': 29451566, 'sub_port_id': 29451582, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074432, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'environnement': {'main_port_id': 29451566, 'sub_port_id': 29451583, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074433, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'plastique': {'main_port_id': 29451566, 'sub_port_id': 29451584, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074434, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}, 'papier': {'main_port_id': 29451566, 'sub_port_id': 29451585, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074435, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29451574 , 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=29451566 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 (29451574) result : ((1399573961,), (1399574018,), (1399574019,), (1399574020,), (1399574065,), (1399574066,), (1399574067,), (1399574068,), (1399574070,), (1399574945,), (1399574946,), (1399574977,), (1399574978,), (1399574992,), (1399575408,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451575 , 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=29451566 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 (29451575) result : ((1399574088,), (1399574998,), (1399574999,), (1399575000,), (1399575445,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451576 , 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=29451566 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 (29451576) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451577 , 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=29451566 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 (29451577) result : ((1399574063,), (1399574975,), (1399574976,), (1399574991,), (1399575173,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451578 , 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=29451566 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 (29451578) result : ((1399575001,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451579 , 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=29451566 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 (29451579) result : ((1399574005,), (1399574006,), (1399574017,), (1399574038,), (1399574062,), (1399574079,), (1399574080,), (1399574942,), (1399574943,), (1399574944,), (1399574971,), (1399574973,), (1399574974,), (1399574988,), (1399574989,), (1399575163,), (1399575165,), (1399575397,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451580 , 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=29451566 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 (29451580) result : ((1399574007,), (1399574008,), (1399574021,), (1399574071,), (1399574072,), (1399574081,), (1399574082,), (1399574083,), (1399574734,), (1399574979,), (1399574980,), (1399574982,), (1399575420,), (1399575422,), (1399575424,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451581 , 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=29451566 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 (29451581) result : ((1399574039,), (1399574073,), (1399574074,), (1399574075,), (1399574085,), (1399574947,), (1399574948,), (1399574993,), (1399574994,), (1399575187,), (1399575189,), (1399575436,), (1399575437,), (1399575438,), (1399575439,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451582 , 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=29451566 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 (29451582) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451583 , 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=29451566 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 (29451583) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451584 , 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=29451566 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 (29451584) result : ((1399574076,), (1399574077,), (1399574086,), (1399574087,), (1399574997,), (1399575440,), (1399575441,), (1399575442,), (1399575443,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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 29451585 , 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=29451566 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 (29451585) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29451566) result : ((1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,)) 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 (1399574000) 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`=29451566 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','kraft','mal_croppe','autre_refus','papier','metal','environnement','flou','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`=29451566 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','kraft','mal_croppe','autre_refus','papier','metal','environnement','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29451566, 'sub_port_id': 29451586, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074436, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'kraft': {'main_port_id': 29451566, 'sub_port_id': 29451587, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074437, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'flou': {'main_port_id': 29451566, 'sub_port_id': 29451588, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074438, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'autre_refus': {'main_port_id': 29451566, 'sub_port_id': 29451589, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074439, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'metal': {'main_port_id': 29451566, 'sub_port_id': 29451590, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074440, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29451566, 'sub_port_id': 29451591, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074441, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'cartonnette': {'main_port_id': 29451566, 'sub_port_id': 29451592, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074442, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'Carton_brun': {'main_port_id': 29451566, 'sub_port_id': 29451593, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074443, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'mal_croppe': {'main_port_id': 29451566, 'sub_port_id': 29451594, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074444, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'environnement': {'main_port_id': 29451566, 'sub_port_id': 29451595, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074445, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'plastique': {'main_port_id': 29451566, 'sub_port_id': 29451596, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074446, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}, 'papier': {'main_port_id': 29451566, 'sub_port_id': 29451597, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20074447, 'last_updated_at': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 0, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 0, 33, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451578 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451579 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451580 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451593,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451581 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451594,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451582 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451595,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451583 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29451597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29451585 lien utilise dans velours : https://marlene.fotonower.com/velours/29451586,29451587,29451588,29451589,29451590,29451591,29451592,29451593,29451594,29451595,29451596,29451597?tags=Carton_gris,kraft,flou,autre_refus,metal,Teint_Dans_La_Masse,cartonnette,Carton_brun,mal_croppe,environnement,plastique,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29451566]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] map_info['map_portfolio_photo'] : {29451566: [1399575450, 1399575037, 1399575015, 1399575013, 1399575012, 1399574986, 1399574985, 1399574984, 1399574983, 1399574969, 1399574967, 1399574958, 1399574956, 1399574953, 1399574951, 1399574950, 1399574949, 1399574842, 1399574841, 1399574840, 1399574839, 1399574597, 1399574565, 1399574535, 1399574156, 1399574125, 1399574095, 1399574091, 1399574049, 1399574047, 1399574046, 1399574045, 1399574044, 1399574031, 1399574028, 1399574025, 1399574024, 1399574023, 1399574022, 1399574000, 1399573999, 1399573998, 1399573997, 1399573987, 1399573984, 1399573981, 1399573980, 1399573979, 1399573978, 1399573954, 1399573953, 1399573952, 1399573938, 1399573935, 1399573932, 1399573931, 1399573930, 1399573929, 1399573873, 1399573860, 1399573858, 1399573834, 1399573585, 1399573583, 1399573582, 1399573580, 1399573555, 1399573552, 1399573551, 1399573550]} final : False mtd_id 4302 list_pids : [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] Looping around the photos to save general results len do output : 1 /29451566. 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, '4231947') ('4302', '29451566', '1399575450', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575037', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575015', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575013', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575012', None, None, None, None, None, '4231947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29451566', "{'Carton_gris': 29451574, 'kraft': 29451575, 'flou': 29451576, 'autre_refus': 29451577, 'metal': 29451578, 'Teint_Dans_La_Masse': 29451579, 'cartonnette': 29451580, 'Carton_brun': 29451581, 'mal_croppe': 29451582, 'environnement': 29451583, 'plastique': 29451584, 'papier': 29451585}", None, None, None, None, '4231947'), ('4302', '29451566', '1399575450', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575037', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575015', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575013', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575012', None, None, None, None, None, '4231947')] time used for this insertion : 0.020753145217895508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6374850273132324 time spend to save output : 0.021004676818847656 total time spend for step 1 : 0.6584897041320801 step2:final Tue Dec 16 00:46:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29451566) 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 29451566 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399573555,1399573552,1399573551,1399573550,1399573585,1399573583,1399573582,1399573580,1399573873,1399573860,1399573858,1399573834,1399573938,1399573935,1399573932,1399573931,1399573930,1399573929,1399573954,1399573953,1399573952,1399573987,1399573984,1399573981,1399573980,1399573979,1399573978,1399574000,1399573999,1399573998,1399573997,1399574031,1399574028,1399574025,1399574024,1399574023,1399574022,1399574049,1399574047,1399574046,1399574045,1399574044,1399574156,1399574125,1399574095,1399574091,1399574597,1399574565,1399574535,1399574969,1399574842,1399574841,1399574967,1399574958,1399574840,1399574956,1399574839,1399574953,1399574951,1399574950,1399574949,1399574986,1399574985,1399574984,1399574983,1399575037,1399575015,1399575013,1399575012,1399575450); 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([29451566]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} new output for save of step final : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] map_info['map_portfolio_photo'] : {29451566: [1399575450, 1399575037, 1399575015, 1399575013, 1399575012, 1399574986, 1399574985, 1399574984, 1399574983, 1399574969, 1399574967, 1399574958, 1399574956, 1399574953, 1399574951, 1399574950, 1399574949, 1399574842, 1399574841, 1399574840, 1399574839, 1399574597, 1399574565, 1399574535, 1399574156, 1399574125, 1399574095, 1399574091, 1399574049, 1399574047, 1399574046, 1399574045, 1399574044, 1399574031, 1399574028, 1399574025, 1399574024, 1399574023, 1399574022, 1399574000, 1399573999, 1399573998, 1399573997, 1399573987, 1399573984, 1399573981, 1399573980, 1399573979, 1399573978, 1399573954, 1399573953, 1399573952, 1399573938, 1399573935, 1399573932, 1399573931, 1399573930, 1399573929, 1399573873, 1399573860, 1399573858, 1399573834, 1399573585, 1399573583, 1399573582, 1399573580, 1399573555, 1399573552, 1399573551, 1399573550]} final : False mtd_id 4302 list_pids : [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] Looping around the photos to save general results len do output : 5 /1399575450.Didn't retrieve data . /1399575037.Didn't retrieve data . /1399575015.Didn't retrieve data . /1399575013.Didn't retrieve data . /1399575012.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, '4231947') ('4302', '29451566', '1399575450', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575037', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575015', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575013', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575012', None, None, None, None, None, '4231947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '29451566', '1399575450', '0.04760964518372767', None, None, None, None, '4231947'), ('4302', '29451566', '1399575037', '0.04760964518372767', None, None, None, None, '4231947'), ('4302', '29451566', '1399575015', '0.04760964518372767', None, None, None, None, '4231947'), ('4302', '29451566', '1399575013', '0.04760964518372767', None, None, None, None, '4231947'), ('4302', '29451566', '1399575012', '0.04760964518372767', None, None, None, None, '4231947')] time used for this insertion : 0.015584945678710938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08784794807434082 time spend to save output : 0.01590132713317871 total time spend for step 2 : 0.10374927520751953 step3:velours_tree Tue Dec 16 00:46:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29451566: [{'Carton_gris': 29451574, 'kraft': 29451575, 'flou': 29451576, 'autre_refus': 29451577, 'metal': 29451578, 'Teint_Dans_La_Masse': 29451579, 'cartonnette': 29451580, 'Carton_brun': 29451581, 'mal_croppe': 29451582, 'environnement': 29451583, 'plastique': 29451584, 'papier': 29451585}]} input_args_next_step : {29451566: ()} output_args : {29451566: [{'Carton_gris': 29451574, 'kraft': 29451575, 'flou': 29451576, 'autre_refus': 29451577, 'metal': 29451578, 'Teint_Dans_La_Masse': 29451579, 'cartonnette': 29451580, 'Carton_brun': 29451581, 'mal_croppe': 29451582, 'environnement': 29451583, 'plastique': 29451584, 'papier': 29451585}]} args : 29451566 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 : ({'Carton_gris': 29451574, 'kraft': 29451575, 'flou': 29451576, 'autre_refus': 29451577, 'metal': 29451578, 'Teint_Dans_La_Masse': 29451579, 'cartonnette': 29451580, 'Carton_brun': 29451581, 'mal_croppe': 29451582, 'environnement': 29451583, 'plastique': 29451584, 'papier': 29451585},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29451566) 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([29451566]) 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.2590811252593994 time spend to save output : 7.152557373046875e-05 total time spend for step 3 : 0.2591526508331299 step4:send_mail_cod Tue Dec 16 00:46:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} input_args_next_step : {1399575450: ()} output_args : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} args : 1399575450 depend.output_id : 0 input_args_next_step : {1399575450: ('0.04760964518372767',), 1399575037: ()} output_args : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} args : 1399575037 depend.output_id : 0 input_args_next_step : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ()} output_args : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} args : 1399575015 depend.output_id : 0 input_args_next_step : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ()} output_args : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} args : 1399575013 depend.output_id : 0 input_args_next_step : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ()} output_args : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',)} args : 1399575012 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 : {29451566: [{'Carton_gris': 29451574, 'kraft': 29451575, 'flou': 29451576, 'autre_refus': 29451577, 'metal': 29451578, 'Teint_Dans_La_Masse': 29451579, 'cartonnette': 29451580, 'Carton_brun': 29451581, 'mal_croppe': 29451582, 'environnement': 29451583, 'plastique': 29451584, 'papier': 29451585}]} input_args_next_step : {1399575450: ('0.04760964518372767',), 1399575037: ('0.04760964518372767',), 1399575015: ('0.04760964518372767',), 1399575013: ('0.04760964518372767',), 1399575012: ('0.04760964518372767',), 29451566: ()} output_args : {29451566: [{'Carton_gris': 29451574, 'kraft': 29451575, 'flou': 29451576, 'autre_refus': 29451577, 'metal': 29451578, 'Teint_Dans_La_Masse': 29451579, 'cartonnette': 29451580, 'Carton_brun': 29451581, 'mal_croppe': 29451582, 'environnement': 29451583, 'plastique': 29451584, 'papier': 29451585}]} args : 29451566 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 :6, first value : ('0.04760964518372767',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29451566) 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_view ph WHERE photo_id IN (1399575450,1399575037,1399575015,1399575013,1399575012) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399575012 begin to download photo : 1399575015 begin to download photo : 1399575450 download finish for photo 1399575015 begin to download photo : 1399575037 download finish for photo 1399575450 download finish for photo 1399575012 begin to download photo : 1399575013 download finish for photo 1399575037 download finish for photo 1399575013 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P29451566_16-12-2025_00_46_58.pdf 29451575 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399574088: '1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404273_0.png', 1399574998: '1765842205_3003978_1399574024_83033f812da25597fb35241dc3f6d635_rle_crop_4071416916_0.png', 1399574999: '1765842205_3003978_1399574023_a8f6bd05fda553321cb168628038709f_rle_crop_4071416931_0.png', 1399575000: '1765842205_3003978_1399574022_19ad0fe199e280262f1c3a443ffae6a1_rle_crop_4071416944_0.png', 1399575445: '1765842326_3009320_1399573984_80c787780b7b2588367b85298f7a044b_rle_crop_4071417272_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e40af48d1b5c0462a9df1ee7bb54b741_11317219.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7a23c2b0f34b58d5142756886f4afbb2_63421064.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/29ab3b5323dc5864502effaca868f26e_84748632.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e4b36998da1b6f2fa62998bbea592a0e_24236554.png change filename to text .imagette294515751765842418/ imagette294515751765842418/1765842326_3009320_1399573984_80c787780b7b2588367b85298f7a044b_rle_crop_4071417272_0.png.png imagette294515751765842418/1765842205_3003978_1399574022_19ad0fe199e280262f1c3a443ffae6a1_rle_crop_4071416944_0.png.png imagette294515751765842418/1765842205_3003978_1399574024_83033f812da25597fb35241dc3f6d635_rle_crop_4071416916_0.png.png imagette294515751765842418/1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404273_0.png.png imagette294515751765842418/1765842205_3003978_1399574023_a8f6bd05fda553321cb168628038709f_rle_crop_4071416931_0.png.png imagette294515761765842418/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e0f5be8eb6ce58ff286bee78e8ff4990_30261846.png imagette294515751765842418 29451576 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451576 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294515761765842418 29451577 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399574063: '1765841947_2987270_1399573929_1d132e0bd469dc0af0a1d99c08e64439_rle_crop_4071404257_0.png', 1399574975: '1765842186_3001320_1399574156_6e61c770929ea3b7a024296ae56c566a_rle_crop_4071416616_0.png', 1399574976: '1765842186_3001320_1399574046_b0a43a7b84c48807b527bc6ec782b69d_rle_crop_4071416639_0.png', 1399574991: '1765842205_3003978_1399574025_5ca982ab8a000a9ae16b905f234961e8_rle_crop_4071416903_0.png', 1399575173: '1765842305_3008952_1399573999_df5dcd92e235a08704146510a2683f49_rle_crop_4071417053_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d60438b12d7d9da98632587af529f1bb_46214575.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/aefe743a3c2b883b8b7940f1c5b12dd3_9125022.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/29bc699aad0d4ab0dd9ff843a66c8010_99442844.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b434292408e7af3a91c32895e7cea835_63640078.png change filename to text .imagette294515771765842418/ imagette294515771765842418/1765841947_2987270_1399573929_1d132e0bd469dc0af0a1d99c08e64439_rle_crop_4071404257_0.png.png imagette294515771765842418/1765842186_3001320_1399574156_6e61c770929ea3b7a024296ae56c566a_rle_crop_4071416616_0.png.png imagette294515771765842418/1765842205_3003978_1399574025_5ca982ab8a000a9ae16b905f234961e8_rle_crop_4071416903_0.png.png imagette294515771765842418/1765842305_3008952_1399573999_df5dcd92e235a08704146510a2683f49_rle_crop_4071417053_0.png.png imagette294515771765842418/1765842186_3001320_1399574046_b0a43a7b84c48807b527bc6ec782b69d_rle_crop_4071416639_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/054c7809c6a47037c32302e7f257bd32_58621664.png imagette294515771765842418 29451578 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399575001: '1765842205_3003978_1399574022_19ad0fe199e280262f1c3a443ffae6a1_rle_crop_4071416945_0.png'} change filename to text .imagette294515781765842418/ imagette294515781765842418/1765842205_3003978_1399574022_19ad0fe199e280262f1c3a443ffae6a1_rle_crop_4071416945_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5de1fb8aa262e4b4d1c1b4fca5d3a049_79639236.png imagette294515781765842418 29451580 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451580 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399574007: '1765841827_2981200_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398476_0.png', 1399574008: '1765841827_2981200_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398486_0.png', 1399574021: '1765841848_2981892_1399573582_695c7f0a139114392259068f9086ea7f_rle_crop_4071401456_0.png', 1399574071: '1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404109_0.png', 1399574072: '1765841947_2987270_1399573930_e490d524eb2b896d41f5aebd3dc950c1_rle_crop_4071404242_0.png', 1399574081: '1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404276_0.png', 1399574082: '1765841965_2989511_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398476_0.png', 1399574083: '1765841965_2989511_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398486_0.png', 1399574734: '1765842085_2995563_1399573585_c4e103b447c9bdbd8e2471b9d15315eb_rle_crop_4071412364_0.png', 1399574979: '1765842186_3001320_1399574156_6e61c770929ea3b7a024296ae56c566a_rle_crop_4071416614_0.png', 1399574980: '1765842186_3001320_1399574156_6e61c770929ea3b7a024296ae56c566a_rle_crop_4071416615_0.png', 1399574982: '1765842186_3001320_1399574046_b0a43a7b84c48807b527bc6ec782b69d_rle_crop_4071416641_0.png', 1399575420: '1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417251_0.png', 1399575422: '1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417299_0.png', 1399575424: '1765842326_3009320_1399573979_da53eb9d857190d6a72c02535dbed01c_rle_crop_4071417317_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/24e0be7f2ee98c34d98cae229a868e88_50650993.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/70c15ebc9826a64688ba3a011ecfa6b8_94251308.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d3fb6b439b6e39cdb8ea38ca2c236657_76137661.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/71489a1d858c393802db6ddf00c7b898_56358623.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ce30abccdb8f5c0295b1b3d576fa5fed_32055154.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ab44be178c1e73d90408c226a9866543_24120032.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/24e0be7f2ee98c34d98cae229a868e88_36545735.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/70c15ebc9826a64688ba3a011ecfa6b8_7502891.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/518ce01c6b12278a7b28f5e3d3d91761_61865473.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/2f675401bb4f3f783f1e9b67125abe65_62043475.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/80150b585b3e194977ab1f813479fe17_28032576.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e5e454e648dbbb0cce2bc3d76ce0b588_70502450.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/35107913ca0ae445ec33e6545f5a2981_50948023.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b08ac3be1746e643f20134629845ce4d_66776868.png change filename to text .imagette294515801765842418/ imagette294515801765842418/1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417251_0.png.png imagette294515801765842418/1765841827_2981200_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398486_0.png.png imagette294515801765842418/1765842186_3001320_1399574156_6e61c770929ea3b7a024296ae56c566a_rle_crop_4071416614_0.png.png imagette294515801765842418/1765842186_3001320_1399574156_6e61c770929ea3b7a024296ae56c566a_rle_crop_4071416615_0.png.png imagette294515801765842418/1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404109_0.png.png imagette294515801765842418/1765841965_2989511_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398486_0.png.png imagette294515801765842418/1765842186_3001320_1399574046_b0a43a7b84c48807b527bc6ec782b69d_rle_crop_4071416641_0.png.png imagette294515801765842418/1765841947_2987270_1399573930_e490d524eb2b896d41f5aebd3dc950c1_rle_crop_4071404242_0.png.png imagette294515801765842418/1765841827_2981200_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398476_0.png.png imagette294515801765842418/1765842326_3009320_1399573979_da53eb9d857190d6a72c02535dbed01c_rle_crop_4071417317_0.png.png imagette294515801765842418/1765841965_2989511_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398476_0.png.png imagette294515801765842418/1765842085_2995563_1399573585_c4e103b447c9bdbd8e2471b9d15315eb_rle_crop_4071412364_0.png.png imagette294515801765842418/1765841848_2981892_1399573582_695c7f0a139114392259068f9086ea7f_rle_crop_4071401456_0.png.png imagette294515801765842418/1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404276_0.png.png imagette294515801765842418/1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417299_0.png.png imagette294515821765842420/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/03a438a1911929337f942ee2cf483772_56685801.png imagette294515801765842418 29451582 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294515821765842420 29451584 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451584 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399574076: '1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404112_0.png', 1399574077: '1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404122_0.png', 1399574086: '1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404275_0.png', 1399574087: '1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404282_0.png', 1399574997: '1765842205_3003978_1399574049_4d033f24d687cc60912feb0978399a4f_rle_crop_4071416871_0.png', 1399575440: '1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417262_0.png', 1399575441: '1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417261_0.png', 1399575442: '1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417259_0.png', 1399575443: '1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417302_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/57ce9a04c29083bb33091da03f6ccdae_41845541.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4abc81324b9b3f6581f9778b979541eb_61529440.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/8b9d4893d08afc62cb54d06f308cba99_28395155.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3e562babc915acadda38ab1f923bdaad_45981400.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/97ace5561baa12fddb1b10c881162fb8_50568003.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0781849fa15029cc62ebe531c820ca4c_65307742.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0855553b36348f7476e94e97adeb4825_63288892.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/1397df3d87e0c77a59b619100a8a4f3b_81635536.png change filename to text .imagette294515841765842420/ imagette294515841765842420/1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417259_0.png.png imagette294515841765842420/1765842205_3003978_1399574049_4d033f24d687cc60912feb0978399a4f_rle_crop_4071416871_0.png.png imagette294515841765842420/1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404112_0.png.png imagette294515841765842420/1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404282_0.png.png imagette294515841765842420/1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404122_0.png.png imagette294515841765842420/1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417302_0.png.png imagette294515841765842420/1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404275_0.png.png imagette294515841765842420/1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417261_0.png.png imagette294515841765842420/1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417262_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/924525ac6b1747cac68f0f2688d6dfe3_43212280.png imagette294515841765842420 29451574 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399573961: '1765841705_2975494_1399573550_9df2f269756e8988b360c47d1d358ee2_rle_crop_4071398208_0.png', 1399574018: '1765841848_2981892_1399573583_3951ea4ba2c772427a238bca0557b355_rle_crop_4071401444_0.png', 1399574019: '1765841848_2981892_1399573582_695c7f0a139114392259068f9086ea7f_rle_crop_4071401457_0.png', 1399574020: '1765841848_2981892_1399573580_8aa2dc068e1892f0e6fa07ca2e77314c_rle_crop_4071402404_0.png', 1399574065: '1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404120_0.png', 1399574066: '1765841947_2987270_1399573932_794ca45760374ac7f19a6443176dd976_rle_crop_4071404218_0.png', 1399574067: '1765841947_2987270_1399573931_4814515e643282cc9a245b3997f26d05_rle_crop_4071404227_0.png', 1399574068: '1765841947_2987270_1399573930_e490d524eb2b896d41f5aebd3dc950c1_rle_crop_4071404236_0.png', 1399574070: '1765841947_2987270_1399573929_1d132e0bd469dc0af0a1d99c08e64439_rle_crop_4071404255_0.png', 1399574945: '1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412431_0.png', 1399574946: '1765842146_3000448_1399574095_4fd5d26937d001d1b140a0e7ace2928d_rle_crop_4071412447_0.png', 1399574977: '1765842186_3001320_1399574047_ac3b1e9fe8836d142b80b3cd336e15c3_rle_crop_4071416630_0.png', 1399574978: '1765842186_3001320_1399574045_02022692df2b2d6278665ebcad918651_rle_crop_4071416652_0.png', 1399574992: '1765842205_3003978_1399574023_a8f6bd05fda553321cb168628038709f_rle_crop_4071416932_0.png', 1399575408: '1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417294_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/62b539d7632de04795bd0153c6480efc_86871353.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7ef2e26ee6eea3ad793c885ef7b5edb0_86874822.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/8772c168d15721e964b22c3ac51b8908_35446341.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a80b61764bb132c5d39a7a4b5a897044_28173224.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f9ea9428a288cfb029def5406e2e1019_65612922.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/12aac7ad8908ac6e273a6f8f04ba6c3b_18110877.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7791d4d745a731348e4145799d41bb42_10250050.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7f1fd6be15e6c258f2b60d74d76988e6_73557624.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a7c338297fb52b9361388a6a18d71586_76097680.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/16a63df0083202dace20a16ed83ee817_5945522.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/8adfa1d45ce8368272f0b932cf3d7f52_20799966.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/169d90aa732d3f46c0fab6b175008142_87139493.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a11e679de75c2c1fcd4a7bb4c89c0045_99465705.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e6c125aae6f72da2ba16335fecb7ca3b_81910177.png change filename to text .imagette294515741765842420/ imagette294515741765842420/1765841848_2981892_1399573583_3951ea4ba2c772427a238bca0557b355_rle_crop_4071401444_0.png.png imagette294515741765842420/1765842186_3001320_1399574047_ac3b1e9fe8836d142b80b3cd336e15c3_rle_crop_4071416630_0.png.png imagette294515741765842420/1765841947_2987270_1399573932_794ca45760374ac7f19a6443176dd976_rle_crop_4071404218_0.png.png imagette294515741765842420/1765841947_2987270_1399573931_4814515e643282cc9a245b3997f26d05_rle_crop_4071404227_0.png.png imagette294515741765842420/1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417294_0.png.png imagette294515741765842420/1765841947_2987270_1399573930_e490d524eb2b896d41f5aebd3dc950c1_rle_crop_4071404236_0.png.png imagette294515741765842420/1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404120_0.png.png imagette294515741765842420/1765842186_3001320_1399574045_02022692df2b2d6278665ebcad918651_rle_crop_4071416652_0.png.png imagette294515741765842420/1765841705_2975494_1399573550_9df2f269756e8988b360c47d1d358ee2_rle_crop_4071398208_0.png.png imagette294515741765842420/1765841848_2981892_1399573580_8aa2dc068e1892f0e6fa07ca2e77314c_rle_crop_4071402404_0.png.png imagette294515741765842420/1765842146_3000448_1399574095_4fd5d26937d001d1b140a0e7ace2928d_rle_crop_4071412447_0.png.png imagette294515741765842420/1765842205_3003978_1399574023_a8f6bd05fda553321cb168628038709f_rle_crop_4071416932_0.png.png imagette294515741765842420/1765841848_2981892_1399573582_695c7f0a139114392259068f9086ea7f_rle_crop_4071401457_0.png.png imagette294515741765842420/1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412431_0.png.png imagette294515741765842420/1765841947_2987270_1399573929_1d132e0bd469dc0af0a1d99c08e64439_rle_crop_4071404255_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5e02e599512172ec2f1540941a910115_83999929.png imagette294515741765842420 29451579 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399574944: '1765842146_3000448_1399574095_4fd5d26937d001d1b140a0e7ace2928d_rle_crop_4071412448_0.png', 1399575397: '1765842326_3009320_1399573978_74bb66813a04a7f3a007344f7df25f9b_rle_crop_4071417331_0.png', 1399575165: '1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417040_0.png', 1399575163: '1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417038_0.png', 1399574989: '1765842205_3003978_1399574023_a8f6bd05fda553321cb168628038709f_rle_crop_4071416934_0.png', 1399574988: '1765842205_3003978_1399574049_4d033f24d687cc60912feb0978399a4f_rle_crop_4071416874_0.png', 1399574974: '1765842186_3001320_1399574046_b0a43a7b84c48807b527bc6ec782b69d_rle_crop_4071416645_0.png', 1399574973: '1765842186_3001320_1399574047_ac3b1e9fe8836d142b80b3cd336e15c3_rle_crop_4071416632_0.png', 1399574971: '1765842186_3001320_1399574047_ac3b1e9fe8836d142b80b3cd336e15c3_rle_crop_4071416629_0.png', 1399574005: '1765841827_2981200_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398478_0.png', 1399574943: '1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412437_0.png', 1399574942: '1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412436_0.png', 1399574080: '1765841965_2989511_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398493_0.png', 1399574079: '1765841965_2989511_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398478_0.png', 1399574062: '1765841947_2987270_1399573954_33425e6e887e6ee5d67b04dd2ff7fdf5_rle_crop_4071404102_0.png', 1399574038: '1765841906_2985925_1399573952_cd9d7af1591b2fa3d2497abd0cf78089_rle_crop_4071403906_0.png', 1399574017: '1765841848_2981892_1399573580_8aa2dc068e1892f0e6fa07ca2e77314c_rle_crop_4071402410_0.png', 1399574006: '1765841827_2981200_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398493_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ff381c131f7ac421a292ea40198ebaca_41964098.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ea2932d941c215073c9d3504d9741c97_82062388.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/eb2f2e5bfbe7f05b214c1870a2453442_67384982.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e52dd64fe51248ffb112c6ddca479bb2_37883214.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7014aabbdf15f3cdb4ca047a5dd52928_13463905.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/29f9faa083c740e8dcac34240c07ce46_24990306.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0aba8e2d1f71b271df8c278ad3cd3021_78904051.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f525fa123ab43c39663ada61a43da7f7_41290996.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5c0d551bb5bd42da1cd0799ab4ce871c_78130094.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5e6fb5606be397b9245e2ff339054905_14825149.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/56e21187002a161c90b1a54846075667_9570381.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/6deff9228e8b1e81c2c26216a88a910a_51170188.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a23e18f47436276e1e73ce8ee2d09303_30809603.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5e6fb5606be397b9245e2ff339054905_69388219.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c9942cf8b9928b78671155ebf434accf_15530474.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/9290cb7a0ec765b5011f384a960c2c7a_51951462.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/12ec8eef7e34956baa117e81f63bfe0e_85523771.png change filename to text .imagette294515791765842421/ imagette294515791765842421/1765841906_2985925_1399573952_cd9d7af1591b2fa3d2497abd0cf78089_rle_crop_4071403906_0.png.png imagette294515791765842421/1765841848_2981892_1399573580_8aa2dc068e1892f0e6fa07ca2e77314c_rle_crop_4071402410_0.png.png imagette294515791765842421/1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412436_0.png.png imagette294515791765842421/1765842186_3001320_1399574047_ac3b1e9fe8836d142b80b3cd336e15c3_rle_crop_4071416629_0.png.png imagette294515791765842421/1765841827_2981200_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398493_0.png.png imagette294515791765842421/1765842146_3000448_1399574095_4fd5d26937d001d1b140a0e7ace2928d_rle_crop_4071412448_0.png.png imagette294515791765842421/1765841827_2981200_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398478_0.png.png imagette294515791765842421/1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412437_0.png.png imagette294515791765842421/1765842186_3001320_1399574047_ac3b1e9fe8836d142b80b3cd336e15c3_rle_crop_4071416632_0.png.png imagette294515791765842421/1765842186_3001320_1399574046_b0a43a7b84c48807b527bc6ec782b69d_rle_crop_4071416645_0.png.png imagette294515791765842421/1765842205_3003978_1399574023_a8f6bd05fda553321cb168628038709f_rle_crop_4071416934_0.png.png imagette294515791765842421/1765841947_2987270_1399573954_33425e6e887e6ee5d67b04dd2ff7fdf5_rle_crop_4071404102_0.png.png imagette294515791765842421/1765842326_3009320_1399573978_74bb66813a04a7f3a007344f7df25f9b_rle_crop_4071417331_0.png.png imagette294515791765842421/1765842205_3003978_1399574049_4d033f24d687cc60912feb0978399a4f_rle_crop_4071416874_0.png.png imagette294515791765842421/1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417038_0.png.png imagette294515791765842421/1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417040_0.png.png imagette294515791765842421/1765841965_2989511_1399573834_dbb0252d99606b389dc9f8b80d6e25a5_rle_crop_4071398493_0.png.png imagette294515791765842421/1765841965_2989511_1399573858_71a22c1584c2649cc6a044ae16376691_rle_crop_4071398478_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a23e18f47436276e1e73ce8ee2d09303_63463668.png imagette294515791765842421 29451581 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451581 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399574039: '1765841906_2985925_1399573953_a29afe6b9a67c5c1bc1f380ab4690b02_rle_crop_4071403891_0.png', 1399574073: '1765841947_2987270_1399573954_33425e6e887e6ee5d67b04dd2ff7fdf5_rle_crop_4071404100_0.png', 1399574074: '1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404124_0.png', 1399574075: '1765841947_2987270_1399573929_1d132e0bd469dc0af0a1d99c08e64439_rle_crop_4071404266_0.png', 1399574085: '1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404277_0.png', 1399574947: '1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412435_0.png', 1399574948: '1765842146_3000448_1399574095_4fd5d26937d001d1b140a0e7ace2928d_rle_crop_4071412450_0.png', 1399574993: '1765842205_3003978_1399574025_5ca982ab8a000a9ae16b905f234961e8_rle_crop_4071416905_0.png', 1399574994: '1765842205_3003978_1399574025_5ca982ab8a000a9ae16b905f234961e8_rle_crop_4071416908_0.png', 1399575187: '1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417039_0.png', 1399575189: '1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417041_0.png', 1399575436: '1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417252_0.png', 1399575437: '1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417254_0.png', 1399575438: '1765842326_3009320_1399573981_9dc2e97f397e0645bb734949ea4bca42_rle_crop_4071417283_0.png', 1399575439: '1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417303_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/6de2c254eeac4c73037fbc66dddafb7a_17236552.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a59027fc123c195ddd45d9a9b54581ae_13058617.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/05f926b95cd852fcea5da458fadd907d_37037523.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/04026fd6c625c6e00d4179bb9af1fd50_74490122.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f7b430c810126d5b67838bde6627883b_90726578.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a692da7a7983337e486346d093754c30_85115070.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/bd24c1ffaa32f26e9df4d453a2eac9b8_95112209.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f44e3f208429c814e8fa8df00d3dfef7_91189800.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/79c2a5be6795574e7c4b5af8205902d2_15790816.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c972a326ed492f04b8672d292ef315a8_57010065.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/db2d0abe2b95c6ab6d868710c7a5b2f4_63799298.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/1a2493cab1c5ac048881850a0843f1fc_52285777.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/cb4d7425e7e679967e45e152570ab2ae_19598358.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/031b3142f247fba10d5167fb078dbf17_65108218.png change filename to text .imagette294515811765842423/ imagette294515811765842423/1765841947_2987270_1399573935_17099124a468e43f6e6d532b376962e5_rle_crop_4071404124_0.png.png imagette294515811765842423/1765841906_2985925_1399573953_a29afe6b9a67c5c1bc1f380ab4690b02_rle_crop_4071403891_0.png.png imagette294515811765842423/1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417039_0.png.png imagette294515811765842423/1765842146_3000448_1399574095_4fd5d26937d001d1b140a0e7ace2928d_rle_crop_4071412450_0.png.png imagette294515811765842423/1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417252_0.png.png imagette294515811765842423/1765841947_2987270_1399573954_33425e6e887e6ee5d67b04dd2ff7fdf5_rle_crop_4071404100_0.png.png imagette294515811765842423/1765842205_3003978_1399574025_5ca982ab8a000a9ae16b905f234961e8_rle_crop_4071416905_0.png.png imagette294515811765842423/1765842326_3009320_1399573980_97a8690ee91dfc3a5ddecaa577738470_rle_crop_4071417303_0.png.png imagette294515811765842423/1765842305_3008952_1399574031_0c8d8bcd5d4909ea21a697583c8222f1_rle_crop_4071417041_0.png.png imagette294515811765842423/1765842146_3000448_1399574125_11ce2c791e3be684397143b95fbe5dee_rle_crop_4071412435_0.png.png imagette294515811765842423/1765841947_2987270_1399573929_1d132e0bd469dc0af0a1d99c08e64439_rle_crop_4071404266_0.png.png imagette294515811765842423/1765842205_3003978_1399574025_5ca982ab8a000a9ae16b905f234961e8_rle_crop_4071416908_0.png.png imagette294515811765842423/1765841965_2989511_1399573938_a5cc750febe828230e8c689087032de5_rle_crop_4071404277_0.png.png imagette294515811765842423/1765842326_3009320_1399573981_9dc2e97f397e0645bb734949ea4bca42_rle_crop_4071417283_0.png.png imagette294515811765842423/1765842326_3009320_1399574000_f491cfd1372c3200ff2763956953b2e1_rle_crop_4071417254_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/be1491e96e9029131ca7b2806a827050_29028380.png imagette294515811765842423 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29451566 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29451586,29451587,29451588,29451589,29451590,29451591,29451592,29451593,29451594,29451595,29451596,29451597?tags=Carton_gris,kraft,flou,autre_refus,metal,Teint_Dans_La_Masse,cartonnette,Carton_brun,mal_croppe,environnement,plastique,papier your option no_mail is active, we will not send the real mail to your client args[1399575450] : ('0.04760964518372767',) no score found for photo 1399575450 We are sending mail with results at report@fotonower.com args[1399575037] : ('0.04760964518372767',) no score found for photo 1399575037 We are sending mail with results at report@fotonower.com args[1399575015] : ('0.04760964518372767',) no score found for photo 1399575015 We are sending mail with results at report@fotonower.com args[1399575013] : ('0.04760964518372767',) no score found for photo 1399575013 We are sending mail with results at report@fotonower.com args[1399575012] : ('0.04760964518372767',) no score found for photo 1399575012 We are sending mail with results at report@fotonower.com refus_total : 0.04760964518372767 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451566 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_P29451566_16-12-2025_00_46_58.pdf results_Auto_P29451566_16-12-2025_00_46_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29451566','results_Auto_P29451566_16-12-2025_00_46_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf','pdf','','0.27','0.04760964518372767') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29451566]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] map_info['map_portfolio_photo'] : {29451566: [1399575450, 1399575037, 1399575015, 1399575013, 1399575012, 1399574986, 1399574985, 1399574984, 1399574983, 1399574969, 1399574967, 1399574958, 1399574956, 1399574953, 1399574951, 1399574950, 1399574949, 1399574842, 1399574841, 1399574840, 1399574839, 1399574597, 1399574565, 1399574535, 1399574156, 1399574125, 1399574095, 1399574091, 1399574049, 1399574047, 1399574046, 1399574045, 1399574044, 1399574031, 1399574028, 1399574025, 1399574024, 1399574023, 1399574022, 1399574000, 1399573999, 1399573998, 1399573997, 1399573987, 1399573984, 1399573981, 1399573980, 1399573979, 1399573978, 1399573954, 1399573953, 1399573952, 1399573938, 1399573935, 1399573932, 1399573931, 1399573930, 1399573929, 1399573873, 1399573860, 1399573858, 1399573834, 1399573585, 1399573583, 1399573582, 1399573580, 1399573555, 1399573552, 1399573551, 1399573550]} final : False mtd_id 4302 list_pids : [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] 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, '4231947') ('4302', '29451566', '1399575450', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575037', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575015', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575013', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575012', None, None, None, None, None, '4231947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '29451566', '1399575450', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575037', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575015', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575013', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575012', None, None, None, None, None, '4231947')] time used for this insertion : 0.016890764236450195 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.519001722335815 time spend to save output : 0.017088890075683594 total time spend for step 4 : 7.536090612411499 step5:split_time_score Tue Dec 16 00:47:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29451566'] 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 : [('29451566',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29451566) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399575450: {'path': 'temp/1765842417_2582919_1399575450_2f2e9a5353d353f09c2e788bd97d91d1.jpg', 'extension': 'jpg'}, 1399575015: {'path': 'temp/1765842417_2582919_1399575015_0de6a3518232bdd3105a36b399737e98.jpg', 'extension': 'jpg'}, 1399575037: {'path': 'temp/1765842417_2582919_1399575037_1a8a93fcc423f97cc14a72068a909358.jpg', 'extension': 'jpg'}, 1399575012: {'path': 'temp/1765842417_2582919_1399575012_eddc1f2dedc22f7bd90ade3bbae955af.jpg', 'extension': 'jpg'}, 1399575013: {'path': 'temp/1765842417_2582919_1399575013_327c35891fc8275b75663a3dd8431f8e.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 = 29451566; (('arc_en_ciel_jrm_live',),) 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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29451566 group by h (('00', 70),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29451566 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 (29451566) 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 (29451566) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16122025 29451566 Nombre de photos uploadées : 70 / 23040 (0%) 16122025 29451566 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 16122025 29451566 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1399573555, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/223d9ac811953e08297e91c14b76d5d3.jpg', 'username': None, 'uploaded_at': 1765841472, 'text': 'image_16122025_00_30_14_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399573552, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/cb9bd7c628611a4e65c5b3621759b20e.jpg', 'username': None, 'uploaded_at': 1765841472, 'text': 'image_16122025_00_30_25_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399573551, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/be9ecea143161f51c54e102e14799126.jpg', 'username': None, 'uploaded_at': 1765841472, 'text': 'image_16122025_00_30_35_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1399573550, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/9df2f269756e8988b360c47d1d358ee2.jpg', 'username': None, 'uploaded_at': 1765841472, 'text': 'image_16122025_00_30_44_009124m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031120777130126953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29451566, '2025-12-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-12-16' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2741831,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23912501335144043 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= 2741831 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2741831, 'dashboard_run_id': 2748736, 'mtr_portfolio_id': 29450388, 'dashboard_result_id': 18400853, '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_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}"}, {'dashboat_entry_day': 2741831, 'dashboard_run_id': 2748736, 'mtr_portfolio_id': 29450996, 'dashboard_result_id': 18400854, '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_P29450996_16-12-2025_00_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}"}, {'dashboat_entry_day': 2741831, 'dashboard_run_id': 2748736, 'mtr_portfolio_id': 29451566, 'dashboard_result_id': 18400855, '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_P29451566_16-12-2025_00_44_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}"}, {'dashboat_entry_day': 2741831, 'dashboard_run_id': 2748736, 'mtr_portfolio_id': 29452103, 'dashboard_result_id': 18400856, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 29450388 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': 4231841, 'mtr_portfolio_id': 29450388, 'created_at': datetime.datetime(2025, 12, 16, 0, 19, 1), 'result': '0.05849226565291721', 'result_long': None, 'result_double': None}] Qualite : 0.05849226565291721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_00_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450388 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_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}" where mtr_portfolio_id = 29450388 and dashboard_run_id = 2748736 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`=29450388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18400853, 0.05849226565291721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, '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 = 29450996 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': 4231891, 'mtr_portfolio_id': 29450996, 'created_at': datetime.datetime(2025, 12, 16, 0, 33), 'result': '0.05860023724292723', 'result_long': None, 'result_double': None}] Qualite : 0.05860023724292723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450996 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_P29450996_16-12-2025_00_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}" where mtr_portfolio_id = 29450996 and dashboard_run_id = 2748736 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`=29450996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18400854, 0.05860023724292723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, '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 = 29451566 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': 4231947, 'mtr_portfolio_id': 29451566, 'created_at': datetime.datetime(2025, 12, 16, 0, 46, 57), 'result': '0.04760964518372767', 'result_long': None, 'result_double': None}] Qualite : 0.04760964518372767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29451566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29451566 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_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}" where mtr_portfolio_id = 29451566 and dashboard_run_id = 2748736 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`=29451566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18400855, 0.04760964518372767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, '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 = 29452103 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29452103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29452103 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%29452103%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29452103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 29452103 and dashboard_run_id = 2748736 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29450388,29450996,29451566,29452103) result : ((1399569775,), (1399569840,), (1399569914,), (1399569963,), (1399570004,), (1399570079,), (1399570082,), (1399570115,), (1399570158,), (1399570440,), (1399570473,), (1399570509,), (1399570540,), (1399570781,), (1399570794,), (1399570799,), (1399570816,), (1399570840,), (1399570850,), (1399570857,), (1399570858,), (1399570859,), (1399570860,), (1399570863,), (1399570873,), (1399570874,), (1399570875,), (1399570876,), (1399570879,), (1399571005,), (1399571039,), (1399571074,), (1399571109,), (1399571144,), (1399571180,), (1399571473,), (1399571474,), (1399571475,), (1399571476,), (1399571629,), (1399571630,), (1399571631,), (1399571632,), (1399571634,), (1399571636,), (1399571669,), (1399571670,), (1399571671,), (1399571701,), (1399571758,), (1399571822,), (1399571881,), (1399571945,), (1399572326,), (1399572363,), (1399572393,), (1399572424,), (1399572457,), (1399572701,), (1399572702,), (1399572703,), (1399572792,), (1399572827,), (1399572856,), (1399572888,), (1399572921,), (1399573118,), (1399573152,), (1399573155,), (1399573156,), (1399573186,), (1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,), (1399573487,), (1399573488,), (1399573489,), (1399573490,), (1399573492,), (1399573494,), (1399573505,), (1399573507,), (1399573509,), (1399573510,), (1399573512,), (1399573514,), (1399573528,), (1399573530,), (1399573531,), (1399573532,), (1399573558,), (1399573560,), (1399573571,), (1399573572,), (1399573576,), (1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,), (1399575433,), (1399575444,), (1399575446,), (1399575447,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16122025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29451566]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] map_info['map_portfolio_photo'] : {29451566: [1399575450, 1399575037, 1399575015, 1399575013, 1399575012, 1399574986, 1399574985, 1399574984, 1399574983, 1399574969, 1399574967, 1399574958, 1399574956, 1399574953, 1399574951, 1399574950, 1399574949, 1399574842, 1399574841, 1399574840, 1399574839, 1399574597, 1399574565, 1399574535, 1399574156, 1399574125, 1399574095, 1399574091, 1399574049, 1399574047, 1399574046, 1399574045, 1399574044, 1399574031, 1399574028, 1399574025, 1399574024, 1399574023, 1399574022, 1399574000, 1399573999, 1399573998, 1399573997, 1399573987, 1399573984, 1399573981, 1399573980, 1399573979, 1399573978, 1399573954, 1399573953, 1399573952, 1399573938, 1399573935, 1399573932, 1399573931, 1399573930, 1399573929, 1399573873, 1399573860, 1399573858, 1399573834, 1399573585, 1399573583, 1399573582, 1399573580, 1399573555, 1399573552, 1399573551, 1399573550]} final : True mtd_id 4302 list_pids : [1399575450, 1399575037, 1399575015, 1399575013, 1399575012] Looping around the photos to save general results len do output : 1 /29451566Didn'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, '4231947') ('4302', '29451566', '1399575450', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575037', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575015', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575013', None, None, None, None, None, '4231947') ('4302', None, None, None, None, None, None, None, '4231947') ('4302', '29451566', '1399575012', None, None, None, None, None, '4231947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29451566', 'None', None, None, None, None, '4231947'), ('4302', '29451566', '1399575450', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575037', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575015', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575013', None, None, None, None, None, '4231947'), ('4302', '29451566', '1399575012', None, None, None, None, None, '4231947')] time used for this insertion : 0.015877485275268555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.840836763381958 time spend to save output : 0.016062021255493164 total time spend for step 5 : 1.8568987846374512 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 (4231947) 2.16user 2.64system 0:12.24elapsed 39%CPU (0avgtext+0avgdata 165784maxresident)k 1120inputs+14048outputs (30major+66928minor)pagefaults 0swaps