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 : 165361 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 (3715693) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3715693) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815062 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3715693'] with mtr_portfolio_ids : ['26815062'] and first list_photo_ids : [] new path : /proc/165361/ Name: python3 Umask: 0002 State: R (running) Tgid: 165361 Ngid: 0 Pid: 165361 PPid: 165360 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 165361 NSpid: 165361 NSpgid: 163093 NSsid: 163093 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98552 kB VmRSS: 98552 kB RssAnon: 60176 kB RssFile: 38376 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '165361', 'Ngid': '0', 'Pid': '165361', 'PPid': '165360', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '165361', 'NSpid': '165361', 'NSpgid': '163093', 'NSsid': '163093', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98552 kB', 'VmRSS': '98552 kB', 'RssAnon': '60176 kB', 'RssFile': '38376 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '165361', '1107252', '0', '1107252', '866004', '98552', b'', 'marlene', '3715693') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26815062) 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 (3715693 ) ) 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 (26815062) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383590095, 'portfolio_id': 26815062}, {'photo_id': 1383590078, 'portfolio_id': 26815062}, {'photo_id': 1383590051, 'portfolio_id': 26815062}, {'photo_id': 1383589952, 'portfolio_id': 26815062}, {'photo_id': 1383589923, 'portfolio_id': 26815062}, {'photo_id': 1383589895, 'portfolio_id': 26815062}, {'photo_id': 1383589867, 'portfolio_id': 26815062}, {'photo_id': 1383589840, 'portfolio_id': 26815062}, {'photo_id': 1383589818, 'portfolio_id': 26815062}, {'photo_id': 1383589515, 'portfolio_id': 26815062}, {'photo_id': 1383589492, 'portfolio_id': 26815062}, {'photo_id': 1383589468, 'portfolio_id': 26815062}, {'photo_id': 1383589436, 'portfolio_id': 26815062}, {'photo_id': 1383589408, 'portfolio_id': 26815062}, {'photo_id': 1383589034, 'portfolio_id': 26815062}, {'photo_id': 1383589009, 'portfolio_id': 26815062}, {'photo_id': 1383588984, 'portfolio_id': 26815062}, {'photo_id': 1383588697, 'portfolio_id': 26815062}, {'photo_id': 1383588685, 'portfolio_id': 26815062}, {'photo_id': 1383588681, 'portfolio_id': 26815062}, {'photo_id': 1383588679, 'portfolio_id': 26815062}, {'photo_id': 1383588677, 'portfolio_id': 26815062}, {'photo_id': 1383588662, 'portfolio_id': 26815062}, {'photo_id': 1383588658, 'portfolio_id': 26815062}, {'photo_id': 1383588654, 'portfolio_id': 26815062}, {'photo_id': 1383588652, 'portfolio_id': 26815062}, {'photo_id': 1383588651, 'portfolio_id': 26815062}, {'photo_id': 1383588649, 'portfolio_id': 26815062}, {'photo_id': 1383588626, 'portfolio_id': 26815062}, {'photo_id': 1383588625, 'portfolio_id': 26815062}, {'photo_id': 1383588624, 'portfolio_id': 26815062}, {'photo_id': 1383588534, 'portfolio_id': 26815062}, {'photo_id': 1383588508, 'portfolio_id': 26815062}, {'photo_id': 1383588504, 'portfolio_id': 26815062}, {'photo_id': 1383588495, 'portfolio_id': 26815062}, {'photo_id': 1383588482, 'portfolio_id': 26815062}, {'photo_id': 1383588476, 'portfolio_id': 26815062}, {'photo_id': 1383588474, 'portfolio_id': 26815062}, {'photo_id': 1383588448, 'portfolio_id': 26815062}, {'photo_id': 1383588445, 'portfolio_id': 26815062}, {'photo_id': 1383588442, 'portfolio_id': 26815062}, {'photo_id': 1383588440, 'portfolio_id': 26815062}, {'photo_id': 1383588408, 'portfolio_id': 26815062}, {'photo_id': 1383588403, 'portfolio_id': 26815062}, {'photo_id': 1383588402, 'portfolio_id': 26815062}, {'photo_id': 1383588401, 'portfolio_id': 26815062}, {'photo_id': 1383588399, 'portfolio_id': 26815062}, {'photo_id': 1383588370, 'portfolio_id': 26815062}, {'photo_id': 1383588355, 'portfolio_id': 26815062}, {'photo_id': 1383588344, 'portfolio_id': 26815062}, {'photo_id': 1383588343, 'portfolio_id': 26815062}, {'photo_id': 1383588342, 'portfolio_id': 26815062}, {'photo_id': 1383588334, 'portfolio_id': 26815062}, {'photo_id': 1383588331, 'portfolio_id': 26815062}, {'photo_id': 1383588319, 'portfolio_id': 26815062}, {'photo_id': 1383588315, 'portfolio_id': 26815062}, {'photo_id': 1383588310, 'portfolio_id': 26815062}, {'photo_id': 1383588306, 'portfolio_id': 26815062}, {'photo_id': 1383588192, 'portfolio_id': 26815062}, {'photo_id': 1383588190, 'portfolio_id': 26815062}, {'photo_id': 1383588188, 'portfolio_id': 26815062}, {'photo_id': 1383587889, 'portfolio_id': 26815062}, {'photo_id': 1383587863, 'portfolio_id': 26815062}, {'photo_id': 1383587822, 'portfolio_id': 26815062}, {'photo_id': 1383587771, 'portfolio_id': 26815062}] map_portfolio_id_photo_id: {26815062: [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408, 1383589034, 1383589009, 1383588984, 1383588697, 1383588685, 1383588681, 1383588679, 1383588677, 1383588662, 1383588658, 1383588654, 1383588652, 1383588651, 1383588649, 1383588626, 1383588625, 1383588624, 1383588534, 1383588508, 1383588504, 1383588495, 1383588482, 1383588476, 1383588474, 1383588448, 1383588445, 1383588442, 1383588440, 1383588408, 1383588403, 1383588402, 1383588401, 1383588399, 1383588370, 1383588355, 1383588344, 1383588343, 1383588342, 1383588334, 1383588331, 1383588319, 1383588315, 1383588310, 1383588306, 1383588192, 1383588190, 1383588188, 1383587889, 1383587863, 1383587822, 1383587771]} ##### 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.017464160919189453 #### 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 Sat Sep 13 00:14: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26815062) 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 : 26815062 get user id for portfolio 26815062 get sub ptf for main ptf 26815062, type 3726 and hashtags ['Carton_brun', 'Carton_gris', 'metal', 'autre_refus', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'flou', 'cartonnette', 'plastique', 'mal_croppe', 'kraft'] 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`=26815062 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','metal','autre_refus','environnement','papier','Teint_Dans_La_Masse','flou','cartonnette','plastique','mal_croppe','kraft')) 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`=26815062 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','metal','autre_refus','environnement','papier','Teint_Dans_La_Masse','flou','cartonnette','plastique','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26815062, 'sub_port_id': 26815100, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077918, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'mal_croppe': {'main_port_id': 26815062, 'sub_port_id': 26815101, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077919, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'plastique': {'main_port_id': 26815062, 'sub_port_id': 26815102, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077920, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'Carton_brun': {'main_port_id': 26815062, 'sub_port_id': 26815103, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077921, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'Carton_gris': {'main_port_id': 26815062, 'sub_port_id': 26815104, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077922, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'metal': {'main_port_id': 26815062, 'sub_port_id': 26815105, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077923, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'papier': {'main_port_id': 26815062, 'sub_port_id': 26815106, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077924, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 26815062, 'sub_port_id': 26815107, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077925, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'environnement': {'main_port_id': 26815062, 'sub_port_id': 26815108, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077926, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'kraft': {'main_port_id': 26815062, 'sub_port_id': 26815109, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077927, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'cartonnette': {'main_port_id': 26815062, 'sub_port_id': 26815110, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077928, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}, 'flou': {'main_port_id': 26815062, 'sub_port_id': 26815111, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077929, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815100 , 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=26815062 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 (26815100) result : ((1383588510,), (1383588536,), (1383589189,), (1383589191,), (1383589193,), (1383589929,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815101 , 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=26815062 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 (26815101) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815102 , 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=26815062 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 (26815102) result : ((1383588521,), (1383588664,), (1383588665,), (1383589201,), (1383589203,), (1383589412,), (1383589414,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815103 , 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=26815062 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 (26815103) result : ((1383588518,), (1383588519,), (1383589400,), (1383589402,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815104 , 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=26815062 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 (26815104) result : ((1383588414,), (1383588513,), (1383588537,), (1383589384,), (1383589386,), (1383590063,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815105 , 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=26815062 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 (26815105) result : ((1383588525,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815106 , 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=26815062 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 (26815106) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815107 , 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=26815062 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 (26815107) result : ((1383588320,), (1383588321,), (1383588322,), (1383588323,), (1383588324,), (1383588325,), (1383588430,), (1383588431,), (1383588432,), (1383588433,), (1383588434,), (1383588435,), (1383588529,), (1383588663,), (1383589176,), (1383589366,), (1383589368,), (1383589370,), (1383589372,), (1383589374,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815108 , 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=26815062 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 (26815108) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815109 , 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=26815062 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 (26815109) result : ((1383588523,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815110 , 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=26815062 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 (26815110) result : ((1383588328,), (1383588437,), (1383588514,), (1383588515,), (1383588516,), (1383589393,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26815111 , 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=26815062 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 (26815111) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=26815062 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','metal','autre_refus','environnement','papier','Teint_Dans_La_Masse','flou','cartonnette','plastique','mal_croppe','kraft')) 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`=26815062 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','metal','autre_refus','environnement','papier','Teint_Dans_La_Masse','flou','cartonnette','plastique','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26815062, 'sub_port_id': 26815112, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077930, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'mal_croppe': {'main_port_id': 26815062, 'sub_port_id': 26815113, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077931, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'plastique': {'main_port_id': 26815062, 'sub_port_id': 26815114, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077932, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'Carton_brun': {'main_port_id': 26815062, 'sub_port_id': 26815115, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077933, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'Carton_gris': {'main_port_id': 26815062, 'sub_port_id': 26815116, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077934, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'metal': {'main_port_id': 26815062, 'sub_port_id': 26815117, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077935, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'papier': {'main_port_id': 26815062, 'sub_port_id': 26815118, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077936, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 26815062, 'sub_port_id': 26815119, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077937, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'environnement': {'main_port_id': 26815062, 'sub_port_id': 26815120, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077938, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'kraft': {'main_port_id': 26815062, 'sub_port_id': 26815121, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077939, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'cartonnette': {'main_port_id': 26815062, 'sub_port_id': 26815122, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077940, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}, 'flou': {'main_port_id': 26815062, 'sub_port_id': 26815123, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18077941, 'last_updated_at': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 0, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 0, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815112,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815100 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815113,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815101 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815114,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815102 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815115,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815103 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815116,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815104 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815117,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815105 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815118,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815106 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815119,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815107 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815120,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815108 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815121,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26815123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26815111 lien utilise dans velours : https://marlene.fotonower.com/velours/26815112,26815113,26815114,26815115,26815116,26815117,26815118,26815119,26815120,26815121,26815122,26815123?tags=autre_refus,mal_croppe,plastique,Carton_brun,Carton_gris,metal,papier,Teint_Dans_La_Masse,environnement,kraft,cartonnette,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26815062]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] map_info['map_portfolio_photo'] : {26815062: [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408, 1383589034, 1383589009, 1383588984, 1383588697, 1383588685, 1383588681, 1383588679, 1383588677, 1383588662, 1383588658, 1383588654, 1383588652, 1383588651, 1383588649, 1383588626, 1383588625, 1383588624, 1383588534, 1383588508, 1383588504, 1383588495, 1383588482, 1383588476, 1383588474, 1383588448, 1383588445, 1383588442, 1383588440, 1383588408, 1383588403, 1383588402, 1383588401, 1383588399, 1383588370, 1383588355, 1383588344, 1383588343, 1383588342, 1383588334, 1383588331, 1383588319, 1383588315, 1383588310, 1383588306, 1383588192, 1383588190, 1383588188, 1383587889, 1383587863, 1383587822, 1383587771]} final : False mtd_id 4302 list_pids : [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] Looping around the photos to save general results len do output : 1 /26815062. 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, '3715693') ('4302', '26815062', '1383590095', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590078', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590051', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589952', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589923', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589895', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589867', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589840', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589818', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589515', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589492', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589468', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589436', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589408', None, None, None, None, None, '3715693') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26815062', "{'autre_refus': 26815100, 'mal_croppe': 26815101, 'plastique': 26815102, 'Carton_brun': 26815103, 'Carton_gris': 26815104, 'metal': 26815105, 'papier': 26815106, 'Teint_Dans_La_Masse': 26815107, 'environnement': 26815108, 'kraft': 26815109, 'cartonnette': 26815110, 'flou': 26815111}", None, None, None, None, '3715693'), ('4302', '26815062', '1383590095', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383590078', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383590051', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589952', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589923', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589895', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589867', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589840', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589818', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589515', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589492', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589468', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589436', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589408', None, None, None, None, None, '3715693')] time used for this insertion : 0.01955866813659668 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0544769763946533 time spend to save output : 0.019872665405273438 total time spend for step 1 : 2.0743496417999268 step2:final Sat Sep 13 00:14:59 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 (26815062) 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 26815062 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383587889,1383587863,1383587822,1383587771,1383588192,1383588334,1383588190,1383588331,1383588188,1383588319,1383588315,1383588310,1383588306,1383588370,1383588355,1383588344,1383588343,1383588342,1383588408,1383588403,1383588402,1383588401,1383588399,1383588534,1383588448,1383588508,1383588445,1383588504,1383588442,1383588495,1383588440,1383588482,1383588476,1383588474,1383588626,1383588625,1383588624,1383588662,1383588658,1383588654,1383588652,1383588651,1383588649,1383588697,1383588685,1383588681,1383588679,1383588677,1383589034,1383589009,1383588984,1383590095,1383589515,1383589492,1383590078,1383589468,1383590051,1383589436,1383589952,1383589923,1383589408,1383589895,1383589867,1383589840,1383589818); 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([26815062]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} new output for save of step final : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] map_info['map_portfolio_photo'] : {26815062: [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408, 1383589034, 1383589009, 1383588984, 1383588697, 1383588685, 1383588681, 1383588679, 1383588677, 1383588662, 1383588658, 1383588654, 1383588652, 1383588651, 1383588649, 1383588626, 1383588625, 1383588624, 1383588534, 1383588508, 1383588504, 1383588495, 1383588482, 1383588476, 1383588474, 1383588448, 1383588445, 1383588442, 1383588440, 1383588408, 1383588403, 1383588402, 1383588401, 1383588399, 1383588370, 1383588355, 1383588344, 1383588343, 1383588342, 1383588334, 1383588331, 1383588319, 1383588315, 1383588310, 1383588306, 1383588192, 1383588190, 1383588188, 1383587889, 1383587863, 1383587822, 1383587771]} final : False mtd_id 4302 list_pids : [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] Looping around the photos to save general results len do output : 14 /1383590095.Didn't retrieve data . /1383590078.Didn't retrieve data . /1383590051.Didn't retrieve data . /1383589952.Didn't retrieve data . /1383589923.Didn't retrieve data . /1383589895.Didn't retrieve data . /1383589867.Didn't retrieve data . /1383589840.Didn't retrieve data . /1383589818.Didn't retrieve data . /1383589515.Didn't retrieve data . /1383589492.Didn't retrieve data . /1383589468.Didn't retrieve data . /1383589436.Didn't retrieve data . /1383589408.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, '3715693') ('4302', '26815062', '1383590095', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590078', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590051', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589952', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589923', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589895', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589867', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589840', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589818', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589515', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589492', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589468', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589436', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589408', None, None, None, None, None, '3715693') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '26815062', '1383590095', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383590078', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383590051', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589952', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589923', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589895', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589867', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589840', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589818', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589515', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589492', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589468', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589436', '0.048383597510871824', None, None, None, None, '3715693'), ('4302', '26815062', '1383589408', '0.048383597510871824', None, None, None, None, '3715693')] time used for this insertion : 0.024394512176513672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08920145034790039 time spend to save output : 0.025122404098510742 total time spend for step 2 : 0.11432385444641113 step3:velours_tree Sat Sep 13 00:14:59 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 : {26815062: [{'autre_refus': 26815100, 'mal_croppe': 26815101, 'plastique': 26815102, 'Carton_brun': 26815103, 'Carton_gris': 26815104, 'metal': 26815105, 'papier': 26815106, 'Teint_Dans_La_Masse': 26815107, 'environnement': 26815108, 'kraft': 26815109, 'cartonnette': 26815110, 'flou': 26815111}]} input_args_next_step : {26815062: ()} output_args : {26815062: [{'autre_refus': 26815100, 'mal_croppe': 26815101, 'plastique': 26815102, 'Carton_brun': 26815103, 'Carton_gris': 26815104, 'metal': 26815105, 'papier': 26815106, 'Teint_Dans_La_Masse': 26815107, 'environnement': 26815108, 'kraft': 26815109, 'cartonnette': 26815110, 'flou': 26815111}]} args : 26815062 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': 26815100, 'mal_croppe': 26815101, 'plastique': 26815102, 'Carton_brun': 26815103, 'Carton_gris': 26815104, 'metal': 26815105, 'papier': 26815106, 'Teint_Dans_La_Masse': 26815107, 'environnement': 26815108, 'kraft': 26815109, 'cartonnette': 26815110, 'flou': 26815111},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26815062) 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([26815062]) 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.3130042552947998 time spend to save output : 4.410743713378906e-05 total time spend for step 3 : 0.3130483627319336 step4:send_mail_cod Sat Sep 13 00:14:59 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 : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} input_args_next_step : {1383590095: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383590095 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383590078 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383590051 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589952 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589923 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589895 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589867 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589840 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589818 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589515 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589492 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589468 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589436 depend.output_id : 0 input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ()} output_args : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',)} args : 1383589408 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 : {26815062: [{'autre_refus': 26815100, 'mal_croppe': 26815101, 'plastique': 26815102, 'Carton_brun': 26815103, 'Carton_gris': 26815104, 'metal': 26815105, 'papier': 26815106, 'Teint_Dans_La_Masse': 26815107, 'environnement': 26815108, 'kraft': 26815109, 'cartonnette': 26815110, 'flou': 26815111}]} input_args_next_step : {1383590095: ('0.048383597510871824',), 1383590078: ('0.048383597510871824',), 1383590051: ('0.048383597510871824',), 1383589952: ('0.048383597510871824',), 1383589923: ('0.048383597510871824',), 1383589895: ('0.048383597510871824',), 1383589867: ('0.048383597510871824',), 1383589840: ('0.048383597510871824',), 1383589818: ('0.048383597510871824',), 1383589515: ('0.048383597510871824',), 1383589492: ('0.048383597510871824',), 1383589468: ('0.048383597510871824',), 1383589436: ('0.048383597510871824',), 1383589408: ('0.048383597510871824',), 26815062: ()} output_args : {26815062: [{'autre_refus': 26815100, 'mal_croppe': 26815101, 'plastique': 26815102, 'Carton_brun': 26815103, 'Carton_gris': 26815104, 'metal': 26815105, 'papier': 26815106, 'Teint_Dans_La_Masse': 26815107, 'environnement': 26815108, 'kraft': 26815109, 'cartonnette': 26815110, 'flou': 26815111}]} args : 26815062 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 :15, first value : ('0.048383597510871824',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26815062) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1383590095,1383590078,1383590051,1383589952,1383589923,1383589895,1383589867,1383589840,1383589818,1383589515,1383589492,1383589468,1383589436,1383589408) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383589408 begin to download photo : 1383589492 begin to download photo : 1383589840 begin to download photo : 1383589923 begin to download photo : 1383590078 download finish for photo 1383590078 begin to download photo : 1383590095 download finish for photo 1383589923 begin to download photo : 1383589952 download finish for photo 1383589840 begin to download photo : 1383589867 download finish for photo 1383589408 begin to download photo : 1383589436 download finish for photo 1383589492 begin to download photo : 1383589515 download finish for photo 1383590095 download finish for photo 1383589867 begin to download photo : 1383589895 download finish for photo 1383589515 begin to download photo : 1383589818 download finish for photo 1383589952 begin to download photo : 1383590051 download finish for photo 1383589436 begin to download photo : 1383589468 download finish for photo 1383589818 download finish for photo 1383589895 download finish for photo 1383590051 download finish for photo 1383589468 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P26815062_13-09-2025_00_15_00.pdf 26815100 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815100 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588510: '1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810947_0.png', 1383588536: '1757714846_3478686_1383588370_945c57b5144dc39e6d7a616c483c2217_rle_crop_3957812010_0.png', 1383589189: '1757715065_3490287_1383588681_420f37ce1e29d92032a228c44ffa3345_rle_crop_3957814624_0.png', 1383589191: '1757715065_3490287_1383588679_bf6517e873a9ea61f4d8973d5f1417f0_rle_crop_3957814644_0.png', 1383589193: '1757715065_3490287_1383588677_882a6ba72ef7e9e49ff4edd3c9e6f1f9_rle_crop_3957814665_0.png', 1383589929: '1757715186_3496346_1383589009_ca5889a0b735346e60a7daf8d0ae4288_rle_crop_3957815034_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/0d87ca34df6e39257726b42e5ec93baf_30220529.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/ebe706fdfa5ccb749153f553b43517ac_96299480.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/c2a8615fb8aa73fef2e905039cd46add_25442987.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/24b7105002ab27d09d3a218d30d19955_76033404.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/0768f9b45cd5cd6f742d2c3ba2aee1bf_42984561.png change filename to text .imagette268151001757715300/ imagette268151001757715300/1757715065_3490287_1383588679_bf6517e873a9ea61f4d8973d5f1417f0_rle_crop_3957814644_0.png.png imagette268151001757715300/1757715186_3496346_1383589009_ca5889a0b735346e60a7daf8d0ae4288_rle_crop_3957815034_0.png.png imagette268151001757715300/1757714846_3478686_1383588370_945c57b5144dc39e6d7a616c483c2217_rle_crop_3957812010_0.png.png imagette268151001757715300/1757715065_3490287_1383588677_882a6ba72ef7e9e49ff4edd3c9e6f1f9_rle_crop_3957814665_0.png.png imagette268151001757715300/1757715065_3490287_1383588681_420f37ce1e29d92032a228c44ffa3345_rle_crop_3957814624_0.png.png imagette268151001757715300/1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810947_0.png.png imagette268151011757715300/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/9810d151df72a4f5dc7376301cdc7a23_51954603.png imagette268151001757715300 26815101 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815101 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268151011757715300 26815102 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815102 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588521: '1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810948_0.png', 1383588664: '1757714945_3483647_1383588624_719433319a2c28abcfb9c2a3b3599561_rle_crop_3957812096_0.png', 1383588665: '1757714945_3483647_1383588624_719433319a2c28abcfb9c2a3b3599561_rle_crop_3957812089_0.png', 1383589201: '1757715065_3490287_1383588685_57f95a006cc6c2c40b876da78b349e53_rle_crop_3957814603_0.png', 1383589203: '1757715065_3490287_1383588681_420f37ce1e29d92032a228c44ffa3345_rle_crop_3957814628_0.png', 1383589412: '1757715085_3491374_1383588658_e124eea9d35142cb5a18d90a3364b3a5_rle_crop_3957814924_0.png', 1383589414: '1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/0157aae6eb043676e0417e1730a89b43_3720614.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/83bbceb38496f596aea4edcd5a2878f6_15653353.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/db1b7680463f2c7f97271dc7cda30c52_71511429.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/2fbc1fba416db752edd775532c7ea748_16371516.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/28e55e67a40a7ab85e560473b5b12856_53668224.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/8a26ef0cc38f011aa28747c0805afc13_64493211.png change filename to text .imagette268151021757715300/ imagette268151021757715300/1757715085_3491374_1383588658_e124eea9d35142cb5a18d90a3364b3a5_rle_crop_3957814924_0.png.png imagette268151021757715300/1757715065_3490287_1383588681_420f37ce1e29d92032a228c44ffa3345_rle_crop_3957814628_0.png.png imagette268151021757715300/1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814964_0.png.png imagette268151021757715300/1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810948_0.png.png imagette268151021757715300/1757714945_3483647_1383588624_719433319a2c28abcfb9c2a3b3599561_rle_crop_3957812096_0.png.png imagette268151021757715300/1757714945_3483647_1383588624_719433319a2c28abcfb9c2a3b3599561_rle_crop_3957812089_0.png.png imagette268151021757715300/1757715065_3490287_1383588685_57f95a006cc6c2c40b876da78b349e53_rle_crop_3957814603_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/c960bf5f7c880a1dd6acd7a886c58a25_32725199.png imagette268151021757715300 26815105 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815105 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588525: '1757714825_3478074_1383588402_c0253669bc4742e0f3755a8e6676f4ac_rle_crop_3957810917_0.png'} change filename to text .imagette268151051757715301/ imagette268151051757715301/1757714825_3478074_1383588402_c0253669bc4742e0f3755a8e6676f4ac_rle_crop_3957810917_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/902d1d8fce13655cfac78a2998dfdda2_33909601.png imagette268151051757715301 26815109 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588523: '1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810950_0.png'} change filename to text .imagette268151091757715301/ imagette268151091757715301/1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810950_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/64a801ebb51874384fab18b832365afa_73917086.png imagette268151091757715301 26815110 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588328: '1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796565_0.png', 1383588437: '1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809753_0.png', 1383588514: '1757714825_3478074_1383588402_c0253669bc4742e0f3755a8e6676f4ac_rle_crop_3957810914_0.png', 1383588515: '1757714825_3478074_1383588401_11dc717c6cb75d6409c69af458d2fef1_rle_crop_3957810929_0.png', 1383588516: '1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810951_0.png', 1383589393: '1757715085_3491374_1383588651_67f287bcf36d18f286f76bf15cb0fe9d_rle_crop_3957814969_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/0f66f8b591d88718e379d888eea544b9_59564260.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/0f66f8b591d88718e379d888eea544b9_4016350.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/e6a19068ef4745f14fbd065266532cbd_57980147.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/f1b2210f8c87c90120d1398c51210ec9_65705668.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/b3a751ba7f0fb8b6753425afad6fcf50_86433881.png change filename to text .imagette268151101757715301/ imagette268151101757715301/1757714825_3478074_1383588401_11dc717c6cb75d6409c69af458d2fef1_rle_crop_3957810929_0.png.png imagette268151101757715301/1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809753_0.png.png imagette268151101757715301/1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796565_0.png.png imagette268151101757715301/1757714825_3478074_1383588402_c0253669bc4742e0f3755a8e6676f4ac_rle_crop_3957810914_0.png.png imagette268151101757715301/1757715085_3491374_1383588651_67f287bcf36d18f286f76bf15cb0fe9d_rle_crop_3957814969_0.png.png imagette268151101757715301/1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810951_0.png.png imagette268151111757715301/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/554608839f518a632824206100cfc4da_90122163.png imagette268151101757715301 26815111 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268151111757715301 26815103 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815103 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588518: '1757714825_3478074_1383588403_19240085afc4f0d4d330eb7e74d04e86_rle_crop_3957810197_0.png', 1383588519: '1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810952_0.png', 1383589400: '1757715085_3491374_1383588658_e124eea9d35142cb5a18d90a3364b3a5_rle_crop_3957814919_0.png', 1383589402: '1757715085_3491374_1383588654_2b8dcfee649e5b0d1324c10361f734eb_rle_crop_3957814938_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/d68caddc2fd234eac6d608781a69fb89_49811298.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/1d46f97c353840d61b43d9411eb67f3d_98096348.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/601fb82dc734365dbe82b323f2906706_73161879.png change filename to text .imagette268151031757715301/ imagette268151031757715301/1757714825_3478074_1383588403_19240085afc4f0d4d330eb7e74d04e86_rle_crop_3957810197_0.png.png imagette268151031757715301/1757715085_3491374_1383588654_2b8dcfee649e5b0d1324c10361f734eb_rle_crop_3957814938_0.png.png imagette268151031757715301/1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810952_0.png.png imagette268151031757715301/1757715085_3491374_1383588658_e124eea9d35142cb5a18d90a3364b3a5_rle_crop_3957814919_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/e8bea9a90b32c55db605064b1c43764d_96401757.png imagette268151031757715301 26815104 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815104 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588414: '1757714705_3470418_1383588310_df35bfcea393d58efcc671115aec8545_rle_crop_3957807584_0.png', 1383588513: '1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810954_0.png', 1383588537: '1757714846_3478686_1383588370_945c57b5144dc39e6d7a616c483c2217_rle_crop_3957812009_0.png', 1383589384: '1757715085_3491374_1383588658_e124eea9d35142cb5a18d90a3364b3a5_rle_crop_3957814918_0.png', 1383589386: '1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814963_0.png', 1383590063: '1757715206_3497068_1383589034_c78cfcb55adeefc31444e09d3ec670ec_rle_crop_3957819725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/66ac174557fa1776c618708543af30c0_29023653.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/c53578da450dbc9cc325b91ab557a5c8_70057381.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/8a63427ff7c9f640762892bf44c3c2c8_2493602.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/8b038df0bda649e9bf39099583825fac_35269538.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/cdd7af4fe6e6591e62cb59e2d35c5dd5_62003043.png change filename to text .imagette268151041757715301/ imagette268151041757715301/1757714825_3478074_1383588399_d0ef4bde5b5062682d1fce13aede76e4_rle_crop_3957810954_0.png.png imagette268151041757715301/1757714846_3478686_1383588370_945c57b5144dc39e6d7a616c483c2217_rle_crop_3957812009_0.png.png imagette268151041757715301/1757715085_3491374_1383588658_e124eea9d35142cb5a18d90a3364b3a5_rle_crop_3957814918_0.png.png imagette268151041757715301/1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814963_0.png.png imagette268151041757715301/1757715206_3497068_1383589034_c78cfcb55adeefc31444e09d3ec670ec_rle_crop_3957819725_0.png.png imagette268151041757715301/1757714705_3470418_1383588310_df35bfcea393d58efcc671115aec8545_rle_crop_3957807584_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/1bfd3d01b18ddeade2e4445bfcefe7e8_78331871.png imagette268151041757715301 26815107 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815107 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383588434: '1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809758_0.png', 1383589374: '1757715085_3491374_1383588651_67f287bcf36d18f286f76bf15cb0fe9d_rle_crop_3957814975_0.png', 1383589372: '1757715085_3491374_1383588651_67f287bcf36d18f286f76bf15cb0fe9d_rle_crop_3957814973_0.png', 1383589370: '1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814955_0.png', 1383589368: '1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814956_0.png', 1383589366: '1757715085_3491374_1383588654_2b8dcfee649e5b0d1324c10361f734eb_rle_crop_3957814940_0.png', 1383589176: '1757715065_3490287_1383588681_420f37ce1e29d92032a228c44ffa3345_rle_crop_3957814626_0.png', 1383588663: '1757714945_3483647_1383588625_3cc9375e96388a0e03f88e7ab2f68257_rle_crop_3957812082_0.png', 1383588529: '1757714846_3478686_1383588370_945c57b5144dc39e6d7a616c483c2217_rle_crop_3957812013_0.png', 1383588435: '1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809755_0.png', 1383588320: '1757714584_3465106_1383588190_890158537f8b8904141e23e3de4237e3_rle_crop_3957796558_0.png', 1383588433: '1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809760_0.png', 1383588432: '1757714725_3470826_1383588331_44d6aae38c9aaae1a11ecbd5953678c6_rle_crop_3957809737_0.png', 1383588431: '1757714725_3470826_1383588331_44d6aae38c9aaae1a11ecbd5953678c6_rle_crop_3957809738_0.png', 1383588430: '1757714725_3470826_1383588331_44d6aae38c9aaae1a11ecbd5953678c6_rle_crop_3957809746_0.png', 1383588325: '1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796567_0.png', 1383588324: '1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796570_0.png', 1383588323: '1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796572_0.png', 1383588322: '1757714584_3465106_1383588190_890158537f8b8904141e23e3de4237e3_rle_crop_3957796549_0.png', 1383588321: '1757714584_3465106_1383588190_890158537f8b8904141e23e3de4237e3_rle_crop_3957796550_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/090e54b69bfbacb475826421be0cb660_6053163.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/192fc1dfd8ee10696f1caa00a3697c9c_62408808.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/82d84c4bcb2942c9317d6e136006e862_24340502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/3687f6b582b695408d6e856ed12bd74f_45828394.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/91f4557b87a56b12b10b1111a5577c91_63095716.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/ccaa2e6512fb702198ecfe11811a3ae8_48016806.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/dcca960a887d3cf5824562f7d95fa82b_71509942.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/e854f50bf6012f1b0ba3ba2cbe361c90_31229108.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/4382343cbae758b94c3513c8e3a48bbf_59215066.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/22e6d4edb8180a4d21582b8865734a4a_67829611.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/34eb9fc5858e1d4c80d5f47970f5d98b_8200192.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/f0ec9d89aafa679c448af6c29e636194_44185109.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/1133f4c6a49af16246afc9e26a97a3e0_21227069.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/f0a6a832e7b2afdf2401e7afe97b98ee_98885875.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/34eb9fc5858e1d4c80d5f47970f5d98b_95909022.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/22e6d4edb8180a4d21582b8865734a4a_42111786.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/090e54b69bfbacb475826421be0cb660_41198721.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/f0ec9d89aafa679c448af6c29e636194_66959646.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/1133f4c6a49af16246afc9e26a97a3e0_34679571.png change filename to text .imagette268151071757715302/ imagette268151071757715302/1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796567_0.png.png imagette268151071757715302/1757715085_3491374_1383588651_67f287bcf36d18f286f76bf15cb0fe9d_rle_crop_3957814973_0.png.png imagette268151071757715302/1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809758_0.png.png imagette268151071757715302/1757715085_3491374_1383588654_2b8dcfee649e5b0d1324c10361f734eb_rle_crop_3957814940_0.png.png imagette268151071757715302/1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809760_0.png.png imagette268151071757715302/1757714725_3470826_1383588331_44d6aae38c9aaae1a11ecbd5953678c6_rle_crop_3957809737_0.png.png imagette268151071757715302/1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814955_0.png.png imagette268151071757715302/1757714725_3470826_1383588331_44d6aae38c9aaae1a11ecbd5953678c6_rle_crop_3957809738_0.png.png imagette268151071757715302/1757714584_3465106_1383588190_890158537f8b8904141e23e3de4237e3_rle_crop_3957796549_0.png.png imagette268151071757715302/1757714584_3465106_1383588190_890158537f8b8904141e23e3de4237e3_rle_crop_3957796550_0.png.png imagette268151071757715302/1757714584_3465106_1383588190_890158537f8b8904141e23e3de4237e3_rle_crop_3957796558_0.png.png imagette268151071757715302/1757714725_3470826_1383588331_44d6aae38c9aaae1a11ecbd5953678c6_rle_crop_3957809746_0.png.png imagette268151071757715302/1757715065_3490287_1383588681_420f37ce1e29d92032a228c44ffa3345_rle_crop_3957814626_0.png.png imagette268151071757715302/1757715085_3491374_1383588651_67f287bcf36d18f286f76bf15cb0fe9d_rle_crop_3957814975_0.png.png imagette268151071757715302/1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796572_0.png.png imagette268151071757715302/1757714846_3478686_1383588370_945c57b5144dc39e6d7a616c483c2217_rle_crop_3957812013_0.png.png imagette268151071757715302/1757714945_3483647_1383588625_3cc9375e96388a0e03f88e7ab2f68257_rle_crop_3957812082_0.png.png imagette268151071757715302/1757714584_3465106_1383588188_ae0c47dd35f1d8bbf45199c4b8d80790_rle_crop_3957796570_0.png.png imagette268151071757715302/1757714725_3470826_1383588319_1ac66f73e170e09d290b9fec6bbe812f_rle_crop_3957809755_0.png.png imagette268151071757715302/1757715085_3491374_1383588652_3ff81e4002ecc6529cb0f0d4c8c966f2_rle_crop_3957814956_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/f0a6a832e7b2afdf2401e7afe97b98ee_73487122.png imagette268151071757715302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26815062 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26815112,26815113,26815114,26815115,26815116,26815117,26815118,26815119,26815120,26815121,26815122,26815123?tags=autre_refus,mal_croppe,plastique,Carton_brun,Carton_gris,metal,papier,Teint_Dans_La_Masse,environnement,kraft,cartonnette,flou your option no_mail is active, we will not send the real mail to your client args[1383590095] : ('0.048383597510871824',) no score found for photo 1383590095 We are sending mail with results at report@fotonower.com args[1383590078] : ('0.048383597510871824',) no score found for photo 1383590078 We are sending mail with results at report@fotonower.com args[1383590051] : ('0.048383597510871824',) no score found for photo 1383590051 We are sending mail with results at report@fotonower.com args[1383589952] : ('0.048383597510871824',) no score found for photo 1383589952 We are sending mail with results at report@fotonower.com args[1383589923] : ('0.048383597510871824',) no score found for photo 1383589923 We are sending mail with results at report@fotonower.com args[1383589895] : ('0.048383597510871824',) no score found for photo 1383589895 We are sending mail with results at report@fotonower.com args[1383589867] : ('0.048383597510871824',) no score found for photo 1383589867 We are sending mail with results at report@fotonower.com args[1383589840] : ('0.048383597510871824',) no score found for photo 1383589840 We are sending mail with results at report@fotonower.com args[1383589818] : ('0.048383597510871824',) no score found for photo 1383589818 We are sending mail with results at report@fotonower.com args[1383589515] : ('0.048383597510871824',) no score found for photo 1383589515 We are sending mail with results at report@fotonower.com args[1383589492] : ('0.048383597510871824',) no score found for photo 1383589492 We are sending mail with results at report@fotonower.com args[1383589468] : ('0.048383597510871824',) no score found for photo 1383589468 We are sending mail with results at report@fotonower.com args[1383589436] : ('0.048383597510871824',) no score found for photo 1383589436 We are sending mail with results at report@fotonower.com args[1383589408] : ('0.048383597510871824',) no score found for photo 1383589408 We are sending mail with results at report@fotonower.com refus_total : 0.048383597510871824 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815062 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_P26815062_13-09-2025_00_15_00.pdf results_Auto_P26815062_13-09-2025_00_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815062_13-09-2025_00_15_00.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','26815062','results_Auto_P26815062_13-09-2025_00_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815062_13-09-2025_00_15_00.pdf','pdf','','0.23','0.048383597510871824') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26815062]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] map_info['map_portfolio_photo'] : {26815062: [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408, 1383589034, 1383589009, 1383588984, 1383588697, 1383588685, 1383588681, 1383588679, 1383588677, 1383588662, 1383588658, 1383588654, 1383588652, 1383588651, 1383588649, 1383588626, 1383588625, 1383588624, 1383588534, 1383588508, 1383588504, 1383588495, 1383588482, 1383588476, 1383588474, 1383588448, 1383588445, 1383588442, 1383588440, 1383588408, 1383588403, 1383588402, 1383588401, 1383588399, 1383588370, 1383588355, 1383588344, 1383588343, 1383588342, 1383588334, 1383588331, 1383588319, 1383588315, 1383588310, 1383588306, 1383588192, 1383588190, 1383588188, 1383587889, 1383587863, 1383587822, 1383587771]} final : False mtd_id 4302 list_pids : [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] 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, '3715693') ('4302', '26815062', '1383590095', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590078', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590051', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589952', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589923', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589895', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589867', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589840', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589818', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589515', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589492', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589468', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589436', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589408', None, None, None, None, None, '3715693') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '26815062', '1383590095', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383590078', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383590051', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589952', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589923', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589895', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589867', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589840', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589818', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589515', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589492', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589468', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589436', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589408', None, None, None, None, None, '3715693')] time used for this insertion : 0.016576051712036133 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.222680330276489 time spend to save output : 0.016864299774169922 total time spend for step 4 : 5.239544630050659 step5:split_time_score Sat Sep 13 00:15: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 : ['26815062'] 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 : [('26815062',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26815062) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383590078: {'path': 'temp/1757715299_165361_1383590078_3d752cfb90b2d06f16d2d5e681def6d2.jpg', 'extension': 'jpg'}, 1383590095: {'path': 'temp/1757715299_165361_1383590095_5cc4dd28f63d053f44b22be0eaf67b1e.jpg', 'extension': 'jpg'}, 1383589492: {'path': 'temp/1757715299_165361_1383589492_660995aed0d9a5a921f7b95800156ee8.jpg', 'extension': 'jpg'}, 1383589515: {'path': 'temp/1757715299_165361_1383589515_d929eb5ff27b88dc14e931807f3c1585.jpg', 'extension': 'jpg'}, 1383589818: {'path': 'temp/1757715299_165361_1383589818_8d34b4c92979db0b9079222f66b3f39e.jpg', 'extension': 'jpg'}, 1383589840: {'path': 'temp/1757715299_165361_1383589840_272b43e1d09074872ed2cdf0b71f9f1d.jpg', 'extension': 'jpg'}, 1383589867: {'path': 'temp/1757715299_165361_1383589867_82d4c71a829056969b1459784c1de3ea.jpg', 'extension': 'jpg'}, 1383589895: {'path': 'temp/1757715299_165361_1383589895_3dad76acf33588a622f30a5985493ad8.jpg', 'extension': 'jpg'}, 1383589923: {'path': 'temp/1757715299_165361_1383589923_c71532e78bde749809ea5746252b8adf.jpg', 'extension': 'jpg'}, 1383589952: {'path': 'temp/1757715299_165361_1383589952_1ab4ff2f43492d28720ecb6d4e87bf47.jpg', 'extension': 'jpg'}, 1383590051: {'path': 'temp/1757715299_165361_1383590051_d8dbbf117c095826a94cda053c5f09a6.jpg', 'extension': 'jpg'}, 1383589408: {'path': 'temp/1757715299_165361_1383589408_63a656af2babbfa883afbb9d019251c1.jpg', 'extension': 'jpg'}, 1383589436: {'path': 'temp/1757715299_165361_1383589436_8c8a9bd7719cb174f80d33d14fbaf395.jpg', 'extension': 'jpg'}, 1383589468: {'path': 'temp/1757715299_165361_1383589468_59891ebb246a02a9a5ccd1e1120d207c.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 = 26815062; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26815062 group by h (('00', 65),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26815062 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 (26815062) 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 (26815062) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13092025 26815062 Nombre de photos uploadées : 65 / 23040 (0%) 13092025 26815062 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 13092025 26815062 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1383587889, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/d1abf6cffd1b79fd94e81e6ac34022e9.jpg', 'username': None, 'uploaded_at': 1757714468, 'text': 'image_13092025_00_00_14_10162.jpg'}, {'photo_id': 1383587863, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/d0db5847a72b27af36a1e3f68135b850.jpg', 'username': None, 'uploaded_at': 1757714468, 'text': 'image_13092025_00_00_23_9137.jpg'}, {'photo_id': 1383587822, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/5a28b81f7f4ffbbc6ab5292679fbe6fb.jpg', 'username': None, 'uploaded_at': 1757714468, 'text': 'image_13092025_00_00_33_10137.jpg'}, {'photo_id': 1383587771, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/e17d6cf990ace61c4babd2cc3de1ea80.jpg', 'username': None, 'uploaded_at': 1757714468, 'text': 'image_13092025_00_00_44_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029625892639160156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 26815062, '2025-09-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2280705,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2327134609222412 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= 2280705 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2280705, 'dashboard_run_id': 2288213, 'mtr_portfolio_id': 26815062, 'dashboard_result_id': 15115721, '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_P26815062_13-09-2025_00_13_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815111, '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 = 26815062 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': 3715693, 'mtr_portfolio_id': 26815062, 'created_at': datetime.datetime(2025, 9, 13, 0, 14, 59), 'result': '0.048383597510871824', 'result_long': None, 'result_double': None}] Qualite : 0.048383597510871824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26815062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815062_13-09-2025_00_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26815062 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_P26815062_13-09-2025_00_15_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815111, 'pht': 3726}}" where mtr_portfolio_id = 26815062 and dashboard_run_id = 2288213 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`=26815062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15115721, 0.048383597510871824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815062_13-09-2025_00_15_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815111, '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 (26815062) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13092025': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26815062]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] map_info['map_portfolio_photo'] : {26815062: [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408, 1383589034, 1383589009, 1383588984, 1383588697, 1383588685, 1383588681, 1383588679, 1383588677, 1383588662, 1383588658, 1383588654, 1383588652, 1383588651, 1383588649, 1383588626, 1383588625, 1383588624, 1383588534, 1383588508, 1383588504, 1383588495, 1383588482, 1383588476, 1383588474, 1383588448, 1383588445, 1383588442, 1383588440, 1383588408, 1383588403, 1383588402, 1383588401, 1383588399, 1383588370, 1383588355, 1383588344, 1383588343, 1383588342, 1383588334, 1383588331, 1383588319, 1383588315, 1383588310, 1383588306, 1383588192, 1383588190, 1383588188, 1383587889, 1383587863, 1383587822, 1383587771]} final : True mtd_id 4302 list_pids : [1383590095, 1383590078, 1383590051, 1383589952, 1383589923, 1383589895, 1383589867, 1383589840, 1383589818, 1383589515, 1383589492, 1383589468, 1383589436, 1383589408] Looping around the photos to save general results len do output : 1 /26815062Didn'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, '3715693') ('4302', '26815062', '1383590095', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590078', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383590051', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589952', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589923', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589895', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589867', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589840', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589818', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589515', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589492', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589468', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589436', None, None, None, None, None, '3715693') ('4302', None, None, None, None, None, None, None, '3715693') ('4302', '26815062', '1383589408', None, None, None, None, None, '3715693') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26815062', 'None', None, None, None, None, '3715693'), ('4302', '26815062', '1383590095', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383590078', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383590051', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589952', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589923', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589895', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589867', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589840', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589818', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589515', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589492', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589468', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589436', None, None, None, None, None, '3715693'), ('4302', '26815062', '1383589408', None, None, None, None, None, '3715693')] time used for this insertion : 0.018361568450927734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4204106330871582 time spend to save output : 0.018677473068237305 total time spend for step 5 : 0.4390881061553955 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 (3715693) 2.29user 2.51system 0:11.16elapsed 43%CPU (0avgtext+0avgdata 160464maxresident)k 672inputs+13728outputs (8major+75100minor)pagefaults 0swaps