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 : 2994046 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 (3949256) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3949256) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852802 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3949256'] with mtr_portfolio_ids : ['27852802'] and first list_photo_ids : [] new path : /proc/2994046/ Name: python3 Umask: 0002 State: R (running) Tgid: 2994046 Ngid: 0 Pid: 2994046 PPid: 2994045 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2994046 NSpid: 2994046 NSpgid: 2993723 NSsid: 2993723 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99204 kB VmRSS: 99204 kB RssAnon: 59844 kB RssFile: 39360 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 56 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2994046', 'Ngid': '0', 'Pid': '2994046', 'PPid': '2994045', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2994046', 'NSpid': '2994046', 'NSpgid': '2993723', 'NSsid': '2993723', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99204 kB', 'VmRSS': '99204 kB', 'RssAnon': '59844 kB', 'RssFile': '39360 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '56', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '2994046', '1106868', '0', '1106868', '865620', '99204', b'', 'marlene', '3949256') 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 (27852802) 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 (3949256 ) ) 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 (27852802) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389690891, 'portfolio_id': 27852802}, {'photo_id': 1389690865, 'portfolio_id': 27852802}, {'photo_id': 1389690864, 'portfolio_id': 27852802}, {'photo_id': 1389690862, 'portfolio_id': 27852802}, {'photo_id': 1389690857, 'portfolio_id': 27852802}, {'photo_id': 1389690855, 'portfolio_id': 27852802}, {'photo_id': 1389690849, 'portfolio_id': 27852802}, {'photo_id': 1389690057, 'portfolio_id': 27852802}, {'photo_id': 1389690055, 'portfolio_id': 27852802}, {'photo_id': 1389690041, 'portfolio_id': 27852802}, {'photo_id': 1389690039, 'portfolio_id': 27852802}, {'photo_id': 1389690034, 'portfolio_id': 27852802}, {'photo_id': 1389690022, 'portfolio_id': 27852802}, {'photo_id': 1389690020, 'portfolio_id': 27852802}, {'photo_id': 1389690019, 'portfolio_id': 27852802}, {'photo_id': 1389690017, 'portfolio_id': 27852802}, {'photo_id': 1389690004, 'portfolio_id': 27852802}, {'photo_id': 1389689993, 'portfolio_id': 27852802}, {'photo_id': 1389689991, 'portfolio_id': 27852802}, {'photo_id': 1389689989, 'portfolio_id': 27852802}, {'photo_id': 1389689987, 'portfolio_id': 27852802}, {'photo_id': 1389689986, 'portfolio_id': 27852802}, {'photo_id': 1389689985, 'portfolio_id': 27852802}, {'photo_id': 1389689977, 'portfolio_id': 27852802}, {'photo_id': 1389689974, 'portfolio_id': 27852802}, {'photo_id': 1389689971, 'portfolio_id': 27852802}, {'photo_id': 1389689969, 'portfolio_id': 27852802}, {'photo_id': 1389689966, 'portfolio_id': 27852802}, {'photo_id': 1389689949, 'portfolio_id': 27852802}, {'photo_id': 1389689947, 'portfolio_id': 27852802}, {'photo_id': 1389689946, 'portfolio_id': 27852802}, {'photo_id': 1389689945, 'portfolio_id': 27852802}, {'photo_id': 1389689916, 'portfolio_id': 27852802}, {'photo_id': 1389689913, 'portfolio_id': 27852802}, {'photo_id': 1389689911, 'portfolio_id': 27852802}, {'photo_id': 1389689910, 'portfolio_id': 27852802}, {'photo_id': 1389689909, 'portfolio_id': 27852802}, {'photo_id': 1389689903, 'portfolio_id': 27852802}, {'photo_id': 1389689900, 'portfolio_id': 27852802}, {'photo_id': 1389689897, 'portfolio_id': 27852802}, {'photo_id': 1389689895, 'portfolio_id': 27852802}, {'photo_id': 1389689867, 'portfolio_id': 27852802}, {'photo_id': 1389689864, 'portfolio_id': 27852802}, {'photo_id': 1389689861, 'portfolio_id': 27852802}, {'photo_id': 1389689859, 'portfolio_id': 27852802}, {'photo_id': 1389689853, 'portfolio_id': 27852802}, {'photo_id': 1389689851, 'portfolio_id': 27852802}, {'photo_id': 1389689848, 'portfolio_id': 27852802}, {'photo_id': 1389689846, 'portfolio_id': 27852802}, {'photo_id': 1389689845, 'portfolio_id': 27852802}, {'photo_id': 1389689844, 'portfolio_id': 27852802}, {'photo_id': 1389689816, 'portfolio_id': 27852802}, {'photo_id': 1389689814, 'portfolio_id': 27852802}, {'photo_id': 1389689813, 'portfolio_id': 27852802}, {'photo_id': 1389689812, 'portfolio_id': 27852802}, {'photo_id': 1389689792, 'portfolio_id': 27852802}, {'photo_id': 1389689790, 'portfolio_id': 27852802}, {'photo_id': 1389689788, 'portfolio_id': 27852802}, {'photo_id': 1389689787, 'portfolio_id': 27852802}, {'photo_id': 1389689786, 'portfolio_id': 27852802}, {'photo_id': 1389689785, 'portfolio_id': 27852802}, {'photo_id': 1389689777, 'portfolio_id': 27852802}, {'photo_id': 1389689773, 'portfolio_id': 27852802}, {'photo_id': 1389689761, 'portfolio_id': 27852802}, {'photo_id': 1389689759, 'portfolio_id': 27852802}, {'photo_id': 1389689758, 'portfolio_id': 27852802}, {'photo_id': 1389689743, 'portfolio_id': 27852802}, {'photo_id': 1389689742, 'portfolio_id': 27852802}, {'photo_id': 1389689741, 'portfolio_id': 27852802}] map_portfolio_id_photo_id: {27852802: [1389690891, 1389690865, 1389690864, 1389690862, 1389690857, 1389690855, 1389690849, 1389690057, 1389690055, 1389690041, 1389690039, 1389690034, 1389690022, 1389690020, 1389690019, 1389690017, 1389690004, 1389689993, 1389689991, 1389689989, 1389689987, 1389689986, 1389689985, 1389689977, 1389689974, 1389689971, 1389689969, 1389689966, 1389689949, 1389689947, 1389689946, 1389689945, 1389689916, 1389689913, 1389689911, 1389689910, 1389689909, 1389689903, 1389689900, 1389689897, 1389689895, 1389689867, 1389689864, 1389689861, 1389689859, 1389689853, 1389689851, 1389689848, 1389689846, 1389689845, 1389689844, 1389689816, 1389689814, 1389689813, 1389689812, 1389689792, 1389689790, 1389689788, 1389689787, 1389689786, 1389689785, 1389689777, 1389689773, 1389689761, 1389689759, 1389689758, 1389689743, 1389689742, 1389689741]} ##### 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.07046055793762207 #### 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 Thu Oct 16 02:03:28 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 (27852802) 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 : 27852802 get user id for portfolio 27852802 get sub ptf for main ptf 27852802, type 3726 and hashtags ['flou', 'metal', 'papier', 'plastique', 'Carton_gris', 'cartonnette', 'mal_croppe', 'kraft', 'Teint_Dans_La_Masse', 'environnement', 'autre_refus', 'Carton_brun'] 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`=27852802 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','plastique','Carton_gris','cartonnette','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun')) 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`=27852802 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','plastique','Carton_gris','cartonnette','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27852802, 'sub_port_id': 27852805, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798435, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'Carton_gris': {'main_port_id': 27852802, 'sub_port_id': 27852806, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798436, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'papier': {'main_port_id': 27852802, 'sub_port_id': 27852807, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798437, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'cartonnette': {'main_port_id': 27852802, 'sub_port_id': 27852808, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798438, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'Carton_brun': {'main_port_id': 27852802, 'sub_port_id': 27852809, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798439, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'metal': {'main_port_id': 27852802, 'sub_port_id': 27852810, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798440, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'plastique': {'main_port_id': 27852802, 'sub_port_id': 27852811, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798441, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'flou': {'main_port_id': 27852802, 'sub_port_id': 27852812, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798442, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'mal_croppe': {'main_port_id': 27852802, 'sub_port_id': 27852813, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798443, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'autre_refus': {'main_port_id': 27852802, 'sub_port_id': 27852814, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798444, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'environnement': {'main_port_id': 27852802, 'sub_port_id': 27852815, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798445, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}, 'kraft': {'main_port_id': 27852802, 'sub_port_id': 27852816, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798446, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27852805 , 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=27852802 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 (27852805) result : ((1389689819,), (1389689820,), (1389689877,), (1389689878,), (1389689920,), (1389689921,), (1389689922,), (1389689923,), (1389689924,), (1389689937,), (1389689938,), (1389690023,), (1389690044,), (1389690045,), (1389690046,), (1389690892,), (1389691706,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852806 , 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=27852802 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 (27852806) result : ((1389689821,), (1389689869,), (1389689881,), (1389689882,), (1389689883,), (1389689884,), (1389689926,), (1389689927,), (1389689928,), (1389689939,), (1389690027,), (1389690028,), (1389690029,), (1389690691,), (1389690893,), (1389691710,), (1389691711,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852807 , 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=27852802 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 (27852807) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852808 , 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=27852802 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 (27852808) result : ((1389689871,), (1389689872,), (1389689885,), (1389689886,), (1389689887,), (1389689930,), (1389689931,), (1389689941,), (1389689942,), (1389690049,), (1389690050,), (1389690692,), (1389690693,), (1389690694,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852809 , 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=27852802 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 (27852809) result : ((1389689822,), (1389689873,), (1389689888,), (1389689889,), (1389689890,), (1389689932,), (1389689933,), (1389689943,), (1389690030,), (1389690031,), (1389690032,), (1389690033,), (1389690051,), (1389690695,), (1389690696,), (1389690697,), (1389690698,), (1389690699,), (1389690700,), (1389691712,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852810 , 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=27852802 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 (27852810) result : ((1389690036,), (1389690037,), (1389690896,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852811 , 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=27852802 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 (27852811) result : ((1389689824,), (1389689891,), (1389689892,), (1389689934,), (1389689935,), (1389689944,), (1389690035,), (1389690701,), (1389690702,), (1389690703,), (1389690704,), (1389690705,), (1389690895,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852812 , 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=27852802 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 (27852812) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852813 , 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=27852802 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 (27852813) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852814 , 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=27852802 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 (27852814) result : ((1389689868,), (1389689880,), (1389689925,), (1389690024,), (1389690025,), (1389690048,), (1389690689,), (1389690690,), (1389691708,), (1389691709,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852815 , 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=27852802 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 (27852815) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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 27852816 , 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=27852802 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 (27852816) result : ((1389689893,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27852802) result : ((1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) 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 (1389689900) 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`=27852802 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','plastique','Carton_gris','cartonnette','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun')) 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`=27852802 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','plastique','Carton_gris','cartonnette','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27852802, 'sub_port_id': 27852841, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798471, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'Carton_gris': {'main_port_id': 27852802, 'sub_port_id': 27852842, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798472, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'papier': {'main_port_id': 27852802, 'sub_port_id': 27852843, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798473, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'cartonnette': {'main_port_id': 27852802, 'sub_port_id': 27852844, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798474, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'Carton_brun': {'main_port_id': 27852802, 'sub_port_id': 27852845, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798475, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'metal': {'main_port_id': 27852802, 'sub_port_id': 27852846, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798476, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'plastique': {'main_port_id': 27852802, 'sub_port_id': 27852847, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798477, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'flou': {'main_port_id': 27852802, 'sub_port_id': 27852848, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798478, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'mal_croppe': {'main_port_id': 27852802, 'sub_port_id': 27852849, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798479, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'autre_refus': {'main_port_id': 27852802, 'sub_port_id': 27852850, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798480, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'environnement': {'main_port_id': 27852802, 'sub_port_id': 27852851, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798481, 'last_updated_at': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 1, 49, 37), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}, 'kraft': {'main_port_id': 27852802, 'sub_port_id': 27852852, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798482, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 1, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 1, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 1, 49, 37)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852806 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852813 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852814 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852815 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27852852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27852816 lien utilise dans velours : https://marlene.fotonower.com/velours/27852841,27852842,27852843,27852844,27852845,27852846,27852847,27852848,27852849,27852850,27852851,27852852?tags=Teint_Dans_La_Masse,Carton_gris,papier,cartonnette,Carton_brun,metal,plastique,flou,mal_croppe,autre_refus,environnement,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27852802]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389690891, 1389690865, 1389690864, 1389690862] map_info['map_portfolio_photo'] : {27852802: [1389690891, 1389690865, 1389690864, 1389690862, 1389690857, 1389690855, 1389690849, 1389690057, 1389690055, 1389690041, 1389690039, 1389690034, 1389690022, 1389690020, 1389690019, 1389690017, 1389690004, 1389689993, 1389689991, 1389689989, 1389689987, 1389689986, 1389689985, 1389689977, 1389689974, 1389689971, 1389689969, 1389689966, 1389689949, 1389689947, 1389689946, 1389689945, 1389689916, 1389689913, 1389689911, 1389689910, 1389689909, 1389689903, 1389689900, 1389689897, 1389689895, 1389689867, 1389689864, 1389689861, 1389689859, 1389689853, 1389689851, 1389689848, 1389689846, 1389689845, 1389689844, 1389689816, 1389689814, 1389689813, 1389689812, 1389689792, 1389689790, 1389689788, 1389689787, 1389689786, 1389689785, 1389689777, 1389689773, 1389689761, 1389689759, 1389689758, 1389689743, 1389689742, 1389689741]} final : False mtd_id 4302 list_pids : [1389690891, 1389690865, 1389690864, 1389690862] Looping around the photos to save general results len do output : 1 /27852802. 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, '3949256') ('4302', '27852802', '1389690891', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690865', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690864', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690862', None, None, None, None, None, '3949256') 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', None, '27852802', "{'Teint_Dans_La_Masse': 27852805, 'Carton_gris': 27852806, 'papier': 27852807, 'cartonnette': 27852808, 'Carton_brun': 27852809, 'metal': 27852810, 'plastique': 27852811, 'flou': 27852812, 'mal_croppe': 27852813, 'autre_refus': 27852814, 'environnement': 27852815, 'kraft': 27852816}", None, None, None, None, '3949256'), ('4302', '27852802', '1389690891', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690865', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690864', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690862', None, None, None, None, None, '3949256')] time used for this insertion : 0.04783344268798828 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1660664081573486 time spend to save output : 0.04813265800476074 total time spend for step 1 : 3.2141990661621094 step2:final Thu Oct 16 02:03:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27852802) 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 27852802 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389689743,1389689742,1389689741,1389689777,1389689773,1389689761,1389689759,1389689758,1389689792,1389689790,1389689788,1389689787,1389689786,1389689785,1389689816,1389689814,1389689813,1389689812,1389689853,1389689851,1389689848,1389689846,1389689845,1389689844,1389689867,1389689864,1389689861,1389689859,1389689903,1389689900,1389689897,1389689895,1389689916,1389689913,1389689911,1389689910,1389689909,1389689949,1389689947,1389689946,1389689945,1389690017,1389689977,1389690004,1389689974,1389689971,1389689993,1389689991,1389689969,1389689989,1389689966,1389689987,1389689986,1389689985,1389690041,1389690039,1389690034,1389690022,1389690020,1389690019,1389690057,1389690857,1389690055,1389690855,1389690849,1389690865,1389690864,1389690862,1389690891); 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([27852802]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',)} new output for save of step final : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',)} [1389690891, 1389690865, 1389690864, 1389690862] map_info['map_portfolio_photo'] : {27852802: [1389690891, 1389690865, 1389690864, 1389690862, 1389690857, 1389690855, 1389690849, 1389690057, 1389690055, 1389690041, 1389690039, 1389690034, 1389690022, 1389690020, 1389690019, 1389690017, 1389690004, 1389689993, 1389689991, 1389689989, 1389689987, 1389689986, 1389689985, 1389689977, 1389689974, 1389689971, 1389689969, 1389689966, 1389689949, 1389689947, 1389689946, 1389689945, 1389689916, 1389689913, 1389689911, 1389689910, 1389689909, 1389689903, 1389689900, 1389689897, 1389689895, 1389689867, 1389689864, 1389689861, 1389689859, 1389689853, 1389689851, 1389689848, 1389689846, 1389689845, 1389689844, 1389689816, 1389689814, 1389689813, 1389689812, 1389689792, 1389689790, 1389689788, 1389689787, 1389689786, 1389689785, 1389689777, 1389689773, 1389689761, 1389689759, 1389689758, 1389689743, 1389689742, 1389689741]} final : False mtd_id 4302 list_pids : [1389690891, 1389690865, 1389690864, 1389690862] Looping around the photos to save general results len do output : 4 /1389690891.Didn't retrieve data . /1389690865.Didn't retrieve data . /1389690864.Didn't retrieve data . /1389690862.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, '3949256') ('4302', '27852802', '1389690891', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690865', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690864', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690862', None, None, None, None, None, '3949256') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27852802', '1389690891', '0.08685790384533715', None, None, None, None, '3949256'), ('4302', '27852802', '1389690865', '0.08685790384533715', None, None, None, None, '3949256'), ('4302', '27852802', '1389690864', '0.08685790384533715', None, None, None, None, '3949256'), ('4302', '27852802', '1389690862', '0.08685790384533715', None, None, None, None, '3949256')] time used for this insertion : 0.04692697525024414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3449974060058594 time spend to save output : 0.047286272048950195 total time spend for step 2 : 0.39228367805480957 step3:velours_tree Thu Oct 16 02:03:32 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 : {27852802: [{'Teint_Dans_La_Masse': 27852805, 'Carton_gris': 27852806, 'papier': 27852807, 'cartonnette': 27852808, 'Carton_brun': 27852809, 'metal': 27852810, 'plastique': 27852811, 'flou': 27852812, 'mal_croppe': 27852813, 'autre_refus': 27852814, 'environnement': 27852815, 'kraft': 27852816}]} input_args_next_step : {27852802: ()} output_args : {27852802: [{'Teint_Dans_La_Masse': 27852805, 'Carton_gris': 27852806, 'papier': 27852807, 'cartonnette': 27852808, 'Carton_brun': 27852809, 'metal': 27852810, 'plastique': 27852811, 'flou': 27852812, 'mal_croppe': 27852813, 'autre_refus': 27852814, 'environnement': 27852815, 'kraft': 27852816}]} args : 27852802 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 : ({'Teint_Dans_La_Masse': 27852805, 'Carton_gris': 27852806, 'papier': 27852807, 'cartonnette': 27852808, 'Carton_brun': 27852809, 'metal': 27852810, 'plastique': 27852811, 'flou': 27852812, 'mal_croppe': 27852813, 'autre_refus': 27852814, 'environnement': 27852815, 'kraft': 27852816},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27852802) 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([27852802]) 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.31771111488342285 time spend to save output : 5.1975250244140625e-05 total time spend for step 3 : 0.317763090133667 step4:send_mail_cod Thu Oct 16 02:03:32 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 : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',)} input_args_next_step : {1389690891: ()} output_args : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',)} args : 1389690891 depend.output_id : 0 input_args_next_step : {1389690891: ('0.08685790384533715',), 1389690865: ()} output_args : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',)} args : 1389690865 depend.output_id : 0 input_args_next_step : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ()} output_args : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',)} args : 1389690864 depend.output_id : 0 input_args_next_step : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ()} output_args : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',)} args : 1389690862 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 : {27852802: [{'Teint_Dans_La_Masse': 27852805, 'Carton_gris': 27852806, 'papier': 27852807, 'cartonnette': 27852808, 'Carton_brun': 27852809, 'metal': 27852810, 'plastique': 27852811, 'flou': 27852812, 'mal_croppe': 27852813, 'autre_refus': 27852814, 'environnement': 27852815, 'kraft': 27852816}]} input_args_next_step : {1389690891: ('0.08685790384533715',), 1389690865: ('0.08685790384533715',), 1389690864: ('0.08685790384533715',), 1389690862: ('0.08685790384533715',), 27852802: ()} output_args : {27852802: [{'Teint_Dans_La_Masse': 27852805, 'Carton_gris': 27852806, 'papier': 27852807, 'cartonnette': 27852808, 'Carton_brun': 27852809, 'metal': 27852810, 'plastique': 27852811, 'flou': 27852812, 'mal_croppe': 27852813, 'autre_refus': 27852814, 'environnement': 27852815, 'kraft': 27852816}]} args : 27852802 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 :5, first value : ('0.08685790384533715',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27852802) 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 (1389690891,1389690865,1389690864,1389690862) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389690862 begin to download photo : 1389690864 begin to download photo : 1389690865 begin to download photo : 1389690891 download finish for photo 1389690862 download finish for photo 1389690891 download finish for photo 1389690864 download finish for photo 1389690865 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 : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P27852802_16-10-2025_02_03_32.pdf 27852808 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=27852808 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389689871: '1760572266_3768259_1389689813_cea0efce3f64adec9996d9c9b9a24870_rle_crop_3999611309_0.png', 1389689872: '1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611335_0.png', 1389689885: '1760572283_3768766_1389689787_ca84639bb77b24fabf0c750e4878cfce_rle_crop_3999611584_0.png', 1389689886: '1760572283_3768766_1389689787_ca84639bb77b24fabf0c750e4878cfce_rle_crop_3999611586_0.png', 1389689887: '1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611600_0.png', 1389689930: '1760572385_3773844_1389689851_913d5546064a555886cd8cd08480dc85_rle_crop_3999611830_0.png', 1389689931: '1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611862_0.png', 1389689941: '1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611959_0.png', 1389689942: '1760572406_3774183_1389689861_c187d061e18b5a960dd310f772bdea75_rle_crop_3999611970_0.png', 1389690049: '1760572643_3782990_1389689946_37a1f2b4fa0b3f4f8cc378fce4655fba_rle_crop_3999618650_0.png', 1389690050: '1760572643_3782990_1389689946_37a1f2b4fa0b3f4f8cc378fce4655fba_rle_crop_3999618647_0.png', 1389690692: '1760572745_3788325_1389690057_76e6e3b1e66934ab5ec7fd9d7904d73c_rle_crop_3999625967_0.png', 1389690693: '1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626007_0.png', 1389690694: '1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626022_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/d59948e0bb81a718e025373f49d73c8f_1528442.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/51af8df4d3c867ec019067d57d26470f_89859353.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/e6fa10dcad44604e66a0814c976453a2_38533731.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ef25efaa31e83b81c938a9b8a2812870_70896616.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/81881753efb7212f1470724236963d4e_38904713.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/35b8bab0c38d2877faf2914667a0775f_47451080.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/0dd2cddfbd3ddedb46b75b010d74b384_67532290.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ab7d7fba322b18548b302815fd13255b_82372980.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/41b9e2813452f1380ef9fb7fa63e8707_9542170.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/6c074811576ff41a333b3208155c4e76_19994537.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/90c44f52fda947ed7451f3f47324b570_16099130.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b4850de82b0f4f6fd818d83c994450dd_11659349.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/da7ca73dd57a139891430212a30633f1_38154859.png change filename to text .imagette278528081760573012/ imagette278528081760573012/1760572643_3782990_1389689946_37a1f2b4fa0b3f4f8cc378fce4655fba_rle_crop_3999618647_0.png.png imagette278528081760573012/1760572745_3788325_1389690057_76e6e3b1e66934ab5ec7fd9d7904d73c_rle_crop_3999625967_0.png.png imagette278528081760573012/1760572385_3773844_1389689851_913d5546064a555886cd8cd08480dc85_rle_crop_3999611830_0.png.png imagette278528081760573012/1760572283_3768766_1389689787_ca84639bb77b24fabf0c750e4878cfce_rle_crop_3999611584_0.png.png imagette278528081760573012/1760572283_3768766_1389689787_ca84639bb77b24fabf0c750e4878cfce_rle_crop_3999611586_0.png.png imagette278528081760573012/1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611600_0.png.png imagette278528081760573012/1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626007_0.png.png imagette278528081760573012/1760572406_3774183_1389689861_c187d061e18b5a960dd310f772bdea75_rle_crop_3999611970_0.png.png imagette278528081760573012/1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626022_0.png.png imagette278528081760573012/1760572643_3782990_1389689946_37a1f2b4fa0b3f4f8cc378fce4655fba_rle_crop_3999618650_0.png.png imagette278528081760573012/1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611959_0.png.png imagette278528081760573012/1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611335_0.png.png imagette278528081760573012/1760572266_3768259_1389689813_cea0efce3f64adec9996d9c9b9a24870_rle_crop_3999611309_0.png.png imagette278528081760573012/1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611862_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b51448391882f8cd951d698d393a9f5b_69060296.png imagette278528081760573012 27852810 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=27852810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389690036: '1760572623_3782579_1389689911_5453fb8a93297496c8593a88676eb206_rle_crop_3999618438_0.png', 1389690037: '1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618453_0.png', 1389690896: '1760572866_3880887_1389689985_2e8e4cd3e25b32b3d58981ea785191c2_rle_crop_3999626295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/315738cd48402afbf831ff98d0d510a2_39105731.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/1f06541f7bbfb9d00ce50bbe5b60979b_72577651.png change filename to text .imagette278528101760573013/ imagette278528101760573013/1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618453_0.png.png imagette278528101760573013/1760572623_3782579_1389689911_5453fb8a93297496c8593a88676eb206_rle_crop_3999618438_0.png.png imagette278528101760573013/1760572866_3880887_1389689985_2e8e4cd3e25b32b3d58981ea785191c2_rle_crop_3999626295_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/334c6de06e1963ac26e3d3fab8514f3d_93481423.png imagette278528101760573013 27852811 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=27852811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389689824: '1760572145_3761501_1389689759_5dab7932a37cae5664ff2d8f3ab86eae_rle_crop_3999610954_0.png', 1389689891: '1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611575_0.png', 1389689892: '1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611617_0.png', 1389689934: '1760572385_3773844_1389689851_913d5546064a555886cd8cd08480dc85_rle_crop_3999611842_0.png', 1389689935: '1760572385_3773844_1389689848_4f7fcfe7af6ee794926f8053d7a8b14c_rle_crop_3999611856_0.png', 1389689944: '1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611963_0.png', 1389690035: '1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618476_0.png', 1389690701: '1760572745_3788325_1389690034_11e3228742d8a6d8f5fe5c088e282b96_rle_crop_3999625995_0.png', 1389690702: '1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626014_0.png', 1389690703: '1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626027_0.png', 1389690704: '1760572745_3788325_1389690019_6e301a53e1e984f95908993f8971f793_rle_crop_3999626043_0.png', 1389690705: '1760572745_3788325_1389690019_6e301a53e1e984f95908993f8971f793_rle_crop_3999626040_0.png', 1389690895: '1760572866_3880887_1389689986_8907346bf88d66803d7ad5afb5eb7933_rle_crop_3999626289_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a3eb3af24ade6ccc17c013096702b7dc_42237055.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/27352c357396656095503553cec4d6c8_68677316.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/f378b4825f1f2e675900f139868a890e_30881575.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/251160ef108940eecd009b8d2986f576_49158490.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a72d9c396b3111e9ef21d391ea9b67da_82306071.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/c985394681e2bf3f727a197eae63509e_25150358.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/265588991fa3fd9f6d65faf85e2f3f97_74665146.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ca4ff5681847f3e52eae40bd52570d07_19339916.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/85a3999bee46e1f85b4ebac40013717b_58846305.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/5019b334d4e542737225660cc7b80cd9_53466419.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/6dfd32714bc5090f0a47aec991da78b3_98339260.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2053c19a9bc5ea6eb78c4ad24c26456a_64570118.png change filename to text .imagette278528111760573013/ imagette278528111760573013/1760572385_3773844_1389689848_4f7fcfe7af6ee794926f8053d7a8b14c_rle_crop_3999611856_0.png.png imagette278528111760573013/1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611575_0.png.png imagette278528111760573013/1760572745_3788325_1389690034_11e3228742d8a6d8f5fe5c088e282b96_rle_crop_3999625995_0.png.png imagette278528111760573013/1760572866_3880887_1389689986_8907346bf88d66803d7ad5afb5eb7933_rle_crop_3999626289_0.png.png imagette278528111760573013/1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611963_0.png.png imagette278528111760573013/1760572385_3773844_1389689851_913d5546064a555886cd8cd08480dc85_rle_crop_3999611842_0.png.png imagette278528111760573013/1760572145_3761501_1389689759_5dab7932a37cae5664ff2d8f3ab86eae_rle_crop_3999610954_0.png.png imagette278528111760573013/1760572745_3788325_1389690019_6e301a53e1e984f95908993f8971f793_rle_crop_3999626040_0.png.png imagette278528111760573013/1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626014_0.png.png imagette278528111760573013/1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618476_0.png.png imagette278528111760573013/1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611617_0.png.png imagette278528111760573013/1760572745_3788325_1389690019_6e301a53e1e984f95908993f8971f793_rle_crop_3999626043_0.png.png imagette278528111760573013/1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626027_0.png.png imagette278528121760573014/ imagette278528131760573014/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/06352afe08d34e1462f72a682f233f0d_6400611.png imagette278528111760573013 27852812 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=27852812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278528121760573014 27852813 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=27852813 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278528131760573014 27852814 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=27852814 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389689868: '1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611327_0.png', 1389689880: '1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611619_0.png', 1389689925: '1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611868_0.png', 1389690024: '1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618467_0.png', 1389690025: '1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618479_0.png', 1389690048: '1760572643_3782990_1389689947_240a66785041fb4ebbf460055fa8614e_rle_crop_3999618628_0.png', 1389690689: '1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626010_0.png', 1389690690: '1760572745_3788325_1389690019_6e301a53e1e984f95908993f8971f793_rle_crop_3999626041_0.png', 1389691708: '1760572884_3881726_1389689742_eb4abc7c8f061da1d81119e6fda13616_rle_crop_3999630969_0.png', 1389691709: '1760572884_3881726_1389689741_78e361dd39cdcfc72603125d3a4c6f86_rle_crop_3999630985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/9e4a002d826527dd80105e62416e89ee_3215537.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/d99b2f11759191f4728e3be23ae6d1f6_28246161.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/e69bdac456a9e3417a058e0038e9db05_63317488.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/55aa33902fb0b380d687a57883dba6d2_67409495.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a66619ef11028a5f003eef1337591fe0_63527576.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/50832c4d835b150f8dc4ac4ea78a677a_27197710.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/5aabd8491724e5ff323ea06c225032af_67979952.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/fe8be7f166ce3cf69924bf83b4697af6_49586512.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/de728c5c5d8301e66ba1a8361b3c2aa7_49722903.png change filename to text .imagette278528141760573014/ imagette278528141760573014/1760572745_3788325_1389690019_6e301a53e1e984f95908993f8971f793_rle_crop_3999626041_0.png.png imagette278528141760573014/1760572884_3881726_1389689741_78e361dd39cdcfc72603125d3a4c6f86_rle_crop_3999630985_0.png.png imagette278528141760573014/1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611619_0.png.png imagette278528141760573014/1760572643_3782990_1389689947_240a66785041fb4ebbf460055fa8614e_rle_crop_3999618628_0.png.png imagette278528141760573014/1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626010_0.png.png imagette278528141760573014/1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618467_0.png.png imagette278528141760573014/1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611868_0.png.png imagette278528141760573014/1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618479_0.png.png imagette278528141760573014/1760572884_3881726_1389689742_eb4abc7c8f061da1d81119e6fda13616_rle_crop_3999630969_0.png.png imagette278528141760573014/1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611327_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/d835ee3c9f60bae17b77802df2cec53a_33595891.png imagette278528141760573014 27852816 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=27852816 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389689893: '1760572283_3768766_1389689816_136ee65da0fb5652db094752ec96c759_rle_crop_3999611542_0.png'} change filename to text .imagette278528161760573015/ imagette278528161760573015/1760572283_3768766_1389689816_136ee65da0fb5652db094752ec96c759_rle_crop_3999611542_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/18acb97fa6195ebc5f46b3a2fc9da46d_11294961.png imagette278528161760573015 27852805 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=27852805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389689924: '1760572385_3773844_1389689844_8b62ddfe6e64924729531aab0120ac6b_rle_crop_3999611899_0.png', 1389691706: '1760572884_3881726_1389689742_eb4abc7c8f061da1d81119e6fda13616_rle_crop_3999630973_0.png', 1389690892: '1760572866_3880887_1389689985_2e8e4cd3e25b32b3d58981ea785191c2_rle_crop_3999626298_0.png', 1389690046: '1760572643_3782990_1389689945_e216a4ff9421d3288b804b807b924430_rle_crop_3999618655_0.png', 1389690045: '1760572643_3782990_1389689947_240a66785041fb4ebbf460055fa8614e_rle_crop_3999618632_0.png', 1389690044: '1760572643_3782990_1389689977_e8fc9350e5347ee8734a89c756e4b2dd_rle_crop_3999618613_0.png', 1389690023: '1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618483_0.png', 1389689938: '1760572406_3774183_1389689861_c187d061e18b5a960dd310f772bdea75_rle_crop_3999611977_0.png', 1389689937: '1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611966_0.png', 1389689819: '1760572145_3761501_1389689761_844787b3dfb5f52eb63aaa48244714fd_rle_crop_3999610942_0.png', 1389689923: '1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611880_0.png', 1389689922: '1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611884_0.png', 1389689921: '1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611866_0.png', 1389689920: '1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611870_0.png', 1389689878: '1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611569_0.png', 1389689877: '1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611570_0.png', 1389689820: '1760572145_3761501_1389689758_e5ea97394c515a31c25a0bbd0c6d9010_rle_crop_3999610971_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b0871e83a0f98b246943d734c0344224_17241295.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/92e72564f311c6ccdcb6ae4e85da21d3_43391930.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/fd7e4b664e82dbd1e47800bca4855cc5_40720770.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/997e984fedf3d30bd90323dc43e280d0_4632472.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/f297fdade83da1d117e88fce01180390_85535730.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/4e8ef290f5bb0aac11519cd3d4c28f95_26728328.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/835eebb3fb359c141d1fe786fac805ec_2490480.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/7a77774dfdb555802ec355b2d6c1674b_21900219.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/454819b8230fb8812c514bf88fe37555_73721024.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/777a26168d2f141bd5bfab784ba48e61_34659210.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/cd0c2d8b175434753898364e4bf1b040_87303506.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/31649b8208711fbf2f2d3cc2ae3295d0_73268109.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/253937dc0126549a276a7c2f7031992d_5362443.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/934213d8eea03d79cb50c44a13fbe892_42725162.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ac6937e1031aa7e3edf830d41dbb66f5_27958191.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/5863f5aa039ab3b84f90ce4c481b5e4a_33022520.png change filename to text .imagette278528051760573015/ imagette278528051760573015/1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611870_0.png.png imagette278528051760573015/1760572884_3881726_1389689742_eb4abc7c8f061da1d81119e6fda13616_rle_crop_3999630973_0.png.png imagette278528051760573015/1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611884_0.png.png imagette278528051760573015/1760572145_3761501_1389689761_844787b3dfb5f52eb63aaa48244714fd_rle_crop_3999610942_0.png.png imagette278528051760573015/1760572866_3880887_1389689985_2e8e4cd3e25b32b3d58981ea785191c2_rle_crop_3999626298_0.png.png imagette278528051760573015/1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611570_0.png.png imagette278528051760573015/1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611569_0.png.png imagette278528051760573015/1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611880_0.png.png imagette278528051760573015/1760572643_3782990_1389689947_240a66785041fb4ebbf460055fa8614e_rle_crop_3999618632_0.png.png imagette278528051760573015/1760572406_3774183_1389689861_c187d061e18b5a960dd310f772bdea75_rle_crop_3999611977_0.png.png imagette278528051760573015/1760572385_3773844_1389689844_8b62ddfe6e64924729531aab0120ac6b_rle_crop_3999611899_0.png.png imagette278528051760573015/1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618483_0.png.png imagette278528051760573015/1760572385_3773844_1389689846_41d7d12220587101b073eeabd4a16526_rle_crop_3999611866_0.png.png imagette278528051760573015/1760572643_3782990_1389689977_e8fc9350e5347ee8734a89c756e4b2dd_rle_crop_3999618613_0.png.png imagette278528051760573015/1760572643_3782990_1389689945_e216a4ff9421d3288b804b807b924430_rle_crop_3999618655_0.png.png imagette278528051760573015/1760572145_3761501_1389689758_e5ea97394c515a31c25a0bbd0c6d9010_rle_crop_3999610971_0.png.png imagette278528051760573015/1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611966_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/524ac7bb9819047dc17131b95024975f_84737645.png imagette278528051760573015 27852806 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=27852806 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389689928: '1760572385_3773844_1389689844_8b62ddfe6e64924729531aab0120ac6b_rle_crop_3999611891_0.png', 1389691711: '1760572884_3881726_1389689741_78e361dd39cdcfc72603125d3a4c6f86_rle_crop_3999630984_0.png', 1389691710: '1760572884_3881726_1389689743_a656390bb1ee4d5ceebf50987cb8abd8_rle_crop_3999630960_0.png', 1389690893: '1760572866_3880887_1389689985_2e8e4cd3e25b32b3d58981ea785191c2_rle_crop_3999626293_0.png', 1389690691: '1760572745_3788325_1389690057_76e6e3b1e66934ab5ec7fd9d7904d73c_rle_crop_3999625969_0.png', 1389690029: '1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618485_0.png', 1389690028: '1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618461_0.png', 1389690027: '1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618455_0.png', 1389689939: '1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611961_0.png', 1389689821: '1760572145_3761501_1389689758_e5ea97394c515a31c25a0bbd0c6d9010_rle_crop_3999610965_0.png', 1389689927: '1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611877_0.png', 1389689926: '1760572385_3773844_1389689867_9998e6dbba657ab07dd94f6bd6babba7_rle_crop_3999611818_0.png', 1389689884: '1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611622_0.png', 1389689883: '1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611616_0.png', 1389689882: '1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611597_0.png', 1389689881: '1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611599_0.png', 1389689869: '1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611325_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/bf06357441dc643d3ba9987ae157a34a_10549487.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/fae9d0a51cf3c432e7a19d0e2f56c03b_93414446.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/43fb9ea0d2f49c2298f6494694d1b791_32062131.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/825b790a6a92163b3db097c3c8006123_41069570.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/f345bedb662963269ff59c5072d2cd95_93581445.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/337374d10e0584a4d1f41ee4e227557b_41224252.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/d86d09dd223484b8c899d50bed1118d1_34918664.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/4f44da591c71f1b40d60e7b154ae795b_50842809.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/461a4f1d08af8439587d61702a3968cf_25119933.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/7e6c507a4ebccd5feedb3c6b76504365_80405015.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/7efff4db752caf30eac78fcce2211140_98507566.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ca42508b04d71f20bdb3a13fe9cdc24b_15228553.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/1a905abf92db6ca941d05f8157fa9e4a_80285632.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/181f455bfcaf5db7d2a5b704ce7887bb_6466782.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/167dca1c7839204c383bbcf278b5e4e8_53699846.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/408d95bcce72aaf4511f33f0692b9d75_32513909.png change filename to text .imagette278528061760573017/ imagette278528061760573017/1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618455_0.png.png imagette278528061760573017/1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611961_0.png.png imagette278528061760573017/1760572745_3788325_1389690057_76e6e3b1e66934ab5ec7fd9d7904d73c_rle_crop_3999625969_0.png.png imagette278528061760573017/1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618461_0.png.png imagette278528061760573017/1760572145_3761501_1389689758_e5ea97394c515a31c25a0bbd0c6d9010_rle_crop_3999610965_0.png.png imagette278528061760573017/1760572884_3881726_1389689741_78e361dd39cdcfc72603125d3a4c6f86_rle_crop_3999630984_0.png.png imagette278528061760573017/1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611616_0.png.png imagette278528061760573017/1760572884_3881726_1389689743_a656390bb1ee4d5ceebf50987cb8abd8_rle_crop_3999630960_0.png.png imagette278528061760573017/1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611599_0.png.png imagette278528061760573017/1760572866_3880887_1389689985_2e8e4cd3e25b32b3d58981ea785191c2_rle_crop_3999626293_0.png.png imagette278528061760573017/1760572385_3773844_1389689867_9998e6dbba657ab07dd94f6bd6babba7_rle_crop_3999611818_0.png.png imagette278528061760573017/1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611325_0.png.png imagette278528061760573017/1760572385_3773844_1389689844_8b62ddfe6e64924729531aab0120ac6b_rle_crop_3999611891_0.png.png imagette278528061760573017/1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611877_0.png.png imagette278528061760573017/1760572283_3768766_1389689785_630005cef6c17f22c574ff544d4b7b9a_rle_crop_3999611622_0.png.png imagette278528061760573017/1760572623_3782579_1389689909_8529e8ee612555fed0e7238a8da7ddc0_rle_crop_3999618485_0.png.png imagette278528061760573017/1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611597_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/57401279d448baadddd6b6020059ed8b_71744104.png imagette278528061760573017 27852809 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=27852809 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389690032: '1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618463_0.png', 1389691712: '1760572884_3881726_1389689743_a656390bb1ee4d5ceebf50987cb8abd8_rle_crop_3999630958_0.png', 1389690700: '1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626023_0.png', 1389690699: '1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626025_0.png', 1389690698: '1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626011_0.png', 1389690697: '1760572745_3788325_1389690034_11e3228742d8a6d8f5fe5c088e282b96_rle_crop_3999625993_0.png', 1389690696: '1760572745_3788325_1389690039_b99ec394f05cba0e8b732704b91eaae3_rle_crop_3999625984_0.png', 1389690695: '1760572745_3788325_1389690039_b99ec394f05cba0e8b732704b91eaae3_rle_crop_3999625983_0.png', 1389690051: '1760572643_3782990_1389689947_240a66785041fb4ebbf460055fa8614e_rle_crop_3999618630_0.png', 1389690033: '1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618464_0.png', 1389689822: '1760572145_3761501_1389689761_844787b3dfb5f52eb63aaa48244714fd_rle_crop_3999610944_0.png', 1389690031: '1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618462_0.png', 1389690030: '1760572623_3782579_1389689913_b33a51b8b8748bc9dbfa9592c0e64b80_rle_crop_3999618428_0.png', 1389689943: '1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611965_0.png', 1389689933: '1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611878_0.png', 1389689932: '1760572385_3773844_1389689851_913d5546064a555886cd8cd08480dc85_rle_crop_3999611839_0.png', 1389689890: '1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611603_0.png', 1389689889: '1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611574_0.png', 1389689888: '1760572283_3768766_1389689790_a1a0e8d3a5364f0b2d9f133a1bc3110d_rle_crop_3999611554_0.png', 1389689873: '1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611337_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ddd81889068be2e201f191aff2bb971b_99412028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/c9ead463add5a4af8e176a38bff3dacd_45430436.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/104b17598db17d37551d4d95bbaf9aa0_96466109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/3f15a236a6a9e15bb1a0ad98dd844a1a_86949052.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/6062e53a6b270c65da9738377b931543_82141605.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b187fb048d20dc7a0d77c8e4cf05478b_21459797.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2d788cb7f296238e2b6f5cc2ab0997a5_28408465.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/37aa6dc9cedebc191a4db81e0088e51c_55920148.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/cd43660ff25055b1d4614836fc7e98e3_48243653.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/c5f9dc2b49bd85a8c5fdd4bb5d9979c0_58438689.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/e6e1fe70df1903ce5d914a92ce346cdb_5331209.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/25887b0941b3bee5eea6865e204cd0db_55352763.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/d52d5c800a2096aa600220a682d8b5c5_11712915.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/fb83cb5cb17ee12065b200c22c31d212_90574770.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/e95d9f5e67597b9faf74d12e00147c8f_70463858.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/40265dd5a73001954f514daa6d991cf1_93478123.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/34767b32cb528b70b84894026cde24e1_72330520.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/76dea854b0319c7c30c4915f8b2a4b90_70059609.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a8ba6bd2ff7200142a6477dd335e363c_42602302.png change filename to text .imagette278528091760573018/ imagette278528091760573018/1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618462_0.png.png imagette278528091760573018/1760572283_3768766_1389689786_d3c19aecec6904697452e98781f944a3_rle_crop_3999611603_0.png.png imagette278528091760573018/1760572643_3782990_1389689947_240a66785041fb4ebbf460055fa8614e_rle_crop_3999618630_0.png.png imagette278528091760573018/1760572623_3782579_1389689913_b33a51b8b8748bc9dbfa9592c0e64b80_rle_crop_3999618428_0.png.png imagette278528091760573018/1760572406_3774183_1389689864_1a15a02955a5b734217c0d13452c2c21_rle_crop_3999611965_0.png.png imagette278528091760573018/1760572745_3788325_1389690022_d37bdeb2af787d64734126a913a8f490_rle_crop_3999626011_0.png.png imagette278528091760573018/1760572745_3788325_1389690034_11e3228742d8a6d8f5fe5c088e282b96_rle_crop_3999625993_0.png.png imagette278528091760573018/1760572283_3768766_1389689790_a1a0e8d3a5364f0b2d9f133a1bc3110d_rle_crop_3999611554_0.png.png imagette278528091760573018/1760572884_3881726_1389689743_a656390bb1ee4d5ceebf50987cb8abd8_rle_crop_3999630958_0.png.png imagette278528091760573018/1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626025_0.png.png imagette278528091760573018/1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618464_0.png.png imagette278528091760573018/1760572283_3768766_1389689788_9306c3f3f3949bcd7fc0ad5bf3bcfd3d_rle_crop_3999611574_0.png.png imagette278528091760573018/1760572745_3788325_1389690020_8b42af7dd263e28e8bbf034cb11988b0_rle_crop_3999626023_0.png.png imagette278528091760573018/1760572266_3768259_1389689812_399e866cef4015ed766c346aaa00c842_rle_crop_3999611337_0.png.png imagette278528091760573018/1760572385_3773844_1389689851_913d5546064a555886cd8cd08480dc85_rle_crop_3999611839_0.png.png imagette278528091760573018/1760572745_3788325_1389690039_b99ec394f05cba0e8b732704b91eaae3_rle_crop_3999625983_0.png.png imagette278528091760573018/1760572385_3773844_1389689845_18a44e3b00e6fdd96dbaa3abd9bb3e3e_rle_crop_3999611878_0.png.png imagette278528091760573018/1760572745_3788325_1389690039_b99ec394f05cba0e8b732704b91eaae3_rle_crop_3999625984_0.png.png imagette278528091760573018/1760572623_3782579_1389689910_d91952ef0d72c0c2feabafeea42fb919_rle_crop_3999618463_0.png.png imagette278528091760573018/1760572145_3761501_1389689761_844787b3dfb5f52eb63aaa48244714fd_rle_crop_3999610944_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/bbe20851adbbef5874ce46b348e209d8_56808093.png imagette278528091760573018 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27852802 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27852841,27852842,27852843,27852844,27852845,27852846,27852847,27852848,27852849,27852850,27852851,27852852?tags=Teint_Dans_La_Masse,Carton_gris,papier,cartonnette,Carton_brun,metal,plastique,flou,mal_croppe,autre_refus,environnement,kraft your option no_mail is active, we will not send the real mail to your client args[1389690891] : ('0.08685790384533715',) no score found for photo 1389690891 We are sending mail with results at report@fotonower.com args[1389690865] : ('0.08685790384533715',) no score found for photo 1389690865 We are sending mail with results at report@fotonower.com args[1389690864] : ('0.08685790384533715',) no score found for photo 1389690864 We are sending mail with results at report@fotonower.com args[1389690862] : ('0.08685790384533715',) no score found for photo 1389690862 We are sending mail with results at report@fotonower.com refus_total : 0.08685790384533715 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=27852802 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_P27852802_16-10-2025_02_03_32.pdf results_Auto_P27852802_16-10-2025_02_03_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','27852802','results_Auto_P27852802_16-10-2025_02_03_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf','pdf','','0.33','0.08685790384533715') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27852802]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389690891, 1389690865, 1389690864, 1389690862] map_info['map_portfolio_photo'] : {27852802: [1389690891, 1389690865, 1389690864, 1389690862, 1389690857, 1389690855, 1389690849, 1389690057, 1389690055, 1389690041, 1389690039, 1389690034, 1389690022, 1389690020, 1389690019, 1389690017, 1389690004, 1389689993, 1389689991, 1389689989, 1389689987, 1389689986, 1389689985, 1389689977, 1389689974, 1389689971, 1389689969, 1389689966, 1389689949, 1389689947, 1389689946, 1389689945, 1389689916, 1389689913, 1389689911, 1389689910, 1389689909, 1389689903, 1389689900, 1389689897, 1389689895, 1389689867, 1389689864, 1389689861, 1389689859, 1389689853, 1389689851, 1389689848, 1389689846, 1389689845, 1389689844, 1389689816, 1389689814, 1389689813, 1389689812, 1389689792, 1389689790, 1389689788, 1389689787, 1389689786, 1389689785, 1389689777, 1389689773, 1389689761, 1389689759, 1389689758, 1389689743, 1389689742, 1389689741]} final : False mtd_id 4302 list_pids : [1389690891, 1389690865, 1389690864, 1389690862] 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, '3949256') ('4302', '27852802', '1389690891', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690865', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690864', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690862', None, None, None, None, None, '3949256') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '27852802', '1389690891', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690865', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690864', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690862', None, None, None, None, None, '3949256')] time used for this insertion : 0.04619145393371582 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.933194875717163 time spend to save output : 0.04636812210083008 total time spend for step 4 : 8.979562997817993 step5:split_time_score Thu Oct 16 02:03:41 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 : ['27852802'] 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 : [('27852802',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27852802) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389690862: {'path': 'temp/1760573012_2994046_1389690862_763d431dc197635b00640e1e17f8de7e.jpg', 'extension': 'jpg'}, 1389690891: {'path': 'temp/1760573012_2994046_1389690891_06d5fc8ec5e0a9c7ed2f8ff59c2e3852.jpg', 'extension': 'jpg'}, 1389690864: {'path': 'temp/1760573012_2994046_1389690864_22b3a2c3833c719a6ba15c50bbd8d91c.jpg', 'extension': 'jpg'}, 1389690865: {'path': 'temp/1760573012_2994046_1389690865_ced8917112b074d5d98846909c4d5279.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 = 27852802; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27852802 group by h (('01', 69),) 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=27852802 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 (27852802) 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 (27852802) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16102025 27852802 Nombre de photos uploadées : 69 / 23040 (0%) 16102025 27852802 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 16102025 27852802 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1389689743, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a656390bb1ee4d5ceebf50987cb8abd8.jpg', 'username': None, 'uploaded_at': 1760571973, 'text': 'image_16102025_01_45_14_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389689742, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/eb4abc7c8f061da1d81119e6fda13616.jpg', 'username': None, 'uploaded_at': 1760571973, 'text': 'image_16102025_01_45_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389689741, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/78e361dd39cdcfc72603125d3a4c6f86.jpg', 'username': None, 'uploaded_at': 1760571973, 'text': 'image_16102025_01_45_34_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389689777, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/8288b01439ba2754128465219cdef163.jpg', 'username': None, 'uploaded_at': 1760572043, 'text': 'image_16102025_01_45_43_009127m0.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.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031347274780273438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27852802, '2025-10-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2458333,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.8252613544464111 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= 2458333 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466041, 'mtr_portfolio_id': 27849662, 'dashboard_result_id': 16440283, '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_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466041, 'mtr_portfolio_id': 27850314, 'dashboard_result_id': 16440284, '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_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466041, 'mtr_portfolio_id': 27850796, 'dashboard_result_id': 16440285, '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_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466041, 'mtr_portfolio_id': 27851368, 'dashboard_result_id': 16440286, '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_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466041, 'mtr_portfolio_id': 27852357, 'dashboard_result_id': 16440287, '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_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466041, 'mtr_portfolio_id': 27852802, 'dashboard_result_id': 16440288, '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_P27852802_16-10-2025_02_01_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27849662 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': 3948919, 'mtr_portfolio_id': 27849662, 'created_at': datetime.datetime(2025, 10, 16, 0, 20, 29), 'result': '0.05962900866521991', 'result_long': None, 'result_double': None}] Qualite : 0.05962900866521991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27849662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27849662_16-10-2025_00_20_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27849662 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_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, 'pht': 3726}}" where mtr_portfolio_id = 27849662 and dashboard_run_id = 2466041 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`=27849662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440283, 0.05962900866521991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, '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 = 27850314 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': 3948976, 'mtr_portfolio_id': 27850314, 'created_at': datetime.datetime(2025, 10, 16, 0, 34, 1), 'result': '0.051392392926112695', 'result_long': None, 'result_double': None}] Qualite : 0.051392392926112695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27850314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850314_16-10-2025_00_34_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27850314 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_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, 'pht': 3726}}" where mtr_portfolio_id = 27850314 and dashboard_run_id = 2466041 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`=27850314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440284, 0.051392392926112695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, '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 = 27850796 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': 3949013, 'mtr_portfolio_id': 27850796, 'created_at': datetime.datetime(2025, 10, 16, 0, 49, 36), 'result': '0.054089594746434155', 'result_long': None, 'result_double': None}] Qualite : 0.054089594746434155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27850796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850796_16-10-2025_00_49_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27850796 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_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, 'pht': 3726}}" where mtr_portfolio_id = 27850796 and dashboard_run_id = 2466041 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`=27850796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440285, 0.054089594746434155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, '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 = 27851368 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': 3949070, 'mtr_portfolio_id': 27851368, 'created_at': datetime.datetime(2025, 10, 16, 1, 3, 5), 'result': '0.0461043911335413', 'result_long': None, 'result_double': None}] Qualite : 0.0461043911335413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27851368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27851368_16-10-2025_01_03_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27851368 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_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, 'pht': 3726}}" where mtr_portfolio_id = 27851368 and dashboard_run_id = 2466041 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`=27851368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440286, 0.0461043911335413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, '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 = 27852357 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': 3949216, 'mtr_portfolio_id': 27852357, 'created_at': datetime.datetime(2025, 10, 16, 1, 48, 59), 'result': '0.068391160702413', 'result_long': None, 'result_double': None}] Qualite : 0.068391160702413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27852357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852357_16-10-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27852357 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_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, 'pht': 3726}}" where mtr_portfolio_id = 27852357 and dashboard_run_id = 2466043 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`=27852357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440287, 0.068391160702413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, '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 = 27852802 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': 3949256, 'mtr_portfolio_id': 27852802, 'created_at': datetime.datetime(2025, 10, 16, 2, 3, 32), 'result': '0.08685790384533715', 'result_long': None, 'result_double': None}] Qualite : 0.08685790384533715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27852802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27852802 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_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, 'pht': 3726}}" where mtr_portfolio_id = 27852802 and dashboard_run_id = 2466043 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`=27852802 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440288, 0.08685790384533715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27849662,27850314,27850796,27851368,27852357,27852802) result : ((1389674570,), (1389674571,), (1389674572,), (1389674582,), (1389674583,), (1389674584,), (1389674782,), (1389674784,), (1389674786,), (1389675930,), (1389675932,), (1389675935,), (1389675940,), (1389675947,), (1389675950,), (1389676259,), (1389676298,), (1389676300,), (1389676304,), (1389676319,), (1389676321,), (1389676322,), (1389676323,), (1389676327,), (1389676343,), (1389676344,), (1389676345,), (1389676347,), (1389676349,), (1389676351,), (1389676377,), (1389676378,), (1389676389,), (1389676390,), (1389676391,), (1389676457,), (1389676642,), (1389676644,), (1389676646,), (1389676648,), (1389676740,), (1389676781,), (1389676783,), (1389676786,), (1389676790,), (1389676792,), (1389676832,), (1389676833,), (1389676834,), (1389676842,), (1389676843,), (1389676844,), (1389676846,), (1389677213,), (1389677215,), (1389677216,), (1389677217,), (1389677219,), (1389677251,), (1389677252,), (1389677253,), (1389677255,), (1389677260,), (1389677274,), (1389677276,), (1389678296,), (1389678607,), (1389678608,), (1389678612,), (1389678655,), (1389678872,), (1389678873,), (1389678874,), (1389678915,), (1389678916,), (1389678917,), (1389678926,), (1389678927,), (1389678928,), (1389678930,), (1389678934,), (1389678948,), (1389678949,), (1389678950,), (1389678953,), (1389678983,), (1389678984,), (1389678985,), (1389678987,), (1389678992,), (1389679001,), (1389679022,), (1389679025,), (1389679027,), (1389679029,), (1389679031,), (1389679033,), (1389679035,), (1389679037,), (1389679044,), (1389679054,), (1389679056,), (1389679077,), (1389679079,), (1389679080,), (1389679081,), (1389679082,), (1389679083,), (1389679084,), (1389679088,), (1389679090,), (1389679114,), (1389679159,), (1389679197,), (1389679245,), (1389679357,), (1389679400,), (1389679443,), (1389679487,), (1389679534,), (1389679579,), (1389679589,), (1389679599,), (1389679879,), (1389679882,), (1389679885,), (1389679894,), (1389679898,), (1389679903,), (1389679906,), (1389679909,), (1389679911,), (1389679871,), (1389679873,), (1389679876,), (1389679887,), (1389679888,), (1389679891,), (1389679892,), (1389679912,), (1389679915,), (1389680202,), (1389680242,), (1389680281,), (1389680323,), (1389680368,), (1389680408,), (1389680485,), (1389680530,), (1389680569,), (1389680578,), (1389680581,), (1389680614,), (1389680658,), (1389680660,), (1389681111,), (1389681119,), (1389681121,), (1389681123,), (1389681308,), (1389681351,), (1389681384,), (1389681493,), (1389681504,), (1389681515,), (1389681517,), (1389681538,), (1389681540,), (1389681542,), (1389681954,), (1389681955,), (1389681965,), (1389681966,), (1389681968,), (1389681969,), (1389682362,), (1389682363,), (1389682856,), (1389682857,), (1389682858,), (1389682859,), (1389683013,), (1389683014,), (1389683015,), (1389683017,), (1389683020,), (1389683027,), (1389683030,), (1389683032,), (1389683035,), (1389683037,), (1389683057,), (1389683820,), (1389683866,), (1389683891,), (1389683896,), (1389683897,), (1389683898,), (1389683787,), (1389683817,), (1389683901,), (1389683904,), (1389683905,), (1389683907,), (1389683909,), (1389683910,), (1389683922,), (1389683923,), (1389683924,), (1389683925,), (1389683941,), (1389683942,), (1389683943,), (1389683944,), (1389683989,), (1389684397,), (1389684440,), (1389684485,), (1389684530,), (1389684561,), (1389684688,), (1389684731,), (1389684749,), (1389684757,), (1389684767,), (1389684881,), (1389684882,), (1389684883,), (1389684885,), (1389684888,), (1389684893,), (1389684894,), (1389684895,), (1389684897,), (1389684908,), (1389685388,), (1389685438,), (1389685481,), (1389685524,), (1389686013,), (1389686015,), (1389686017,), (1389686019,), (1389686215,), (1389686221,), (1389686248,), (1389686253,), (1389686255,), (1389686256,), (1389686259,), (1389686260,), (1389686262,), (1389686265,), (1389686268,), (1389686270,), (1389686275,), (1389686285,), (1389686286,), (1389686288,), (1389686290,), (1389686293,), (1389687129,), (1389687131,), (1389687361,), (1389689277,), (1389689291,), (1389689292,), (1389689293,), (1389689339,), (1389689340,), (1389689343,), (1389689402,), (1389689403,), (1389689404,), (1389689406,), (1389689407,), (1389689409,), (1389689414,), (1389689416,), (1389689418,), (1389689422,), (1389689425,), (1389689427,), (1389689433,), (1389689435,), (1389689437,), (1389689439,), (1389689440,), (1389689442,), (1389689452,), (1389689455,), (1389689456,), (1389689457,), (1389689459,), (1389689465,), (1389689475,), (1389689482,), (1389689546,), (1389689551,), (1389689575,), (1389689577,), (1389689579,), (1389689581,), (1389689600,), (1389689602,), (1389689603,), (1389689605,), (1389689607,), (1389689612,), (1389689613,), (1389689614,), (1389689615,), (1389689617,), (1389689622,), (1389689629,), (1389689630,), (1389689631,), (1389689633,), (1389689636,), (1389689638,), (1389689654,), (1389689656,), (1389689657,), (1389689679,), (1389689680,), (1389689681,), (1389689682,), (1389689690,), (1389689691,), (1389689692,), (1389689693,), (1389689697,), (1389689698,), (1389689745,), (1389689747,), (1389689749,), (1389689753,), (1389689754,), (1389689755,), (1389689756,), (1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16102025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27852802]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389690891, 1389690865, 1389690864, 1389690862] map_info['map_portfolio_photo'] : {27852802: [1389690891, 1389690865, 1389690864, 1389690862, 1389690857, 1389690855, 1389690849, 1389690057, 1389690055, 1389690041, 1389690039, 1389690034, 1389690022, 1389690020, 1389690019, 1389690017, 1389690004, 1389689993, 1389689991, 1389689989, 1389689987, 1389689986, 1389689985, 1389689977, 1389689974, 1389689971, 1389689969, 1389689966, 1389689949, 1389689947, 1389689946, 1389689945, 1389689916, 1389689913, 1389689911, 1389689910, 1389689909, 1389689903, 1389689900, 1389689897, 1389689895, 1389689867, 1389689864, 1389689861, 1389689859, 1389689853, 1389689851, 1389689848, 1389689846, 1389689845, 1389689844, 1389689816, 1389689814, 1389689813, 1389689812, 1389689792, 1389689790, 1389689788, 1389689787, 1389689786, 1389689785, 1389689777, 1389689773, 1389689761, 1389689759, 1389689758, 1389689743, 1389689742, 1389689741]} final : True mtd_id 4302 list_pids : [1389690891, 1389690865, 1389690864, 1389690862] Looping around the photos to save general results len do output : 1 /27852802Didn'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, '3949256') ('4302', '27852802', '1389690891', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690865', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690864', None, None, None, None, None, '3949256') ('4302', None, None, None, None, None, None, None, '3949256') ('4302', '27852802', '1389690862', None, None, None, None, None, '3949256') 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', None, '27852802', 'None', None, None, None, None, '3949256'), ('4302', '27852802', '1389690891', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690865', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690864', None, None, None, None, None, '3949256'), ('4302', '27852802', '1389690862', None, None, None, None, None, '3949256')] time used for this insertion : 0.04586982727050781 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9764814376831055 time spend to save output : 0.046068429946899414 total time spend for step 5 : 3.022549867630005 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 (3949256) 2.08user 2.40system 0:18.27elapsed 24%CPU (0avgtext+0avgdata 160348maxresident)k 40inputs+15896outputs (0major+64347minor)pagefaults 0swaps