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 : 2074659 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 (2695507) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2695507) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766833 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2695507'] with mtr_portfolio_ids : ['21766833'] and first list_photo_ids : [] new path : /proc/2074659/ Name: python3 Umask: 0002 State: R (running) Tgid: 2074659 Ngid: 0 Pid: 2074659 PPid: 2074658 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2074659 NSpid: 2074659 NSpgid: 2071813 NSsid: 2071813 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98096 kB VmRSS: 98096 kB RssAnon: 59768 kB RssFile: 38328 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 70 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2074659', 'Ngid': '0', 'Pid': '2074659', 'PPid': '2074658', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2074659', 'NSpid': '2074659', 'NSpgid': '2071813', 'NSsid': '2071813', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98096 kB', 'VmRSS': '98096 kB', 'RssAnon': '59768 kB', 'RssFile': '38328 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '70'} ('datou_batch_current', '2074659', '1106848', '0', '1106848', '865596', '98096', b'', 'marlene', '2695507') 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 (21766833) 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 (2695507 ) ) 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 (21766833) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347736485, 'portfolio_id': 21766833}, {'photo_id': 1347736475, 'portfolio_id': 21766833}, {'photo_id': 1347736471, 'portfolio_id': 21766833}, {'photo_id': 1347736470, 'portfolio_id': 21766833}, {'photo_id': 1347736441, 'portfolio_id': 21766833}, {'photo_id': 1347736434, 'portfolio_id': 21766833}, {'photo_id': 1347736425, 'portfolio_id': 21766833}, {'photo_id': 1347736422, 'portfolio_id': 21766833}, {'photo_id': 1347736419, 'portfolio_id': 21766833}, {'photo_id': 1347736361, 'portfolio_id': 21766833}, {'photo_id': 1347736357, 'portfolio_id': 21766833}, {'photo_id': 1347736354, 'portfolio_id': 21766833}, {'photo_id': 1347736342, 'portfolio_id': 21766833}, {'photo_id': 1347736338, 'portfolio_id': 21766833}, {'photo_id': 1347736334, 'portfolio_id': 21766833}, {'photo_id': 1347736327, 'portfolio_id': 21766833}, {'photo_id': 1347736255, 'portfolio_id': 21766833}, {'photo_id': 1347736251, 'portfolio_id': 21766833}, {'photo_id': 1347736245, 'portfolio_id': 21766833}, {'photo_id': 1347736242, 'portfolio_id': 21766833}, {'photo_id': 1347735989, 'portfolio_id': 21766833}, {'photo_id': 1347735987, 'portfolio_id': 21766833}, {'photo_id': 1347735985, 'portfolio_id': 21766833}, {'photo_id': 1347735975, 'portfolio_id': 21766833}, {'photo_id': 1347735965, 'portfolio_id': 21766833}, {'photo_id': 1347735894, 'portfolio_id': 21766833}, {'photo_id': 1347735867, 'portfolio_id': 21766833}, {'photo_id': 1347735827, 'portfolio_id': 21766833}, {'photo_id': 1347735802, 'portfolio_id': 21766833}, {'photo_id': 1347735795, 'portfolio_id': 21766833}, {'photo_id': 1347735554, 'portfolio_id': 21766833}, {'photo_id': 1347735550, 'portfolio_id': 21766833}, {'photo_id': 1347735548, 'portfolio_id': 21766833}, {'photo_id': 1347735525, 'portfolio_id': 21766833}, {'photo_id': 1347735519, 'portfolio_id': 21766833}, {'photo_id': 1347735517, 'portfolio_id': 21766833}, {'photo_id': 1347735513, 'portfolio_id': 21766833}, {'photo_id': 1347735511, 'portfolio_id': 21766833}, {'photo_id': 1347735481, 'portfolio_id': 21766833}, {'photo_id': 1347735477, 'portfolio_id': 21766833}, {'photo_id': 1347735473, 'portfolio_id': 21766833}, {'photo_id': 1347735469, 'portfolio_id': 21766833}, {'photo_id': 1347735442, 'portfolio_id': 21766833}, {'photo_id': 1347735440, 'portfolio_id': 21766833}, {'photo_id': 1347735420, 'portfolio_id': 21766833}, {'photo_id': 1347735414, 'portfolio_id': 21766833}, {'photo_id': 1347735412, 'portfolio_id': 21766833}, {'photo_id': 1347735233, 'portfolio_id': 21766833}, {'photo_id': 1347735218, 'portfolio_id': 21766833}, {'photo_id': 1347735069, 'portfolio_id': 21766833}, {'photo_id': 1347735053, 'portfolio_id': 21766833}, {'photo_id': 1347735050, 'portfolio_id': 21766833}, {'photo_id': 1347735038, 'portfolio_id': 21766833}, {'photo_id': 1347735033, 'portfolio_id': 21766833}, {'photo_id': 1347735028, 'portfolio_id': 21766833}, {'photo_id': 1347735023, 'portfolio_id': 21766833}, {'photo_id': 1347735018, 'portfolio_id': 21766833}, {'photo_id': 1347735012, 'portfolio_id': 21766833}, {'photo_id': 1347734959, 'portfolio_id': 21766833}, {'photo_id': 1347734957, 'portfolio_id': 21766833}, {'photo_id': 1347734954, 'portfolio_id': 21766833}, {'photo_id': 1347734951, 'portfolio_id': 21766833}] map_portfolio_id_photo_id: {21766833: [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419, 1347736361, 1347736357, 1347736354, 1347736342, 1347736338, 1347736334, 1347736327, 1347736255, 1347736251, 1347736245, 1347736242, 1347735989, 1347735987, 1347735985, 1347735975, 1347735965, 1347735894, 1347735867, 1347735827, 1347735802, 1347735795, 1347735554, 1347735550, 1347735548, 1347735525, 1347735519, 1347735517, 1347735513, 1347735511, 1347735481, 1347735477, 1347735473, 1347735469, 1347735442, 1347735440, 1347735420, 1347735414, 1347735412, 1347735233, 1347735218, 1347735069, 1347735053, 1347735050, 1347735038, 1347735033, 1347735028, 1347735023, 1347735018, 1347735012, 1347734959, 1347734957, 1347734954, 1347734951]} ##### 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.016007184982299805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Mar 27 03:33:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766833) 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 : 21766833 get user id for portfolio 21766833 get sub ptf for main ptf 21766833, type 3726 and hashtags ['kraft', 'papier', 'flou', 'Teint_Dans_La_Masse', 'autre_refus', 'Carton_gris', 'metal', 'cartonnette', 'mal_croppe', 'Carton_brun', 'plastique', 'environnement'] 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`=21766833 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','flou','Teint_Dans_La_Masse','autre_refus','Carton_gris','metal','cartonnette','mal_croppe','Carton_brun','plastique','environnement')) 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`=21766833 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','flou','Teint_Dans_La_Masse','autre_refus','Carton_gris','metal','cartonnette','mal_croppe','Carton_brun','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21766833, 'sub_port_id': 21766834, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289734, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'kraft': {'main_port_id': 21766833, 'sub_port_id': 21766835, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289735, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'Carton_brun': {'main_port_id': 21766833, 'sub_port_id': 21766836, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289736, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21766833, 'sub_port_id': 21766837, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289737, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'mal_croppe': {'main_port_id': 21766833, 'sub_port_id': 21766838, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289738, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'Carton_gris': {'main_port_id': 21766833, 'sub_port_id': 21766839, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289739, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'autre_refus': {'main_port_id': 21766833, 'sub_port_id': 21766840, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289740, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'flou': {'main_port_id': 21766833, 'sub_port_id': 21766841, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289741, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'papier': {'main_port_id': 21766833, 'sub_port_id': 21766842, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289742, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'environnement': {'main_port_id': 21766833, 'sub_port_id': 21766843, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289743, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'cartonnette': {'main_port_id': 21766833, 'sub_port_id': 21766844, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289744, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}, 'plastique': {'main_port_id': 21766833, 'sub_port_id': 21766845, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289745, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21766834 , 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=21766833 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 (21766834) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766835 , 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=21766833 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 (21766835) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766836 , 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=21766833 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 (21766836) result : ((1347735422,), (1347735423,), (1347735424,), (1347735533,), (1347735534,), (1347735535,), (1347735953,), (1347735954,), (1347735962,), (1347735977,), (1347735978,), (1347735979,), (1347735980,), (1347736320,), (1347736321,), (1347736364,), (1347736365,), (1347736483,), (1347736502,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766837 , 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=21766833 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 (21766837) result : ((1347735417,), (1347735463,), (1347735464,), (1347735520,), (1347735521,), (1347735946,), (1347735947,), (1347735967,), (1347735968,), (1347736491,), (1347736492,), (1347736493,), (1347736494,), (1347736495,), (1347736496,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766838 , 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=21766833 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 (21766838) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766839 , 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=21766833 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 (21766839) result : ((1347735418,), (1347735419,), (1347735466,), (1347735527,), (1347735528,), (1347735950,), (1347735951,), (1347735952,), (1347735969,), (1347735970,), (1347735971,), (1347735972,), (1347735973,), (1347736510,), (1347736511,), (1347736512,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766840 , 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=21766833 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 (21766840) result : ((1347735465,), (1347735522,), (1347735524,), (1347735949,), (1347735961,), (1347736316,), (1347736362,), (1347736363,), (1347736482,), (1347736503,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766841 , 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=21766833 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 (21766841) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766842 , 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=21766833 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 (21766842) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766843 , 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=21766833 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 (21766843) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766844 , 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=21766833 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 (21766844) result : ((1347735467,), (1347735468,), (1347735530,), (1347735531,), (1347735532,), (1347735976,), (1347736480,), (1347736481,), (1347736487,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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 21766845 , 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=21766833 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 (21766845) result : ((1347735470,), (1347735471,), (1347735472,), (1347735537,), (1347735538,), (1347735956,), (1347735964,), (1347735983,), (1347736517,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21766833) result : ((1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) 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`=21766833 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','flou','Teint_Dans_La_Masse','autre_refus','Carton_gris','metal','cartonnette','mal_croppe','Carton_brun','plastique','environnement')) 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`=21766833 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','flou','Teint_Dans_La_Masse','autre_refus','Carton_gris','metal','cartonnette','mal_croppe','Carton_brun','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21766833, 'sub_port_id': 21766846, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289746, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'kraft': {'main_port_id': 21766833, 'sub_port_id': 21766847, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289747, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'Carton_brun': {'main_port_id': 21766833, 'sub_port_id': 21766848, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289748, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21766833, 'sub_port_id': 21766849, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289749, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'mal_croppe': {'main_port_id': 21766833, 'sub_port_id': 21766850, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289750, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'Carton_gris': {'main_port_id': 21766833, 'sub_port_id': 21766851, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289751, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'autre_refus': {'main_port_id': 21766833, 'sub_port_id': 21766852, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289752, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'flou': {'main_port_id': 21766833, 'sub_port_id': 21766853, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289753, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'papier': {'main_port_id': 21766833, 'sub_port_id': 21766854, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289754, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'environnement': {'main_port_id': 21766833, 'sub_port_id': 21766855, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289755, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'cartonnette': {'main_port_id': 21766833, 'sub_port_id': 21766856, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289756, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}, 'plastique': {'main_port_id': 21766833, 'sub_port_id': 21766857, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289757, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 29, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 19, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766839 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766855,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766843 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766856,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766844 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766857,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766845 lien utilise dans velours : https://www.fotonower.com/velours/21766846,21766847,21766848,21766849,21766850,21766851,21766852,21766853,21766854,21766855,21766856,21766857?tags=metal,kraft,Carton_brun,Teint_Dans_La_Masse,mal_croppe,Carton_gris,autre_refus,flou,papier,environnement,cartonnette,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766833]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] map_info['map_portfolio_photo'] : {21766833: [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419, 1347736361, 1347736357, 1347736354, 1347736342, 1347736338, 1347736334, 1347736327, 1347736255, 1347736251, 1347736245, 1347736242, 1347735989, 1347735987, 1347735985, 1347735975, 1347735965, 1347735894, 1347735867, 1347735827, 1347735802, 1347735795, 1347735554, 1347735550, 1347735548, 1347735525, 1347735519, 1347735517, 1347735513, 1347735511, 1347735481, 1347735477, 1347735473, 1347735469, 1347735442, 1347735440, 1347735420, 1347735414, 1347735412, 1347735233, 1347735218, 1347735069, 1347735053, 1347735050, 1347735038, 1347735033, 1347735028, 1347735023, 1347735018, 1347735012, 1347734959, 1347734957, 1347734954, 1347734951]} final : False mtd_id 4302 list_pids : [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] Looping around the photos to save general results len do output : 1 /21766833. 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, '2695507') ('4302', '21766833', '1347736485', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736475', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736471', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736470', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736441', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736434', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736425', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736422', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736419', None, None, None, None, None, '2695507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21766833', "{'metal': 21766834, 'kraft': 21766835, 'Carton_brun': 21766836, 'Teint_Dans_La_Masse': 21766837, 'mal_croppe': 21766838, 'Carton_gris': 21766839, 'autre_refus': 21766840, 'flou': 21766841, 'papier': 21766842, 'environnement': 21766843, 'cartonnette': 21766844, 'plastique': 21766845}", None, None, None, None, '2695507'), ('4302', '21766833', '1347736485', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736475', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736471', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736470', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736441', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736434', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736425', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736422', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736419', None, None, None, None, None, '2695507')] time used for this insertion : 0.01389002799987793 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.074431896209717 time spend to save output : 0.014164924621582031 total time spend for step 1 : 2.088596820831299 step2:final Thu Mar 27 03:33:03 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 (21766833) 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 21766833 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347734959,1347734957,1347734954,1347734951,1347735038,1347735033,1347735028,1347735023,1347735018,1347735012,1347735069,1347735053,1347735050,1347735233,1347735218,1347735442,1347735440,1347735420,1347735414,1347735412,1347735481,1347735477,1347735473,1347735469,1347735525,1347735519,1347735517,1347735513,1347735511,1347735554,1347735550,1347735548,1347735894,1347735867,1347735827,1347735802,1347735795,1347735989,1347735987,1347735985,1347735975,1347735965,1347736255,1347736251,1347736245,1347736242,1347736342,1347736338,1347736334,1347736327,1347736361,1347736357,1347736354,1347736441,1347736434,1347736425,1347736422,1347736419,1347736485,1347736475,1347736471,1347736470); 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([21766833]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} new output for save of step final : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] map_info['map_portfolio_photo'] : {21766833: [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419, 1347736361, 1347736357, 1347736354, 1347736342, 1347736338, 1347736334, 1347736327, 1347736255, 1347736251, 1347736245, 1347736242, 1347735989, 1347735987, 1347735985, 1347735975, 1347735965, 1347735894, 1347735867, 1347735827, 1347735802, 1347735795, 1347735554, 1347735550, 1347735548, 1347735525, 1347735519, 1347735517, 1347735513, 1347735511, 1347735481, 1347735477, 1347735473, 1347735469, 1347735442, 1347735440, 1347735420, 1347735414, 1347735412, 1347735233, 1347735218, 1347735069, 1347735053, 1347735050, 1347735038, 1347735033, 1347735028, 1347735023, 1347735018, 1347735012, 1347734959, 1347734957, 1347734954, 1347734951]} final : False mtd_id 4302 list_pids : [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] Looping around the photos to save general results len do output : 9 /1347736485.Didn't retrieve data . /1347736475.Didn't retrieve data . /1347736471.Didn't retrieve data . /1347736470.Didn't retrieve data . /1347736441.Didn't retrieve data . /1347736434.Didn't retrieve data . /1347736425.Didn't retrieve data . /1347736422.Didn't retrieve data . /1347736419.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, '2695507') ('4302', '21766833', '1347736485', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736475', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736471', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736470', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736441', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736434', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736425', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736422', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736419', None, None, None, None, None, '2695507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '21766833', '1347736485', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736475', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736471', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736470', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736441', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736434', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736425', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736422', '0.05341903782188338', None, None, None, None, '2695507'), ('4302', '21766833', '1347736419', '0.05341903782188338', None, None, None, None, '2695507')] time used for this insertion : 0.012757062911987305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07191872596740723 time spend to save output : 0.013278722763061523 total time spend for step 2 : 0.08519744873046875 step3:velours_tree Thu Mar 27 03:33:03 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 : {21766833: [{'metal': 21766834, 'kraft': 21766835, 'Carton_brun': 21766836, 'Teint_Dans_La_Masse': 21766837, 'mal_croppe': 21766838, 'Carton_gris': 21766839, 'autre_refus': 21766840, 'flou': 21766841, 'papier': 21766842, 'environnement': 21766843, 'cartonnette': 21766844, 'plastique': 21766845}]} input_args_next_step : {21766833: ()} output_args : {21766833: [{'metal': 21766834, 'kraft': 21766835, 'Carton_brun': 21766836, 'Teint_Dans_La_Masse': 21766837, 'mal_croppe': 21766838, 'Carton_gris': 21766839, 'autre_refus': 21766840, 'flou': 21766841, 'papier': 21766842, 'environnement': 21766843, 'cartonnette': 21766844, 'plastique': 21766845}]} args : 21766833 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 : ({'metal': 21766834, 'kraft': 21766835, 'Carton_brun': 21766836, 'Teint_Dans_La_Masse': 21766837, 'mal_croppe': 21766838, 'Carton_gris': 21766839, 'autre_refus': 21766840, 'flou': 21766841, 'papier': 21766842, 'environnement': 21766843, 'cartonnette': 21766844, 'plastique': 21766845},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766833) 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([21766833]) 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.3038320541381836 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.30388569831848145 step4:send_mail_cod Thu Mar 27 03:33:03 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 : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} input_args_next_step : {1347736485: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736485 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736475 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736471 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736470 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736441 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736434 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736425 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736422 depend.output_id : 0 input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ()} output_args : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',)} args : 1347736419 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 : {21766833: [{'metal': 21766834, 'kraft': 21766835, 'Carton_brun': 21766836, 'Teint_Dans_La_Masse': 21766837, 'mal_croppe': 21766838, 'Carton_gris': 21766839, 'autre_refus': 21766840, 'flou': 21766841, 'papier': 21766842, 'environnement': 21766843, 'cartonnette': 21766844, 'plastique': 21766845}]} input_args_next_step : {1347736485: ('0.05341903782188338',), 1347736475: ('0.05341903782188338',), 1347736471: ('0.05341903782188338',), 1347736470: ('0.05341903782188338',), 1347736441: ('0.05341903782188338',), 1347736434: ('0.05341903782188338',), 1347736425: ('0.05341903782188338',), 1347736422: ('0.05341903782188338',), 1347736419: ('0.05341903782188338',), 21766833: ()} output_args : {21766833: [{'metal': 21766834, 'kraft': 21766835, 'Carton_brun': 21766836, 'Teint_Dans_La_Masse': 21766837, 'mal_croppe': 21766838, 'Carton_gris': 21766839, 'autre_refus': 21766840, 'flou': 21766841, 'papier': 21766842, 'environnement': 21766843, 'cartonnette': 21766844, 'plastique': 21766845}]} args : 21766833 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 :10, first value : ('0.05341903782188338',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766833) 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 (1347736485,1347736475,1347736471,1347736470,1347736441,1347736434,1347736425,1347736422,1347736419) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347736419 begin to download photo : 1347736425 begin to download photo : 1347736441 begin to download photo : 1347736471 begin to download photo : 1347736485 download finish for photo 1347736485 download finish for photo 1347736425 begin to download photo : 1347736434 download finish for photo 1347736471 begin to download photo : 1347736475 download finish for photo 1347736419 begin to download photo : 1347736422 download finish for photo 1347736441 begin to download photo : 1347736470 download finish for photo 1347736434 download finish for photo 1347736470 download finish for photo 1347736422 download finish for photo 1347736475 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217668341743042783/ imagette217668351743042783/ imagette217668381743042783/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21766833_27-03-2025_03_33_03.pdf 21766834 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=21766834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217668341743042783 21766835 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=21766835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217668351743042783 21766838 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=21766838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217668381743042783 21766840 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=21766840 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347735465: '1743042073_2756118_1347735023_996a6d0eaefef8947615ccbe49ae8c6d_rle_crop_3732896026_0.png', 1347735522: '1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896164_0.png', 1347735524: '1743042164_95036_1347734951_e86ed4bf87567bd331d817c541c30df8_rle_crop_3732896299_0.png', 1347735949: '1743042293_2758431_1347735525_6b57824582ee1de714503ab8965e17be_rle_crop_3732899497_0.png', 1347735961: '1743042331_2758905_1347735442_f48a7912ad23e581f1a38142622ef53d_rle_crop_3732902028_0.png', 1347736316: '1743042453_2760203_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732903724_0.png', 1347736362: '1743042531_2760789_1347735894_4877ad0660902dc765f19ff34bab8ac1_bib_crop_3732903724_0.jpg', 1347736363: '1743042531_2760789_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732904977_0.png', 1347736482: '1743042643_100236_1347736361_836036aa62e7247581914c10467d9198_rle_crop_3732906119_0.png', 1347736503: '1743042613_2761664_1347735987_1d7d327f6190dc0b9b0f35d4c87fa213_rle_crop_3732905339_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/566e4745e72ec9736a640445e9f54f5b_52459811.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a3c391ddd98661b88a51279a00a6977b_32018454.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/86e9b3ba1ca06231c1c78fe444e839c5_58424436.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/504a0c711caaf7a0095130c4afd6a451_62648511.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/66cfb4c69408946cba85fa4a9bac3f97_54522488.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f1b902fdec485de1e35dfbb70942190f_12976532.png change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/6cf7971bd3e348f6c86f603fc72026d0_74282708.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4997bf007bd749c30e8f1ea152315a0a_45623489.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/104585e4ea56fe1704903531d9320012_59939488.png change filename to text .imagette217668401743042783/ imagette217668401743042783/1743042331_2758905_1347735442_f48a7912ad23e581f1a38142622ef53d_rle_crop_3732902028_0.png.png imagette217668401743042783/1743042164_95036_1347734951_e86ed4bf87567bd331d817c541c30df8_rle_crop_3732896299_0.png.png imagette217668401743042783/1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896164_0.png.png imagette217668401743042783/1743042531_2760789_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732904977_0.png.png imagette217668401743042783/1743042613_2761664_1347735987_1d7d327f6190dc0b9b0f35d4c87fa213_rle_crop_3732905339_0.png.png imagette217668401743042783/1743042643_100236_1347736361_836036aa62e7247581914c10467d9198_rle_crop_3732906119_0.png.png imagette217668401743042783/1743042073_2756118_1347735023_996a6d0eaefef8947615ccbe49ae8c6d_rle_crop_3732896026_0.png.png imagette217668401743042783/1743042531_2760789_1347735894_4877ad0660902dc765f19ff34bab8ac1_bib_crop_3732903724_0.jpg.jpg imagette217668401743042783/1743042293_2758431_1347735525_6b57824582ee1de714503ab8965e17be_rle_crop_3732899497_0.png.png imagette217668401743042783/1743042453_2760203_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732903724_0.png.png imagette217668411743042784/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/0820ee1faad33147f3057f4dfa8d4570_65106889.png imagette217668401743042783 21766841 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=21766841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217668411743042784 21766844 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=21766844 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347735467: '1743042073_2756118_1347735033_f1c5909c780ad7ee4b81cd7c8045d0da_rle_crop_3732895999_0.png', 1347735468: '1743042073_2756118_1347735028_e5943020a54a47e4c671361713c169fb_rle_crop_3732896013_0.png', 1347735530: '1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896165_0.png', 1347735531: '1743042164_95036_1347734954_8f6842555853b846ecb7103e9b744bd9_rle_crop_3732896273_0.png', 1347735532: '1743042164_95036_1347734951_e86ed4bf87567bd331d817c541c30df8_rle_crop_3732896292_0.png', 1347735976: '1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902057_0.png', 1347736480: '1743042633_2762080_1347736354_ecce66ba68a281b93f4165767aca5999_rle_crop_3732906625_0.png', 1347736481: '1743042633_2762080_1347736354_ecce66ba68a281b93f4165767aca5999_rle_crop_3732906626_0.png', 1347736487: '1743042643_100236_1347736361_836036aa62e7247581914c10467d9198_rle_crop_3732906114_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e10398943092793655ec5fe932cc7278_33289261.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f5dbd9eb8351b670f6ece42a8b77a8c7_78544648.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f0aa9872a42efccfa985603ade675479_31337536.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2b2add6bca0d85166e1525f5d0bf1607_75985658.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/96ba90cd6902f899e602e945b97ae08f_31045559.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ce4c0b13358092e365de48bd7da84c85_18253416.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/06d92b6e5c077875d51a40f86b36420a_33754580.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c9f8afedd85e1540c632436712e9c5f8_26224684.png change filename to text .imagette217668441743042784/ imagette217668441743042784/1743042164_95036_1347734954_8f6842555853b846ecb7103e9b744bd9_rle_crop_3732896273_0.png.png imagette217668441743042784/1743042073_2756118_1347735028_e5943020a54a47e4c671361713c169fb_rle_crop_3732896013_0.png.png imagette217668441743042784/1743042073_2756118_1347735033_f1c5909c780ad7ee4b81cd7c8045d0da_rle_crop_3732895999_0.png.png imagette217668441743042784/1743042164_95036_1347734951_e86ed4bf87567bd331d817c541c30df8_rle_crop_3732896292_0.png.png imagette217668441743042784/1743042633_2762080_1347736354_ecce66ba68a281b93f4165767aca5999_rle_crop_3732906625_0.png.png imagette217668441743042784/1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896165_0.png.png imagette217668441743042784/1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902057_0.png.png imagette217668441743042784/1743042633_2762080_1347736354_ecce66ba68a281b93f4165767aca5999_rle_crop_3732906626_0.png.png imagette217668441743042784/1743042643_100236_1347736361_836036aa62e7247581914c10467d9198_rle_crop_3732906114_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7f16bded0aab49c31438484fcc49990b_12659652.png imagette217668441743042784 21766845 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=21766845 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347735470: '1743042073_2756118_1347735033_f1c5909c780ad7ee4b81cd7c8045d0da_rle_crop_3732896002_0.png', 1347735471: '1743042073_2756118_1347735018_cd74fe44176fb48b05555e40b6c00c71_rle_crop_3732896042_0.png', 1347735472: '1743042073_2756118_1347735012_52e446d8d1d0e55f9ecd37b289e76fe9_rle_crop_3732896053_0.png', 1347735537: '1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896167_0.png', 1347735538: '1743042164_95036_1347734954_8f6842555853b846ecb7103e9b744bd9_rle_crop_3732896287_0.png', 1347735956: '1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900462_0.png', 1347735964: '1743042331_2758905_1347735442_f48a7912ad23e581f1a38142622ef53d_rle_crop_3732902033_0.png', 1347735983: '1743042313_2758693_1347735414_af706a27fdf5ad0fc0d884397e155448_rle_crop_3732902097_0.png', 1347736517: '1743042613_2761664_1347736255_15a718b6468650c523191e4c4ec6560d_rle_crop_3732905330_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/032b4849ddd762a1f9c8fdd8ad531e83_1120688.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9e73b542524beb73d06bf370bed94bd8_45246533.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/86df7130a0f4c7833b64dcfb423c31a9_9996747.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1eef9a788de0790264039c42869c731b_54337183.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d46a1207af13be9791ac76b920b27665_18873739.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/cd6090c589a49d9d05dff31d4b9d0b59_69600644.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8d6ad66a19cf5254bc62480817d36d08_92402880.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7dde0833d5a5de8ac32852e8b22945f7_32330157.png change filename to text .imagette217668451743042785/ imagette217668451743042785/1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896167_0.png.png imagette217668451743042785/1743042331_2758905_1347735442_f48a7912ad23e581f1a38142622ef53d_rle_crop_3732902033_0.png.png imagette217668451743042785/1743042073_2756118_1347735012_52e446d8d1d0e55f9ecd37b289e76fe9_rle_crop_3732896053_0.png.png imagette217668451743042785/1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900462_0.png.png imagette217668451743042785/1743042073_2756118_1347735033_f1c5909c780ad7ee4b81cd7c8045d0da_rle_crop_3732896002_0.png.png imagette217668451743042785/1743042073_2756118_1347735018_cd74fe44176fb48b05555e40b6c00c71_rle_crop_3732896042_0.png.png imagette217668451743042785/1743042613_2761664_1347736255_15a718b6468650c523191e4c4ec6560d_rle_crop_3732905330_0.png.png imagette217668451743042785/1743042164_95036_1347734954_8f6842555853b846ecb7103e9b744bd9_rle_crop_3732896287_0.png.png imagette217668451743042785/1743042313_2758693_1347735414_af706a27fdf5ad0fc0d884397e155448_rle_crop_3732902097_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9695c28c49bba44f8225e3f8f66f9288_52016967.png imagette217668451743042785 21766836 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=21766836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347735977: '1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902059_0.png', 1347736502: '1743042643_100236_1347736334_e0bb7ce049767e9a09356ada73827b54_rle_crop_3732906611_0.png', 1347736483: '1743042633_2762080_1347736357_4f2ca31f77025f772a578716cebf657e_rle_crop_3732906149_0.png', 1347736365: '1743042531_2760789_1347735548_027dd110848b38bc76275716773227fc_rle_crop_3732903846_0.png', 1347736364: '1743042531_2760789_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732903725_0.png', 1347736321: '1743042453_2760203_1347735548_027dd110848b38bc76275716773227fc_rle_crop_3732903846_0.png', 1347736320: '1743042453_2760203_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732903725_0.png', 1347735980: '1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902112_0.png', 1347735979: '1743042313_2758693_1347735414_af706a27fdf5ad0fc0d884397e155448_rle_crop_3732902098_0.png', 1347735978: '1743042313_2758693_1347735420_aefd6eea132624f87514e68f01210f2a_rle_crop_3732902084_0.png', 1347735422: '1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894952_0.png', 1347735962: '1743042331_2758905_1347735218_c033bd62340855ff33d07b2c3de2b262_rle_crop_3732902070_0.png', 1347735954: '1743042293_2758431_1347735525_6b57824582ee1de714503ab8965e17be_rle_crop_3732899498_0.png', 1347735953: '1743042293_2758431_1347735525_6b57824582ee1de714503ab8965e17be_rle_crop_3732899499_0.png', 1347735535: '1743042164_95036_1347734951_e86ed4bf87567bd331d817c541c30df8_rle_crop_3732896302_0.png', 1347735534: '1743042164_95036_1347734954_8f6842555853b846ecb7103e9b744bd9_rle_crop_3732896276_0.png', 1347735533: '1743042164_95036_1347734957_34829ed8bb7e5d9e7f52764e6b46d5d1_rle_crop_3732896264_0.png', 1347735424: '1743042051_2755832_1347735050_dd8374ab5bb7d8f8d648e26b3d34f6a8_rle_crop_3732894968_0.png', 1347735423: '1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b05634cdfd1ac3ac2ce7bd1372f8be45_58845159.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/dd51af8c61133b74245b7dd1658cc720_41235133.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5093af8ef1e6c9eac47aea341ebbe09c_49355525.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/823df02ea748686c9d87ce6a90b9e5c4_92786289.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/0eaeb29bb8d591fb7bd158bb7d8a7d91_76728042.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/823df02ea748686c9d87ce6a90b9e5c4_92471548.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/0eaeb29bb8d591fb7bd158bb7d8a7d91_85136939.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a36d817cbe3e5bd466b2a3e8cc45c825_15435190.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/68d367d1bffb08c0b6d691ed4023b93a_24549077.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/525a6777b5b982842ce86ae5d2c43601_39619417.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/0ca58f7e247a9529bd4035f5000c8419_40818000.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/397925a8b8e3510e2da7f4e9b26009b3_41588610.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d3db2e5609d477d49dd2d47a70e88eea_18999638.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b06d9aef7ba56c0bde7e85e63aa6b69a_81153043.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/84131e0b257b987f0970bbe222200577_87711222.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/22d8d2e254fb445446c3bd2a682cc136_14584366.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5b1045beda256195f375316a417957a1_6369273.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b770b2a0d8bd45586be8c6372b025278_72127746.png change filename to text .imagette217668361743042785/ imagette217668361743042785/1743042633_2762080_1347736357_4f2ca31f77025f772a578716cebf657e_rle_crop_3732906149_0.png.png imagette217668361743042785/1743042051_2755832_1347735050_dd8374ab5bb7d8f8d648e26b3d34f6a8_rle_crop_3732894968_0.png.png imagette217668361743042785/1743042531_2760789_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732903725_0.png.png imagette217668361743042785/1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902059_0.png.png imagette217668361743042785/1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894949_0.png.png imagette217668361743042785/1743042313_2758693_1347735414_af706a27fdf5ad0fc0d884397e155448_rle_crop_3732902098_0.png.png imagette217668361743042785/1743042164_95036_1347734954_8f6842555853b846ecb7103e9b744bd9_rle_crop_3732896276_0.png.png imagette217668361743042785/1743042331_2758905_1347735218_c033bd62340855ff33d07b2c3de2b262_rle_crop_3732902070_0.png.png imagette217668361743042785/1743042313_2758693_1347735420_aefd6eea132624f87514e68f01210f2a_rle_crop_3732902084_0.png.png imagette217668361743042785/1743042164_95036_1347734957_34829ed8bb7e5d9e7f52764e6b46d5d1_rle_crop_3732896264_0.png.png imagette217668361743042785/1743042453_2760203_1347735548_027dd110848b38bc76275716773227fc_rle_crop_3732903846_0.png.png imagette217668361743042785/1743042453_2760203_1347735894_4877ad0660902dc765f19ff34bab8ac1_rle_crop_3732903725_0.png.png imagette217668361743042785/1743042164_95036_1347734951_e86ed4bf87567bd331d817c541c30df8_rle_crop_3732896302_0.png.png imagette217668361743042785/1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894952_0.png.png imagette217668361743042785/1743042293_2758431_1347735525_6b57824582ee1de714503ab8965e17be_rle_crop_3732899499_0.png.png imagette217668361743042785/1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902112_0.png.png imagette217668361743042785/1743042293_2758431_1347735525_6b57824582ee1de714503ab8965e17be_rle_crop_3732899498_0.png.png imagette217668361743042785/1743042643_100236_1347736334_e0bb7ce049767e9a09356ada73827b54_rle_crop_3732906611_0.png.png imagette217668361743042785/1743042531_2760789_1347735548_027dd110848b38bc76275716773227fc_rle_crop_3732903846_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f3a26d5059396dd62499673ca87189b3_38679932.png imagette217668361743042785 21766837 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=21766837 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347735417: '1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894954_0.png', 1347735463: '1743042073_2756118_1347735069_2c203bfedf77ffca67290eb8acdc576a_rle_crop_3732895989_0.png', 1347735464: '1743042073_2756118_1347735033_f1c5909c780ad7ee4b81cd7c8045d0da_rle_crop_3732896006_0.png', 1347735520: '1743042164_95036_1347734959_42a9de950305837e3f5aea8eb10a664a_rle_crop_3732896182_0.png', 1347735521: '1743042164_95036_1347734957_34829ed8bb7e5d9e7f52764e6b46d5d1_rle_crop_3732896268_0.png', 1347735946: '1743042293_2758431_1347735477_ef86914e81ca64752dd4ff3dfaba5a7d_rle_crop_3732899511_0.png', 1347735947: '1743042293_2758431_1347735469_d8b1656c314d76ddc9c4b0d69143a1fc_rle_crop_3732901435_0.png', 1347735967: '1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902058_0.png', 1347735968: '1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902114_0.png', 1347736491: '1743042613_2761664_1347736255_15a718b6468650c523191e4c4ec6560d_rle_crop_3732905328_0.png', 1347736492: '1743042613_2761664_1347735987_1d7d327f6190dc0b9b0f35d4c87fa213_rle_crop_3732905345_0.png', 1347736493: '1743042613_2761664_1347735975_675bb73e37f66f3aad2c0d54f12213a8_rle_crop_3732905445_0.png', 1347736494: '1743042613_2761664_1347735975_675bb73e37f66f3aad2c0d54f12213a8_rle_crop_3732905443_0.png', 1347736495: '1743042613_2761664_1347735965_4679c6d488ef4a7f1acd25f8c3fb0480_rle_crop_3732905466_0.png', 1347736496: '1743042613_2761664_1347735965_4679c6d488ef4a7f1acd25f8c3fb0480_rle_crop_3732905463_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/12818041a384739476d8e0d9eb33a5f7_46128963.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7310fa1c8842e8fb65e9e6dd1378a036_73857203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b910cd34d59697555948fc6be779a799_74999500.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b2f441c40e56a4f7ed80ac5eb0b2cbcd_23924016.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8799c822fdfbc56f7efc4ff6d4d1c1cf_16060286.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/af7aef2d763e4a64263ee24ac625e2df_79787010.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/34cabe1d592a352f22b8803c85aec6b4_68828930.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/80e74f2848d5c8590fe88965a3ab87ae_62715940.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2d4ab10acd0eadb21a416784cc0dee4f_84961029.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4e66bfc95e5471447cff13df64957bcc_4849606.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/56a8219284e05060ce1a0ec297b31900_33605530.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8e8072acba6bdd56e8c4f01c8a8975bf_19126970.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/af3a2729bd513ba1cb15ae4cc114b245_87823543.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2990c37c34b4225442a6ddb1a8a304c6_76350797.png change filename to text .imagette217668371743042786/ imagette217668371743042786/1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902114_0.png.png imagette217668371743042786/1743042293_2758431_1347735477_ef86914e81ca64752dd4ff3dfaba5a7d_rle_crop_3732899511_0.png.png imagette217668371743042786/1743042613_2761664_1347735975_675bb73e37f66f3aad2c0d54f12213a8_rle_crop_3732905445_0.png.png imagette217668371743042786/1743042164_95036_1347734957_34829ed8bb7e5d9e7f52764e6b46d5d1_rle_crop_3732896268_0.png.png imagette217668371743042786/1743042613_2761664_1347735965_4679c6d488ef4a7f1acd25f8c3fb0480_rle_crop_3732905463_0.png.png imagette217668371743042786/1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902058_0.png.png imagette217668371743042786/1743042293_2758431_1347735469_d8b1656c314d76ddc9c4b0d69143a1fc_rle_crop_3732901435_0.png.png imagette217668371743042786/1743042073_2756118_1347735069_2c203bfedf77ffca67290eb8acdc576a_rle_crop_3732895989_0.png.png imagette217668371743042786/1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894954_0.png.png imagette217668371743042786/1743042073_2756118_1347735033_f1c5909c780ad7ee4b81cd7c8045d0da_rle_crop_3732896006_0.png.png imagette217668371743042786/1743042613_2761664_1347735975_675bb73e37f66f3aad2c0d54f12213a8_rle_crop_3732905443_0.png.png imagette217668371743042786/1743042613_2761664_1347735987_1d7d327f6190dc0b9b0f35d4c87fa213_rle_crop_3732905345_0.png.png imagette217668371743042786/1743042613_2761664_1347736255_15a718b6468650c523191e4c4ec6560d_rle_crop_3732905328_0.png.png imagette217668371743042786/1743042613_2761664_1347735965_4679c6d488ef4a7f1acd25f8c3fb0480_rle_crop_3732905466_0.png.png imagette217668371743042786/1743042164_95036_1347734959_42a9de950305837e3f5aea8eb10a664a_rle_crop_3732896182_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/27c7f49285c0f03d55bb6e6323cba718_41028336.png imagette217668371743042786 21766839 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=21766839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347735418: '1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894945_0.png', 1347735419: '1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894946_0.png', 1347735466: '1743042073_2756118_1347735018_cd74fe44176fb48b05555e40b6c00c71_rle_crop_3732896037_0.png', 1347735527: '1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896166_0.png', 1347735528: '1743042164_95036_1347734957_34829ed8bb7e5d9e7f52764e6b46d5d1_rle_crop_3732896262_0.png', 1347735950: '1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900454_0.png', 1347735951: '1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900464_0.png', 1347735952: '1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900460_0.png', 1347735969: '1743042313_2758693_1347735481_89a0fb4c95fb2f813b37218291faae32_rle_crop_3732902022_0.png', 1347735970: '1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902056_0.png', 1347735971: '1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902109_0.png', 1347735972: '1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902110_0.png', 1347735973: '1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902106_0.png', 1347736510: '1743042613_2761664_1347736255_15a718b6468650c523191e4c4ec6560d_rle_crop_3732905327_0.png', 1347736511: '1743042613_2761664_1347735975_675bb73e37f66f3aad2c0d54f12213a8_rle_crop_3732905448_0.png', 1347736512: '1743042613_2761664_1347735965_4679c6d488ef4a7f1acd25f8c3fb0480_rle_crop_3732905456_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/28e3d66cdd3e48d89b68dc9d96582bdc_96076323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e8992243380b0504b8ca379fc88a9045_19931760.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/81b726d61e2534bb5221e740c04b1876_54488267.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1126ab732235da4cfb0f962da68aee5f_16880058.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1c04baac7f9893ce53152325e54318bd_54938770.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/88c0c66cf0ab3a1d99f5898d778957ba_62182848.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5d9a18b1c21cecfb70c76d0fa7212680_8549092.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/07aef238fd97883f68cb16a44d7b2013_90283338.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5ffa095cd6d7faecad3f57c89d5d1d48_94890285.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e27dc3e8a9198ffea399cad0b074a14e_17943056.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/6d431c818a7c33b7e0006060312cf01c_90390474.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9e5a8690df8722e633a248ed2e5213fd_73820677.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f640a91340f608b444acafbd64e55222_81702798.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/32c0a3a40f090a625bdee306a927c622_57064818.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/358f6e5debc4d2bf6e1f184176f3aa55_18148379.png change filename to text .imagette217668391743042787/ imagette217668391743042787/1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902106_0.png.png imagette217668391743042787/1743042073_2756118_1347735018_cd74fe44176fb48b05555e40b6c00c71_rle_crop_3732896037_0.png.png imagette217668391743042787/1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894946_0.png.png imagette217668391743042787/1743042613_2761664_1347735975_675bb73e37f66f3aad2c0d54f12213a8_rle_crop_3732905448_0.png.png imagette217668391743042787/1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902110_0.png.png imagette217668391743042787/1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900464_0.png.png imagette217668391743042787/1743042313_2758693_1347735412_7c36df8f00176d3fdd8fa57feae1f050_rle_crop_3732902109_0.png.png imagette217668391743042787/1743042613_2761664_1347736255_15a718b6468650c523191e4c4ec6560d_rle_crop_3732905327_0.png.png imagette217668391743042787/1743042051_2755832_1347735053_8a56c7a1f4b91f948e05900a4c9ea69e_rle_crop_3732894945_0.png.png imagette217668391743042787/1743042313_2758693_1347735481_89a0fb4c95fb2f813b37218291faae32_rle_crop_3732902022_0.png.png imagette217668391743042787/1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900460_0.png.png imagette217668391743042787/1743042293_2758431_1347735473_6506d5863d101f510115775eab919714_rle_crop_3732900454_0.png.png imagette217668391743042787/1743042313_2758693_1347735440_fff8ce303a4776ec24d60b1108dbbcc5_rle_crop_3732902056_0.png.png imagette217668391743042787/1743042613_2761664_1347735965_4679c6d488ef4a7f1acd25f8c3fb0480_rle_crop_3732905456_0.png.png imagette217668391743042787/1743042164_95036_1347734957_34829ed8bb7e5d9e7f52764e6b46d5d1_rle_crop_3732896262_0.png.png imagette217668391743042787/1743042164_95036_1347735038_4beb54970b197f2daa1298adc37d0d42_rle_crop_3732896166_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/df3149f2b8482307d28b44384d5c9468_7660337.png imagette217668391743042787 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21766833 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21766846,21766847,21766848,21766849,21766850,21766851,21766852,21766853,21766854,21766855,21766856,21766857?tags=metal,kraft,Carton_brun,Teint_Dans_La_Masse,mal_croppe,Carton_gris,autre_refus,flou,papier,environnement,cartonnette,plastique your option no_mail is active, we will not send the real mail to your client args[1347736485] : ('0.05341903782188338',) no score found for photo 1347736485 We are sending mail with results at report@fotonower.com args[1347736475] : ('0.05341903782188338',) no score found for photo 1347736475 We are sending mail with results at report@fotonower.com args[1347736471] : ('0.05341903782188338',) no score found for photo 1347736471 We are sending mail with results at report@fotonower.com args[1347736470] : ('0.05341903782188338',) no score found for photo 1347736470 We are sending mail with results at report@fotonower.com args[1347736441] : ('0.05341903782188338',) no score found for photo 1347736441 We are sending mail with results at report@fotonower.com args[1347736434] : ('0.05341903782188338',) no score found for photo 1347736434 We are sending mail with results at report@fotonower.com args[1347736425] : ('0.05341903782188338',) no score found for photo 1347736425 We are sending mail with results at report@fotonower.com args[1347736422] : ('0.05341903782188338',) no score found for photo 1347736422 We are sending mail with results at report@fotonower.com args[1347736419] : ('0.05341903782188338',) no score found for photo 1347736419 We are sending mail with results at report@fotonower.com refus_total : 0.05341903782188338 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=21766833 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_P21766833_27-03-2025_03_33_03.pdf results_Auto_P21766833_27-03-2025_03_33_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766833_27-03-2025_03_33_03.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','21766833','results_Auto_P21766833_27-03-2025_03_33_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766833_27-03-2025_03_33_03.pdf','pdf','','0.29','0.05341903782188338') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766833]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] map_info['map_portfolio_photo'] : {21766833: [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419, 1347736361, 1347736357, 1347736354, 1347736342, 1347736338, 1347736334, 1347736327, 1347736255, 1347736251, 1347736245, 1347736242, 1347735989, 1347735987, 1347735985, 1347735975, 1347735965, 1347735894, 1347735867, 1347735827, 1347735802, 1347735795, 1347735554, 1347735550, 1347735548, 1347735525, 1347735519, 1347735517, 1347735513, 1347735511, 1347735481, 1347735477, 1347735473, 1347735469, 1347735442, 1347735440, 1347735420, 1347735414, 1347735412, 1347735233, 1347735218, 1347735069, 1347735053, 1347735050, 1347735038, 1347735033, 1347735028, 1347735023, 1347735018, 1347735012, 1347734959, 1347734957, 1347734954, 1347734951]} final : False mtd_id 4302 list_pids : [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] 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, '2695507') ('4302', '21766833', '1347736485', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736475', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736471', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736470', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736441', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736434', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736425', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736422', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736419', None, None, None, None, None, '2695507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21766833', '1347736485', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736475', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736471', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736470', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736441', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736434', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736425', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736422', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736419', None, None, None, None, None, '2695507')] time used for this insertion : 0.01375579833984375 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.7641894817352295 time spend to save output : 0.01397705078125 total time spend for step 4 : 6.7781665325164795 step5:split_time_score Thu Mar 27 03:33:10 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 : ['21766833'] 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 : [('21766833',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766833) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347736485: {'path': 'temp/1743042783_2074659_1347736485_951d41e219e8fb04f5a79f3e7b7083bc.jpg', 'extension': 'jpg'}, 1347736425: {'path': 'temp/1743042783_2074659_1347736425_fb08af2cd9ee835858fb6e391dfa88fa.jpg', 'extension': 'jpg'}, 1347736434: {'path': 'temp/1743042783_2074659_1347736434_fe4dcf79d72f289bcaf673b481e0a793.jpg', 'extension': 'jpg'}, 1347736441: {'path': 'temp/1743042783_2074659_1347736441_c9976a4e8a28b70880dca8b43e6e77f1.jpg', 'extension': 'jpg'}, 1347736470: {'path': 'temp/1743042783_2074659_1347736470_d98a3bdd0823a4abc3406b1a000d7ecc.jpg', 'extension': 'jpg'}, 1347736419: {'path': 'temp/1743042783_2074659_1347736419_23ec99d066eed1f485d60e404923f182.jpg', 'extension': 'jpg'}, 1347736422: {'path': 'temp/1743042783_2074659_1347736422_8dd4ae0a5c1c85a82aa884fcd17f10d9.jpg', 'extension': 'jpg'}, 1347736471: {'path': 'temp/1743042783_2074659_1347736471_4e27d65a00a7dbfd07fd57c3c5adbad9.jpg', 'extension': 'jpg'}, 1347736475: {'path': 'temp/1743042783_2074659_1347736475_755d82d1ee49d9d0a89d8b72ca57de5b.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 = 21766833; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21766833 group by h (('03', 62),) 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=21766833 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 (21766833) 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 (21766833) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27032025 21766833 Nombre de photos uploadées : 62 / 23040 (0%) 27032025 21766833 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 27032025 21766833 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1347734959, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/42a9de950305837e3f5aea8eb10a664a.jpg', 'username': None, 'uploaded_at': 1743041836, 'text': 'image_27032025_03_15_04_010146m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347734957, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/34829ed8bb7e5d9e7f52764e6b46d5d1.jpg', 'username': None, 'uploaded_at': 1743041836, 'text': 'image_27032025_03_15_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347734954, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8f6842555853b846ecb7103e9b744bd9.jpg', 'username': None, 'uploaded_at': 1743041836, 'text': 'image_27032025_03_15_24_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1347734951, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e86ed4bf87567bd331d817c541c30df8.jpg', 'username': None, 'uploaded_at': 1743041836, 'text': 'image_27032025_03_15_43_009131m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002998828887939453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21766833, '2025-03-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1692045,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022876739501953125 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= 1692045 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1692045, 'dashboard_run_id': 1699999, 'mtr_portfolio_id': 21765473, 'dashboard_result_id': 9661338, '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_P21765473_27-03-2025_03_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1699999, 'mtr_portfolio_id': 21766075, 'dashboard_result_id': 9661339, '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_P21766075_27-03-2025_03_17_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1699999, 'mtr_portfolio_id': 21766833, 'dashboard_result_id': 9661340, '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_P21766833_27-03-2025_03_29_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21766834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766845, '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 = 21765473 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': 2695413, 'mtr_portfolio_id': 21765473, 'created_at': datetime.datetime(2025, 3, 27, 3, 2, 59), 'result': '0.053400387127125006', 'result_long': None, 'result_double': None}] Qualite : 0.053400387127125006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21765473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_27-03-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21765473 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_P21765473_27-03-2025_03_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}" where mtr_portfolio_id = 21765473 and dashboard_run_id = 1699999 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`=21765473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9661338, 0.053400387127125006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_27-03-2025_03_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21766075 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': 2695466, 'mtr_portfolio_id': 21766075, 'created_at': datetime.datetime(2025, 3, 27, 3, 17, 59), 'result': '0.0512553080567632', 'result_long': None, 'result_double': None}] Qualite : 0.0512553080567632 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21766075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_17_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21766075 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_P21766075_27-03-2025_03_17_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}" where mtr_portfolio_id = 21766075 and dashboard_run_id = 1699999 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`=21766075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9661339, 0.0512553080567632, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_17_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21766833 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': 2695507, 'mtr_portfolio_id': 21766833, 'created_at': datetime.datetime(2025, 3, 27, 3, 33, 3), 'result': '0.05341903782188338', 'result_long': None, 'result_double': None}] Qualite : 0.05341903782188338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21766833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766833_27-03-2025_03_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21766833 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_P21766833_27-03-2025_03_33_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21766834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766845, 'pht': 3726}}" where mtr_portfolio_id = 21766833 and dashboard_run_id = 1699999 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`=21766833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9661340, 0.05341903782188338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766833_27-03-2025_03_33_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21766834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766845, '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 (21765473,21766075,21766833) result : ((1347725235,), (1347725238,), (1347725246,), (1347725256,), (1347725306,), (1347725311,), (1347725321,), (1347725325,), (1347725331,), (1347725335,), (1347725355,), (1347725363,), (1347725374,), (1347725381,), (1347725394,), (1347725474,), (1347725565,), (1347725657,), (1347725673,), (1347725694,), (1347725806,), (1347726247,), (1347726266,), (1347726284,), (1347726287,), (1347726303,), (1347726326,), (1347726589,), (1347726615,), (1347726653,), (1347726676,), (1347726880,), (1347726890,), (1347726895,), (1347726902,), (1347726917,), (1347727042,), (1347727045,), (1347727065,), (1347727073,), (1347727079,), (1347727083,), (1347727397,), (1347727422,), (1347727449,), (1347727479,), (1347727507,), (1347727529,), (1347727785,), (1347727794,), (1347727800,), (1347728037,), (1347728061,), (1347728073,), (1347728078,), (1347728083,), (1347728090,), (1347728143,), (1347728146,), (1347728150,), (1347728154,), (1347728179,), (1347728182,), (1347728185,), (1347728188,), (1347728564,), (1347728589,), (1347728623,), (1347728649,), (1347728674,), (1347728726,), (1347728729,), (1347728750,), (1347728753,), (1347728773,), (1347728777,), (1347729138,), (1347728987,), (1347728995,), (1347729037,), (1347729076,), (1347729099,), (1347729365,), (1347729413,), (1347729452,), (1347729485,), (1347729976,), (1347730038,), (1347730110,), (1347730169,), (1347730588,), (1347730624,), (1347730659,), (1347730698,), (1347730734,), (1347730998,), (1347731040,), (1347731084,), (1347731119,), (1347731403,), (1347731431,), (1347731470,), (1347731549,), (1347731644,), (1347731702,), (1347733239,), (1347733249,), (1347733404,), (1347733419,), (1347733769,), (1347733825,), (1347733895,), (1347733973,), (1347734105,), (1347734113,), (1347734223,), (1347734232,), (1347734239,), (1347734258,), (1347734267,), (1347734545,), (1347734550,), (1347734584,), (1347734739,), (1347734740,), (1347734743,), (1347734746,), (1347734748,), (1347734750,), (1347734794,), (1347734798,), (1347734818,), (1347734841,), (1347734863,), (1347734866,), (1347734883,), (1347734888,), (1347734916,), (1347734960,), (1347734951,), (1347734954,), (1347734957,), (1347734959,), (1347735012,), (1347735018,), (1347735023,), (1347735028,), (1347735033,), (1347735038,), (1347735050,), (1347735053,), (1347735069,), (1347735218,), (1347735233,), (1347735412,), (1347735414,), (1347735420,), (1347735440,), (1347735442,), (1347735469,), (1347735473,), (1347735477,), (1347735481,), (1347735511,), (1347735513,), (1347735517,), (1347735519,), (1347735525,), (1347735548,), (1347735550,), (1347735554,), (1347735795,), (1347735802,), (1347735827,), (1347735867,), (1347735894,), (1347735965,), (1347735975,), (1347735985,), (1347735987,), (1347735989,), (1347736242,), (1347736245,), (1347736251,), (1347736255,), (1347736327,), (1347736334,), (1347736338,), (1347736342,), (1347736354,), (1347736357,), (1347736361,), (1347736419,), (1347736422,), (1347736425,), (1347736434,), (1347736441,), (1347736470,), (1347736471,), (1347736475,), (1347736485,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766833]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] map_info['map_portfolio_photo'] : {21766833: [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419, 1347736361, 1347736357, 1347736354, 1347736342, 1347736338, 1347736334, 1347736327, 1347736255, 1347736251, 1347736245, 1347736242, 1347735989, 1347735987, 1347735985, 1347735975, 1347735965, 1347735894, 1347735867, 1347735827, 1347735802, 1347735795, 1347735554, 1347735550, 1347735548, 1347735525, 1347735519, 1347735517, 1347735513, 1347735511, 1347735481, 1347735477, 1347735473, 1347735469, 1347735442, 1347735440, 1347735420, 1347735414, 1347735412, 1347735233, 1347735218, 1347735069, 1347735053, 1347735050, 1347735038, 1347735033, 1347735028, 1347735023, 1347735018, 1347735012, 1347734959, 1347734957, 1347734954, 1347734951]} final : True mtd_id 4302 list_pids : [1347736485, 1347736475, 1347736471, 1347736470, 1347736441, 1347736434, 1347736425, 1347736422, 1347736419] Looping around the photos to save general results len do output : 1 /21766833Didn'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, '2695507') ('4302', '21766833', '1347736485', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736475', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736471', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736470', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736441', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736434', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736425', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736422', None, None, None, None, None, '2695507') ('4302', None, None, None, None, None, None, None, '2695507') ('4302', '21766833', '1347736419', None, None, None, None, None, '2695507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21766833', 'None', None, None, None, None, '2695507'), ('4302', '21766833', '1347736485', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736475', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736471', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736470', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736441', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736434', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736425', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736422', None, None, None, None, None, '2695507'), ('4302', '21766833', '1347736419', None, None, None, None, None, '2695507')] time used for this insertion : 0.013146162033081055 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5646891593933105 time spend to save output : 0.01338052749633789 total time spend for step 5 : 0.5780696868896484 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 (2695507) 2.27user 2.61system 0:14.97elapsed 32%CPU (0avgtext+0avgdata 159764maxresident)k 288inputs+14784outputs (2major+71879minor)pagefaults 0swaps