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 : 2104728 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 (4242854) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4242854) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518739 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4242854'] with mtr_portfolio_ids : ['29518739'] and first list_photo_ids : [] new path : /proc/2104728/ Name: python3 Umask: 0002 State: R (running) Tgid: 2104728 Ngid: 0 Pid: 2104728 PPid: 2104727 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2104728 NSpid: 2104728 NSpgid: 2103682 NSsid: 2103682 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104772 kB VmRSS: 104772 kB RssAnon: 66292 kB RssFile: 38480 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2104728', 'Ngid': '0', 'Pid': '2104728', 'PPid': '2104727', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2104728', 'NSpid': '2104728', 'NSpgid': '2103682', 'NSsid': '2103682', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104772 kB', 'VmRSS': '104772 kB', 'RssAnon': '66292 kB', 'RssFile': '38480 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2104728', '1113364', '0', '1113364', '872092', '104772', b'', 'marlene', '4242854') 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 (29518739) 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 (4242854 ) ) 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 (29518739) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399869018, 'portfolio_id': 29518739}, {'photo_id': 1399869017, 'portfolio_id': 29518739}, {'photo_id': 1399868919, 'portfolio_id': 29518739}, {'photo_id': 1399868616, 'portfolio_id': 29518739}, {'photo_id': 1399868321, 'portfolio_id': 29518739}, {'photo_id': 1399868289, 'portfolio_id': 29518739}, {'photo_id': 1399868256, 'portfolio_id': 29518739}, {'photo_id': 1399868226, 'portfolio_id': 29518739}, {'photo_id': 1399868194, 'portfolio_id': 29518739}, {'photo_id': 1399868158, 'portfolio_id': 29518739}, {'photo_id': 1399867820, 'portfolio_id': 29518739}, {'photo_id': 1399867818, 'portfolio_id': 29518739}, {'photo_id': 1399867817, 'portfolio_id': 29518739}, {'photo_id': 1399867816, 'portfolio_id': 29518739}, {'photo_id': 1399867815, 'portfolio_id': 29518739}, {'photo_id': 1399867802, 'portfolio_id': 29518739}, {'photo_id': 1399867735, 'portfolio_id': 29518739}, {'photo_id': 1399867732, 'portfolio_id': 29518739}, {'photo_id': 1399867729, 'portfolio_id': 29518739}, {'photo_id': 1399867726, 'portfolio_id': 29518739}, {'photo_id': 1399867724, 'portfolio_id': 29518739}, {'photo_id': 1399867723, 'portfolio_id': 29518739}, {'photo_id': 1399867718, 'portfolio_id': 29518739}, {'photo_id': 1399867715, 'portfolio_id': 29518739}, {'photo_id': 1399867712, 'portfolio_id': 29518739}, {'photo_id': 1399867710, 'portfolio_id': 29518739}, {'photo_id': 1399867702, 'portfolio_id': 29518739}, {'photo_id': 1399867700, 'portfolio_id': 29518739}, {'photo_id': 1399867673, 'portfolio_id': 29518739}, {'photo_id': 1399867671, 'portfolio_id': 29518739}, {'photo_id': 1399867666, 'portfolio_id': 29518739}, {'photo_id': 1399867664, 'portfolio_id': 29518739}, {'photo_id': 1399867661, 'portfolio_id': 29518739}, {'photo_id': 1399867658, 'portfolio_id': 29518739}, {'photo_id': 1399867655, 'portfolio_id': 29518739}, {'photo_id': 1399867648, 'portfolio_id': 29518739}, {'photo_id': 1399867639, 'portfolio_id': 29518739}, {'photo_id': 1399867633, 'portfolio_id': 29518739}, {'photo_id': 1399867626, 'portfolio_id': 29518739}, {'photo_id': 1399867624, 'portfolio_id': 29518739}, {'photo_id': 1399867622, 'portfolio_id': 29518739}, {'photo_id': 1399867619, 'portfolio_id': 29518739}, {'photo_id': 1399867617, 'portfolio_id': 29518739}, {'photo_id': 1399867609, 'portfolio_id': 29518739}, {'photo_id': 1399867606, 'portfolio_id': 29518739}, {'photo_id': 1399867603, 'portfolio_id': 29518739}, {'photo_id': 1399867600, 'portfolio_id': 29518739}, {'photo_id': 1399867577, 'portfolio_id': 29518739}, {'photo_id': 1399867575, 'portfolio_id': 29518739}, {'photo_id': 1399867571, 'portfolio_id': 29518739}, {'photo_id': 1399867555, 'portfolio_id': 29518739}, {'photo_id': 1399867537, 'portfolio_id': 29518739}, {'photo_id': 1399867506, 'portfolio_id': 29518739}, {'photo_id': 1399867312, 'portfolio_id': 29518739}, {'photo_id': 1399867275, 'portfolio_id': 29518739}, {'photo_id': 1399867238, 'portfolio_id': 29518739}, {'photo_id': 1399867203, 'portfolio_id': 29518739}, {'photo_id': 1399867171, 'portfolio_id': 29518739}, {'photo_id': 1399867144, 'portfolio_id': 29518739}, {'photo_id': 1399867140, 'portfolio_id': 29518739}, {'photo_id': 1399867136, 'portfolio_id': 29518739}, {'photo_id': 1399867134, 'portfolio_id': 29518739}, {'photo_id': 1399867132, 'portfolio_id': 29518739}, {'photo_id': 1399866764, 'portfolio_id': 29518739}, {'photo_id': 1399866729, 'portfolio_id': 29518739}, {'photo_id': 1399866695, 'portfolio_id': 29518739}, {'photo_id': 1399866661, 'portfolio_id': 29518739}, {'photo_id': 1399866621, 'portfolio_id': 29518739}, {'photo_id': 1399866356, 'portfolio_id': 29518739}, {'photo_id': 1399866335, 'portfolio_id': 29518739}, {'photo_id': 1399866332, 'portfolio_id': 29518739}] map_portfolio_id_photo_id: {29518739: [1399869018, 1399869017, 1399868919, 1399868616, 1399868321, 1399868289, 1399868256, 1399868226, 1399868194, 1399868158, 1399867820, 1399867818, 1399867817, 1399867816, 1399867815, 1399867802, 1399867735, 1399867732, 1399867729, 1399867726, 1399867724, 1399867723, 1399867718, 1399867715, 1399867712, 1399867710, 1399867702, 1399867700, 1399867673, 1399867671, 1399867666, 1399867664, 1399867661, 1399867658, 1399867655, 1399867648, 1399867639, 1399867633, 1399867626, 1399867624, 1399867622, 1399867619, 1399867617, 1399867609, 1399867606, 1399867603, 1399867600, 1399867577, 1399867575, 1399867571, 1399867555, 1399867537, 1399867506, 1399867312, 1399867275, 1399867238, 1399867203, 1399867171, 1399867144, 1399867140, 1399867136, 1399867134, 1399867132, 1399866764, 1399866729, 1399866695, 1399866661, 1399866621, 1399866356, 1399866335, 1399866332]} ##### 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.020399808883666992 #### 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 Dec 18 00:35:00 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 (29518739) 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 : 29518739 get user id for portfolio 29518739 get sub ptf for main ptf 29518739, type 3726 and hashtags ['papier', 'environnement', 'autre_refus', 'mal_croppe', 'flou', 'kraft', 'plastique', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'Carton_gris', '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`=29518739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','autre_refus','mal_croppe','flou','kraft','plastique','cartonnette','Teint_Dans_La_Masse','metal','Carton_gris','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`=29518739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','autre_refus','mal_croppe','flou','kraft','plastique','cartonnette','Teint_Dans_La_Masse','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29518739, 'sub_port_id': 29518743, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132727, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'autre_refus': {'main_port_id': 29518739, 'sub_port_id': 29518744, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132728, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'mal_croppe': {'main_port_id': 29518739, 'sub_port_id': 29518745, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132729, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'plastique': {'main_port_id': 29518739, 'sub_port_id': 29518746, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132730, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'kraft': {'main_port_id': 29518739, 'sub_port_id': 29518747, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132731, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'papier': {'main_port_id': 29518739, 'sub_port_id': 29518748, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132732, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'environnement': {'main_port_id': 29518739, 'sub_port_id': 29518749, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132733, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'Carton_gris': {'main_port_id': 29518739, 'sub_port_id': 29518750, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132734, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'Carton_brun': {'main_port_id': 29518739, 'sub_port_id': 29518751, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132735, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'cartonnette': {'main_port_id': 29518739, 'sub_port_id': 29518752, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132736, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'metal': {'main_port_id': 29518739, 'sub_port_id': 29518753, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132737, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}, 'flou': {'main_port_id': 29518739, 'sub_port_id': 29518754, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132738, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 8)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29518743 , 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=29518739 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 (29518743) result : ((1399867149,), (1399867150,), (1399867582,), (1399867597,), (1399867627,), (1399867628,), (1399867641,), (1399867642,), (1399867643,), (1399867644,), (1399867645,), (1399867646,), (1399867678,), (1399867679,), (1399867689,), (1399867690,), (1399867691,), (1399868636,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518744 , 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=29518739 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 (29518744) result : ((1399867583,), (1399867584,), (1399867629,), (1399867630,), (1399867647,), (1399867736,), (1399868647,), (1399868649,), (1399868651,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518745 , 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=29518739 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 (29518745) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518746 , 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=29518739 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 (29518746) result : ((1399867158,), (1399867589,), (1399867591,), (1399867653,), (1399867654,), (1399867699,), (1399867756,), (1399867758,), (1399869043,), (1399869045,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518747 , 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=29518739 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 (29518747) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518748 , 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=29518739 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 (29518748) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518749 , 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=29518739 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 (29518749) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518750 , 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=29518739 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 (29518750) result : ((1399867151,), (1399867152,), (1399867153,), (1399867161,), (1399867585,), (1399867586,), (1399867650,), (1399867681,), (1399867692,), (1399869031,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518751 , 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=29518739 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 (29518751) result : ((1399867157,), (1399867165,), (1399867166,), (1399867587,), (1399867652,), (1399867697,), (1399867698,), (1399867743,), (1399867745,), (1399867780,), (1399868664,), (1399868666,), (1399868668,), (1399868670,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518752 , 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=29518739 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 (29518752) result : ((1399867154,), (1399867162,), (1399867163,), (1399867164,), (1399867651,), (1399867682,), (1399867693,), (1399867694,), (1399867695,), (1399867738,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518753 , 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=29518739 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 (29518753) result : ((1399868680,), (1399868682,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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 29518754 , 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=29518739 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 (29518754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518739) result : ((1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,)) 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 (1399867700,1399867600) 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`=29518739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','autre_refus','mal_croppe','flou','kraft','plastique','cartonnette','Teint_Dans_La_Masse','metal','Carton_gris','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`=29518739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','autre_refus','mal_croppe','flou','kraft','plastique','cartonnette','Teint_Dans_La_Masse','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29518739, 'sub_port_id': 29518755, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132739, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'autre_refus': {'main_port_id': 29518739, 'sub_port_id': 29518756, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132740, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'mal_croppe': {'main_port_id': 29518739, 'sub_port_id': 29518757, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132741, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'plastique': {'main_port_id': 29518739, 'sub_port_id': 29518758, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132742, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'kraft': {'main_port_id': 29518739, 'sub_port_id': 29518759, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132743, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'papier': {'main_port_id': 29518739, 'sub_port_id': 29518760, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132744, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'environnement': {'main_port_id': 29518739, 'sub_port_id': 29518761, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132745, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'Carton_gris': {'main_port_id': 29518739, 'sub_port_id': 29518762, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132746, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'Carton_brun': {'main_port_id': 29518739, 'sub_port_id': 29518763, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132747, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'cartonnette': {'main_port_id': 29518739, 'sub_port_id': 29518764, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132748, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'metal': {'main_port_id': 29518739, 'sub_port_id': 29518765, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132749, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}, 'flou': {'main_port_id': 29518739, 'sub_port_id': 29518767, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20132750, 'last_updated_at': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 0, 33, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 0, 21, 14)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29518767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29518754 lien utilise dans velours : https://marlene.fotonower.com/velours/29518755,29518756,29518757,29518758,29518759,29518760,29518761,29518762,29518763,29518764,29518765,29518767?tags=Teint_Dans_La_Masse,autre_refus,mal_croppe,plastique,kraft,papier,environnement,Carton_gris,Carton_brun,cartonnette,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29518739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399869018, 1399869017, 1399868919] map_info['map_portfolio_photo'] : {29518739: [1399869018, 1399869017, 1399868919, 1399868616, 1399868321, 1399868289, 1399868256, 1399868226, 1399868194, 1399868158, 1399867820, 1399867818, 1399867817, 1399867816, 1399867815, 1399867802, 1399867735, 1399867732, 1399867729, 1399867726, 1399867724, 1399867723, 1399867718, 1399867715, 1399867712, 1399867710, 1399867702, 1399867700, 1399867673, 1399867671, 1399867666, 1399867664, 1399867661, 1399867658, 1399867655, 1399867648, 1399867639, 1399867633, 1399867626, 1399867624, 1399867622, 1399867619, 1399867617, 1399867609, 1399867606, 1399867603, 1399867600, 1399867577, 1399867575, 1399867571, 1399867555, 1399867537, 1399867506, 1399867312, 1399867275, 1399867238, 1399867203, 1399867171, 1399867144, 1399867140, 1399867136, 1399867134, 1399867132, 1399866764, 1399866729, 1399866695, 1399866661, 1399866621, 1399866356, 1399866335, 1399866332]} final : False mtd_id 4302 list_pids : [1399869018, 1399869017, 1399868919] Looping around the photos to save general results len do output : 1 /29518739. 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, '4242854') ('4302', '29518739', '1399869018', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399869017', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399868919', None, None, None, None, None, '4242854') 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', None, '29518739', "{'Teint_Dans_La_Masse': 29518743, 'autre_refus': 29518744, 'mal_croppe': 29518745, 'plastique': 29518746, 'kraft': 29518747, 'papier': 29518748, 'environnement': 29518749, 'Carton_gris': 29518750, 'Carton_brun': 29518751, 'cartonnette': 29518752, 'metal': 29518753, 'flou': 29518754}", None, None, None, None, '4242854'), ('4302', '29518739', '1399869018', None, None, None, None, None, '4242854'), ('4302', '29518739', '1399869017', None, None, None, None, None, '4242854'), ('4302', '29518739', '1399868919', None, None, None, None, None, '4242854')] time used for this insertion : 0.014811515808105469 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5571756362915039 time spend to save output : 0.015047311782836914 total time spend for step 1 : 0.5722229480743408 step2:final Thu Dec 18 00:35:00 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 (29518739) 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 29518739 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399866356,1399866335,1399866332,1399866764,1399866729,1399866695,1399866661,1399866621,1399867144,1399867140,1399867136,1399867134,1399867132,1399867312,1399867275,1399867238,1399867203,1399867171,1399867577,1399867575,1399867571,1399867555,1399867537,1399867506,1399867648,1399867609,1399867639,1399867606,1399867603,1399867633,1399867600,1399867626,1399867624,1399867622,1399867619,1399867617,1399867666,1399867664,1399867661,1399867658,1399867655,1399867673,1399867671,1399869018,1399867820,1399867718,1399867715,1399869017,1399867818,1399867817,1399868919,1399867712,1399867816,1399867710,1399868321,1399867815,1399867702,1399868289,1399867700,1399867802,1399868256,1399867735,1399867732,1399867729,1399867726,1399867724,1399867723,1399868226,1399868194,1399868158,1399868616); 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([29518739]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ('0.06837597770395426',)} new output for save of step final : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ('0.06837597770395426',)} [1399869018, 1399869017, 1399868919] map_info['map_portfolio_photo'] : {29518739: [1399869018, 1399869017, 1399868919, 1399868616, 1399868321, 1399868289, 1399868256, 1399868226, 1399868194, 1399868158, 1399867820, 1399867818, 1399867817, 1399867816, 1399867815, 1399867802, 1399867735, 1399867732, 1399867729, 1399867726, 1399867724, 1399867723, 1399867718, 1399867715, 1399867712, 1399867710, 1399867702, 1399867700, 1399867673, 1399867671, 1399867666, 1399867664, 1399867661, 1399867658, 1399867655, 1399867648, 1399867639, 1399867633, 1399867626, 1399867624, 1399867622, 1399867619, 1399867617, 1399867609, 1399867606, 1399867603, 1399867600, 1399867577, 1399867575, 1399867571, 1399867555, 1399867537, 1399867506, 1399867312, 1399867275, 1399867238, 1399867203, 1399867171, 1399867144, 1399867140, 1399867136, 1399867134, 1399867132, 1399866764, 1399866729, 1399866695, 1399866661, 1399866621, 1399866356, 1399866335, 1399866332]} final : False mtd_id 4302 list_pids : [1399869018, 1399869017, 1399868919] Looping around the photos to save general results len do output : 3 /1399869018.Didn't retrieve data . /1399869017.Didn't retrieve data . /1399868919.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, '4242854') ('4302', '29518739', '1399869018', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399869017', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399868919', None, None, None, None, None, '4242854') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '29518739', '1399869018', '0.06837597770395426', None, None, None, None, '4242854'), ('4302', '29518739', '1399869017', '0.06837597770395426', None, None, None, None, '4242854'), ('4302', '29518739', '1399868919', '0.06837597770395426', None, None, None, None, '4242854')] time used for this insertion : 0.014746665954589844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0880126953125 time spend to save output : 0.014994382858276367 total time spend for step 2 : 0.10300707817077637 step3:velours_tree Thu Dec 18 00:35:00 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 : {29518739: [{'Teint_Dans_La_Masse': 29518743, 'autre_refus': 29518744, 'mal_croppe': 29518745, 'plastique': 29518746, 'kraft': 29518747, 'papier': 29518748, 'environnement': 29518749, 'Carton_gris': 29518750, 'Carton_brun': 29518751, 'cartonnette': 29518752, 'metal': 29518753, 'flou': 29518754}]} input_args_next_step : {29518739: ()} output_args : {29518739: [{'Teint_Dans_La_Masse': 29518743, 'autre_refus': 29518744, 'mal_croppe': 29518745, 'plastique': 29518746, 'kraft': 29518747, 'papier': 29518748, 'environnement': 29518749, 'Carton_gris': 29518750, 'Carton_brun': 29518751, 'cartonnette': 29518752, 'metal': 29518753, 'flou': 29518754}]} args : 29518739 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': 29518743, 'autre_refus': 29518744, 'mal_croppe': 29518745, 'plastique': 29518746, 'kraft': 29518747, 'papier': 29518748, 'environnement': 29518749, 'Carton_gris': 29518750, 'Carton_brun': 29518751, 'cartonnette': 29518752, 'metal': 29518753, 'flou': 29518754},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29518739) 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([29518739]) 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.2789914608001709 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.2790412902832031 step4:send_mail_cod Thu Dec 18 00:35:01 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 : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ('0.06837597770395426',)} input_args_next_step : {1399869018: ()} output_args : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ('0.06837597770395426',)} args : 1399869018 depend.output_id : 0 input_args_next_step : {1399869018: ('0.06837597770395426',), 1399869017: ()} output_args : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ('0.06837597770395426',)} args : 1399869017 depend.output_id : 0 input_args_next_step : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ()} output_args : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ('0.06837597770395426',)} args : 1399868919 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 : {29518739: [{'Teint_Dans_La_Masse': 29518743, 'autre_refus': 29518744, 'mal_croppe': 29518745, 'plastique': 29518746, 'kraft': 29518747, 'papier': 29518748, 'environnement': 29518749, 'Carton_gris': 29518750, 'Carton_brun': 29518751, 'cartonnette': 29518752, 'metal': 29518753, 'flou': 29518754}]} input_args_next_step : {1399869018: ('0.06837597770395426',), 1399869017: ('0.06837597770395426',), 1399868919: ('0.06837597770395426',), 29518739: ()} output_args : {29518739: [{'Teint_Dans_La_Masse': 29518743, 'autre_refus': 29518744, 'mal_croppe': 29518745, 'plastique': 29518746, 'kraft': 29518747, 'papier': 29518748, 'environnement': 29518749, 'Carton_gris': 29518750, 'Carton_brun': 29518751, 'cartonnette': 29518752, 'metal': 29518753, 'flou': 29518754}]} args : 29518739 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 :4, first value : ('0.06837597770395426',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29518739) 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 (1399869018,1399869017,1399868919) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399868919 begin to download photo : 1399869017 begin to download photo : 1399869018 download finish for photo 1399868919 download finish for photo 1399869018 download finish for photo 1399869017 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 : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P29518739_18-12-2025_00_35_01.pdf 29518744 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=29518744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399867583: '1766013787_2096439_1399867134_93be1111f45a3d05e3d968e404b176f8_rle_crop_4073481858_0.png', 1399867584: '1766013787_2096439_1399867132_8c1db753b25d80f256636bf9899d79ed_rle_crop_4073481871_0.png', 1399867629: '1766013907_2102120_1399867571_d51db1f2420d2506fc92e951b6dfb93c_rle_crop_4073482066_0.png', 1399867630: '1766013907_2102120_1399867537_d9b4f540c13eabfbdfbf49327f36a7ac_rle_crop_4073482095_0.png', 1399867647: '1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488502_0.png', 1399867736: '1766014146_2114435_1399867661_93b891db1150ccdd68e3030f8b0d8485_rle_crop_4073500369_0.png', 1399868647: '1766014285_2123059_1399867732_5ed421e31b6ed627ed8fcf5bf402e532_rle_crop_4073504784_0.png', 1399868649: '1766014285_2123059_1399867724_1ab961e8acdf711cfced10d4cf3eb4a1_rle_crop_4073504817_0.png', 1399868651: '1766014285_2123059_1399867723_b4b54c8f7e9fb24db4839e68c84f42c9_rle_crop_4073504829_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/11643c9e9046e4dded8902da76d59519_28682.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e59582ed74102d87055c08ee3c53fa19_91782424.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0017a2297ded986f2724c44bfb44b47d_61816197.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b2c6f186b220b079fd107613e88f3fe5_86538339.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f7bc11123a07c724189e05c4083dfead_60483779.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ff42af7e4b8e933a0aabd303b71b3396_59136120.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/72f856d30f9dd023aaa7e359c490ba0f_11355147.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b4db6ef165c3e3a2f0d5c7698a1cf7e8_8341232.png change filename to text .imagette295187441766014501/ imagette295187441766014501/1766013787_2096439_1399867132_8c1db753b25d80f256636bf9899d79ed_rle_crop_4073481871_0.png.png imagette295187441766014501/1766013907_2102120_1399867571_d51db1f2420d2506fc92e951b6dfb93c_rle_crop_4073482066_0.png.png imagette295187441766014501/1766014285_2123059_1399867723_b4b54c8f7e9fb24db4839e68c84f42c9_rle_crop_4073504829_0.png.png imagette295187441766014501/1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488502_0.png.png imagette295187441766014501/1766013787_2096439_1399867134_93be1111f45a3d05e3d968e404b176f8_rle_crop_4073481858_0.png.png imagette295187441766014501/1766013907_2102120_1399867537_d9b4f540c13eabfbdfbf49327f36a7ac_rle_crop_4073482095_0.png.png imagette295187441766014501/1766014285_2123059_1399867724_1ab961e8acdf711cfced10d4cf3eb4a1_rle_crop_4073504817_0.png.png imagette295187441766014501/1766014285_2123059_1399867732_5ed421e31b6ed627ed8fcf5bf402e532_rle_crop_4073504784_0.png.png imagette295187441766014501/1766014146_2114435_1399867661_93b891db1150ccdd68e3030f8b0d8485_rle_crop_4073500369_0.png.png imagette295187451766014501/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ee72743320c4fafa3dae743930c90539_43973671.png imagette295187441766014501 29518745 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=29518745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295187451766014501 29518746 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=29518746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399867158: '1766013666_2090507_1399866621_ea66c612b8da296a2a68bcc8883cbda5_rle_crop_4073475096_0.png', 1399867589: '1766013787_2096439_1399867134_93be1111f45a3d05e3d968e404b176f8_rle_crop_4073481857_0.png', 1399867591: '1766013787_2096439_1399867134_93be1111f45a3d05e3d968e404b176f8_rle_crop_4073481856_0.png', 1399867653: '1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488487_0.png', 1399867654: '1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488511_0.png', 1399867699: '1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494584_0.png', 1399867756: '1766014146_2114435_1399867664_ea52145d515501a2273cdca76b9686e0_rle_crop_4073500362_0.png', 1399867758: '1766014146_2114435_1399867661_93b891db1150ccdd68e3030f8b0d8485_rle_crop_4073500370_0.png', 1399869043: '1766014387_2128053_1399867820_376e5acad0f3888cb10c2230f15bb98b_rle_crop_4073508287_0.png', 1399869045: '1766014387_2128053_1399867718_a5fc24cbd6217ab6658ee6e4e83df6f5_rle_crop_4073508300_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d6a166ca65b9ba8a20a8d022691b648a_63454207.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/69bd0c512cb1b1d9717f2b71997aacda_82769571.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/eecb1ffe6c5fa26bc8c3534f4c4135f0_13203868.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3244e37f086ac9385f5c1f3ccb5040dc_12445710.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4041de56a75355426d2a9c6d5c656bc8_28135929.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/288a3a44d2a6e5e3c2542714fb4190ad_28073709.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0a2f448d1a5a59cb73ec5f3b2df90217_83390281.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/33ae92547687326c79a91f96b4ae40e4_59237733.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ea0faa76395aecfbe3242dd3c2414b43_68933958.png change filename to text .imagette295187461766014501/ imagette295187461766014501/1766013787_2096439_1399867134_93be1111f45a3d05e3d968e404b176f8_rle_crop_4073481856_0.png.png imagette295187461766014501/1766014146_2114435_1399867664_ea52145d515501a2273cdca76b9686e0_rle_crop_4073500362_0.png.png imagette295187461766014501/1766013787_2096439_1399867134_93be1111f45a3d05e3d968e404b176f8_rle_crop_4073481857_0.png.png imagette295187461766014501/1766014387_2128053_1399867820_376e5acad0f3888cb10c2230f15bb98b_rle_crop_4073508287_0.png.png imagette295187461766014501/1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488487_0.png.png imagette295187461766014501/1766014387_2128053_1399867718_a5fc24cbd6217ab6658ee6e4e83df6f5_rle_crop_4073508300_0.png.png imagette295187461766014501/1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494584_0.png.png imagette295187461766014501/1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488511_0.png.png imagette295187461766014501/1766013666_2090507_1399866621_ea66c612b8da296a2a68bcc8883cbda5_rle_crop_4073475096_0.png.png imagette295187461766014501/1766014146_2114435_1399867661_93b891db1150ccdd68e3030f8b0d8485_rle_crop_4073500370_0.png.png imagette295187471766014502/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ea0faa76395aecfbe3242dd3c2414b43_21901298.png imagette295187461766014501 29518747 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=29518747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295187471766014502 29518752 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=29518752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399867154: '1766013666_2090507_1399866729_6ba776c5b7a11516bda2dab519318300_rle_crop_4073475050_0.png', 1399867162: '1766013686_2091000_1399866356_013bc4b0e0b872c0fcca9a384d428243_rle_crop_4073475232_0.png', 1399867163: '1766013686_2091000_1399866335_bbd9265ca115e915db43bd16e0f8d4a2_rle_crop_4073475248_0.png', 1399867164: '1766013686_2091000_1399866332_f0ab4e30c0138a640fb2cee861873193_rle_crop_4073475262_0.png', 1399867651: '1766013927_2102760_1399867577_71406b3bb7d9eb1d2dae3fe8b6c52f4f_rle_crop_4073486425_0.png', 1399867682: '1766014025_2107885_1399867622_1919e0937e10ca3f4a6230d4fb20c817_rle_crop_4073494385_0.png', 1399867693: '1766014045_2108244_1399867639_8f041c700c789c44a27720951818500e_rle_crop_4073494549_0.png', 1399867694: '1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494570_0.png', 1399867695: '1766014045_2108244_1399867606_68abb2f7a4a3a8ac71a213b2ed9fb09c_rle_crop_4073494589_0.png', 1399867738: '1766014146_2114435_1399867658_0c9002db5450c4af0d2e731020a7014b_rle_crop_4073500384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/345658f98c851d91c118fc88508a6e69_50113631.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/eaf6c0644ef952268ca5b03e43657e67_16941928.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8377ff40785b69fc1e796422da45f5fd_73128564.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/404c300b34ceddba65e7c6025890fd2a_20903571.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ed7b88e217d9ca9a5f4c60b28a7ab933_97109434.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8c7978c8a95a2af1a8b912d68cb38477_34512149.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3f4f728ad838e27b1fbe011c024002d1_22168816.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/caf7ce820661981aec3da00a26873795_88765135.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3f4f728ad838e27b1fbe011c024002d1_6842595.png change filename to text .imagette295187521766014502/ imagette295187521766014502/1766013686_2091000_1399866356_013bc4b0e0b872c0fcca9a384d428243_rle_crop_4073475232_0.png.png imagette295187521766014502/1766014045_2108244_1399867639_8f041c700c789c44a27720951818500e_rle_crop_4073494549_0.png.png imagette295187521766014502/1766014025_2107885_1399867622_1919e0937e10ca3f4a6230d4fb20c817_rle_crop_4073494385_0.png.png imagette295187521766014502/1766014045_2108244_1399867606_68abb2f7a4a3a8ac71a213b2ed9fb09c_rle_crop_4073494589_0.png.png imagette295187521766014502/1766013686_2091000_1399866335_bbd9265ca115e915db43bd16e0f8d4a2_rle_crop_4073475248_0.png.png imagette295187521766014502/1766013666_2090507_1399866729_6ba776c5b7a11516bda2dab519318300_rle_crop_4073475050_0.png.png imagette295187521766014502/1766013927_2102760_1399867577_71406b3bb7d9eb1d2dae3fe8b6c52f4f_rle_crop_4073486425_0.png.png imagette295187521766014502/1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494570_0.png.png imagette295187521766014502/1766014146_2114435_1399867658_0c9002db5450c4af0d2e731020a7014b_rle_crop_4073500384_0.png.png imagette295187521766014502/1766013686_2091000_1399866332_f0ab4e30c0138a640fb2cee861873193_rle_crop_4073475262_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/eb50d4042eede98fd8a1c6b91e2419d9_11629370.png imagette295187521766014502 29518753 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=29518753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399868680: '1766014285_2123059_1399867726_aa7a37c8ebc33cbf60dc82b2f51c646d_rle_crop_4073504807_0.png', 1399868682: '1766014285_2123059_1399867724_1ab961e8acdf711cfced10d4cf3eb4a1_rle_crop_4073504818_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8288a8a2998e01284e80af1aad2ed814_81485066.png change filename to text .imagette295187531766014503/ imagette295187531766014503/1766014285_2123059_1399867726_aa7a37c8ebc33cbf60dc82b2f51c646d_rle_crop_4073504807_0.png.png imagette295187531766014503/1766014285_2123059_1399867724_1ab961e8acdf711cfced10d4cf3eb4a1_rle_crop_4073504818_0.png.png imagette295187541766014503/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2e3f48ef96be10fa6b4287d31b6fddd8_79072761.png imagette295187531766014503 29518754 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=29518754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295187541766014503 29518743 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=29518743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399867644: '1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488497_0.png', 1399868636: '1766014285_2123059_1399867729_bc74928c197de5fbf95a06fada622fec_rle_crop_4073504801_0.png', 1399867691: '1766014045_2108244_1399867606_68abb2f7a4a3a8ac71a213b2ed9fb09c_rle_crop_4073494591_0.png', 1399867690: '1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494573_0.png', 1399867689: '1766014045_2108244_1399867639_8f041c700c789c44a27720951818500e_rle_crop_4073494551_0.png', 1399867679: '1766014025_2107885_1399867619_5e63f7cb5bee7b0e6182b1576d6e7a57_rle_crop_4073494403_0.png', 1399867678: '1766014025_2107885_1399867622_1919e0937e10ca3f4a6230d4fb20c817_rle_crop_4073494386_0.png', 1399867646: '1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488507_0.png', 1399867645: '1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488509_0.png', 1399867149: '1766013666_2090507_1399866695_e7a7a84c2ee226202295cd2fb0b462e0_rle_crop_4073475068_0.png', 1399867643: '1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488496_0.png', 1399867642: '1766013927_2102760_1399867577_71406b3bb7d9eb1d2dae3fe8b6c52f4f_rle_crop_4073486427_0.png', 1399867641: '1766013927_2102760_1399867577_71406b3bb7d9eb1d2dae3fe8b6c52f4f_rle_crop_4073486430_0.png', 1399867628: '1766013907_2102120_1399867555_dd5ee16b16e43631105d75775eaa5a98_rle_crop_4073482085_0.png', 1399867627: '1766013907_2102120_1399867571_d51db1f2420d2506fc92e951b6dfb93c_rle_crop_4073482074_0.png', 1399867597: '1766013807_2096848_1399867144_9ce2af4ba0cdc6ac1babadaf5fe08336_rle_crop_4073481898_0.png', 1399867582: '1766013787_2096439_1399867140_bf5bcbfafa17f77d545066c42d4a8b00_rle_crop_4073481834_0.png', 1399867150: '1766013666_2090507_1399866661_774d689da11da0c88157e2db930467d4_rle_crop_4073475075_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/349d1f5532aee021d01d4b97a3cfff3a_16927142.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/18315e726b03c4e311c66c71d3aecc76_37617821.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6cd95b9dbb0b84bdcbb0f49f530f8e29_22109139.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5d4cc7cc7ea05d49858717efe910ef87_71573881.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6cd95b9dbb0b84bdcbb0f49f530f8e29_14413738.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ef222ac238831f56c35abfe92cc16285_34222951.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a2e493de517f2ae8d9ed3905a96b9aba_79568858.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cc23ab80df44f69b7f868b28cce76b04_95703561.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4a7676e40c55e8bdb7986e2e9d2fd4d6_74536138.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f8b695ac06a4811219cdc51bc145e3ef_46860260.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cc2f2c615aa6924373b087d8c2cacdea_22543720.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/20e3b4154b82833d69fb69523ef5b350_55795785.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f062320b0582dec7a69f6215dd702c5e_78733782.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8100fb06350e79a5f2de591aec358299_70524960.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d078eb7b50724acd819de460df7040cb_40668341.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/996c5d060670e97f3b09815677ea4de6_41003309.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/91afb5f060e3e92ddfd06cd00b8dc7c1_92917063.png change filename to text .imagette295187431766014503/ imagette295187431766014503/1766013787_2096439_1399867140_bf5bcbfafa17f77d545066c42d4a8b00_rle_crop_4073481834_0.png.png imagette295187431766014503/1766013666_2090507_1399866661_774d689da11da0c88157e2db930467d4_rle_crop_4073475075_0.png.png imagette295187431766014503/1766013907_2102120_1399867555_dd5ee16b16e43631105d75775eaa5a98_rle_crop_4073482085_0.png.png imagette295187431766014503/1766013666_2090507_1399866695_e7a7a84c2ee226202295cd2fb0b462e0_rle_crop_4073475068_0.png.png imagette295187431766014503/1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494573_0.png.png imagette295187431766014503/1766014045_2108244_1399867606_68abb2f7a4a3a8ac71a213b2ed9fb09c_rle_crop_4073494591_0.png.png imagette295187431766014503/1766014025_2107885_1399867619_5e63f7cb5bee7b0e6182b1576d6e7a57_rle_crop_4073494403_0.png.png imagette295187431766014503/1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488507_0.png.png imagette295187431766014503/1766013927_2102760_1399867577_71406b3bb7d9eb1d2dae3fe8b6c52f4f_rle_crop_4073486427_0.png.png imagette295187431766014503/1766014045_2108244_1399867639_8f041c700c789c44a27720951818500e_rle_crop_4073494551_0.png.png imagette295187431766014503/1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488496_0.png.png imagette295187431766014503/1766013927_2102760_1399867171_c18e228cab440d07d5f3d008673a888c_rle_crop_4073488509_0.png.png imagette295187431766014503/1766014285_2123059_1399867729_bc74928c197de5fbf95a06fada622fec_rle_crop_4073504801_0.png.png imagette295187431766014503/1766013927_2102760_1399867577_71406b3bb7d9eb1d2dae3fe8b6c52f4f_rle_crop_4073486430_0.png.png imagette295187431766014503/1766013907_2102120_1399867571_d51db1f2420d2506fc92e951b6dfb93c_rle_crop_4073482074_0.png.png imagette295187431766014503/1766014025_2107885_1399867622_1919e0937e10ca3f4a6230d4fb20c817_rle_crop_4073494386_0.png.png imagette295187431766014503/1766013807_2096848_1399867144_9ce2af4ba0cdc6ac1babadaf5fe08336_rle_crop_4073481898_0.png.png imagette295187431766014503/1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488497_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ec8a3387dce520904fbbf33e921208d6_88321899.png imagette295187431766014503 29518750 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=29518750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399867151: '1766013666_2090507_1399866729_6ba776c5b7a11516bda2dab519318300_rle_crop_4073475051_0.png', 1399867152: '1766013666_2090507_1399866621_ea66c612b8da296a2a68bcc8883cbda5_rle_crop_4073475089_0.png', 1399867153: '1766013666_2090507_1399866621_ea66c612b8da296a2a68bcc8883cbda5_rle_crop_4073475090_0.png', 1399867161: '1766013686_2091000_1399866764_01abcd8c2b10e789f904b46aa164888d_rle_crop_4073475221_0.png', 1399867585: '1766013787_2096439_1399867140_bf5bcbfafa17f77d545066c42d4a8b00_rle_crop_4073481828_0.png', 1399867586: '1766013787_2096439_1399867136_76ca17049a8eeba049a0d9b5c2519671_rle_crop_4073481843_0.png', 1399867650: '1766013927_2102760_1399867238_9c203b601786ea26afb552558f9aafc6_rle_crop_4073488471_0.png', 1399867681: '1766014025_2107885_1399867622_1919e0937e10ca3f4a6230d4fb20c817_rle_crop_4073494390_0.png', 1399867692: '1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494571_0.png', 1399869031: '1766014387_2128053_1399867671_ac500849ebe2ad01d2d730fb60d493bf_rle_crop_4073508304_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ebc1890bc04f2716040abdcc8f6bdd12_39361324.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8dd242b49e668315802bc07f08defc63_63061122.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/739d27c32d407023446e4288b99aeb70_40310919.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/830f4ef86cd000d34f7fc96ddaf0b7ab_96703006.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0ffcae99f27f9ddf7199b78d97240437_31189624.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9034127534054dad276f978d2c314c0f_30709543.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d87ccb88d6b7627bd476f5faa098b534_24515393.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3f5817895d1834740de7fbe75748294e_55778128.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4023fb817ebec071f2b861b4ddb4dc6f_718946.png change filename to text .imagette295187501766014505/ imagette295187501766014505/1766013927_2102760_1399867238_9c203b601786ea26afb552558f9aafc6_rle_crop_4073488471_0.png.png imagette295187501766014505/1766013666_2090507_1399866621_ea66c612b8da296a2a68bcc8883cbda5_rle_crop_4073475090_0.png.png imagette295187501766014505/1766013787_2096439_1399867136_76ca17049a8eeba049a0d9b5c2519671_rle_crop_4073481843_0.png.png imagette295187501766014505/1766014387_2128053_1399867671_ac500849ebe2ad01d2d730fb60d493bf_rle_crop_4073508304_0.png.png imagette295187501766014505/1766013666_2090507_1399866621_ea66c612b8da296a2a68bcc8883cbda5_rle_crop_4073475089_0.png.png imagette295187501766014505/1766013666_2090507_1399866729_6ba776c5b7a11516bda2dab519318300_rle_crop_4073475051_0.png.png imagette295187501766014505/1766014025_2107885_1399867622_1919e0937e10ca3f4a6230d4fb20c817_rle_crop_4073494390_0.png.png imagette295187501766014505/1766013787_2096439_1399867140_bf5bcbfafa17f77d545066c42d4a8b00_rle_crop_4073481828_0.png.png imagette295187501766014505/1766013686_2091000_1399866764_01abcd8c2b10e789f904b46aa164888d_rle_crop_4073475221_0.png.png imagette295187501766014505/1766014045_2108244_1399867626_0a6e284a8bd9a600dfb1676b81ec9ab9_rle_crop_4073494571_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3f33cbbd9fbe80dae2a4867e40a889f7_49293767.png imagette295187501766014505 29518751 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=29518751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399867157: '1766013666_2090507_1399866729_6ba776c5b7a11516bda2dab519318300_rle_crop_4073475054_0.png', 1399867165: '1766013686_2091000_1399866356_013bc4b0e0b872c0fcca9a384d428243_rle_crop_4073475235_0.png', 1399867166: '1766013686_2091000_1399866335_bbd9265ca115e915db43bd16e0f8d4a2_rle_crop_4073475251_0.png', 1399867587: '1766013787_2096439_1399867136_76ca17049a8eeba049a0d9b5c2519671_rle_crop_4073481850_0.png', 1399867652: '1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488492_0.png', 1399867697: '1766014045_2108244_1399867639_8f041c700c789c44a27720951818500e_rle_crop_4073494553_0.png', 1399867698: '1766014045_2108244_1399867606_68abb2f7a4a3a8ac71a213b2ed9fb09c_rle_crop_4073494593_0.png', 1399867743: '1766014146_2114435_1399867664_ea52145d515501a2273cdca76b9686e0_rle_crop_4073500360_0.png', 1399867745: '1766014146_2114435_1399867661_93b891db1150ccdd68e3030f8b0d8485_rle_crop_4073500374_0.png', 1399867780: '1766014165_2115662_1399867666_f72150c2262f24eb3030c7e2ac3c68b6_rle_crop_4073500459_0.png', 1399868664: '1766014285_2123059_1399867732_5ed421e31b6ed627ed8fcf5bf402e532_rle_crop_4073504786_0.png', 1399868666: '1766014285_2123059_1399867732_5ed421e31b6ed627ed8fcf5bf402e532_rle_crop_4073504785_0.png', 1399868668: '1766014285_2123059_1399867724_1ab961e8acdf711cfced10d4cf3eb4a1_rle_crop_4073504822_0.png', 1399868670: '1766014285_2123059_1399867723_b4b54c8f7e9fb24db4839e68c84f42c9_rle_crop_4073504833_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ed74bf5bc2d8e5396a2d405f08409fa9_72896254.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/057b9048a058ba35bd9dfc31729f89bc_64597198.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/feaba68192e9f88b20b48c229d7d66b7_38221277.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/193e8ffd25fdc3c09a60a08cc2dec44a_60314431.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cae2d9c1f3e340e5a8abc40cef504085_10855680.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c048d33be1ae7b2dae1e8fdfaebb9ac4_47468393.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c048d33be1ae7b2dae1e8fdfaebb9ac4_13741205.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0d0c60682ab1ba76d034b4d11f1433b9_45405248.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/47f85bb442a3c3087b78b9cfe111ccee_68463689.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/efc520b79d5c655d7737d6c9488f2187_96826564.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/88f75b7510c58efbdfbdbdc43b3817c7_42337204.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c5f00285773c63035aa529ee14a4bed7_69649249.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f91c46d3928e3e0a29a4fa75c426b8b3_7551279.png change filename to text .imagette295187511766014505/ imagette295187511766014505/1766014285_2123059_1399867723_b4b54c8f7e9fb24db4839e68c84f42c9_rle_crop_4073504833_0.png.png imagette295187511766014505/1766014045_2108244_1399867606_68abb2f7a4a3a8ac71a213b2ed9fb09c_rle_crop_4073494593_0.png.png imagette295187511766014505/1766014146_2114435_1399867661_93b891db1150ccdd68e3030f8b0d8485_rle_crop_4073500374_0.png.png imagette295187511766014505/1766014165_2115662_1399867666_f72150c2262f24eb3030c7e2ac3c68b6_rle_crop_4073500459_0.png.png imagette295187511766014505/1766014045_2108244_1399867639_8f041c700c789c44a27720951818500e_rle_crop_4073494553_0.png.png imagette295187511766014505/1766014285_2123059_1399867732_5ed421e31b6ed627ed8fcf5bf402e532_rle_crop_4073504786_0.png.png imagette295187511766014505/1766014146_2114435_1399867664_ea52145d515501a2273cdca76b9686e0_rle_crop_4073500360_0.png.png imagette295187511766014505/1766013666_2090507_1399866729_6ba776c5b7a11516bda2dab519318300_rle_crop_4073475054_0.png.png imagette295187511766014505/1766013686_2091000_1399866356_013bc4b0e0b872c0fcca9a384d428243_rle_crop_4073475235_0.png.png imagette295187511766014505/1766014285_2123059_1399867724_1ab961e8acdf711cfced10d4cf3eb4a1_rle_crop_4073504822_0.png.png imagette295187511766014505/1766013927_2102760_1399867203_90996e7a71a182b02fa849f7ef441f60_rle_crop_4073488492_0.png.png imagette295187511766014505/1766014285_2123059_1399867732_5ed421e31b6ed627ed8fcf5bf402e532_rle_crop_4073504785_0.png.png imagette295187511766014505/1766013787_2096439_1399867136_76ca17049a8eeba049a0d9b5c2519671_rle_crop_4073481850_0.png.png imagette295187511766014505/1766013686_2091000_1399866335_bbd9265ca115e915db43bd16e0f8d4a2_rle_crop_4073475251_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d03d305b4afdb3942f4524b9c3d3c813_51382981.png imagette295187511766014505 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29518739 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29518755,29518756,29518757,29518758,29518759,29518760,29518761,29518762,29518763,29518764,29518765,29518767?tags=Teint_Dans_La_Masse,autre_refus,mal_croppe,plastique,kraft,papier,environnement,Carton_gris,Carton_brun,cartonnette,metal,flou your option no_mail is active, we will not send the real mail to your client args[1399869018] : ('0.06837597770395426',) no score found for photo 1399869018 We are sending mail with results at report@fotonower.com args[1399869017] : ('0.06837597770395426',) no score found for photo 1399869017 We are sending mail with results at report@fotonower.com args[1399868919] : ('0.06837597770395426',) no score found for photo 1399868919 We are sending mail with results at report@fotonower.com refus_total : 0.06837597770395426 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=29518739 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_P29518739_18-12-2025_00_35_01.pdf results_Auto_P29518739_18-12-2025_00_35_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_00_35_01.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','29518739','results_Auto_P29518739_18-12-2025_00_35_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_00_35_01.pdf','pdf','','0.24','0.06837597770395426') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29518739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399869018, 1399869017, 1399868919] map_info['map_portfolio_photo'] : {29518739: [1399869018, 1399869017, 1399868919, 1399868616, 1399868321, 1399868289, 1399868256, 1399868226, 1399868194, 1399868158, 1399867820, 1399867818, 1399867817, 1399867816, 1399867815, 1399867802, 1399867735, 1399867732, 1399867729, 1399867726, 1399867724, 1399867723, 1399867718, 1399867715, 1399867712, 1399867710, 1399867702, 1399867700, 1399867673, 1399867671, 1399867666, 1399867664, 1399867661, 1399867658, 1399867655, 1399867648, 1399867639, 1399867633, 1399867626, 1399867624, 1399867622, 1399867619, 1399867617, 1399867609, 1399867606, 1399867603, 1399867600, 1399867577, 1399867575, 1399867571, 1399867555, 1399867537, 1399867506, 1399867312, 1399867275, 1399867238, 1399867203, 1399867171, 1399867144, 1399867140, 1399867136, 1399867134, 1399867132, 1399866764, 1399866729, 1399866695, 1399866661, 1399866621, 1399866356, 1399866335, 1399866332]} final : False mtd_id 4302 list_pids : [1399869018, 1399869017, 1399868919] 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, '4242854') ('4302', '29518739', '1399869018', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399869017', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399868919', None, None, None, None, None, '4242854') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '29518739', '1399869018', None, None, None, None, None, '4242854'), ('4302', '29518739', '1399869017', None, None, None, None, None, '4242854'), ('4302', '29518739', '1399868919', None, None, None, None, None, '4242854')] time used for this insertion : 0.013767242431640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.619613885879517 time spend to save output : 0.013953924179077148 total time spend for step 4 : 6.633567810058594 step5:split_time_score Thu Dec 18 00:35:07 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 : ['29518739'] 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 : [('29518739',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29518739) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399868919: {'path': 'temp/1766014501_2104728_1399868919_3016461af86cb5b34f46e3de13589fd5.jpg', 'extension': 'jpg'}, 1399869018: {'path': 'temp/1766014501_2104728_1399869018_b118186ee005a2f4a1884a4996de74a5.jpg', 'extension': 'jpg'}, 1399869017: {'path': 'temp/1766014501_2104728_1399869017_ba2953976f23063643f20721c437ae25.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 = 29518739; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29518739 group by h (('00', 71),) 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=29518739 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 (29518739) 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 (29518739) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18122025 29518739 Nombre de photos uploadées : 71 / 23040 (0%) 18122025 29518739 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 18122025 29518739 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1399866356, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/013bc4b0e0b872c0fcca9a384d428243.jpg', 'username': None, 'uploaded_at': 1766013547, 'text': 'image_18122025_00_18_24_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399866335, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/bbd9265ca115e915db43bd16e0f8d4a2.jpg', 'username': None, 'uploaded_at': 1766013547, 'text': 'image_18122025_00_18_34_010145m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399866332, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f0ab4e30c0138a640fb2cee861873193.jpg', 'username': None, 'uploaded_at': 1766013547, 'text': 'image_18122025_00_18_44_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399866764, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/01abcd8c2b10e789f904b46aa164888d.jpg', 'username': None, 'uploaded_at': 1766013608, 'text': 'image_18122025_00_18_53_009127m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032181739807128906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29518739, '2025-12-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-12-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2754664,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25301122665405273 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= 2754664 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2754664, 'dashboard_run_id': 2761519, 'mtr_portfolio_id': 29518047, 'dashboard_result_id': 18494433, '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_P29518047_18-12-2025_00_20_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}"}, {'dashboat_entry_day': 2754664, 'dashboard_run_id': 2761519, 'mtr_portfolio_id': 29518739, 'dashboard_result_id': 18494434, '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_P29518739_18-12-2025_00_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}"}, {'dashboat_entry_day': 2754664, 'dashboard_run_id': 2761519, 'mtr_portfolio_id': 29519140, 'dashboard_result_id': 18494435, '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_P29519140_18-12-2025_00_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, '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 = 29518047 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': 4242815, 'mtr_portfolio_id': 29518047, 'created_at': datetime.datetime(2025, 12, 18, 0, 20, 57), 'result': '0.03220967171818393', 'result_long': None, 'result_double': None}] Qualite : 0.03220967171818393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_00_20_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518047 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_P29518047_18-12-2025_00_20_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}" where mtr_portfolio_id = 29518047 and dashboard_run_id = 2761519 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`=29518047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18494433, 0.03220967171818393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_00_20_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, '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 = 29518739 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': 4242854, 'mtr_portfolio_id': 29518739, 'created_at': datetime.datetime(2025, 12, 18, 0, 35), 'result': '0.06837597770395426', 'result_long': None, 'result_double': None}] Qualite : 0.06837597770395426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_00_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518739 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_P29518739_18-12-2025_00_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}" where mtr_portfolio_id = 29518739 and dashboard_run_id = 2761519 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`=29518739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18494434, 0.06837597770395426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_00_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, '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 = 29519140 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29519140 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29519140 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29519140 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29519140 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519140 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_P29519140_18-12-2025_00_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}" where mtr_portfolio_id = 29519140 and dashboard_run_id = 2761519 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518047,29518739,29519140) result : ((1399862066,), (1399862100,), (1399862137,), (1399862172,), (1399862203,), (1399862461,), (1399862509,), (1399862581,), (1399862647,), (1399862712,), (1399862777,), (1399863346,), (1399863401,), (1399864109,), (1399864190,), (1399864229,), (1399864263,), (1399864298,), (1399864481,), (1399864513,), (1399864546,), (1399864578,), (1399864601,), (1399864602,), (1399864716,), (1399865151,), (1399865152,), (1399865985,), (1399866386,), (1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,), (1399868446,), (1399868482,), (1399868516,), (1399868548,), (1399868583,), (1399868743,), (1399868778,), (1399868811,), (1399868848,), (1399868884,), (1399869019,), (1399869020,), (1399869021,), (1399869022,), (1399869025,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18122025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29518739]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399869018, 1399869017, 1399868919] map_info['map_portfolio_photo'] : {29518739: [1399869018, 1399869017, 1399868919, 1399868616, 1399868321, 1399868289, 1399868256, 1399868226, 1399868194, 1399868158, 1399867820, 1399867818, 1399867817, 1399867816, 1399867815, 1399867802, 1399867735, 1399867732, 1399867729, 1399867726, 1399867724, 1399867723, 1399867718, 1399867715, 1399867712, 1399867710, 1399867702, 1399867700, 1399867673, 1399867671, 1399867666, 1399867664, 1399867661, 1399867658, 1399867655, 1399867648, 1399867639, 1399867633, 1399867626, 1399867624, 1399867622, 1399867619, 1399867617, 1399867609, 1399867606, 1399867603, 1399867600, 1399867577, 1399867575, 1399867571, 1399867555, 1399867537, 1399867506, 1399867312, 1399867275, 1399867238, 1399867203, 1399867171, 1399867144, 1399867140, 1399867136, 1399867134, 1399867132, 1399866764, 1399866729, 1399866695, 1399866661, 1399866621, 1399866356, 1399866335, 1399866332]} final : True mtd_id 4302 list_pids : [1399869018, 1399869017, 1399868919] Looping around the photos to save general results len do output : 1 /29518739Didn'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, '4242854') ('4302', '29518739', '1399869018', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399869017', None, None, None, None, None, '4242854') ('4302', None, None, None, None, None, None, None, '4242854') ('4302', '29518739', '1399868919', None, None, None, None, None, '4242854') 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', None, '29518739', 'None', None, None, None, None, '4242854'), ('4302', '29518739', '1399869018', None, None, None, None, None, '4242854'), ('4302', '29518739', '1399869017', None, None, None, None, None, '4242854'), ('4302', '29518739', '1399868919', None, None, None, None, None, '4242854')] time used for this insertion : 0.014349937438964844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5885441303253174 time spend to save output : 0.014523744583129883 total time spend for step 5 : 0.6030678749084473 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 (4242854) 2.10user 2.43system 0:12.66elapsed 35%CPU (0avgtext+0avgdata 165468maxresident)k 264inputs+12624outputs (1major+67022minor)pagefaults 0swaps