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 : 269267 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 (4071775) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4071775) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683578 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4071775'] with mtr_portfolio_ids : ['28683578'] and first list_photo_ids : [] new path : /proc/269267/ Name: python3 Umask: 0002 State: R (running) Tgid: 269267 Ngid: 0 Pid: 269267 PPid: 269266 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 269267 NSpid: 269267 NSpgid: 267780 NSsid: 267780 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98480 kB VmRSS: 98480 kB RssAnon: 59904 kB RssFile: 38576 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 83 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '269267', 'Ngid': '0', 'Pid': '269267', 'PPid': '269266', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '269267', 'NSpid': '269267', 'NSpgid': '267780', 'NSsid': '267780', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98480 kB', 'VmRSS': '98480 kB', 'RssAnon': '59904 kB', 'RssFile': '38576 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '83'} ('datou_batch_current', '269267', '1106908', '0', '1106884', '865636', '98480', b'', 'marlene', '4071775') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28683578) 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 (4071775 ) ) 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 (28683578) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395117983, 'portfolio_id': 28683578}, {'photo_id': 1395117981, 'portfolio_id': 28683578}, {'photo_id': 1395117980, 'portfolio_id': 28683578}, {'photo_id': 1395117966, 'portfolio_id': 28683578}, {'photo_id': 1395117957, 'portfolio_id': 28683578}, {'photo_id': 1395117941, 'portfolio_id': 28683578}, {'photo_id': 1395117923, 'portfolio_id': 28683578}, {'photo_id': 1395117888, 'portfolio_id': 28683578}, {'photo_id': 1395117876, 'portfolio_id': 28683578}, {'photo_id': 1395117874, 'portfolio_id': 28683578}, {'photo_id': 1395117652, 'portfolio_id': 28683578}, {'photo_id': 1395117612, 'portfolio_id': 28683578}, {'photo_id': 1395117572, 'portfolio_id': 28683578}, {'photo_id': 1395117538, 'portfolio_id': 28683578}, {'photo_id': 1395117501, 'portfolio_id': 28683578}, {'photo_id': 1395117462, 'portfolio_id': 28683578}, {'photo_id': 1395117100, 'portfolio_id': 28683578}, {'photo_id': 1395117065, 'portfolio_id': 28683578}, {'photo_id': 1395117028, 'portfolio_id': 28683578}, {'photo_id': 1395116991, 'portfolio_id': 28683578}, {'photo_id': 1395116934, 'portfolio_id': 28683578}, {'photo_id': 1395116922, 'portfolio_id': 28683578}, {'photo_id': 1395116915, 'portfolio_id': 28683578}, {'photo_id': 1395116903, 'portfolio_id': 28683578}, {'photo_id': 1395116878, 'portfolio_id': 28683578}, {'photo_id': 1395116758, 'portfolio_id': 28683578}, {'photo_id': 1395116754, 'portfolio_id': 28683578}, {'photo_id': 1395116752, 'portfolio_id': 28683578}, {'photo_id': 1395116750, 'portfolio_id': 28683578}, {'photo_id': 1395116733, 'portfolio_id': 28683578}, {'photo_id': 1395116729, 'portfolio_id': 28683578}, {'photo_id': 1395116727, 'portfolio_id': 28683578}, {'photo_id': 1395116719, 'portfolio_id': 28683578}, {'photo_id': 1395116718, 'portfolio_id': 28683578}, {'photo_id': 1395116706, 'portfolio_id': 28683578}, {'photo_id': 1395116701, 'portfolio_id': 28683578}, {'photo_id': 1395116688, 'portfolio_id': 28683578}, {'photo_id': 1395116686, 'portfolio_id': 28683578}, {'photo_id': 1395116678, 'portfolio_id': 28683578}, {'photo_id': 1395116460, 'portfolio_id': 28683578}, {'photo_id': 1395116424, 'portfolio_id': 28683578}, {'photo_id': 1395116390, 'portfolio_id': 28683578}, {'photo_id': 1395116357, 'portfolio_id': 28683578}, {'photo_id': 1395116336, 'portfolio_id': 28683578}, {'photo_id': 1395116141, 'portfolio_id': 28683578}, {'photo_id': 1395116125, 'portfolio_id': 28683578}, {'photo_id': 1395116093, 'portfolio_id': 28683578}, {'photo_id': 1395116060, 'portfolio_id': 28683578}, {'photo_id': 1395115726, 'portfolio_id': 28683578}, {'photo_id': 1395115684, 'portfolio_id': 28683578}, {'photo_id': 1395115648, 'portfolio_id': 28683578}, {'photo_id': 1395115630, 'portfolio_id': 28683578}, {'photo_id': 1395115629, 'portfolio_id': 28683578}, {'photo_id': 1395115625, 'portfolio_id': 28683578}, {'photo_id': 1395115619, 'portfolio_id': 28683578}, {'photo_id': 1395115618, 'portfolio_id': 28683578}, {'photo_id': 1395115611, 'portfolio_id': 28683578}, {'photo_id': 1395115592, 'portfolio_id': 28683578}, {'photo_id': 1395115589, 'portfolio_id': 28683578}, {'photo_id': 1395115586, 'portfolio_id': 28683578}, {'photo_id': 1395115583, 'portfolio_id': 28683578}, {'photo_id': 1395115580, 'portfolio_id': 28683578}, {'photo_id': 1395115552, 'portfolio_id': 28683578}, {'photo_id': 1395115551, 'portfolio_id': 28683578}, {'photo_id': 1395115549, 'portfolio_id': 28683578}, {'photo_id': 1395115505, 'portfolio_id': 28683578}, {'photo_id': 1395115500, 'portfolio_id': 28683578}, {'photo_id': 1395115496, 'portfolio_id': 28683578}, {'photo_id': 1395115493, 'portfolio_id': 28683578}, {'photo_id': 1395115491, 'portfolio_id': 28683578}, {'photo_id': 1395115461, 'portfolio_id': 28683578}, {'photo_id': 1395115457, 'portfolio_id': 28683578}, {'photo_id': 1395115453, 'portfolio_id': 28683578}, {'photo_id': 1395115450, 'portfolio_id': 28683578}, {'photo_id': 1395115447, 'portfolio_id': 28683578}, {'photo_id': 1395115440, 'portfolio_id': 28683578}] map_portfolio_id_photo_id: {28683578: [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462, 1395117100, 1395117065, 1395117028, 1395116991, 1395116934, 1395116922, 1395116915, 1395116903, 1395116878, 1395116758, 1395116754, 1395116752, 1395116750, 1395116733, 1395116729, 1395116727, 1395116719, 1395116718, 1395116706, 1395116701, 1395116688, 1395116686, 1395116678, 1395116460, 1395116424, 1395116390, 1395116357, 1395116336, 1395116141, 1395116125, 1395116093, 1395116060, 1395115726, 1395115684, 1395115648, 1395115630, 1395115629, 1395115625, 1395115619, 1395115618, 1395115611, 1395115592, 1395115589, 1395115586, 1395115583, 1395115580, 1395115552, 1395115551, 1395115549, 1395115505, 1395115500, 1395115496, 1395115493, 1395115491, 1395115461, 1395115457, 1395115453, 1395115450, 1395115447, 1395115440]} ##### 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.017093181610107422 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 19 00:16:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28683578) 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 : 28683578 get user id for portfolio 28683578 get sub ptf for main ptf 28683578, type 3726 and hashtags ['Carton_gris', 'Teint_Dans_La_Masse', 'environnement', 'flou', 'autre_refus', 'cartonnette', 'mal_croppe', 'Carton_brun', 'metal', 'kraft', 'papier', 'plastique'] 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`=28683578 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','flou','autre_refus','cartonnette','mal_croppe','Carton_brun','metal','kraft','papier','plastique')) 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`=28683578 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','flou','autre_refus','cartonnette','mal_croppe','Carton_brun','metal','kraft','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28683578, 'sub_port_id': 28683583, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451776, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'environnement': {'main_port_id': 28683578, 'sub_port_id': 28683584, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451777, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'kraft': {'main_port_id': 28683578, 'sub_port_id': 28683585, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451778, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'plastique': {'main_port_id': 28683578, 'sub_port_id': 28683586, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451779, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'Carton_gris': {'main_port_id': 28683578, 'sub_port_id': 28683587, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451780, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'cartonnette': {'main_port_id': 28683578, 'sub_port_id': 28683588, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451781, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'mal_croppe': {'main_port_id': 28683578, 'sub_port_id': 28683589, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451782, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'papier': {'main_port_id': 28683578, 'sub_port_id': 28683590, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451783, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'flou': {'main_port_id': 28683578, 'sub_port_id': 28683591, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451784, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'Carton_brun': {'main_port_id': 28683578, 'sub_port_id': 28683592, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451785, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 28683578, 'sub_port_id': 28683593, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451786, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}, 'metal': {'main_port_id': 28683578, 'sub_port_id': 28683594, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451787, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28683583 , 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=28683578 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 (28683583) result : ((1395115594,), (1395116873,), (1395116875,), (1395116877,), (1395117187,), (1395117189,), (1395117965,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683584 , 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=28683578 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 (28683584) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683585 , 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=28683578 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 (28683585) result : ((1395116827,), (1395117227,), (1395117390,), (1395117392,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683586 , 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=28683578 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 (28683586) result : ((1395116825,), (1395116907,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683587 , 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=28683578 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 (28683587) result : ((1395116720,), (1395116721,), (1395116785,), (1395116884,), (1395116886,), (1395116888,), (1395116890,), (1395116892,), (1395116893,), (1395116894,), (1395116895,), (1395116896,), (1395117199,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683588 , 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=28683578 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 (28683588) result : ((1395116722,), (1395116723,), (1395116724,), (1395116726,), (1395116796,), (1395116798,), (1395116800,), (1395116898,), (1395116900,), (1395117209,), (1395117967,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683589 , 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=28683578 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 (28683589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683590 , 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=28683578 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 (28683590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683591 , 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=28683578 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 (28683591) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683592 , 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=28683578 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 (28683592) result : ((1395115600,), (1395116812,), (1395116814,), (1395116816,), (1395116904,), (1395116905,), (1395117218,), (1395117968,), (1395117969,), (1395117970,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683593 , 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=28683578 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 (28683593) result : ((1395115593,), (1395116778,), (1395116854,), (1395116857,), (1395117175,), (1395117376,), (1395117378,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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 28683594 , 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=28683578 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 (28683594) result : ((1395116908,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) 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 (1395117100,1395115500) 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`=28683578 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','flou','autre_refus','cartonnette','mal_croppe','Carton_brun','metal','kraft','papier','plastique')) 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`=28683578 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','flou','autre_refus','cartonnette','mal_croppe','Carton_brun','metal','kraft','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28683578, 'sub_port_id': 28683595, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451788, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'environnement': {'main_port_id': 28683578, 'sub_port_id': 28683596, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451789, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'kraft': {'main_port_id': 28683578, 'sub_port_id': 28683597, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451790, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'plastique': {'main_port_id': 28683578, 'sub_port_id': 28683598, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451791, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'Carton_gris': {'main_port_id': 28683578, 'sub_port_id': 28683599, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451792, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'cartonnette': {'main_port_id': 28683578, 'sub_port_id': 28683600, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451793, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'mal_croppe': {'main_port_id': 28683578, 'sub_port_id': 28683601, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451794, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'papier': {'main_port_id': 28683578, 'sub_port_id': 28683602, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451795, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'flou': {'main_port_id': 28683578, 'sub_port_id': 28683603, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451796, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'Carton_brun': {'main_port_id': 28683578, 'sub_port_id': 28683604, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451797, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28683578, 'sub_port_id': 28683605, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451798, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}, 'metal': {'main_port_id': 28683578, 'sub_port_id': 28683606, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19451799, 'last_updated_at': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 0, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 0, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683595,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683583 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28683606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28683594 lien utilise dans velours : https://marlene.fotonower.com/velours/28683595,28683596,28683597,28683598,28683599,28683600,28683601,28683602,28683603,28683604,28683605,28683606?tags=autre_refus,environnement,kraft,plastique,Carton_gris,cartonnette,mal_croppe,papier,flou,Carton_brun,Teint_Dans_La_Masse,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28683578]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] map_info['map_portfolio_photo'] : {28683578: [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462, 1395117100, 1395117065, 1395117028, 1395116991, 1395116934, 1395116922, 1395116915, 1395116903, 1395116878, 1395116758, 1395116754, 1395116752, 1395116750, 1395116733, 1395116729, 1395116727, 1395116719, 1395116718, 1395116706, 1395116701, 1395116688, 1395116686, 1395116678, 1395116460, 1395116424, 1395116390, 1395116357, 1395116336, 1395116141, 1395116125, 1395116093, 1395116060, 1395115726, 1395115684, 1395115648, 1395115630, 1395115629, 1395115625, 1395115619, 1395115618, 1395115611, 1395115592, 1395115589, 1395115586, 1395115583, 1395115580, 1395115552, 1395115551, 1395115549, 1395115505, 1395115500, 1395115496, 1395115493, 1395115491, 1395115461, 1395115457, 1395115453, 1395115450, 1395115447, 1395115440]} final : False mtd_id 4302 list_pids : [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] Looping around the photos to save general results len do output : 1 /28683578. 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, '4071775') ('4302', '28683578', '1395117983', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117981', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117980', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117966', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117957', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117941', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117923', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117888', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117876', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117874', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117652', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117612', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117572', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117538', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117501', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117462', None, None, None, None, None, '4071775') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '28683578', "{'autre_refus': 28683583, 'environnement': 28683584, 'kraft': 28683585, 'plastique': 28683586, 'Carton_gris': 28683587, 'cartonnette': 28683588, 'mal_croppe': 28683589, 'papier': 28683590, 'flou': 28683591, 'Carton_brun': 28683592, 'Teint_Dans_La_Masse': 28683593, 'metal': 28683594}", None, None, None, None, '4071775'), ('4302', '28683578', '1395117983', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117981', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117980', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117966', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117957', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117941', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117923', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117888', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117876', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117874', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117652', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117612', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117572', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117538', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117501', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117462', None, None, None, None, None, '4071775')] time used for this insertion : 0.017714977264404297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43938779830932617 time spend to save output : 0.017887115478515625 total time spend for step 1 : 0.4572749137878418 step2:final Wed Nov 19 00:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28683578) 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 28683578 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395115440,1395115461,1395115457,1395115453,1395115450,1395115447,1395115505,1395115500,1395115496,1395115493,1395115491,1395115619,1395115552,1395115618,1395115551,1395115611,1395115549,1395115592,1395115589,1395115586,1395115583,1395115580,1395115726,1395115684,1395115648,1395115630,1395115629,1395115625,1395116141,1395116125,1395116093,1395116060,1395116460,1395116424,1395116390,1395116357,1395116336,1395116706,1395116701,1395116688,1395116678,1395116686,1395116733,1395116729,1395116727,1395116719,1395116718,1395116758,1395116754,1395116752,1395116750,1395116934,1395116922,1395116915,1395116903,1395116878,1395117100,1395117065,1395117028,1395116991,1395117983,1395117652,1395117612,1395117981,1395117572,1395117980,1395117538,1395117966,1395117501,1395117957,1395117941,1395117462,1395117923,1395117888,1395117876,1395117874); 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([28683578]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} new output for save of step final : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] map_info['map_portfolio_photo'] : {28683578: [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462, 1395117100, 1395117065, 1395117028, 1395116991, 1395116934, 1395116922, 1395116915, 1395116903, 1395116878, 1395116758, 1395116754, 1395116752, 1395116750, 1395116733, 1395116729, 1395116727, 1395116719, 1395116718, 1395116706, 1395116701, 1395116688, 1395116686, 1395116678, 1395116460, 1395116424, 1395116390, 1395116357, 1395116336, 1395116141, 1395116125, 1395116093, 1395116060, 1395115726, 1395115684, 1395115648, 1395115630, 1395115629, 1395115625, 1395115619, 1395115618, 1395115611, 1395115592, 1395115589, 1395115586, 1395115583, 1395115580, 1395115552, 1395115551, 1395115549, 1395115505, 1395115500, 1395115496, 1395115493, 1395115491, 1395115461, 1395115457, 1395115453, 1395115450, 1395115447, 1395115440]} final : False mtd_id 4302 list_pids : [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] Looping around the photos to save general results len do output : 16 /1395117983.Didn't retrieve data . /1395117981.Didn't retrieve data . /1395117980.Didn't retrieve data . /1395117966.Didn't retrieve data . /1395117957.Didn't retrieve data . /1395117941.Didn't retrieve data . /1395117923.Didn't retrieve data . /1395117888.Didn't retrieve data . /1395117876.Didn't retrieve data . /1395117874.Didn't retrieve data . /1395117652.Didn't retrieve data . /1395117612.Didn't retrieve data . /1395117572.Didn't retrieve data . /1395117538.Didn't retrieve data . /1395117501.Didn't retrieve data . /1395117462.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, '4071775') ('4302', '28683578', '1395117983', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117981', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117980', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117966', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117957', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117941', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117923', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117888', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117876', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117874', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117652', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117612', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117572', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117538', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117501', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117462', None, None, None, None, None, '4071775') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '28683578', '1395117983', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117981', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117980', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117966', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117957', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117941', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117923', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117888', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117876', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117874', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117652', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117612', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117572', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117538', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117501', '0.07075335644801932', None, None, None, None, '4071775'), ('4302', '28683578', '1395117462', '0.07075335644801932', None, None, None, None, '4071775')] time used for this insertion : 0.017633914947509766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0690908432006836 time spend to save output : 0.018001317977905273 total time spend for step 2 : 0.08709216117858887 step3:velours_tree Wed Nov 19 00:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28683578: [{'autre_refus': 28683583, 'environnement': 28683584, 'kraft': 28683585, 'plastique': 28683586, 'Carton_gris': 28683587, 'cartonnette': 28683588, 'mal_croppe': 28683589, 'papier': 28683590, 'flou': 28683591, 'Carton_brun': 28683592, 'Teint_Dans_La_Masse': 28683593, 'metal': 28683594}]} input_args_next_step : {28683578: ()} output_args : {28683578: [{'autre_refus': 28683583, 'environnement': 28683584, 'kraft': 28683585, 'plastique': 28683586, 'Carton_gris': 28683587, 'cartonnette': 28683588, 'mal_croppe': 28683589, 'papier': 28683590, 'flou': 28683591, 'Carton_brun': 28683592, 'Teint_Dans_La_Masse': 28683593, 'metal': 28683594}]} args : 28683578 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 : ({'autre_refus': 28683583, 'environnement': 28683584, 'kraft': 28683585, 'plastique': 28683586, 'Carton_gris': 28683587, 'cartonnette': 28683588, 'mal_croppe': 28683589, 'papier': 28683590, 'flou': 28683591, 'Carton_brun': 28683592, 'Teint_Dans_La_Masse': 28683593, 'metal': 28683594},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28683578) 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([28683578]) 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.29006123542785645 time spend to save output : 7.295608520507812e-05 total time spend for step 3 : 0.2901341915130615 step4:send_mail_cod Wed Nov 19 00:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} input_args_next_step : {1395117983: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117983 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117981 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117980 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117966 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117957 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117941 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117923 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117888 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117876 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117874 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117652 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117612 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117572 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117538 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117501 depend.output_id : 0 input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ()} output_args : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',)} args : 1395117462 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 : {28683578: [{'autre_refus': 28683583, 'environnement': 28683584, 'kraft': 28683585, 'plastique': 28683586, 'Carton_gris': 28683587, 'cartonnette': 28683588, 'mal_croppe': 28683589, 'papier': 28683590, 'flou': 28683591, 'Carton_brun': 28683592, 'Teint_Dans_La_Masse': 28683593, 'metal': 28683594}]} input_args_next_step : {1395117983: ('0.07075335644801932',), 1395117981: ('0.07075335644801932',), 1395117980: ('0.07075335644801932',), 1395117966: ('0.07075335644801932',), 1395117957: ('0.07075335644801932',), 1395117941: ('0.07075335644801932',), 1395117923: ('0.07075335644801932',), 1395117888: ('0.07075335644801932',), 1395117876: ('0.07075335644801932',), 1395117874: ('0.07075335644801932',), 1395117652: ('0.07075335644801932',), 1395117612: ('0.07075335644801932',), 1395117572: ('0.07075335644801932',), 1395117538: ('0.07075335644801932',), 1395117501: ('0.07075335644801932',), 1395117462: ('0.07075335644801932',), 28683578: ()} output_args : {28683578: [{'autre_refus': 28683583, 'environnement': 28683584, 'kraft': 28683585, 'plastique': 28683586, 'Carton_gris': 28683587, 'cartonnette': 28683588, 'mal_croppe': 28683589, 'papier': 28683590, 'flou': 28683591, 'Carton_brun': 28683592, 'Teint_Dans_La_Masse': 28683593, 'metal': 28683594}]} args : 28683578 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 :17, first value : ('0.07075335644801932',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28683578) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1395117983,1395117981,1395117980,1395117966,1395117957,1395117941,1395117923,1395117888,1395117876,1395117874,1395117652,1395117612,1395117572,1395117538,1395117501,1395117462) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395117462 begin to download photo : 1395117612 begin to download photo : 1395117888 begin to download photo : 1395117966 download finish for photo 1395117966 begin to download photo : 1395117980 download finish for photo 1395117888 begin to download photo : 1395117923 download finish for photo 1395117462 begin to download photo : 1395117501 download finish for photo 1395117612 begin to download photo : 1395117652 download finish for photo 1395117501 begin to download photo : 1395117538 download finish for photo 1395117923 begin to download photo : 1395117941 download finish for photo 1395117980 begin to download photo : 1395117981 download finish for photo 1395117652 begin to download photo : 1395117874 download finish for photo 1395117981 begin to download photo : 1395117983 download finish for photo 1395117941 begin to download photo : 1395117957 download finish for photo 1395117874 begin to download photo : 1395117876 download finish for photo 1395117538 begin to download photo : 1395117572 download finish for photo 1395117572 download finish for photo 1395117876 download finish for photo 1395117957 download finish for photo 1395117983 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P28683578_19-11-2025_00_16_58.pdf 28683583 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683583 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395115594: '1763507104_2442780_1395115551_da3e8a5c25228b2ffef6e8f4a3f8fdcb_rle_crop_4038128548_0.png', 1395116873: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137733_0.png', 1395116875: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137741_0.png', 1395116877: '1763507487_2451964_1395116678_c382c186439cbcd0c4aa4520a9727dc8_rle_crop_4038137808_0.png', 1395117187: '1763507586_2453992_1395116752_135fcc86fbd021e57bcb5eb79148eaff_rle_crop_4038137966_0.png', 1395117189: '1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137983_0.png', 1395117965: '1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138470_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/06604a1f94700bbf728c3687f7df385d_50185152.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/03fa6469bed44b375156a31428db8c5e_12615456.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/969fc559ef98f95f66657ba224ce88bb_55872724.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/a9cc2b1ce3f15fef3c163435d2f7d35a_42593569.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/7846b3ea5a4eb087b4a124e83582c8f9_74686776.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/661c282861ffa23761a270a109f5df8f_78487818.png change filename to text .imagette286835831763507818/ imagette286835831763507818/1763507586_2453992_1395116752_135fcc86fbd021e57bcb5eb79148eaff_rle_crop_4038137966_0.png.png imagette286835831763507818/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137741_0.png.png imagette286835831763507818/1763507104_2442780_1395115551_da3e8a5c25228b2ffef6e8f4a3f8fdcb_rle_crop_4038128548_0.png.png imagette286835831763507818/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137733_0.png.png imagette286835831763507818/1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137983_0.png.png imagette286835831763507818/1763507487_2451964_1395116678_c382c186439cbcd0c4aa4520a9727dc8_rle_crop_4038137808_0.png.png imagette286835831763507818/1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138470_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/7fc2102a92ac0c93f4e4282cd4e861f2_7731047.png imagette286835831763507818 28683585 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395116827: '1763507467_2451322_1395115625_264de41ae726e18669279966d1ce71cb_rle_crop_4038137686_0.png', 1395117227: '1763507586_2453992_1395116752_135fcc86fbd021e57bcb5eb79148eaff_rle_crop_4038137961_0.png', 1395117390: '1763507606_2454417_1395116727_ed9f92223824cbaca171aa597ecfcf2b_rle_crop_4038138139_0.png', 1395117392: '1763507606_2454417_1395116719_5dc3fa1bfa2766efcda472bcb4487115_rle_crop_4038138159_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/86f91bd87dfd41984d5f989ce8de0688_5258587.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/c2ce116985dc175b70a425a5ac6e4673_16978679.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/1242cb640d779230b7b2651fbf3202f9_62369016.png change filename to text .imagette286835851763507818/ imagette286835851763507818/1763507606_2454417_1395116727_ed9f92223824cbaca171aa597ecfcf2b_rle_crop_4038138139_0.png.png imagette286835851763507818/1763507606_2454417_1395116719_5dc3fa1bfa2766efcda472bcb4487115_rle_crop_4038138159_0.png.png imagette286835851763507818/1763507467_2451322_1395115625_264de41ae726e18669279966d1ce71cb_rle_crop_4038137686_0.png.png imagette286835851763507818/1763507586_2453992_1395116752_135fcc86fbd021e57bcb5eb79148eaff_rle_crop_4038137961_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/f2970bf599eb9c5595c866507dfac99b_45851614.png imagette286835851763507818 28683586 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395116825: '1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137648_0.png', 1395116907: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137748_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/60cee2798c9429cea581d1c67946fa99_74454527.png change filename to text .imagette286835861763507819/ imagette286835861763507819/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137748_0.png.png imagette286835861763507819/1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137648_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/0f955bf4c89ea5570ffd888c7344431b_63384219.png imagette286835861763507819 28683588 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395116722: '1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130114_0.png', 1395116723: '1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130123_0.png', 1395116724: '1763507365_2448068_1395116093_b53794a367bf78f60f5db414acecf11b_rle_crop_4038130129_0.png', 1395116726: '1763507365_2448068_1395116093_b53794a367bf78f60f5db414acecf11b_rle_crop_4038130132_0.png', 1395116796: '1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137641_0.png', 1395116798: '1763507467_2451322_1395115629_db621dc72f60c7e14a4d6f9e90972d19_rle_crop_4038137673_0.png', 1395116800: '1763507467_2451322_1395115625_264de41ae726e18669279966d1ce71cb_rle_crop_4038137684_0.png', 1395116898: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137737_0.png', 1395116900: '1763507487_2451964_1395116678_c382c186439cbcd0c4aa4520a9727dc8_rle_crop_4038137796_0.png', 1395117209: '1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137985_0.png', 1395117967: '1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138479_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/408859a14a324dd88f02581309aa1e37_51907162.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/9100ff475fc387b9273347b7c7095635_52354511.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/08b23b5bebf06d7bdaf31836820dfee9_93473490.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/a987ec35f8ac5fa7142490f33c9d5ea9_38428100.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/77eef30990b2c3519ddf92b3fa470754_32216607.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/445c385bc7014665ca1fdb70f777f8d6_58881557.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/5f9e1103e6b02425b693a6e4dd213f7d_19652544.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/56e5583bd0910dafaf6819cbb13dc42f_66440470.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/b47374961c8b0a68925dda43a50d99c4_55793451.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/b6c3542b183365cd17d6ba18446ec53a_94251438.png change filename to text .imagette286835881763507819/ imagette286835881763507819/1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138479_0.png.png imagette286835881763507819/1763507365_2448068_1395116093_b53794a367bf78f60f5db414acecf11b_rle_crop_4038130132_0.png.png imagette286835881763507819/1763507467_2451322_1395115625_264de41ae726e18669279966d1ce71cb_rle_crop_4038137684_0.png.png imagette286835881763507819/1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130123_0.png.png imagette286835881763507819/1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137641_0.png.png imagette286835881763507819/1763507365_2448068_1395116093_b53794a367bf78f60f5db414acecf11b_rle_crop_4038130129_0.png.png imagette286835881763507819/1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137985_0.png.png imagette286835881763507819/1763507467_2451322_1395115629_db621dc72f60c7e14a4d6f9e90972d19_rle_crop_4038137673_0.png.png imagette286835881763507819/1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130114_0.png.png imagette286835881763507819/1763507487_2451964_1395116678_c382c186439cbcd0c4aa4520a9727dc8_rle_crop_4038137796_0.png.png imagette286835881763507819/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137737_0.png.png imagette286835891763507820/ imagette286835911763507820/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/5fa30054c097c2c75a33a7b7856e936e_88398933.png imagette286835881763507819 28683589 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286835891763507820 28683591 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286835911763507820 28683594 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395116908: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137740_0.png'} change filename to text .imagette286835941763507820/ imagette286835941763507820/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137740_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/69daa78268ccea4bfabc896ce19d395d_32187288.png imagette286835941763507820 28683587 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395116720: '1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130115_0.png', 1395116721: '1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130118_0.png', 1395116785: '1763507467_2451322_1395116141_92d2c26b78bb17298f1f209ca4be1f15_rle_crop_4038137571_0.png', 1395116884: '1763507487_2451964_1395116733_8e2c4be0106ab396fb259e06941707a6_rle_crop_4038137715_0.png', 1395116886: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137743_0.png', 1395116888: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137745_0.png', 1395116890: '1763507487_2451964_1395116688_94bc380dc4ad2e37d54fbec4fb9dc335_rle_crop_4038137761_0.png', 1395116892: '1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137783_0.png', 1395116893: '1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137780_0.png', 1395116894: '1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137786_0.png', 1395116895: '1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137778_0.png', 1395116896: '1763507487_2451964_1395116678_c382c186439cbcd0c4aa4520a9727dc8_rle_crop_4038137809_0.png', 1395117199: '1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137984_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/ad2c7952264f55f2b83ac9aa471904c2_31871908.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/7e25fe6434b281060dcaa8e7d110093d_26993637.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/74dba8e3f5cfa1d46973813d453e1b54_15221390.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/ad41948e29d4432ecb6b404b4da5fe62_82507634.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/d960f25f692f286c50f4c1f222bfff38_53806162.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/23c27035df69b3fc5032a35422eae39f_88686185.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/637ec07fca9b99ebf730e3a469d0a96e_76203049.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/a863b9d8399e50d259a9f990cc8704e8_22250055.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/584d6dc8416aa1c3fb683160b7b1d92f_5351606.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/3fbc94882db97b6957c28644654e22ad_36380911.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/923bce243efd27d1cd44a5e9b183bce3_34644498.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/63b084aa543c7875ba9e86b5153fa02e_11406821.png change filename to text .imagette286835871763507820/ imagette286835871763507820/1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130115_0.png.png imagette286835871763507820/1763507487_2451964_1395116678_c382c186439cbcd0c4aa4520a9727dc8_rle_crop_4038137809_0.png.png imagette286835871763507820/1763507487_2451964_1395116688_94bc380dc4ad2e37d54fbec4fb9dc335_rle_crop_4038137761_0.png.png imagette286835871763507820/1763507487_2451964_1395116733_8e2c4be0106ab396fb259e06941707a6_rle_crop_4038137715_0.png.png imagette286835871763507820/1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137786_0.png.png imagette286835871763507820/1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137780_0.png.png imagette286835871763507820/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137743_0.png.png imagette286835871763507820/1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137783_0.png.png imagette286835871763507820/1763507365_2448068_1395116125_fc5583088c599ee14d63bb0d8bbedf11_rle_crop_4038130118_0.png.png imagette286835871763507820/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137745_0.png.png imagette286835871763507820/1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137984_0.png.png imagette286835871763507820/1763507467_2451322_1395116141_92d2c26b78bb17298f1f209ca4be1f15_rle_crop_4038137571_0.png.png imagette286835871763507820/1763507487_2451964_1395116686_ba14c5620b8330ad624de2e712c3286e_rle_crop_4038137778_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/c793fdf8106501fe52bb15af462f56d2_413011.png imagette286835871763507820 28683592 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683592 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395115600: '1763507104_2442780_1395115549_f560375cc5f06ad238be77c670ac219c_rle_crop_4038128567_0.png', 1395116812: '1763507467_2451322_1395115684_5a807277e24e9ab4c4aa31dfd11a859b_rle_crop_4038137608_0.png', 1395116814: '1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137645_0.png', 1395116816: '1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137643_0.png', 1395116904: '1763507487_2451964_1395116733_8e2c4be0106ab396fb259e06941707a6_rle_crop_4038137716_0.png', 1395116905: '1763507487_2451964_1395116688_94bc380dc4ad2e37d54fbec4fb9dc335_rle_crop_4038137765_0.png', 1395117218: '1763507586_2453992_1395116752_135fcc86fbd021e57bcb5eb79148eaff_rle_crop_4038137967_0.png', 1395117968: '1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138483_0.png', 1395117969: '1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138484_0.png', 1395117970: '1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/7df472ac45764968c9fa9a7811acbdf2_49018190.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/f84ac3b65e4c88f441dcd6df10d81f1b_35434851.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/821aa407ae83d2b6029ab4f807a96059_94609943.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/4d0f614bf90ecff6e538a58ce270df31_75193768.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/588a863b8dc8ed3a60612381672b8702_90571822.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/93411fe9ce7b56250a4c2867fa7976ba_89308471.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/d04e4f7949b82805fe9e4fd2dda5761b_37097946.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/0f576092784b850c6d63401848260f0b_20976186.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/fe48f43e8dd1a598ccee0b9c86b382a6_37489096.png change filename to text .imagette286835921763507821/ imagette286835921763507821/1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138474_0.png.png imagette286835921763507821/1763507467_2451322_1395115684_5a807277e24e9ab4c4aa31dfd11a859b_rle_crop_4038137608_0.png.png imagette286835921763507821/1763507487_2451964_1395116733_8e2c4be0106ab396fb259e06941707a6_rle_crop_4038137716_0.png.png imagette286835921763507821/1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137645_0.png.png imagette286835921763507821/1763507467_2451322_1395115630_588ab4e78912ce7f160678ee7898db21_rle_crop_4038137643_0.png.png imagette286835921763507821/1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138483_0.png.png imagette286835921763507821/1763507487_2451964_1395116688_94bc380dc4ad2e37d54fbec4fb9dc335_rle_crop_4038137765_0.png.png imagette286835921763507821/1763507586_2453992_1395116752_135fcc86fbd021e57bcb5eb79148eaff_rle_crop_4038137967_0.png.png imagette286835921763507821/1763507104_2442780_1395115549_f560375cc5f06ad238be77c670ac219c_rle_crop_4038128567_0.png.png imagette286835921763507821/1763507725_2458292_1395117065_a2e28cd53718b30816f7ce158d74e5a2_rle_crop_4038138484_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/2b52c040c5770e78544847fcd41a6d07_42436699.png imagette286835921763507821 28683593 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395115593: '1763507104_2442780_1395115551_da3e8a5c25228b2ffef6e8f4a3f8fdcb_rle_crop_4038128553_0.png', 1395116778: '1763507467_2451322_1395115629_db621dc72f60c7e14a4d6f9e90972d19_rle_crop_4038137667_0.png', 1395116854: '1763507487_2451964_1395116733_8e2c4be0106ab396fb259e06941707a6_rle_crop_4038137723_0.png', 1395116857: '1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137742_0.png', 1395117175: '1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137991_0.png', 1395117376: '1763507606_2454417_1395116729_300af8b276b0bfc769b7af6a125a9bf4_rle_crop_4038138129_0.png', 1395117378: '1763507606_2454417_1395116719_5dc3fa1bfa2766efcda472bcb4487115_rle_crop_4038138158_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/ff71ef4c25ab9dfed00e4d5ada6c111b_67973630.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/9e32e858ed5b1001ac0d8fc46657e8f2_63254149.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/abc9525b4cebe84b0794970e726c99e9_60249352.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/7ba0fb7a034fb53bd255c9aa20a98ab4_39449724.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/9e75ea919cb4cd33a2adc8aadaaac136_26131106.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/5eb124520796c7bdbe5e9d402e8ba1d8_21630044.png change filename to text .imagette286835931763507821/ imagette286835931763507821/1763507467_2451322_1395115629_db621dc72f60c7e14a4d6f9e90972d19_rle_crop_4038137667_0.png.png imagette286835931763507821/1763507606_2454417_1395116719_5dc3fa1bfa2766efcda472bcb4487115_rle_crop_4038138158_0.png.png imagette286835931763507821/1763507586_2453992_1395116750_1b883d6c938491333d7bff9f3c40e94f_rle_crop_4038137991_0.png.png imagette286835931763507821/1763507487_2451964_1395116701_40b6c65763c7f6323062024d4a8b29ca_rle_crop_4038137742_0.png.png imagette286835931763507821/1763507606_2454417_1395116729_300af8b276b0bfc769b7af6a125a9bf4_rle_crop_4038138129_0.png.png imagette286835931763507821/1763507104_2442780_1395115551_da3e8a5c25228b2ffef6e8f4a3f8fdcb_rle_crop_4038128553_0.png.png imagette286835931763507821/1763507487_2451964_1395116733_8e2c4be0106ab396fb259e06941707a6_rle_crop_4038137723_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/e2539113022be5ffd9c8a8b08a685b0f_81529675.png imagette286835931763507821 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28683578 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28683595,28683596,28683597,28683598,28683599,28683600,28683601,28683602,28683603,28683604,28683605,28683606?tags=autre_refus,environnement,kraft,plastique,Carton_gris,cartonnette,mal_croppe,papier,flou,Carton_brun,Teint_Dans_La_Masse,metal your option no_mail is active, we will not send the real mail to your client args[1395117983] : ('0.07075335644801932',) no score found for photo 1395117983 We are sending mail with results at report@fotonower.com args[1395117981] : ('0.07075335644801932',) no score found for photo 1395117981 We are sending mail with results at report@fotonower.com args[1395117980] : ('0.07075335644801932',) no score found for photo 1395117980 We are sending mail with results at report@fotonower.com args[1395117966] : ('0.07075335644801932',) no score found for photo 1395117966 We are sending mail with results at report@fotonower.com args[1395117957] : ('0.07075335644801932',) no score found for photo 1395117957 We are sending mail with results at report@fotonower.com args[1395117941] : ('0.07075335644801932',) no score found for photo 1395117941 We are sending mail with results at report@fotonower.com args[1395117923] : ('0.07075335644801932',) no score found for photo 1395117923 We are sending mail with results at report@fotonower.com args[1395117888] : ('0.07075335644801932',) no score found for photo 1395117888 We are sending mail with results at report@fotonower.com args[1395117876] : ('0.07075335644801932',) no score found for photo 1395117876 We are sending mail with results at report@fotonower.com args[1395117874] : ('0.07075335644801932',) no score found for photo 1395117874 We are sending mail with results at report@fotonower.com args[1395117652] : ('0.07075335644801932',) no score found for photo 1395117652 We are sending mail with results at report@fotonower.com args[1395117612] : ('0.07075335644801932',) no score found for photo 1395117612 We are sending mail with results at report@fotonower.com args[1395117572] : ('0.07075335644801932',) no score found for photo 1395117572 We are sending mail with results at report@fotonower.com args[1395117538] : ('0.07075335644801932',) no score found for photo 1395117538 We are sending mail with results at report@fotonower.com args[1395117501] : ('0.07075335644801932',) no score found for photo 1395117501 We are sending mail with results at report@fotonower.com args[1395117462] : ('0.07075335644801932',) no score found for photo 1395117462 We are sending mail with results at report@fotonower.com refus_total : 0.07075335644801932 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683578 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_P28683578_19-11-2025_00_16_58.pdf results_Auto_P28683578_19-11-2025_00_16_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_00_16_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28683578','results_Auto_P28683578_19-11-2025_00_16_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_00_16_58.pdf','pdf','','0.3','0.07075335644801932') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28683578]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] map_info['map_portfolio_photo'] : {28683578: [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462, 1395117100, 1395117065, 1395117028, 1395116991, 1395116934, 1395116922, 1395116915, 1395116903, 1395116878, 1395116758, 1395116754, 1395116752, 1395116750, 1395116733, 1395116729, 1395116727, 1395116719, 1395116718, 1395116706, 1395116701, 1395116688, 1395116686, 1395116678, 1395116460, 1395116424, 1395116390, 1395116357, 1395116336, 1395116141, 1395116125, 1395116093, 1395116060, 1395115726, 1395115684, 1395115648, 1395115630, 1395115629, 1395115625, 1395115619, 1395115618, 1395115611, 1395115592, 1395115589, 1395115586, 1395115583, 1395115580, 1395115552, 1395115551, 1395115549, 1395115505, 1395115500, 1395115496, 1395115493, 1395115491, 1395115461, 1395115457, 1395115453, 1395115450, 1395115447, 1395115440]} final : False mtd_id 4302 list_pids : [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] 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, '4071775') ('4302', '28683578', '1395117983', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117981', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117980', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117966', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117957', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117941', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117923', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117888', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117876', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117874', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117652', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117612', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117572', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117538', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117501', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117462', None, None, None, None, None, '4071775') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '28683578', '1395117983', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117981', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117980', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117966', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117957', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117941', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117923', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117888', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117876', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117874', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117652', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117612', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117572', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117538', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117501', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117462', None, None, None, None, None, '4071775')] time used for this insertion : 0.015886783599853516 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.813280344009399 time spend to save output : 0.01617717742919922 total time spend for step 4 : 6.829457521438599 step5:split_time_score Wed Nov 19 00:17:04 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 : ['28683578'] 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 : [('28683578',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28683578) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395117462: {'path': 'temp/1763507817_269267_1395117462_7d14dabe2dc6c323e6bc74de60067ac6.jpg', 'extension': 'jpg'}, 1395117501: {'path': 'temp/1763507817_269267_1395117501_8f9964ed3e3f98f1de20898b2962a135.jpg', 'extension': 'jpg'}, 1395117538: {'path': 'temp/1763507817_269267_1395117538_37e231f9f517e80a18210bd96b4bcda6.jpg', 'extension': 'jpg'}, 1395117572: {'path': 'temp/1763507817_269267_1395117572_9fc1a1b3a7400ac82eb6293eea2e067c.jpg', 'extension': 'jpg'}, 1395117612: {'path': 'temp/1763507817_269267_1395117612_c7c797c15464e690ce2e156462b518ff.jpg', 'extension': 'jpg'}, 1395117652: {'path': 'temp/1763507817_269267_1395117652_f9797b4f0df8f606c8d2fe75e9d48adc.jpg', 'extension': 'jpg'}, 1395117874: {'path': 'temp/1763507817_269267_1395117874_b21a007b214a9c4acb8492b894fa49c0.jpg', 'extension': 'jpg'}, 1395117876: {'path': 'temp/1763507817_269267_1395117876_eeab39b7fa027f961583bb7ed46bd6b8.jpg', 'extension': 'jpg'}, 1395117888: {'path': 'temp/1763507817_269267_1395117888_b7e5a53a05c956712138398da0e21d81.jpg', 'extension': 'jpg'}, 1395117923: {'path': 'temp/1763507817_269267_1395117923_d304af3c58887b3a3c2400e05fc9e0b4.jpg', 'extension': 'jpg'}, 1395117941: {'path': 'temp/1763507817_269267_1395117941_5b320c9085366a35c74067b7e9331e9c.jpg', 'extension': 'jpg'}, 1395117957: {'path': 'temp/1763507817_269267_1395117957_325b5182bd29a16ea584476d12d0e167.jpg', 'extension': 'jpg'}, 1395117966: {'path': 'temp/1763507817_269267_1395117966_24e742f172b93b4c008fc99ad3bdf5d4.jpg', 'extension': 'jpg'}, 1395117980: {'path': 'temp/1763507817_269267_1395117980_c6c9bbb6576ca74face0b8ec9aba3783.jpg', 'extension': 'jpg'}, 1395117981: {'path': 'temp/1763507817_269267_1395117981_3aa924b9f7b7563b7650d35a0c115527.jpg', 'extension': 'jpg'}, 1395117983: {'path': 'temp/1763507817_269267_1395117983_785e3ed8d544fe900bdd9c61abedf726.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 = 28683578; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28683578 group by h (('00', 76),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28683578 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 (28683578) 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 (28683578) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19112025 28683578 Nombre de photos uploadées : 76 / 23040 (0%) 19112025 28683578 Nombre de photos taguées (types de déchets): 0 / 76 (0%) 19112025 28683578 Nombre de photos taguées (volume) : 0 / 76 (0%) [{'photo_id': 1395115440, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/4de4ce3383044d355270bef008870c46.jpg', 'username': None, 'uploaded_at': 1763506913, 'text': 'image_19112025_00_00_24_10152.jpg'}, {'photo_id': 1395115461, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/5d0233f0412116e972982c367f5a4ded.jpg', 'username': None, 'uploaded_at': 1763506928, 'text': 'image_19112025_00_00_43_10135.jpg'}, {'photo_id': 1395115457, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/0d656fd7bc1c34d17e64a30423552cce.jpg', 'username': None, 'uploaded_at': 1763506928, 'text': 'image_19112025_00_01_14_10134.jpg'}, {'photo_id': 1395115453, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/71b069644f4ef47fa48d60db55d94406.jpg', 'username': None, 'uploaded_at': 1763506928, 'text': 'image_19112025_00_01_24_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035283565521240234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 28683578, '2025-11-19' ) 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-11-19' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2606608,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21979427337646484 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= 2606608 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2606608, 'dashboard_run_id': 2613684, 'mtr_portfolio_id': 28683578, 'dashboard_result_id': 17467126, '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_P28683578_19-11-2025_00_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, '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 = 28683578 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': 4071775, 'mtr_portfolio_id': 28683578, 'created_at': datetime.datetime(2025, 11, 19, 0, 16, 57), 'result': '0.07075335644801932', 'result_long': None, 'result_double': None}] Qualite : 0.07075335644801932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28683578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28683578 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_P28683578_19-11-2025_00_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, 'pht': 3726}}" where mtr_portfolio_id = 28683578 and dashboard_run_id = 2613684 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`=28683578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17467126, 0.07075335644801932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_00_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, '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 (28683578) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19112025': {'nb_upload': 76, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28683578]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] map_info['map_portfolio_photo'] : {28683578: [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462, 1395117100, 1395117065, 1395117028, 1395116991, 1395116934, 1395116922, 1395116915, 1395116903, 1395116878, 1395116758, 1395116754, 1395116752, 1395116750, 1395116733, 1395116729, 1395116727, 1395116719, 1395116718, 1395116706, 1395116701, 1395116688, 1395116686, 1395116678, 1395116460, 1395116424, 1395116390, 1395116357, 1395116336, 1395116141, 1395116125, 1395116093, 1395116060, 1395115726, 1395115684, 1395115648, 1395115630, 1395115629, 1395115625, 1395115619, 1395115618, 1395115611, 1395115592, 1395115589, 1395115586, 1395115583, 1395115580, 1395115552, 1395115551, 1395115549, 1395115505, 1395115500, 1395115496, 1395115493, 1395115491, 1395115461, 1395115457, 1395115453, 1395115450, 1395115447, 1395115440]} final : True mtd_id 4302 list_pids : [1395117983, 1395117981, 1395117980, 1395117966, 1395117957, 1395117941, 1395117923, 1395117888, 1395117876, 1395117874, 1395117652, 1395117612, 1395117572, 1395117538, 1395117501, 1395117462] Looping around the photos to save general results len do output : 1 /28683578Didn'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, '4071775') ('4302', '28683578', '1395117983', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117981', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117980', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117966', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117957', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117941', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117923', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117888', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117876', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117874', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117652', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117612', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117572', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117538', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117501', None, None, None, None, None, '4071775') ('4302', None, None, None, None, None, None, None, '4071775') ('4302', '28683578', '1395117462', None, None, None, None, None, '4071775') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '28683578', 'None', None, None, None, None, '4071775'), ('4302', '28683578', '1395117983', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117981', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117980', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117966', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117957', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117941', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117923', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117888', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117876', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117874', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117652', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117612', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117572', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117538', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117501', None, None, None, None, None, '4071775'), ('4302', '28683578', '1395117462', None, None, None, None, None, '4071775')] time used for this insertion : 0.015387773513793945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.391965389251709 time spend to save output : 0.01559305191040039 total time spend for step 5 : 0.4075584411621094 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 (4071775) 2.17user 2.52system 0:09.40elapsed 49%CPU (0avgtext+0avgdata 159592maxresident)k 544inputs+18336outputs (3major+68416minor)pagefaults 0swaps