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 : 2464097 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 (3666584) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3666584) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552286 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3666584'] with mtr_portfolio_ids : ['26552286'] and first list_photo_ids : [] new path : /proc/2464097/ Name: python3 Umask: 0002 State: R (running) Tgid: 2464097 Ngid: 0 Pid: 2464097 PPid: 2464096 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2464097 NSpid: 2464097 NSpgid: 2462213 NSsid: 2462213 VmPeak: 1107340 kB VmSize: 1107340 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99056 kB VmRSS: 99056 kB RssAnon: 60168 kB RssFile: 38888 kB RssShmem: 0 kB VmData: 866092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 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: 58 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2464097', 'Ngid': '0', 'Pid': '2464097', 'PPid': '2464096', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2464097', 'NSpid': '2464097', 'NSpgid': '2462213', 'NSsid': '2462213', 'VmPeak': '1107340 kB', 'VmSize': '1107340 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99056 kB', 'VmRSS': '99056 kB', 'RssAnon': '60168 kB', 'RssFile': '38888 kB', 'RssShmem': '0 kB', 'VmData': '866092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 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': '58', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '2464097', '1107340', '0', '1107340', '866092', '99056', b'', 'marlene', '3666584') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26552286) 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 (3666584 ) ) 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 (26552286) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381588055, 'portfolio_id': 26552286}, {'photo_id': 1381588053, 'portfolio_id': 26552286}, {'photo_id': 1381588051, 'portfolio_id': 26552286}, {'photo_id': 1381588050, 'portfolio_id': 26552286}, {'photo_id': 1381588049, 'portfolio_id': 26552286}, {'photo_id': 1381588048, 'portfolio_id': 26552286}, {'photo_id': 1381587985, 'portfolio_id': 26552286}, {'photo_id': 1381587983, 'portfolio_id': 26552286}, {'photo_id': 1381587982, 'portfolio_id': 26552286}, {'photo_id': 1381587981, 'portfolio_id': 26552286}, {'photo_id': 1381587823, 'portfolio_id': 26552286}, {'photo_id': 1381587821, 'portfolio_id': 26552286}, {'photo_id': 1381587820, 'portfolio_id': 26552286}, {'photo_id': 1381587818, 'portfolio_id': 26552286}, {'photo_id': 1381587817, 'portfolio_id': 26552286}, {'photo_id': 1381587816, 'portfolio_id': 26552286}, {'photo_id': 1381587659, 'portfolio_id': 26552286}, {'photo_id': 1381587657, 'portfolio_id': 26552286}, {'photo_id': 1381587655, 'portfolio_id': 26552286}, {'photo_id': 1381587605, 'portfolio_id': 26552286}, {'photo_id': 1381587604, 'portfolio_id': 26552286}, {'photo_id': 1381587603, 'portfolio_id': 26552286}, {'photo_id': 1381587602, 'portfolio_id': 26552286}, {'photo_id': 1381587601, 'portfolio_id': 26552286}, {'photo_id': 1381587542, 'portfolio_id': 26552286}, {'photo_id': 1381587541, 'portfolio_id': 26552286}, {'photo_id': 1381587540, 'portfolio_id': 26552286}, {'photo_id': 1381587539, 'portfolio_id': 26552286}, {'photo_id': 1381587537, 'portfolio_id': 26552286}, {'photo_id': 1381587536, 'portfolio_id': 26552286}, {'photo_id': 1381587485, 'portfolio_id': 26552286}, {'photo_id': 1381587484, 'portfolio_id': 26552286}, {'photo_id': 1381587483, 'portfolio_id': 26552286}, {'photo_id': 1381587480, 'portfolio_id': 26552286}, {'photo_id': 1381587402, 'portfolio_id': 26552286}, {'photo_id': 1381587401, 'portfolio_id': 26552286}, {'photo_id': 1381587400, 'portfolio_id': 26552286}, {'photo_id': 1381587398, 'portfolio_id': 26552286}, {'photo_id': 1381587397, 'portfolio_id': 26552286}, {'photo_id': 1381587317, 'portfolio_id': 26552286}, {'photo_id': 1381587316, 'portfolio_id': 26552286}, {'photo_id': 1381587315, 'portfolio_id': 26552286}, {'photo_id': 1381587314, 'portfolio_id': 26552286}, {'photo_id': 1381587313, 'portfolio_id': 26552286}, {'photo_id': 1381587312, 'portfolio_id': 26552286}, {'photo_id': 1381587006, 'portfolio_id': 26552286}, {'photo_id': 1381587003, 'portfolio_id': 26552286}, {'photo_id': 1381587000, 'portfolio_id': 26552286}, {'photo_id': 1381586997, 'portfolio_id': 26552286}, {'photo_id': 1381586994, 'portfolio_id': 26552286}, {'photo_id': 1381586992, 'portfolio_id': 26552286}, {'photo_id': 1381586710, 'portfolio_id': 26552286}, {'photo_id': 1381586707, 'portfolio_id': 26552286}, {'photo_id': 1381586704, 'portfolio_id': 26552286}, {'photo_id': 1381586214, 'portfolio_id': 26552286}, {'photo_id': 1381586210, 'portfolio_id': 26552286}, {'photo_id': 1381586206, 'portfolio_id': 26552286}, {'photo_id': 1381586202, 'portfolio_id': 26552286}, {'photo_id': 1381586198, 'portfolio_id': 26552286}, {'photo_id': 1381585680, 'portfolio_id': 26552286}, {'photo_id': 1381585677, 'portfolio_id': 26552286}, {'photo_id': 1381585674, 'portfolio_id': 26552286}, {'photo_id': 1381585671, 'portfolio_id': 26552286}, {'photo_id': 1381585668, 'portfolio_id': 26552286}, {'photo_id': 1381585665, 'portfolio_id': 26552286}, {'photo_id': 1381585170, 'portfolio_id': 26552286}, {'photo_id': 1381585166, 'portfolio_id': 26552286}, {'photo_id': 1381585163, 'portfolio_id': 26552286}] map_portfolio_id_photo_id: {26552286: [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981, 1381587823, 1381587821, 1381587820, 1381587818, 1381587817, 1381587816, 1381587659, 1381587657, 1381587655, 1381587605, 1381587604, 1381587603, 1381587602, 1381587601, 1381587542, 1381587541, 1381587540, 1381587539, 1381587537, 1381587536, 1381587485, 1381587484, 1381587483, 1381587480, 1381587402, 1381587401, 1381587400, 1381587398, 1381587397, 1381587317, 1381587316, 1381587315, 1381587314, 1381587313, 1381587312, 1381587006, 1381587003, 1381587000, 1381586997, 1381586994, 1381586992, 1381586710, 1381586707, 1381586704, 1381586214, 1381586210, 1381586206, 1381586202, 1381586198, 1381585680, 1381585677, 1381585674, 1381585671, 1381585668, 1381585665, 1381585170, 1381585166, 1381585163]} ##### 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.061734914779663086 #### 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 Fri Sep 5 00:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26552286) 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 : 26552286 get user id for portfolio 26552286 get sub ptf for main ptf 26552286, type 3726 and hashtags ['environnement', 'Carton_brun', 'cartonnette', 'plastique', 'autre_refus', 'kraft', 'Teint_Dans_La_Masse', 'papier', 'flou', 'metal', 'mal_croppe', 'Carton_gris'] 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`=26552286 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','cartonnette','plastique','autre_refus','kraft','Teint_Dans_La_Masse','papier','flou','metal','mal_croppe','Carton_gris')) 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`=26552286 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','cartonnette','plastique','autre_refus','kraft','Teint_Dans_La_Masse','papier','flou','metal','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 26552286, 'sub_port_id': 26552297, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881217, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'papier': {'main_port_id': 26552286, 'sub_port_id': 26552298, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881218, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'flou': {'main_port_id': 26552286, 'sub_port_id': 26552299, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881219, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'cartonnette': {'main_port_id': 26552286, 'sub_port_id': 26552300, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881220, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'autre_refus': {'main_port_id': 26552286, 'sub_port_id': 26552301, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881221, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'Carton_brun': {'main_port_id': 26552286, 'sub_port_id': 26552302, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881222, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'environnement': {'main_port_id': 26552286, 'sub_port_id': 26552303, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881223, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'kraft': {'main_port_id': 26552286, 'sub_port_id': 26552304, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881224, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'mal_croppe': {'main_port_id': 26552286, 'sub_port_id': 26552305, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881225, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'plastique': {'main_port_id': 26552286, 'sub_port_id': 26552306, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881226, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'Carton_gris': {'main_port_id': 26552286, 'sub_port_id': 26552307, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881227, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}, 'metal': {'main_port_id': 26552286, 'sub_port_id': 26552308, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881228, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26552297 , 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=26552286 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 (26552297) result : ((1381586451,), (1381587124,), (1381587126,), (1381587257,), (1381587453,), (1381587454,), (1381587455,), (1381587456,), (1381587458,), (1381587459,), (1381587461,), (1381587463,), (1381587465,), (1381587557,), (1381587579,), (1381587580,), (1381587581,), (1381587740,), (1381587742,), (1381587744,), (1381587746,), (1381587797,), (1381587798,), (1381587801,), (1381587803,), (1381588033,), (1381588034,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552298 , 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=26552286 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 (26552298) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552299 , 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=26552286 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 (26552299) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552300 , 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=26552286 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 (26552300) result : ((1381586462,), (1381587136,), (1381587263,), (1381587266,), (1381587474,), (1381587475,), (1381587476,), (1381587486,), (1381587487,), (1381587488,), (1381587586,), (1381587587,), (1381587588,), (1381587589,), (1381587590,), (1381587592,), (1381587594,), (1381588027,), (1381588029,), (1381588031,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552301 , 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=26552286 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 (26552301) result : ((1381587133,), (1381587470,), (1381587471,), (1381587472,), (1381587473,), (1381587582,), (1381587753,), (1381587812,), (1381587813,), (1381587814,), (1381587815,), (1381588018,), (1381588019,), (1381588020,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552302 , 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=26552286 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 (26552302) result : ((1381587479,), (1381587482,), (1381587491,), (1381587492,), (1381587599,), (1381587600,), (1381587824,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552303 , 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=26552286 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 (26552303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552304 , 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=26552286 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 (26552304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552305 , 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=26552286 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 (26552305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552306 , 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=26552286 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 (26552306) result : ((1381587277,), (1381587489,), (1381587490,), (1381587494,), (1381587495,), (1381587559,), (1381587606,), (1381587607,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552307 , 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=26552286 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 (26552307) result : ((1381587469,), (1381587477,), (1381587478,), (1381587583,), (1381587584,), (1381587819,), (1381588021,), (1381588022,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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 26552308 , 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=26552286 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 (26552308) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) 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 (1381587000,1381587400) 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`=26552286 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','cartonnette','plastique','autre_refus','kraft','Teint_Dans_La_Masse','papier','flou','metal','mal_croppe','Carton_gris')) 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`=26552286 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','cartonnette','plastique','autre_refus','kraft','Teint_Dans_La_Masse','papier','flou','metal','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 26552286, 'sub_port_id': 26552327, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881245, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'papier': {'main_port_id': 26552286, 'sub_port_id': 26552328, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881246, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'flou': {'main_port_id': 26552286, 'sub_port_id': 26552329, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881247, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'cartonnette': {'main_port_id': 26552286, 'sub_port_id': 26552330, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881248, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'autre_refus': {'main_port_id': 26552286, 'sub_port_id': 26552331, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881249, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'Carton_brun': {'main_port_id': 26552286, 'sub_port_id': 26552332, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881250, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'environnement': {'main_port_id': 26552286, 'sub_port_id': 26552333, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881251, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'kraft': {'main_port_id': 26552286, 'sub_port_id': 26552334, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881252, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'mal_croppe': {'main_port_id': 26552286, 'sub_port_id': 26552335, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881253, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'plastique': {'main_port_id': 26552286, 'sub_port_id': 26552336, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881254, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'Carton_gris': {'main_port_id': 26552286, 'sub_port_id': 26552337, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881255, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 3, 4), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}, 'metal': {'main_port_id': 26552286, 'sub_port_id': 26552338, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17881256, 'last_updated_at': datetime.datetime(2025, 9, 5, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 0, 3, 4)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552337,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26552338,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26552308 lien utilise dans velours : https://marlene.fotonower.com/velours/26552327,26552328,26552329,26552330,26552331,26552332,26552333,26552334,26552335,26552336,26552337,26552338?tags=Teint_Dans_La_Masse,papier,flou,cartonnette,autre_refus,Carton_brun,environnement,kraft,mal_croppe,plastique,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26552286]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] map_info['map_portfolio_photo'] : {26552286: [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981, 1381587823, 1381587821, 1381587820, 1381587818, 1381587817, 1381587816, 1381587659, 1381587657, 1381587655, 1381587605, 1381587604, 1381587603, 1381587602, 1381587601, 1381587542, 1381587541, 1381587540, 1381587539, 1381587537, 1381587536, 1381587485, 1381587484, 1381587483, 1381587480, 1381587402, 1381587401, 1381587400, 1381587398, 1381587397, 1381587317, 1381587316, 1381587315, 1381587314, 1381587313, 1381587312, 1381587006, 1381587003, 1381587000, 1381586997, 1381586994, 1381586992, 1381586710, 1381586707, 1381586704, 1381586214, 1381586210, 1381586206, 1381586202, 1381586198, 1381585680, 1381585677, 1381585674, 1381585671, 1381585668, 1381585665, 1381585170, 1381585166, 1381585163]} final : False mtd_id 4302 list_pids : [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] Looping around the photos to save general results len do output : 1 /26552286. 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, '3666584') ('4302', '26552286', '1381588055', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588053', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588051', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588050', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588049', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588048', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587985', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587983', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587982', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587981', None, None, None, None, None, '3666584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26552286', "{'Teint_Dans_La_Masse': 26552297, 'papier': 26552298, 'flou': 26552299, 'cartonnette': 26552300, 'autre_refus': 26552301, 'Carton_brun': 26552302, 'environnement': 26552303, 'kraft': 26552304, 'mal_croppe': 26552305, 'plastique': 26552306, 'Carton_gris': 26552307, 'metal': 26552308}", None, None, None, None, '3666584'), ('4302', '26552286', '1381588055', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588053', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588051', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588050', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588049', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588048', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587985', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587983', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587982', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587981', None, None, None, None, None, '3666584')] time used for this insertion : 0.04656481742858887 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.04575252532959 time spend to save output : 0.046924591064453125 total time spend for step 1 : 2.092677116394043 step2:final Fri Sep 5 00:15: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 (26552286) 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 26552286 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381585170,1381585166,1381585163,1381585680,1381585677,1381585674,1381585671,1381585668,1381585665,1381586214,1381586210,1381586206,1381586202,1381586198,1381586710,1381586707,1381586704,1381587006,1381587003,1381587000,1381586997,1381586994,1381586992,1381587317,1381587316,1381587315,1381587314,1381587313,1381587312,1381587402,1381587401,1381587400,1381587398,1381587397,1381587485,1381587484,1381587483,1381587480,1381587542,1381587541,1381587540,1381587539,1381587537,1381587536,1381587605,1381587604,1381587603,1381587602,1381587601,1381587659,1381587657,1381587655,1381587823,1381587821,1381587820,1381587818,1381587817,1381587816,1381587985,1381587983,1381587982,1381587981,1381588055,1381588053,1381588051,1381588050,1381588049,1381588048); 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([26552286]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} new output for save of step final : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] map_info['map_portfolio_photo'] : {26552286: [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981, 1381587823, 1381587821, 1381587820, 1381587818, 1381587817, 1381587816, 1381587659, 1381587657, 1381587655, 1381587605, 1381587604, 1381587603, 1381587602, 1381587601, 1381587542, 1381587541, 1381587540, 1381587539, 1381587537, 1381587536, 1381587485, 1381587484, 1381587483, 1381587480, 1381587402, 1381587401, 1381587400, 1381587398, 1381587397, 1381587317, 1381587316, 1381587315, 1381587314, 1381587313, 1381587312, 1381587006, 1381587003, 1381587000, 1381586997, 1381586994, 1381586992, 1381586710, 1381586707, 1381586704, 1381586214, 1381586210, 1381586206, 1381586202, 1381586198, 1381585680, 1381585677, 1381585674, 1381585671, 1381585668, 1381585665, 1381585170, 1381585166, 1381585163]} final : False mtd_id 4302 list_pids : [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] Looping around the photos to save general results len do output : 10 /1381588055.Didn't retrieve data . /1381588053.Didn't retrieve data . /1381588051.Didn't retrieve data . /1381588050.Didn't retrieve data . /1381588049.Didn't retrieve data . /1381588048.Didn't retrieve data . /1381587985.Didn't retrieve data . /1381587983.Didn't retrieve data . /1381587982.Didn't retrieve data . /1381587981.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, '3666584') ('4302', '26552286', '1381588055', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588053', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588051', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588050', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588049', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588048', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587985', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587983', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587982', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587981', None, None, None, None, None, '3666584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '26552286', '1381588055', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381588053', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381588051', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381588050', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381588049', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381588048', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381587985', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381587983', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381587982', '0.04633457998174884', None, None, None, None, '3666584'), ('4302', '26552286', '1381587981', '0.04633457998174884', None, None, None, None, '3666584')] time used for this insertion : 0.09911990165710449 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35633015632629395 time spend to save output : 0.09973263740539551 total time spend for step 2 : 0.45606279373168945 step3:velours_tree Fri Sep 5 00:15: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 complete output_args for input 0 : {26552286: [{'Teint_Dans_La_Masse': 26552297, 'papier': 26552298, 'flou': 26552299, 'cartonnette': 26552300, 'autre_refus': 26552301, 'Carton_brun': 26552302, 'environnement': 26552303, 'kraft': 26552304, 'mal_croppe': 26552305, 'plastique': 26552306, 'Carton_gris': 26552307, 'metal': 26552308}]} input_args_next_step : {26552286: ()} output_args : {26552286: [{'Teint_Dans_La_Masse': 26552297, 'papier': 26552298, 'flou': 26552299, 'cartonnette': 26552300, 'autre_refus': 26552301, 'Carton_brun': 26552302, 'environnement': 26552303, 'kraft': 26552304, 'mal_croppe': 26552305, 'plastique': 26552306, 'Carton_gris': 26552307, 'metal': 26552308}]} args : 26552286 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': 26552297, 'papier': 26552298, 'flou': 26552299, 'cartonnette': 26552300, 'autre_refus': 26552301, 'Carton_brun': 26552302, 'environnement': 26552303, 'kraft': 26552304, 'mal_croppe': 26552305, 'plastique': 26552306, 'Carton_gris': 26552307, 'metal': 26552308},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26552286) 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([26552286]) 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.30207228660583496 time spend to save output : 4.172325134277344e-05 total time spend for step 3 : 0.30211400985717773 step4:send_mail_cod Fri Sep 5 00:15: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 : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} input_args_next_step : {1381588055: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381588055 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381588053 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381588051 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381588050 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381588049 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381588048 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381587985 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381587983 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381587982 depend.output_id : 0 input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ()} output_args : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',)} args : 1381587981 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 : {26552286: [{'Teint_Dans_La_Masse': 26552297, 'papier': 26552298, 'flou': 26552299, 'cartonnette': 26552300, 'autre_refus': 26552301, 'Carton_brun': 26552302, 'environnement': 26552303, 'kraft': 26552304, 'mal_croppe': 26552305, 'plastique': 26552306, 'Carton_gris': 26552307, 'metal': 26552308}]} input_args_next_step : {1381588055: ('0.04633457998174884',), 1381588053: ('0.04633457998174884',), 1381588051: ('0.04633457998174884',), 1381588050: ('0.04633457998174884',), 1381588049: ('0.04633457998174884',), 1381588048: ('0.04633457998174884',), 1381587985: ('0.04633457998174884',), 1381587983: ('0.04633457998174884',), 1381587982: ('0.04633457998174884',), 1381587981: ('0.04633457998174884',), 26552286: ()} output_args : {26552286: [{'Teint_Dans_La_Masse': 26552297, 'papier': 26552298, 'flou': 26552299, 'cartonnette': 26552300, 'autre_refus': 26552301, 'Carton_brun': 26552302, 'environnement': 26552303, 'kraft': 26552304, 'mal_croppe': 26552305, 'plastique': 26552306, 'Carton_gris': 26552307, 'metal': 26552308}]} args : 26552286 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 :11, first value : ('0.04633457998174884',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26552286) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1381588055,1381588053,1381588051,1381588050,1381588049,1381588048,1381587985,1381587983,1381587982,1381587981) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381587981 begin to download photo : 1381587985 begin to download photo : 1381588050 begin to download photo : 1381588055 download finish for photo 1381587985 begin to download photo : 1381588048 download finish for photo 1381587981 begin to download photo : 1381587982 download finish for photo 1381588055 download finish for photo 1381588050 begin to download photo : 1381588051 download finish for photo 1381588048 begin to download photo : 1381588049 download finish for photo 1381587982 begin to download photo : 1381587983 download finish for photo 1381588051 begin to download photo : 1381588053 download finish for photo 1381588053 download finish for photo 1381587983 download finish for photo 1381588049 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette265522991757024101/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26552286_05-09-2025_00_15_01.pdf 26552299 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265522991757024101 26552300 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381587586: '1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163417_0.png', 1381588031: '1757023987_133495_1381587817_8bbe0929a12d8f0a8673abe26b14b469_93104844_rle_crop_3945167090_0.png', 1381588029: '1757023987_133495_1381587818_8f3dc36f7794e3f81723d77eb982356a_83612654_rle_crop_3945167030_0.png', 1381588027: '1757023987_133495_1381587820_29e6a0dc34150632cd70f413d8215876_66566908_rle_crop_3945166936_0.png', 1381587594: '1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163485_0.png', 1381587592: '1757023765_120075_1381587398_ba1c0ae7479a168073bee8eb680f6e6e_43947942_rle_crop_3945163473_0.png', 1381587590: '1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163435_0.png', 1381587589: '1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163437_0.png', 1381587588: '1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163420_0.png', 1381587587: '1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163419_0.png', 1381586462: '1757023388_102644_1381585677_33fc6d9e07638ee46532f628040a536b_38117180_rle_crop_3945158869_0.png', 1381587488: '1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161922_0.png', 1381587487: '1757023646_114113_1381587000_a244e42faca1620eb22b1187cb286926_70461899_rle_crop_3945161895_0.png', 1381587486: '1757023646_114113_1381587003_706acc5f4416ac74926689f10ae1fc9d_83316664_rle_crop_3945161866_0.png', 1381587476: '1757023627_113780_1381587312_b9bdaff95ad62a7d23ec4b400e5b302a_12172570_rle_crop_3945161937_0.png', 1381587475: '1757023627_113780_1381587313_2d8db86390f3b9896fdda2fcd3744cf1_27640016_rle_crop_3945161904_0.png', 1381587474: '1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161875_0.png', 1381587266: '1757023526_105897_1381586198_06b2b15f5cfd3b954358cf5353d65451_14189275_rle_crop_3945159168_0.png', 1381587263: '1757023526_105897_1381586710_0b28bdc19f9cec0c188a4b2a9905dd5b_6718404_rle_crop_3945159124_0.png', 1381587136: '1757023505_105495_1381586707_d8c736b5a289a0d1b0aa96acc81cee2a_81249015_rle_crop_3945158985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ac916dee4dfa4b5a126568a7a01cc3c5_45167132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/92876b2940081f18bfa1cd98a37c5653_11319138.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/87a04168d64d0fd1ad3d8572c447f5f8_81601681.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f1188b69530c8627ed21e85004f87258_14072711.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bb4bb5b37eb08ec8be4f045ff7b3a77a_9078684.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d63b90fe5852c586dc55890da29f8e55_36613637.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d4602a6fb845f3d009e3214d54031473_56308120.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7dc33e1d8c213537fd181c8ac1361372_15526398.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/715a5f094848c61bf74679a4ce547d4e_68634147.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7aacdab1500080f519998e2cc8483e0b_77235390.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1429b29a2e35f344e07c2f6b13c5d4dc_952956.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f93ad063f4cbf7e22217f625e680b852_62151870.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ccfcd0a1a9dbcfb11c767ad6b4e3ae85_89749060.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e2125344c86b2fcd711084880904604a_64225020.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/274d634eb16260af0be2986ea2762620_41846434.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bed27a74833b085f3e01a528deecb8c7_74292587.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6ae37138d60559b0d95cbd35c999e571_15398494.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1256366a822aae4a1bc02f2dc6429fc9_31954885.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3a11138945c8926952c934f73ecc7088_69966420.png change filename to text .imagette265523001757024101/ imagette265523001757024101/1757023987_133495_1381587817_8bbe0929a12d8f0a8673abe26b14b469_93104844_rle_crop_3945167090_0.png.png imagette265523001757024101/1757023526_105897_1381586710_0b28bdc19f9cec0c188a4b2a9905dd5b_6718404_rle_crop_3945159124_0.png.png imagette265523001757024101/1757023987_133495_1381587820_29e6a0dc34150632cd70f413d8215876_66566908_rle_crop_3945166936_0.png.png imagette265523001757024101/1757023388_102644_1381585677_33fc6d9e07638ee46532f628040a536b_38117180_rle_crop_3945158869_0.png.png imagette265523001757024101/1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161922_0.png.png imagette265523001757024101/1757023646_114113_1381587000_a244e42faca1620eb22b1187cb286926_70461899_rle_crop_3945161895_0.png.png imagette265523001757024101/1757023987_133495_1381587818_8f3dc36f7794e3f81723d77eb982356a_83612654_rle_crop_3945167030_0.png.png imagette265523001757024101/1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163437_0.png.png imagette265523001757024101/1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163419_0.png.png imagette265523001757024101/1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163485_0.png.png imagette265523001757024101/1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161875_0.png.png imagette265523001757024101/1757023627_113780_1381587312_b9bdaff95ad62a7d23ec4b400e5b302a_12172570_rle_crop_3945161937_0.png.png imagette265523001757024101/1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163420_0.png.png imagette265523001757024101/1757023646_114113_1381587003_706acc5f4416ac74926689f10ae1fc9d_83316664_rle_crop_3945161866_0.png.png imagette265523001757024101/1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163435_0.png.png imagette265523001757024101/1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163417_0.png.png imagette265523001757024101/1757023505_105495_1381586707_d8c736b5a289a0d1b0aa96acc81cee2a_81249015_rle_crop_3945158985_0.png.png imagette265523001757024101/1757023765_120075_1381587398_ba1c0ae7479a168073bee8eb680f6e6e_43947942_rle_crop_3945163473_0.png.png imagette265523001757024101/1757023526_105897_1381586198_06b2b15f5cfd3b954358cf5353d65451_14189275_rle_crop_3945159168_0.png.png imagette265523001757024101/1757023627_113780_1381587313_2d8db86390f3b9896fdda2fcd3744cf1_27640016_rle_crop_3945161904_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f404e50cf7ad2399bce5a3dcb66ec8ba_50261468.png imagette265523001757024101 26552301 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381587133: '1757023505_105495_1381586704_a89c31b694a4dded4aa0cfb9cdaf950c_33636022_rle_crop_3945159000_0.png', 1381587470: '1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161836_0.png', 1381587471: '1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161927_0.png', 1381587472: '1757023646_114113_1381586994_66b03fb117974815d3f4aa3b17a8a461_18896231_rle_crop_3945161953_0.png', 1381587473: '1757023646_114113_1381586992_370348388d496b9f6f69e80cb4edc3e2_13305454_rle_crop_3945161964_0.png', 1381587582: '1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163493_0.png', 1381587753: '1757023867_127579_1381587604_2b5b70d665a096dc14b309260e8c97d6_76200551_rle_crop_3945165707_0.png', 1381587812: '1757023885_128244_1381587605_973e62b2f4f4710ebd7b2f093a9a23f5_90978435_rle_crop_3945166201_0.png', 1381587813: '1757023885_128244_1381587539_6609b7eb7126db2b5613b5c300e070f9_88370166_rle_crop_3945166264_0.png', 1381587814: '1757023885_128244_1381587537_6476f9527ed5cfa4c60b40f77719ae88_75804155_rle_crop_3945166291_0.png', 1381587815: '1757023885_128244_1381587536_6d965aa625c99e3c797ab4edd12a493e_46058151_rle_crop_3945166306_0.png', 1381588018: '1757023987_133495_1381587821_79ea14a851c668a22024b7c676cfdabd_73922123_rle_crop_3945166909_0.png', 1381588019: '1757023987_133495_1381587820_29e6a0dc34150632cd70f413d8215876_66566908_rle_crop_3945166927_0.png', 1381588020: '1757023987_133495_1381587818_8f3dc36f7794e3f81723d77eb982356a_83612654_rle_crop_3945167032_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/b7dff067d6e10943301582512378e033_18912982.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6fae7478ff94a4b7ee6c118095dbb5be_98083701.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8fc9bff53544e6e623e548967c7e1335_31770347.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/16b5778b80d8b703d6c08618d054a012_9075503.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7ecd567dfda10300e89a5137b57aab95_5917934.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a92e01f2baa19619abf7453f99f2d00f_96984334.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2a95c7fabee4b73fe50be9de1e20248e_83065383.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5497be4521ac66e63a805ad11aa667d3_18718233.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bf397f76e945e7f4a7d609383a412745_8000963.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/acb487f4672d03f59efa18baeae923fb_65374487.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/75a20caba99b89643c6135a11086ba26_39439208.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9b68b331b22361b417716b480771d9de_85912898.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/4767ce86b0b2fcaa9692899e39f61516_13492038.png change filename to text .imagette265523011757024102/ imagette265523011757024102/1757023646_114113_1381586992_370348388d496b9f6f69e80cb4edc3e2_13305454_rle_crop_3945161964_0.png.png imagette265523011757024102/1757023885_128244_1381587536_6d965aa625c99e3c797ab4edd12a493e_46058151_rle_crop_3945166306_0.png.png imagette265523011757024102/1757023505_105495_1381586704_a89c31b694a4dded4aa0cfb9cdaf950c_33636022_rle_crop_3945159000_0.png.png imagette265523011757024102/1757023987_133495_1381587821_79ea14a851c668a22024b7c676cfdabd_73922123_rle_crop_3945166909_0.png.png imagette265523011757024102/1757023646_114113_1381586994_66b03fb117974815d3f4aa3b17a8a461_18896231_rle_crop_3945161953_0.png.png imagette265523011757024102/1757023885_128244_1381587605_973e62b2f4f4710ebd7b2f093a9a23f5_90978435_rle_crop_3945166201_0.png.png imagette265523011757024102/1757023885_128244_1381587539_6609b7eb7126db2b5613b5c300e070f9_88370166_rle_crop_3945166264_0.png.png imagette265523011757024102/1757023885_128244_1381587537_6476f9527ed5cfa4c60b40f77719ae88_75804155_rle_crop_3945166291_0.png.png imagette265523011757024102/1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161836_0.png.png imagette265523011757024102/1757023987_133495_1381587820_29e6a0dc34150632cd70f413d8215876_66566908_rle_crop_3945166927_0.png.png imagette265523011757024102/1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163493_0.png.png imagette265523011757024102/1757023987_133495_1381587818_8f3dc36f7794e3f81723d77eb982356a_83612654_rle_crop_3945167032_0.png.png imagette265523011757024102/1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161927_0.png.png imagette265523011757024102/1757023867_127579_1381587604_2b5b70d665a096dc14b309260e8c97d6_76200551_rle_crop_3945165707_0.png.png imagette265523041757024103/ imagette265523051757024103/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/cfa6330bd4e6e2fd6a1951602be4e0b5_72354737.png imagette265523011757024102 26552304 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265523041757024103 26552305 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265523051757024103 26552306 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381587277: '1757023526_105897_1381586206_ec918e1f25bfc58f1adf65484c89ce06_13605320_rle_crop_3945159146_0.png', 1381587489: '1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161883_0.png', 1381587490: '1757023627_113780_1381587312_b9bdaff95ad62a7d23ec4b400e5b302a_12172570_rle_crop_3945161939_0.png', 1381587494: '1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161844_0.png', 1381587495: '1757023646_114113_1381586992_370348388d496b9f6f69e80cb4edc3e2_13305454_rle_crop_3945161967_0.png', 1381587559: '1757023747_119686_1381587484_6c735e49cb276894cb11f4139f0857de_39795408_rle_crop_3945163202_0.png', 1381587606: '1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163427_0.png', 1381587607: '1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a36deccf3968871e92747fad624aeaec_8704267.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/fcaf1b30c6073108fcdb8fceb1b9e14a_47513330.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ac9f371ccd4b560e551d8fb7b0e1e9b5_89476756.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d24fbf6f1d48757f204a91d0310b8363_28112619.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7ec2e125f2d1c1d8091db543cc254aee_41403439.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1a8d3c082668b417747899a2c430ce37_80268982.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e0db5857bf908a5d1ce1a99f1eba3187_58889606.png change filename to text .imagette265523061757024103/ imagette265523061757024103/1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163427_0.png.png imagette265523061757024103/1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163438_0.png.png imagette265523061757024103/1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161883_0.png.png imagette265523061757024103/1757023526_105897_1381586206_ec918e1f25bfc58f1adf65484c89ce06_13605320_rle_crop_3945159146_0.png.png imagette265523061757024103/1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161844_0.png.png imagette265523061757024103/1757023747_119686_1381587484_6c735e49cb276894cb11f4139f0857de_39795408_rle_crop_3945163202_0.png.png imagette265523061757024103/1757023646_114113_1381586992_370348388d496b9f6f69e80cb4edc3e2_13305454_rle_crop_3945161967_0.png.png imagette265523061757024103/1757023627_113780_1381587312_b9bdaff95ad62a7d23ec4b400e5b302a_12172570_rle_crop_3945161939_0.png.png imagette265523081757024104/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/31bf337a6fb69f1acdabceb650109c3c_81494726.png imagette265523061757024103 26552308 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265523081757024104 26552297 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381587557: '1757023747_119686_1381587480_1e3c8c0e71eb371fefffe47c4315be3a_49075251_rle_crop_3945163238_0.png', 1381588034: '1757024006_133869_1381587659_7b6173cfef0f735ee3adc59aaecf68c9_27234714_rle_crop_3945167114_0.png', 1381588033: '1757024006_133869_1381587659_7b6173cfef0f735ee3adc59aaecf68c9_27234714_rle_crop_3945167117_0.png', 1381587803: '1757023885_128244_1381587537_6476f9527ed5cfa4c60b40f77719ae88_75804155_rle_crop_3945166286_0.png', 1381587801: '1757023885_128244_1381587539_6609b7eb7126db2b5613b5c300e070f9_88370166_rle_crop_3945166266_0.png', 1381587798: '1757023885_128244_1381587540_6e0a40ce2257c33c1155deae82e6d4f1_34553268_rle_crop_3945166245_0.png', 1381587797: '1757023885_128244_1381587540_6e0a40ce2257c33c1155deae82e6d4f1_34553268_rle_crop_3945166244_0.png', 1381587746: '1757023867_127579_1381587601_72bb5c26a095532293d0b5729c0afd8b_33138658_rle_crop_3945165923_0.png', 1381587744: '1757023867_127579_1381587601_72bb5c26a095532293d0b5729c0afd8b_33138658_rle_crop_3945165919_0.png', 1381587742: '1757023867_127579_1381587603_8ea4baf528baed2265cfc3c75a6f0299_55700680_rle_crop_3945165838_0.png', 1381587740: '1757023867_127579_1381587604_2b5b70d665a096dc14b309260e8c97d6_76200551_rle_crop_3945165710_0.png', 1381587581: '1757023765_120075_1381587398_ba1c0ae7479a168073bee8eb680f6e6e_43947942_rle_crop_3945163478_0.png', 1381587580: '1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163439_0.png', 1381587579: '1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163423_0.png', 1381586451: '1757023388_102644_1381585665_a679fa1bba24eb5acf37e1314fa395a3_52332265_rle_crop_3945158915_0.png', 1381587465: '1757023627_113780_1381587312_b9bdaff95ad62a7d23ec4b400e5b302a_12172570_rle_crop_3945161941_0.png', 1381587463: '1757023627_113780_1381587313_2d8db86390f3b9896fdda2fcd3744cf1_27640016_rle_crop_3945161911_0.png', 1381587461: '1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161878_0.png', 1381587459: '1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161843_0.png', 1381587458: '1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161877_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/134eb21fc674f14df38281cb7326ab38_42358270.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7ad6106c5c650151047ad753138ad366_46496860.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2eeaf73a6495d8066c181ab8f9367f6e_84324106.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a7fb1aa84bf725a10367301085490d06_85816042.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bf79c952816446e21a264b60ce0d55da_17819540.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3613d5af1d8b9a86d981e7e8af79468e_33390877.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/eee162ebd04ec732d102b7b8869f1ed1_58478958.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c2c70fb6e82823bbe6a59ecb9e7b8590_43490933.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c346ebdcbfe486eccd89fb24f2e38e3d_75636898.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7129ecc89a7c7c5a5c916118389335b2_83711849.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8f8a8176c7026b035bb70c99d09b0cba_21301096.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/865ad73effad71403bb56064086c22a0_97198359.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d40f1cc65f2e10d2ef3b07aa1ecb8def_72523963.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8608beb2a1e58f2d43e794f7aecd9df7_26999267.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7082468905b15b3efb81d02b70e6e5ff_33862236.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8d3e9ca5cd495781cd1746b5afcba546_76445126.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/457b16c24e12beb6df919b903dbbd99d_92991596.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9e7071357802bb396962c944e9cd5859_90017334.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a73d8be291fe79d72f25f877eb86a076_2713647.png change filename to text .imagette265522971757024104/ imagette265522971757024104/1757023885_128244_1381587539_6609b7eb7126db2b5613b5c300e070f9_88370166_rle_crop_3945166266_0.png.png imagette265522971757024104/1757024006_133869_1381587659_7b6173cfef0f735ee3adc59aaecf68c9_27234714_rle_crop_3945167114_0.png.png imagette265522971757024104/1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161843_0.png.png imagette265522971757024104/1757023867_127579_1381587601_72bb5c26a095532293d0b5729c0afd8b_33138658_rle_crop_3945165923_0.png.png imagette265522971757024104/1757023867_127579_1381587604_2b5b70d665a096dc14b309260e8c97d6_76200551_rle_crop_3945165710_0.png.png imagette265522971757024104/1757023885_128244_1381587540_6e0a40ce2257c33c1155deae82e6d4f1_34553268_rle_crop_3945166245_0.png.png imagette265522971757024104/1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161877_0.png.png imagette265522971757024104/1757023747_119686_1381587480_1e3c8c0e71eb371fefffe47c4315be3a_49075251_rle_crop_3945163238_0.png.png imagette265522971757024104/1757023627_113780_1381587313_2d8db86390f3b9896fdda2fcd3744cf1_27640016_rle_crop_3945161911_0.png.png imagette265522971757024104/1757023867_127579_1381587603_8ea4baf528baed2265cfc3c75a6f0299_55700680_rle_crop_3945165838_0.png.png imagette265522971757024104/1757023627_113780_1381587312_b9bdaff95ad62a7d23ec4b400e5b302a_12172570_rle_crop_3945161941_0.png.png imagette265522971757024104/1757023885_128244_1381587540_6e0a40ce2257c33c1155deae82e6d4f1_34553268_rle_crop_3945166244_0.png.png imagette265522971757024104/1757024006_133869_1381587659_7b6173cfef0f735ee3adc59aaecf68c9_27234714_rle_crop_3945167117_0.png.png imagette265522971757024104/1757023388_102644_1381585665_a679fa1bba24eb5acf37e1314fa395a3_52332265_rle_crop_3945158915_0.png.png imagette265522971757024104/1757023867_127579_1381587601_72bb5c26a095532293d0b5729c0afd8b_33138658_rle_crop_3945165919_0.png.png imagette265522971757024104/1757023627_113780_1381587314_c32894dd9395d4a484ce9ac968d6e34f_13892709_rle_crop_3945161878_0.png.png imagette265522971757024104/1757023885_128244_1381587537_6476f9527ed5cfa4c60b40f77719ae88_75804155_rle_crop_3945166286_0.png.png imagette265522971757024104/1757023765_120075_1381587398_ba1c0ae7479a168073bee8eb680f6e6e_43947942_rle_crop_3945163478_0.png.png imagette265522971757024104/1757023765_120075_1381587400_ac1a1cf4aa0422ab09755934a4ed31fa_96214219_rle_crop_3945163439_0.png.png imagette265522971757024104/1757023765_120075_1381587401_fbe69f8df835967457881a57c8c4df02_16305911_rle_crop_3945163423_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1228f2948e6164204c88fcfcc7aaf8a5_66001004.png imagette265522971757024104 26552302 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381587479: '1757023627_113780_1381587316_04a837001026233d9964a25e4c909c25_19560323_rle_crop_3945161825_0.png', 1381587482: '1757023627_113780_1381587315_37ed5d6397246fcd409a5ed20b2b475d_97842679_rle_crop_3945161856_0.png', 1381587491: '1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161841_0.png', 1381587492: '1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161929_0.png', 1381587599: '1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163492_0.png', 1381587600: '1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163488_0.png', 1381587824: '1757023885_128244_1381587537_6476f9527ed5cfa4c60b40f77719ae88_75804155_rle_crop_3945166284_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/09939051c406bd43387036db6adcc6ad_15127858.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/913ac7c99992e3b5a96ebd68124ba993_81958811.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/4db17fc7d6b9fdfb6d31682329d93908_40528764.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/b3fdba445ba03e2bb9b77754ba641afd_32178609.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/983f54fe9ad7435c476b9d3bdc67d848_36185401.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9604e61c4a1e67a6c18239b50ba3635b_18378868.png change filename to text .imagette265523021757024105/ imagette265523021757024105/1757023627_113780_1381587316_04a837001026233d9964a25e4c909c25_19560323_rle_crop_3945161825_0.png.png imagette265523021757024105/1757023646_114113_1381587317_816c42e3a5efe8d5de936f085609035a_21468577_rle_crop_3945161841_0.png.png imagette265523021757024105/1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163492_0.png.png imagette265523021757024105/1757023627_113780_1381587315_37ed5d6397246fcd409a5ed20b2b475d_97842679_rle_crop_3945161856_0.png.png imagette265523021757024105/1757023885_128244_1381587537_6476f9527ed5cfa4c60b40f77719ae88_75804155_rle_crop_3945166284_0.png.png imagette265523021757024105/1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163488_0.png.png imagette265523021757024105/1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161929_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bc3a68ef351bd5bc92b94844b6936d23_843543.png imagette265523021757024105 26552307 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552307 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381587469: '1757023627_113780_1381587313_2d8db86390f3b9896fdda2fcd3744cf1_27640016_rle_crop_3945161906_0.png', 1381587477: '1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161923_0.png', 1381587478: '1757023646_114113_1381586994_66b03fb117974815d3f4aa3b17a8a461_18896231_rle_crop_3945161948_0.png', 1381587583: '1757023765_120075_1381587398_ba1c0ae7479a168073bee8eb680f6e6e_43947942_rle_crop_3945163469_0.png', 1381587584: '1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163484_0.png', 1381587819: '1757023885_128244_1381587605_973e62b2f4f4710ebd7b2f093a9a23f5_90978435_rle_crop_3945166203_0.png', 1381588021: '1757023987_133495_1381587821_79ea14a851c668a22024b7c676cfdabd_73922123_rle_crop_3945166917_0.png', 1381588022: '1757023987_133495_1381587820_29e6a0dc34150632cd70f413d8215876_66566908_rle_crop_3945166931_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7727f4358ea19e4064d1cea7d553640a_68470016.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7ff7db36af92ac452c65a1bff157a873_43138975.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/4d455f56b77eb8ecb55f7e68cd08dd7d_23740980.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3d9b655bd6bed4759ac454f1e9c24e7a_19654496.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/62961d3cdf2fdf2126633388aee605bd_47819696.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0f3e56fe492d294f348ec177376bef5d_3999335.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3436e2668f0486bd5a26f5fe786ac67c_44665130.png change filename to text .imagette265523071757024105/ imagette265523071757024105/1757023646_114113_1381586997_6323ad668a039cfdc21bf52aaf47718a_36224301_rle_crop_3945161923_0.png.png imagette265523071757024105/1757023765_120075_1381587397_36c311d0b1598ce883f2ec2b464ee337_83477805_rle_crop_3945163484_0.png.png imagette265523071757024105/1757023987_133495_1381587820_29e6a0dc34150632cd70f413d8215876_66566908_rle_crop_3945166931_0.png.png imagette265523071757024105/1757023627_113780_1381587313_2d8db86390f3b9896fdda2fcd3744cf1_27640016_rle_crop_3945161906_0.png.png imagette265523071757024105/1757023885_128244_1381587605_973e62b2f4f4710ebd7b2f093a9a23f5_90978435_rle_crop_3945166203_0.png.png imagette265523071757024105/1757023765_120075_1381587398_ba1c0ae7479a168073bee8eb680f6e6e_43947942_rle_crop_3945163469_0.png.png imagette265523071757024105/1757023987_133495_1381587821_79ea14a851c668a22024b7c676cfdabd_73922123_rle_crop_3945166917_0.png.png imagette265523071757024105/1757023646_114113_1381586994_66b03fb117974815d3f4aa3b17a8a461_18896231_rle_crop_3945161948_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0d0f60e8383b701e7f03e3c65905dbd6_32173632.png imagette265523071757024105 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26552286 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26552327,26552328,26552329,26552330,26552331,26552332,26552333,26552334,26552335,26552336,26552337,26552338?tags=Teint_Dans_La_Masse,papier,flou,cartonnette,autre_refus,Carton_brun,environnement,kraft,mal_croppe,plastique,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1381588055] : ('0.04633457998174884',) no score found for photo 1381588055 We are sending mail with results at report@fotonower.com args[1381588053] : ('0.04633457998174884',) no score found for photo 1381588053 We are sending mail with results at report@fotonower.com args[1381588051] : ('0.04633457998174884',) no score found for photo 1381588051 We are sending mail with results at report@fotonower.com args[1381588050] : ('0.04633457998174884',) no score found for photo 1381588050 We are sending mail with results at report@fotonower.com args[1381588049] : ('0.04633457998174884',) no score found for photo 1381588049 We are sending mail with results at report@fotonower.com args[1381588048] : ('0.04633457998174884',) no score found for photo 1381588048 We are sending mail with results at report@fotonower.com args[1381587985] : ('0.04633457998174884',) no score found for photo 1381587985 We are sending mail with results at report@fotonower.com args[1381587983] : ('0.04633457998174884',) no score found for photo 1381587983 We are sending mail with results at report@fotonower.com args[1381587982] : ('0.04633457998174884',) no score found for photo 1381587982 We are sending mail with results at report@fotonower.com args[1381587981] : ('0.04633457998174884',) no score found for photo 1381587981 We are sending mail with results at report@fotonower.com refus_total : 0.04633457998174884 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552286 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_P26552286_05-09-2025_00_15_01.pdf results_Auto_P26552286_05-09-2025_00_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_15_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','26552286','results_Auto_P26552286_05-09-2025_00_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_15_01.pdf','pdf','','0.29','0.04633457998174884') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26552286]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] map_info['map_portfolio_photo'] : {26552286: [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981, 1381587823, 1381587821, 1381587820, 1381587818, 1381587817, 1381587816, 1381587659, 1381587657, 1381587655, 1381587605, 1381587604, 1381587603, 1381587602, 1381587601, 1381587542, 1381587541, 1381587540, 1381587539, 1381587537, 1381587536, 1381587485, 1381587484, 1381587483, 1381587480, 1381587402, 1381587401, 1381587400, 1381587398, 1381587397, 1381587317, 1381587316, 1381587315, 1381587314, 1381587313, 1381587312, 1381587006, 1381587003, 1381587000, 1381586997, 1381586994, 1381586992, 1381586710, 1381586707, 1381586704, 1381586214, 1381586210, 1381586206, 1381586202, 1381586198, 1381585680, 1381585677, 1381585674, 1381585671, 1381585668, 1381585665, 1381585170, 1381585166, 1381585163]} final : False mtd_id 4302 list_pids : [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] 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, '3666584') ('4302', '26552286', '1381588055', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588053', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588051', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588050', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588049', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588048', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587985', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587983', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587982', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587981', None, None, None, None, None, '3666584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '26552286', '1381588055', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588053', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588051', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588050', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588049', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588048', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587985', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587983', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587982', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587981', None, None, None, None, None, '3666584')] time used for this insertion : 0.04761052131652832 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.835167407989502 time spend to save output : 0.047837018966674805 total time spend for step 4 : 6.883004426956177 step5:split_time_score Fri Sep 5 00:15:08 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 : ['26552286'] 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 : [('26552286',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26552286) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381588055: {'path': 'temp/1757024101_2464097_1381588055_39eaf5043488288963a54e1f019042da_99985760.jpg', 'extension': 'jpg'}, 1381588050: {'path': 'temp/1757024101_2464097_1381588050_4b261bf7bb7084b477576b98bbb0a27e_97527972.jpg', 'extension': 'jpg'}, 1381588051: {'path': 'temp/1757024101_2464097_1381588051_9ea46c7b8361a3c6618d8d812e39b5e4_78475246.jpg', 'extension': 'jpg'}, 1381588053: {'path': 'temp/1757024101_2464097_1381588053_6b77b129189565c7fc41771e33af78da_44621782.jpg', 'extension': 'jpg'}, 1381587981: {'path': 'temp/1757024101_2464097_1381587981_e68de3d8bf5cd6835e68e38af5569757_12210626.jpg', 'extension': 'jpg'}, 1381587982: {'path': 'temp/1757024101_2464097_1381587982_cb979e6e8bf68bb86c9119ed86ea719b_38117325.jpg', 'extension': 'jpg'}, 1381587983: {'path': 'temp/1757024101_2464097_1381587983_2167378ad9d7e7826d90b2ab727c31aa_60205408.jpg', 'extension': 'jpg'}, 1381587985: {'path': 'temp/1757024101_2464097_1381587985_6ba22a407fd88d374d8416c701cc37dc_71157908.jpg', 'extension': 'jpg'}, 1381588048: {'path': 'temp/1757024101_2464097_1381588048_62ed14d6537afd6fa88c232c9498537b_51565312.jpg', 'extension': 'jpg'}, 1381588049: {'path': 'temp/1757024101_2464097_1381588049_3c77818af0d07a20f96fd93ee18b8403_60832360.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 = 26552286; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26552286 group by h (('00', 68),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26552286 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 (26552286) 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 (26552286) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05092025 26552286 Nombre de photos uploadées : 68 / 23040 (0%) 05092025 26552286 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 05092025 26552286 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1381585170, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/b0b9ddbe138bc374bc59d9669233feb4_33288354.jpg', 'username': None, 'uploaded_at': 1757023274, 'text': 'image_05092025_00_00_24_10145.jpg'}, {'photo_id': 1381585166, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1cbd4268faeba239f6e9a8bc078fd925_69682581.jpg', 'username': None, 'uploaded_at': 1757023274, 'text': 'image_05092025_00_00_33_9130.jpg'}, {'photo_id': 1381585163, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9e47e19e378d1603b84ff7f78b1f5dee_66702551.jpg', 'username': None, 'uploaded_at': 1757023274, 'text': 'image_05092025_00_00_43_10139.jpg'}, {'photo_id': 1381585680, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d5d669489182d4a53074736bb8efcf6e_71208802.jpg', 'username': None, 'uploaded_at': 1757023333, 'text': 'image_05092025_00_00_54_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003095388412475586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 26552286, '2025-09-05' ) 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-09-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2233879,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.7769548892974854 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= 2233879 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2233879, 'dashboard_run_id': 2241387, 'mtr_portfolio_id': 26552286, 'dashboard_result_id': 14775293, '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_P26552286_05-09-2025_00_13_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, '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 = 26552286 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': 3666584, 'mtr_portfolio_id': 26552286, 'created_at': datetime.datetime(2025, 9, 5, 0, 15), 'result': '0.04633457998174884', 'result_long': None, 'result_double': None}] Qualite : 0.04633457998174884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552286 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_P26552286_05-09-2025_00_15_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}" where mtr_portfolio_id = 26552286 and dashboard_run_id = 2241387 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`=26552286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14775293, 0.04633457998174884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_15_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26552286) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05092025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26552286]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] map_info['map_portfolio_photo'] : {26552286: [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981, 1381587823, 1381587821, 1381587820, 1381587818, 1381587817, 1381587816, 1381587659, 1381587657, 1381587655, 1381587605, 1381587604, 1381587603, 1381587602, 1381587601, 1381587542, 1381587541, 1381587540, 1381587539, 1381587537, 1381587536, 1381587485, 1381587484, 1381587483, 1381587480, 1381587402, 1381587401, 1381587400, 1381587398, 1381587397, 1381587317, 1381587316, 1381587315, 1381587314, 1381587313, 1381587312, 1381587006, 1381587003, 1381587000, 1381586997, 1381586994, 1381586992, 1381586710, 1381586707, 1381586704, 1381586214, 1381586210, 1381586206, 1381586202, 1381586198, 1381585680, 1381585677, 1381585674, 1381585671, 1381585668, 1381585665, 1381585170, 1381585166, 1381585163]} final : True mtd_id 4302 list_pids : [1381588055, 1381588053, 1381588051, 1381588050, 1381588049, 1381588048, 1381587985, 1381587983, 1381587982, 1381587981] Looping around the photos to save general results len do output : 1 /26552286Didn'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, '3666584') ('4302', '26552286', '1381588055', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588053', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588051', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588050', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588049', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381588048', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587985', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587983', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587982', None, None, None, None, None, '3666584') ('4302', None, None, None, None, None, None, None, '3666584') ('4302', '26552286', '1381587981', None, None, None, None, None, '3666584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26552286', 'None', None, None, None, None, '3666584'), ('4302', '26552286', '1381588055', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588053', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588051', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588050', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588049', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381588048', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587985', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587983', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587982', None, None, None, None, None, '3666584'), ('4302', '26552286', '1381587981', None, None, None, None, None, '3666584')] time used for this insertion : 0.04892086982727051 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3931026458740234 time spend to save output : 0.04920196533203125 total time spend for step 5 : 1.4423046112060547 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 (3666584) 2.26user 2.37system 0:13.62elapsed 34%CPU (0avgtext+0avgdata 160892maxresident)k 120inputs+14496outputs (1major+73220minor)pagefaults 0swaps