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 : 2550480 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 (2604434) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2604434) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723860 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2604434'] with mtr_portfolio_ids : ['20723860'] and first list_photo_ids : [] new path : /proc/2550480/ Name: python3 Umask: 0002 State: R (running) Tgid: 2550480 Ngid: 0 Pid: 2550480 PPid: 2550465 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2550480 NSpid: 2550480 NSpgid: 2533888 NSsid: 2533888 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98444 kB VmRSS: 98444 kB RssAnon: 59748 kB RssFile: 38696 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 43 nonvoluntary_ctxt_switches: 296 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2550480', 'Ngid': '0', 'Pid': '2550480', 'PPid': '2550465', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2550480', 'NSpid': '2550480', 'NSpgid': '2533888', 'NSsid': '2533888', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98444 kB', 'VmRSS': '98444 kB', 'RssAnon': '59748 kB', 'RssFile': '38696 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '43', 'nonvoluntary_ctxt_switches': '296'} ('datou_batch_current', '2550480', '1106840', '0', '1106840', '865588', '98444', b'', 'marlene', '2604434') 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 (20723860) 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 (2604434 ) ) 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 (20723860) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338803712, 'portfolio_id': 20723860}, {'photo_id': 1338803642, 'portfolio_id': 20723860}, {'photo_id': 1338803639, 'portfolio_id': 20723860}, {'photo_id': 1338803637, 'portfolio_id': 20723860}, {'photo_id': 1338803635, 'portfolio_id': 20723860}, {'photo_id': 1338803470, 'portfolio_id': 20723860}, {'photo_id': 1338803465, 'portfolio_id': 20723860}, {'photo_id': 1338803462, 'portfolio_id': 20723860}, {'photo_id': 1338803461, 'portfolio_id': 20723860}, {'photo_id': 1338803443, 'portfolio_id': 20723860}, {'photo_id': 1338803439, 'portfolio_id': 20723860}, {'photo_id': 1338803434, 'portfolio_id': 20723860}, {'photo_id': 1338803432, 'portfolio_id': 20723860}, {'photo_id': 1338803408, 'portfolio_id': 20723860}, {'photo_id': 1338803347, 'portfolio_id': 20723860}, {'photo_id': 1338803339, 'portfolio_id': 20723860}, {'photo_id': 1338803336, 'portfolio_id': 20723860}, {'photo_id': 1338803237, 'portfolio_id': 20723860}, {'photo_id': 1338803232, 'portfolio_id': 20723860}, {'photo_id': 1338803218, 'portfolio_id': 20723860}, {'photo_id': 1338803197, 'portfolio_id': 20723860}, {'photo_id': 1338803194, 'portfolio_id': 20723860}, {'photo_id': 1338803191, 'portfolio_id': 20723860}, {'photo_id': 1338802878, 'portfolio_id': 20723860}, {'photo_id': 1338802863, 'portfolio_id': 20723860}, {'photo_id': 1338802860, 'portfolio_id': 20723860}, {'photo_id': 1338802857, 'portfolio_id': 20723860}, {'photo_id': 1338802855, 'portfolio_id': 20723860}, {'photo_id': 1338802816, 'portfolio_id': 20723860}, {'photo_id': 1338802814, 'portfolio_id': 20723860}, {'photo_id': 1338802812, 'portfolio_id': 20723860}, {'photo_id': 1338802791, 'portfolio_id': 20723860}, {'photo_id': 1338802789, 'portfolio_id': 20723860}, {'photo_id': 1338802787, 'portfolio_id': 20723860}, {'photo_id': 1338802783, 'portfolio_id': 20723860}, {'photo_id': 1338802766, 'portfolio_id': 20723860}, {'photo_id': 1338802762, 'portfolio_id': 20723860}, {'photo_id': 1338802758, 'portfolio_id': 20723860}, {'photo_id': 1338802747, 'portfolio_id': 20723860}, {'photo_id': 1338802672, 'portfolio_id': 20723860}, {'photo_id': 1338802647, 'portfolio_id': 20723860}, {'photo_id': 1338802625, 'portfolio_id': 20723860}, {'photo_id': 1338802616, 'portfolio_id': 20723860}, {'photo_id': 1338802607, 'portfolio_id': 20723860}, {'photo_id': 1338802602, 'portfolio_id': 20723860}, {'photo_id': 1338802574, 'portfolio_id': 20723860}, {'photo_id': 1338802570, 'portfolio_id': 20723860}, {'photo_id': 1338802567, 'portfolio_id': 20723860}, {'photo_id': 1338802559, 'portfolio_id': 20723860}, {'photo_id': 1338802551, 'portfolio_id': 20723860}, {'photo_id': 1338802547, 'portfolio_id': 20723860}, {'photo_id': 1338802462, 'portfolio_id': 20723860}, {'photo_id': 1338802448, 'portfolio_id': 20723860}, {'photo_id': 1338802440, 'portfolio_id': 20723860}, {'photo_id': 1338802366, 'portfolio_id': 20723860}, {'photo_id': 1338802091, 'portfolio_id': 20723860}, {'photo_id': 1338802032, 'portfolio_id': 20723860}, {'photo_id': 1338802026, 'portfolio_id': 20723860}, {'photo_id': 1338802012, 'portfolio_id': 20723860}, {'photo_id': 1338802008, 'portfolio_id': 20723860}] map_portfolio_id_photo_id: {20723860: [1338803712, 1338803642, 1338803639, 1338803637, 1338803635, 1338803470, 1338803465, 1338803462, 1338803461, 1338803443, 1338803439, 1338803434, 1338803432, 1338803408, 1338803347, 1338803339, 1338803336, 1338803237, 1338803232, 1338803218, 1338803197, 1338803194, 1338803191, 1338802878, 1338802863, 1338802860, 1338802857, 1338802855, 1338802816, 1338802814, 1338802812, 1338802791, 1338802789, 1338802787, 1338802783, 1338802766, 1338802762, 1338802758, 1338802747, 1338802672, 1338802647, 1338802625, 1338802616, 1338802607, 1338802602, 1338802574, 1338802570, 1338802567, 1338802559, 1338802551, 1338802547, 1338802462, 1338802448, 1338802440, 1338802366, 1338802091, 1338802032, 1338802026, 1338802012, 1338802008]} ##### 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.016398906707763672 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 21 12:00:30 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 (20723860) 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 : 20723860 get user id for portfolio 20723860 get sub ptf for main ptf 20723860, type 3726 and hashtags ['cartonnette', 'plastique', 'Carton_gris', 'flou', 'metal', 'mal_croppe', 'kraft', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'environnement', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20723860 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_gris','flou','metal','mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','papier','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20723860 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_gris','flou','metal','mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','papier','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20723860, 'sub_port_id': 20723950, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369684, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'flou': {'main_port_id': 20723860, 'sub_port_id': 20723951, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369685, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'environnement': {'main_port_id': 20723860, 'sub_port_id': 20723952, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369686, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'papier': {'main_port_id': 20723860, 'sub_port_id': 20723953, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369687, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'Carton_brun': {'main_port_id': 20723860, 'sub_port_id': 20723954, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369688, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'plastique': {'main_port_id': 20723860, 'sub_port_id': 20723955, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369689, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'metal': {'main_port_id': 20723860, 'sub_port_id': 20723956, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369690, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'Carton_gris': {'main_port_id': 20723860, 'sub_port_id': 20723957, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369691, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'cartonnette': {'main_port_id': 20723860, 'sub_port_id': 20723958, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369692, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'autre_refus': {'main_port_id': 20723860, 'sub_port_id': 20723959, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369693, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'mal_croppe': {'main_port_id': 20723860, 'sub_port_id': 20723960, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369694, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20723860, 'sub_port_id': 20723961, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369695, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20723950 , 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=20723860 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 (20723950) result : ((1338802902,), (1338802903,), (1338803235,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723951 , 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=20723860 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 (20723951) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723952 , 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=20723860 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 (20723952) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723953 , 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=20723860 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 (20723953) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723954 , 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=20723860 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 (20723954) result : ((1338802642,), (1338802785,), (1338802836,), (1338802837,), (1338802838,), (1338802839,), (1338802850,), (1338802898,), (1338802899,), (1338803226,), (1338803227,), (1338803228,), (1338803229,), (1338803230,), (1338803231,), (1338803310,), (1338803311,), (1338803312,), (1338803313,), (1338803314,), (1338803405,), (1338803788,), (1338803790,), (1338805146,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723955 , 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=20723860 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 (20723955) result : ((1338802900,), (1338803233,), (1338803402,), (1338803482,), (1338803811,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723956 , 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=20723860 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 (20723956) result : ((1338803406,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723957 , 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=20723860 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 (20723957) result : ((1338802640,), (1338802641,), (1338802782,), (1338802832,), (1338802833,), (1338802834,), (1338802848,), (1338802895,), (1338802896,), (1338803303,), (1338803304,), (1338803305,), (1338803481,), (1338803726,), (1338803728,), (1338803729,), (1338805139,), (1338805140,), (1338805148,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723958 , 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=20723860 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 (20723958) result : ((1338802784,), (1338802849,), (1338802897,), (1338803221,), (1338803222,), (1338803223,), (1338803400,), (1338803401,), (1338803764,), (1338803765,), (1338805142,), (1338805143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723959 , 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=20723860 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 (20723959) result : ((1338802829,), (1338802830,), (1338803215,), (1338803216,), (1338803217,), (1338803295,), (1338803296,), (1338803696,), (1338803697,), (1338803698,), (1338803700,), (1338805138,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723960 , 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=20723860 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 (20723960) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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 20723961 , 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=20723860 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 (20723961) result : ((1338802778,), (1338802779,), (1338802780,), (1338802845,), (1338802846,), (1338802847,), (1338802893,), (1338802894,), (1338803214,), (1338803398,), (1338803399,), (1338803480,), (1338803645,), (1338803646,), (1338803647,), (1338803648,), (1338805135,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20723860) result : ((1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) 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`=20723860 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_gris','flou','metal','mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','papier','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20723860 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_gris','flou','metal','mal_croppe','kraft','autre_refus','Teint_Dans_La_Masse','papier','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20723860, 'sub_port_id': 20723962, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369696, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'flou': {'main_port_id': 20723860, 'sub_port_id': 20723963, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369697, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'environnement': {'main_port_id': 20723860, 'sub_port_id': 20723964, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369698, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'papier': {'main_port_id': 20723860, 'sub_port_id': 20723965, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369699, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'Carton_brun': {'main_port_id': 20723860, 'sub_port_id': 20723966, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369700, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'plastique': {'main_port_id': 20723860, 'sub_port_id': 20723967, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369701, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'metal': {'main_port_id': 20723860, 'sub_port_id': 20723968, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369702, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'Carton_gris': {'main_port_id': 20723860, 'sub_port_id': 20723969, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369703, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'cartonnette': {'main_port_id': 20723860, 'sub_port_id': 20723970, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369704, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'autre_refus': {'main_port_id': 20723860, 'sub_port_id': 20723971, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369705, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'mal_croppe': {'main_port_id': 20723860, 'sub_port_id': 20723972, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369706, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20723860, 'sub_port_id': 20723973, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13369707, 'last_updated_at': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 11, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 11, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723967,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723968,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723957 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723970,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723971,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723959 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723972,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723960 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20723973,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20723961 lien utilise dans velours : https://www.fotonower.com/velours/20723962,20723963,20723964,20723965,20723966,20723967,20723968,20723969,20723970,20723971,20723972,20723973?tags=kraft,flou,environnement,papier,Carton_brun,plastique,metal,Carton_gris,cartonnette,autre_refus,mal_croppe,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20723860]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] map_info['map_portfolio_photo'] : {20723860: [1338803712, 1338803642, 1338803639, 1338803637, 1338803635, 1338803470, 1338803465, 1338803462, 1338803461, 1338803443, 1338803439, 1338803434, 1338803432, 1338803408, 1338803347, 1338803339, 1338803336, 1338803237, 1338803232, 1338803218, 1338803197, 1338803194, 1338803191, 1338802878, 1338802863, 1338802860, 1338802857, 1338802855, 1338802816, 1338802814, 1338802812, 1338802791, 1338802789, 1338802787, 1338802783, 1338802766, 1338802762, 1338802758, 1338802747, 1338802672, 1338802647, 1338802625, 1338802616, 1338802607, 1338802602, 1338802574, 1338802570, 1338802567, 1338802559, 1338802551, 1338802547, 1338802462, 1338802448, 1338802440, 1338802366, 1338802091, 1338802032, 1338802026, 1338802012, 1338802008]} final : False mtd_id 4302 list_pids : [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] Looping around the photos to save general results len do output : 1 /20723860. 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, '2604434') ('4302', '20723860', '1338803712', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803642', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803639', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803637', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803635', None, None, None, None, None, '2604434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '20723860', "{'kraft': 20723950, 'flou': 20723951, 'environnement': 20723952, 'papier': 20723953, 'Carton_brun': 20723954, 'plastique': 20723955, 'metal': 20723956, 'Carton_gris': 20723957, 'cartonnette': 20723958, 'autre_refus': 20723959, 'mal_croppe': 20723960, 'Teint_Dans_La_Masse': 20723961}", None, None, None, None, '2604434'), ('4302', '20723860', '1338803712', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803642', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803639', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803637', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803635', None, None, None, None, None, '2604434')] time used for this insertion : 0.01631760597229004 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4500064849853516 time spend to save output : 0.016730070114135742 total time spend for step 1 : 1.4667365550994873 step2:final Fri Feb 21 12:00:31 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 (20723860) 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 20723860 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338802091,1338802032,1338802026,1338802012,1338802008,1338802462,1338802448,1338802440,1338802366,1338802574,1338802570,1338802567,1338802559,1338802551,1338802547,1338802625,1338802616,1338802607,1338802602,1338802766,1338802762,1338802758,1338802747,1338802672,1338802647,1338802791,1338802789,1338802787,1338802783,1338802816,1338802814,1338802812,1338802878,1338802863,1338802860,1338802857,1338802855,1338803237,1338803232,1338803218,1338803197,1338803194,1338803191,1338803347,1338803339,1338803336,1338803443,1338803439,1338803434,1338803432,1338803408,1338803470,1338803465,1338803462,1338803461,1338803712,1338803642,1338803639,1338803637,1338803635); 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([20723860]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} new output for save of step final : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] map_info['map_portfolio_photo'] : {20723860: [1338803712, 1338803642, 1338803639, 1338803637, 1338803635, 1338803470, 1338803465, 1338803462, 1338803461, 1338803443, 1338803439, 1338803434, 1338803432, 1338803408, 1338803347, 1338803339, 1338803336, 1338803237, 1338803232, 1338803218, 1338803197, 1338803194, 1338803191, 1338802878, 1338802863, 1338802860, 1338802857, 1338802855, 1338802816, 1338802814, 1338802812, 1338802791, 1338802789, 1338802787, 1338802783, 1338802766, 1338802762, 1338802758, 1338802747, 1338802672, 1338802647, 1338802625, 1338802616, 1338802607, 1338802602, 1338802574, 1338802570, 1338802567, 1338802559, 1338802551, 1338802547, 1338802462, 1338802448, 1338802440, 1338802366, 1338802091, 1338802032, 1338802026, 1338802012, 1338802008]} final : False mtd_id 4302 list_pids : [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] Looping around the photos to save general results len do output : 5 /1338803712.Didn't retrieve data . /1338803642.Didn't retrieve data . /1338803639.Didn't retrieve data . /1338803637.Didn't retrieve data . /1338803635.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, '2604434') ('4302', '20723860', '1338803712', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803642', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803639', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803637', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803635', None, None, None, None, None, '2604434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20723860', '1338803712', '0.052037639871126924', None, None, None, None, '2604434'), ('4302', '20723860', '1338803642', '0.052037639871126924', None, None, None, None, '2604434'), ('4302', '20723860', '1338803639', '0.052037639871126924', None, None, None, None, '2604434'), ('4302', '20723860', '1338803637', '0.052037639871126924', None, None, None, None, '2604434'), ('4302', '20723860', '1338803635', '0.052037639871126924', None, None, None, None, '2604434')] time used for this insertion : 0.012448310852050781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07454514503479004 time spend to save output : 0.012997865676879883 total time spend for step 2 : 0.08754301071166992 step3:velours_tree Fri Feb 21 12:00:31 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 : {20723860: [{'kraft': 20723950, 'flou': 20723951, 'environnement': 20723952, 'papier': 20723953, 'Carton_brun': 20723954, 'plastique': 20723955, 'metal': 20723956, 'Carton_gris': 20723957, 'cartonnette': 20723958, 'autre_refus': 20723959, 'mal_croppe': 20723960, 'Teint_Dans_La_Masse': 20723961}]} input_args_next_step : {20723860: ()} output_args : {20723860: [{'kraft': 20723950, 'flou': 20723951, 'environnement': 20723952, 'papier': 20723953, 'Carton_brun': 20723954, 'plastique': 20723955, 'metal': 20723956, 'Carton_gris': 20723957, 'cartonnette': 20723958, 'autre_refus': 20723959, 'mal_croppe': 20723960, 'Teint_Dans_La_Masse': 20723961}]} args : 20723860 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 : ({'kraft': 20723950, 'flou': 20723951, 'environnement': 20723952, 'papier': 20723953, 'Carton_brun': 20723954, 'plastique': 20723955, 'metal': 20723956, 'Carton_gris': 20723957, 'cartonnette': 20723958, 'autre_refus': 20723959, 'mal_croppe': 20723960, 'Teint_Dans_La_Masse': 20723961},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20723860) 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([20723860]) 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.3693106174468994 time spend to save output : 9.632110595703125e-05 total time spend for step 3 : 0.36940693855285645 step4:send_mail_cod Fri Feb 21 12:00:32 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 : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} input_args_next_step : {1338803712: ()} output_args : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} args : 1338803712 depend.output_id : 0 input_args_next_step : {1338803712: ('0.052037639871126924',), 1338803642: ()} output_args : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} args : 1338803642 depend.output_id : 0 input_args_next_step : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ()} output_args : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} args : 1338803639 depend.output_id : 0 input_args_next_step : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ()} output_args : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} args : 1338803637 depend.output_id : 0 input_args_next_step : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ()} output_args : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',)} args : 1338803635 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 : {20723860: [{'kraft': 20723950, 'flou': 20723951, 'environnement': 20723952, 'papier': 20723953, 'Carton_brun': 20723954, 'plastique': 20723955, 'metal': 20723956, 'Carton_gris': 20723957, 'cartonnette': 20723958, 'autre_refus': 20723959, 'mal_croppe': 20723960, 'Teint_Dans_La_Masse': 20723961}]} input_args_next_step : {1338803712: ('0.052037639871126924',), 1338803642: ('0.052037639871126924',), 1338803639: ('0.052037639871126924',), 1338803637: ('0.052037639871126924',), 1338803635: ('0.052037639871126924',), 20723860: ()} output_args : {20723860: [{'kraft': 20723950, 'flou': 20723951, 'environnement': 20723952, 'papier': 20723953, 'Carton_brun': 20723954, 'plastique': 20723955, 'metal': 20723956, 'Carton_gris': 20723957, 'cartonnette': 20723958, 'autre_refus': 20723959, 'mal_croppe': 20723960, 'Teint_Dans_La_Masse': 20723961}]} args : 20723860 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 :6, first value : ('0.052037639871126924',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20723860) 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 (1338803712,1338803642,1338803639,1338803637,1338803635) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338803635 begin to download photo : 1338803639 begin to download photo : 1338803712 download finish for photo 1338803639 begin to download photo : 1338803642 download finish for photo 1338803635 begin to download photo : 1338803637 download finish for photo 1338803712 download finish for photo 1338803642 download finish for photo 1338803637 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P20723860_21-02-2025_12_00_32.pdf 20723950 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=20723950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338802902: '1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920542_0.png', 1338802903: '1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920795_0.png', 1338803235: '1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922493_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c7bb6ff468fc4b54355e5bb444b1faf5_23648600.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8508ee126461830e8970edb4c5d0bf78_6368962.png change filename to text .imagette207239501740135632/ imagette207239501740135632/1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920542_0.png.png imagette207239501740135632/1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920795_0.png.png imagette207239501740135632/1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922493_0.png.png imagette207239511740135632/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/060840da23b6fa782def86722db5447a_84622262.png imagette207239501740135632 20723951 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=20723951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207239511740135632 20723955 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=20723955 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338802900: '1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920539_0.png', 1338803233: '1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922494_0.png', 1338803402: '1740135314_256968_1338802855_e2c57a9722a21403b3acac3898b05b7a_rle_crop_3681923545_0.png', 1338803482: '1740135433_258498_1338803336_1f64a1afc245e4b183fcf981184fbb42_rle_crop_3681932064_0.png', 1338803811: '1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936768_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e9c733210a1de6bce4529b22ce986c18_15725788.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/03a89c049abf6f9df779ffaa77a56f2a_44126569.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/79e8e80c875ff961f7f99455b92a9a94_294208.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bf93834d2219c8ae2442557857854ff1_97751504.png change filename to text .imagette207239551740135632/ imagette207239551740135632/1740135314_256968_1338802855_e2c57a9722a21403b3acac3898b05b7a_rle_crop_3681923545_0.png.png imagette207239551740135632/1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936768_0.png.png imagette207239551740135632/1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920539_0.png.png imagette207239551740135632/1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922494_0.png.png imagette207239551740135632/1740135433_258498_1338803336_1f64a1afc245e4b183fcf981184fbb42_rle_crop_3681932064_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cc0a13adbb246d3763632e7fbb238033_76223723.png imagette207239551740135632 20723956 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=20723956 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338803406: '1740135332_257211_1338802878_4cefd58b3140bb3ed8eb6fc1ff1a517d_rle_crop_3681923563_0.png'} change filename to text .imagette207239561740135632/ imagette207239561740135632/1740135332_257211_1338802878_4cefd58b3140bb3ed8eb6fc1ff1a517d_rle_crop_3681923563_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ad4674177e8bd2b06c4bb083875e6958_19107244.png imagette207239561740135632 20723958 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=20723958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338802784: '1740134972_251731_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911940_0.png', 1338802849: '1740135114_254407_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911940_0.png', 1338802897: '1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920798_0.png', 1338803221: '1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922686_0.png', 1338803222: '1740135211_255578_1338802747_0e2e2f713cf43ba3c82b3bf0c4718a6d_rle_crop_3681922717_0.png', 1338803223: '1740135211_255578_1338802672_82c35f6ae9608a0d7ae9354a62673616_rle_crop_3681922746_0.png', 1338803400: '1740135314_256968_1338802860_847490afddd2e4e41b4446d55b57456c_rle_crop_3681923183_0.png', 1338803401: '1740135314_256968_1338802855_e2c57a9722a21403b3acac3898b05b7a_rle_crop_3681923546_0.png', 1338803764: '1740135451_258830_1338803218_345132b75ba463626ec26ff63f96631a_rle_crop_3681936228_0.png', 1338803765: '1740135451_258830_1338803194_057afeff81c1d81260b0cc40c208e72f_rle_crop_3681936501_0.png', 1338805142: '1740135552_259820_1338803432_baa323d3dcbdb605d43d6e7291d1c3d8_rle_crop_3681939981_0.png', 1338805143: '1740135552_259820_1338803432_baa323d3dcbdb605d43d6e7291d1c3d8_rle_crop_3681939979_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6cfd0e70a7eb5f5fd20df664b77d4b0e_16533837.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6cfd0e70a7eb5f5fd20df664b77d4b0e_75749003.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3234a0383bfdb4c13f557df7b5f4d2f6_23842529.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ab197658cf8333bdc394266f45723dfd_28216363.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/28fb6b2bc7143431501cc8d4aa4f04bf_93565021.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0eba3070d129fcbb618dbe6462c2224e_47136448.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3a63e767d5e1d88d9606beee66ebc285_11090702.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/89f133badc13df706bd7e1f7d9c29ab5_8353576.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c36a7d97071497c5e5fa19c7dd172245_1074663.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d34ab76ede1ebca93a85bc6dc1dd2f4a_65979721.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/325f463667ce0a7ddb31d965a3b7616e_86250806.png change filename to text .imagette207239581740135632/ imagette207239581740135632/1740135314_256968_1338802855_e2c57a9722a21403b3acac3898b05b7a_rle_crop_3681923546_0.png.png imagette207239581740135632/1740135451_258830_1338803218_345132b75ba463626ec26ff63f96631a_rle_crop_3681936228_0.png.png imagette207239581740135632/1740135451_258830_1338803194_057afeff81c1d81260b0cc40c208e72f_rle_crop_3681936501_0.png.png imagette207239581740135632/1740135314_256968_1338802860_847490afddd2e4e41b4446d55b57456c_rle_crop_3681923183_0.png.png imagette207239581740135632/1740135211_255578_1338802672_82c35f6ae9608a0d7ae9354a62673616_rle_crop_3681922746_0.png.png imagette207239581740135632/1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920798_0.png.png imagette207239581740135632/1740135114_254407_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911940_0.png.png imagette207239581740135632/1740134972_251731_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911940_0.png.png imagette207239581740135632/1740135552_259820_1338803432_baa323d3dcbdb605d43d6e7291d1c3d8_rle_crop_3681939981_0.png.png imagette207239581740135632/1740135211_255578_1338802747_0e2e2f713cf43ba3c82b3bf0c4718a6d_rle_crop_3681922717_0.png.png imagette207239581740135632/1740135552_259820_1338803432_baa323d3dcbdb605d43d6e7291d1c3d8_rle_crop_3681939979_0.png.png imagette207239581740135632/1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922686_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/77030bbe9917545a71160c79e83ff3f6_72724231.png imagette207239581740135632 20723959 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=20723959 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338802829: '1740135094_254121_1338802567_2601580c137449f8e18863a656bd9803_rle_crop_3681917734_0.png', 1338802830: '1740135094_254121_1338802559_e532246ea993235d28b654d649c6ced0_rle_crop_3681917837_0.png', 1338803215: '1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922488_0.png', 1338803216: '1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922688_0.png', 1338803217: '1740135211_255578_1338802647_a0a94a1a994fbeadd8bdee4a06a758c5_rle_crop_3681922764_0.png', 1338803295: '1740135233_255836_1338802567_2601580c137449f8e18863a656bd9803_rle_crop_3681917734_0.png', 1338803296: '1740135233_255836_1338802559_e532246ea993235d28b654d649c6ced0_rle_crop_3681917837_0.png', 1338803696: '1740135451_258830_1338803232_a92f1387b94ecd5aa6be7c9941a49b7b_rle_crop_3681936207_0.png', 1338803697: '1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936240_0.png', 1338803698: '1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936238_0.png', 1338803700: '1740135451_258830_1338803194_057afeff81c1d81260b0cc40c208e72f_rle_crop_3681936502_0.png', 1338805138: '1740135552_259820_1338803408_48e2a0a5c1944e027dd7405559e9e75b_rle_crop_3681940010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cdf85f0c5dc7f31fce523bb37f64d21e_96487809.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/32edd30a62bd27c5ed78caba9e81c2e1_50051127.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1608e06b67486123b8cd88e75460748d_36122060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/223497fc7139e0ed556e691e10f88ed8_88781178.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5794cd81c5d1a28de56ad8572ae7787f_4794385.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cdf85f0c5dc7f31fce523bb37f64d21e_14074641.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/32edd30a62bd27c5ed78caba9e81c2e1_5020441.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cb0c4cfa4babddc76c7df45c97f61ef5_44441973.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f8aec7a5f1d78f0b86a71b090164597c_27547984.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/09f6fd85e1ba2f96c63d9bee8b70a731_51894179.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3ea2ea3500cf62d30950c974cc4f2c41_53113780.png change filename to text .imagette207239591740135633/ imagette207239591740135633/1740135451_258830_1338803194_057afeff81c1d81260b0cc40c208e72f_rle_crop_3681936502_0.png.png imagette207239591740135633/1740135211_255578_1338802647_a0a94a1a994fbeadd8bdee4a06a758c5_rle_crop_3681922764_0.png.png imagette207239591740135633/1740135552_259820_1338803408_48e2a0a5c1944e027dd7405559e9e75b_rle_crop_3681940010_0.png.png imagette207239591740135633/1740135094_254121_1338802559_e532246ea993235d28b654d649c6ced0_rle_crop_3681917837_0.png.png imagette207239591740135633/1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922488_0.png.png imagette207239591740135633/1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922688_0.png.png imagette207239591740135633/1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936238_0.png.png imagette207239591740135633/1740135233_255836_1338802567_2601580c137449f8e18863a656bd9803_rle_crop_3681917734_0.png.png imagette207239591740135633/1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936240_0.png.png imagette207239591740135633/1740135233_255836_1338802559_e532246ea993235d28b654d649c6ced0_rle_crop_3681917837_0.png.png imagette207239591740135633/1740135094_254121_1338802567_2601580c137449f8e18863a656bd9803_rle_crop_3681917734_0.png.png imagette207239591740135633/1740135451_258830_1338803232_a92f1387b94ecd5aa6be7c9941a49b7b_rle_crop_3681936207_0.png.png imagette207239601740135634/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/68a6e1493108c187d498448434eba596_21240749.png imagette207239591740135633 20723960 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=20723960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207239601740135634 20723954 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=20723954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338803229: '1740135211_255578_1338802758_8c5bbaec0c07a4a5429059d9b255bbc6_rle_crop_3681922707_0.png', 1338805146: '1740135552_259820_1338803439_5a5171792bcfc5aea28c289757f280b1_rle_crop_3681939946_0.png', 1338803790: '1740135451_258830_1338803194_057afeff81c1d81260b0cc40c208e72f_rle_crop_3681936505_0.png', 1338803788: '1740135451_258830_1338803218_345132b75ba463626ec26ff63f96631a_rle_crop_3681936225_0.png', 1338803405: '1740135332_257211_1338802812_a228499dddbfe1073cc27286ec365dd5_rle_crop_3681923580_0.png', 1338803314: '1740135233_255836_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917979_0.png', 1338803313: '1740135233_255836_1338802559_e532246ea993235d28b654d649c6ced0_bib_crop_3681917833_0.jpg', 1338803312: '1740135233_255836_1338802559_e532246ea993235d28b654d649c6ced0_rle_crop_3681922919_0.png', 1338803311: '1740135233_255836_1338802570_6849b2249f46aac911d634c72d42ddd3_rle_crop_3681917717_0.png', 1338803310: '1740135233_255836_1338802625_73dd1a3764b70d0bdd365d132c7fd9a0_rle_crop_3681917702_0.png', 1338803231: '1740135211_255578_1338802647_a0a94a1a994fbeadd8bdee4a06a758c5_rle_crop_3681922765_0.png', 1338803230: '1740135211_255578_1338802672_82c35f6ae9608a0d7ae9354a62673616_rle_crop_3681922749_0.png', 1338802642: '1740134953_251434_1338802366_9f78fedc781326320f1198213a854c42_rle_crop_3681911550_0.png', 1338803228: '1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922693_0.png', 1338803227: '1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922689_0.png', 1338803226: '1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922496_0.png', 1338802899: '1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920794_0.png', 1338802898: '1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920548_0.png', 1338802850: '1740135114_254407_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911945_0.png', 1338802839: '1740135094_254121_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917979_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6784cfec757d3a15da88bbdd76f35534_13992255.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ddd313d3dcf6b23821322ceb9ce4fdeb_70985384.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/790abc95c0a92fccdf070e80834f249c_13803915.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a6ed1107e7728e847ade9e40a356c511_50733177.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/89d430fd91133571a3b03bfa37bf3ae4_36085826.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/25b7be4190282614efd2eeb505de289c_3798649.png change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/336a4923a42b1ef1516df2cec7071c33_85269352.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b96b1f94180ea8ccfac9831c5f5714bd_64788066.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bd563d9c51433045930b3425f93793ce_31527655.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/dbbe5611c3343870dcc3ea3c7a14ad45_57200199.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ff6c3e513b0eb72a724f7e4ef49f0bce_57561773.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/352ec38369dfd79964cb898524461ffe_20602021.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bd4ca94c066e84db9c272bf4d5617045_75670758.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/83a7f3c70cb9a0fd17adb7c0e4988946_34776057.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/74a61514f6f8dfdcbb62ddaa4f7cf155_83956690.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c9f7b289d465b929c8d7caa5f614c572_94236515.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5aebd50372091a671af92865ed1a7ede_32049454.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/91f20d39092ccbcaf77630975ae214e6_50656002.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/43b0aea2e1aa3fc8187ed2afad87faf1_78828579.png change filename to text .imagette207239541740135634/ imagette207239541740135634/1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920794_0.png.png imagette207239541740135634/1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920548_0.png.png imagette207239541740135634/1740135211_255578_1338802791_91382db3be079b61b43e48d4b7107abe_rle_crop_3681922496_0.png.png imagette207239541740135634/1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922693_0.png.png imagette207239541740135634/1740135451_258830_1338803194_057afeff81c1d81260b0cc40c208e72f_rle_crop_3681936505_0.png.png imagette207239541740135634/1740135332_257211_1338802812_a228499dddbfe1073cc27286ec365dd5_rle_crop_3681923580_0.png.png imagette207239541740135634/1740134953_251434_1338802366_9f78fedc781326320f1198213a854c42_rle_crop_3681911550_0.png.png imagette207239541740135634/1740135233_255836_1338802570_6849b2249f46aac911d634c72d42ddd3_rle_crop_3681917717_0.png.png imagette207239541740135634/1740135233_255836_1338802559_e532246ea993235d28b654d649c6ced0_rle_crop_3681922919_0.png.png imagette207239541740135634/1740135233_255836_1338802625_73dd1a3764b70d0bdd365d132c7fd9a0_rle_crop_3681917702_0.png.png imagette207239541740135634/1740135211_255578_1338802758_8c5bbaec0c07a4a5429059d9b255bbc6_rle_crop_3681922707_0.png.png imagette207239541740135634/1740135233_255836_1338802559_e532246ea993235d28b654d649c6ced0_bib_crop_3681917833_0.jpg.jpg imagette207239541740135634/1740135211_255578_1338802647_a0a94a1a994fbeadd8bdee4a06a758c5_rle_crop_3681922765_0.png.png imagette207239541740135634/1740135233_255836_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917979_0.png.png imagette207239541740135634/1740135114_254407_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911945_0.png.png imagette207239541740135634/1740135094_254121_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917979_0.png.png imagette207239541740135634/1740135451_258830_1338803218_345132b75ba463626ec26ff63f96631a_rle_crop_3681936225_0.png.png imagette207239541740135634/1740135552_259820_1338803439_5a5171792bcfc5aea28c289757f280b1_rle_crop_3681939946_0.png.png imagette207239541740135634/1740135211_255578_1338802762_31a731203e18d59734e55ce481beb36b_rle_crop_3681922689_0.png.png imagette207239541740135634/1740135211_255578_1338802672_82c35f6ae9608a0d7ae9354a62673616_rle_crop_3681922749_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/25b7be4190282614efd2eeb505de289c_99574486.png imagette207239541740135634 20723957 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=20723957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338803303: '1740135233_255836_1338802625_73dd1a3764b70d0bdd365d132c7fd9a0_rle_crop_3681917703_0.png', 1338805148: '1740135574_259987_1338803462_6683a1d68338323ec5d85270e376da4b_rle_crop_3681940027_0.png', 1338805140: '1740135552_259820_1338803432_baa323d3dcbdb605d43d6e7291d1c3d8_rle_crop_3681939978_0.png', 1338805139: '1740135552_259820_1338803434_137137ad59d4f5a1dc0074b52cc3c41b_rle_crop_3681939963_0.png', 1338803729: '1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936241_0.png', 1338803728: '1740135451_258830_1338803232_a92f1387b94ecd5aa6be7c9941a49b7b_rle_crop_3681936211_0.png', 1338803726: '1740135451_258830_1338803232_a92f1387b94ecd5aa6be7c9941a49b7b_rle_crop_3681936209_0.png', 1338803481: '1740135433_258498_1338803336_1f64a1afc245e4b183fcf981184fbb42_rle_crop_3681932061_0.png', 1338803305: '1740135233_255836_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917982_0.png', 1338803304: '1740135233_255836_1338802570_6849b2249f46aac911d634c72d42ddd3_rle_crop_3681917716_0.png', 1338802640: '1740134953_251434_1338802440_85f316d0d0537237ace8e980cc60b8f1_rle_crop_3681911534_0.png', 1338802896: '1740135193_255296_1338802783_e0486dbd0295e17327f02cd5ea66780a_rle_crop_3681920978_0.png', 1338802895: '1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920546_0.png', 1338802848: '1740135114_254407_1338802091_544aa106e34cd585a67ac2c6f5415192_rle_crop_3681911927_0.png', 1338802834: '1740135094_254121_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917982_0.png', 1338802833: '1740135094_254121_1338802570_6849b2249f46aac911d634c72d42ddd3_rle_crop_3681917716_0.png', 1338802832: '1740135094_254121_1338802625_73dd1a3764b70d0bdd365d132c7fd9a0_rle_crop_3681917703_0.png', 1338802782: '1740134972_251731_1338802091_544aa106e34cd585a67ac2c6f5415192_rle_crop_3681911927_0.png', 1338802641: '1740134953_251434_1338802366_9f78fedc781326320f1198213a854c42_rle_crop_3681911547_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bc9fdd94300109190b089b0cabe47c05_83359402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/030d2367a53143fd1a5a7c30fdab4817_34740894.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4c4f796fb4e98e7c4a802f31ca4a71cd_17203707.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7fc0ba80cdb63847cc1fc4533af397da_46171905.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/93ca18fca6f8ef539f2ec190400508bb_77011763.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/26a951cfcf20616ef33709581f2aeb36_83289481.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/69efd7392c7ca48b4d8a7c5cf261fb19_59836871.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2b6ab806175dbfa725399a725f97bac6_83619164.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1a26a1656e89b8afd69fbf486a759896_84762335.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/789f96169f20e8e9c9023a9685a76fe9_83162276.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b34534d334beaffa1d4a5a230e3ad735_19650733.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/616599d76206d20bbced14a326494423_34777569.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d2fd5bcbc7f652a9448f56f49f752910_5989412.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c131205f0dddffea8a74b142cfe4e967_80077410.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1a26a1656e89b8afd69fbf486a759896_88167593.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/789f96169f20e8e9c9023a9685a76fe9_23269848.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/bc9fdd94300109190b089b0cabe47c05_35171047.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c131205f0dddffea8a74b142cfe4e967_42423831.png change filename to text .imagette207239571740135635/ imagette207239571740135635/1740135451_258830_1338803232_a92f1387b94ecd5aa6be7c9941a49b7b_rle_crop_3681936211_0.png.png imagette207239571740135635/1740135094_254121_1338802625_73dd1a3764b70d0bdd365d132c7fd9a0_rle_crop_3681917703_0.png.png imagette207239571740135635/1740135094_254121_1338802570_6849b2249f46aac911d634c72d42ddd3_rle_crop_3681917716_0.png.png imagette207239571740135635/1740135114_254407_1338802091_544aa106e34cd585a67ac2c6f5415192_rle_crop_3681911927_0.png.png imagette207239571740135635/1740134972_251731_1338802091_544aa106e34cd585a67ac2c6f5415192_rle_crop_3681911927_0.png.png imagette207239571740135635/1740134953_251434_1338802366_9f78fedc781326320f1198213a854c42_rle_crop_3681911547_0.png.png imagette207239571740135635/1740135094_254121_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917982_0.png.png imagette207239571740135635/1740134953_251434_1338802440_85f316d0d0537237ace8e980cc60b8f1_rle_crop_3681911534_0.png.png imagette207239571740135635/1740135233_255836_1338802551_2fcd142229892bedc979d403014dc610_rle_crop_3681917982_0.png.png imagette207239571740135635/1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936241_0.png.png imagette207239571740135635/1740135193_255296_1338802789_c9eb014f5bf3d0d47261a60d98531e8a_rle_crop_3681920546_0.png.png imagette207239571740135635/1740135552_259820_1338803432_baa323d3dcbdb605d43d6e7291d1c3d8_rle_crop_3681939978_0.png.png imagette207239571740135635/1740135193_255296_1338802783_e0486dbd0295e17327f02cd5ea66780a_rle_crop_3681920978_0.png.png imagette207239571740135635/1740135433_258498_1338803336_1f64a1afc245e4b183fcf981184fbb42_rle_crop_3681932061_0.png.png imagette207239571740135635/1740135552_259820_1338803434_137137ad59d4f5a1dc0074b52cc3c41b_rle_crop_3681939963_0.png.png imagette207239571740135635/1740135233_255836_1338802570_6849b2249f46aac911d634c72d42ddd3_rle_crop_3681917716_0.png.png imagette207239571740135635/1740135233_255836_1338802625_73dd1a3764b70d0bdd365d132c7fd9a0_rle_crop_3681917703_0.png.png imagette207239571740135635/1740135574_259987_1338803462_6683a1d68338323ec5d85270e376da4b_rle_crop_3681940027_0.png.png imagette207239571740135635/1740135451_258830_1338803232_a92f1387b94ecd5aa6be7c9941a49b7b_rle_crop_3681936209_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2ee87a4fe314716794aad42dd3b80139_81657405.png imagette207239571740135635 20723961 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=20723961 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338803214: '1740135211_255578_1338802672_82c35f6ae9608a0d7ae9354a62673616_rle_crop_3681922752_0.png', 1338805135: '1740135552_259820_1338803439_5a5171792bcfc5aea28c289757f280b1_rle_crop_3681939947_0.png', 1338803648: '1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936766_0.png', 1338803647: '1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936764_0.png', 1338803646: '1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936765_0.png', 1338803645: '1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936243_0.png', 1338803480: '1740135433_258498_1338803339_4dd50f7c5f17228c7233128633c5475c_rle_crop_3681931806_0.png', 1338803399: '1740135314_256968_1338802855_e2c57a9722a21403b3acac3898b05b7a_rle_crop_3681923547_0.png', 1338803398: '1740135314_256968_1338802863_8573c4e4c454efd7feddd269112fa55e_rle_crop_3681923172_0.png', 1338802778: '1740134972_251731_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911952_0.png', 1338802894: '1740135193_255296_1338802783_e0486dbd0295e17327f02cd5ea66780a_rle_crop_3681920983_0.png', 1338802893: '1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920801_0.png', 1338802847: '1740135114_254407_1338802008_52ec2be4fe5ce931373a8a1449292300_rle_crop_3681912005_0.png', 1338802846: '1740135114_254407_1338802026_eef7e3125dbeca0e0ebadc6b0bfab2e3_rle_crop_3681911964_0.png', 1338802845: '1740135114_254407_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911952_0.png', 1338802780: '1740134972_251731_1338802008_52ec2be4fe5ce931373a8a1449292300_rle_crop_3681912005_0.png', 1338802779: '1740134972_251731_1338802026_eef7e3125dbeca0e0ebadc6b0bfab2e3_rle_crop_3681911964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9bab0ffc11f62bda7b4e0a7778af83b4_78052288.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b8f8d6220976552fb9ff1f7e1dbe801f_36953072.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/72bb04b813a556ab295ab85f323eb572_61450968.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5bddd8b12b5cd0c2af3a9c25f868379c_2001637.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5d5013b53942120598eed96b6139c62a_90074514.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3133bc2afc246f702d85352c7173c656_57881815.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7eb210111c2392455565aeb70f5901f2_37566063.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/7ca056ff80dbd206185199b24baaa3f9_17591872.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6c30cfd912c618e40c03604d61ad3812_40451759.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/498310141e386974af433345603af2db_38086798.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3e51b0b1c3f067a55a3a7b9cd881cfb9_20153315.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2d726d10e79feb3940da70e1152b4b6f_29116044.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/db64474837680206b34d492b0fec0785_16724120.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/55fd535a543b5e254728a30e087fd470_49123428.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/498310141e386974af433345603af2db_64640900.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/db64474837680206b34d492b0fec0785_93932963.png change filename to text .imagette207239611740135636/ imagette207239611740135636/1740135114_254407_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911952_0.png.png imagette207239611740135636/1740135193_255296_1338802783_e0486dbd0295e17327f02cd5ea66780a_rle_crop_3681920983_0.png.png imagette207239611740135636/1740135314_256968_1338802855_e2c57a9722a21403b3acac3898b05b7a_rle_crop_3681923547_0.png.png imagette207239611740135636/1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936764_0.png.png imagette207239611740135636/1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936765_0.png.png imagette207239611740135636/1740135451_258830_1338803197_0bddfa897ae578b3fb1bfcc99d6079a9_rle_crop_3681936243_0.png.png imagette207239611740135636/1740135211_255578_1338802672_82c35f6ae9608a0d7ae9354a62673616_rle_crop_3681922752_0.png.png imagette207239611740135636/1740135114_254407_1338802008_52ec2be4fe5ce931373a8a1449292300_rle_crop_3681912005_0.png.png imagette207239611740135636/1740134972_251731_1338802032_8c6d5e1fc301c9dee827e1164b7661ed_rle_crop_3681911952_0.png.png imagette207239611740135636/1740135451_258830_1338803191_0bdc4e483a84d454102bfda542521f22_rle_crop_3681936766_0.png.png imagette207239611740135636/1740135314_256968_1338802863_8573c4e4c454efd7feddd269112fa55e_rle_crop_3681923172_0.png.png imagette207239611740135636/1740135433_258498_1338803339_4dd50f7c5f17228c7233128633c5475c_rle_crop_3681931806_0.png.png imagette207239611740135636/1740134972_251731_1338802026_eef7e3125dbeca0e0ebadc6b0bfab2e3_rle_crop_3681911964_0.png.png imagette207239611740135636/1740134972_251731_1338802008_52ec2be4fe5ce931373a8a1449292300_rle_crop_3681912005_0.png.png imagette207239611740135636/1740135114_254407_1338802026_eef7e3125dbeca0e0ebadc6b0bfab2e3_rle_crop_3681911964_0.png.png imagette207239611740135636/1740135552_259820_1338803439_5a5171792bcfc5aea28c289757f280b1_rle_crop_3681939947_0.png.png imagette207239611740135636/1740135193_255296_1338802787_7e92c99cb471ec0e46301fc4681ae223_rle_crop_3681920801_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/55fd535a543b5e254728a30e087fd470_395159.png imagette207239611740135636 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20723860 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20723962,20723963,20723964,20723965,20723966,20723967,20723968,20723969,20723970,20723971,20723972,20723973?tags=kraft,flou,environnement,papier,Carton_brun,plastique,metal,Carton_gris,cartonnette,autre_refus,mal_croppe,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1338803712] : ('0.052037639871126924',) no score found for photo 1338803712 We are sending mail with results at report@fotonower.com args[1338803642] : ('0.052037639871126924',) no score found for photo 1338803642 We are sending mail with results at report@fotonower.com args[1338803639] : ('0.052037639871126924',) no score found for photo 1338803639 We are sending mail with results at report@fotonower.com args[1338803637] : ('0.052037639871126924',) no score found for photo 1338803637 We are sending mail with results at report@fotonower.com args[1338803635] : ('0.052037639871126924',) no score found for photo 1338803635 We are sending mail with results at report@fotonower.com refus_total : 0.052037639871126924 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=20723860 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_P20723860_21-02-2025_12_00_32.pdf results_Auto_P20723860_21-02-2025_12_00_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20723860_21-02-2025_12_00_32.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','20723860','results_Auto_P20723860_21-02-2025_12_00_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20723860_21-02-2025_12_00_32.pdf','pdf','','0.3','0.052037639871126924') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20723860]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] map_info['map_portfolio_photo'] : {20723860: [1338803712, 1338803642, 1338803639, 1338803637, 1338803635, 1338803470, 1338803465, 1338803462, 1338803461, 1338803443, 1338803439, 1338803434, 1338803432, 1338803408, 1338803347, 1338803339, 1338803336, 1338803237, 1338803232, 1338803218, 1338803197, 1338803194, 1338803191, 1338802878, 1338802863, 1338802860, 1338802857, 1338802855, 1338802816, 1338802814, 1338802812, 1338802791, 1338802789, 1338802787, 1338802783, 1338802766, 1338802762, 1338802758, 1338802747, 1338802672, 1338802647, 1338802625, 1338802616, 1338802607, 1338802602, 1338802574, 1338802570, 1338802567, 1338802559, 1338802551, 1338802547, 1338802462, 1338802448, 1338802440, 1338802366, 1338802091, 1338802032, 1338802026, 1338802012, 1338802008]} final : False mtd_id 4302 list_pids : [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] 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, '2604434') ('4302', '20723860', '1338803712', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803642', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803639', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803637', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803635', None, None, None, None, None, '2604434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '20723860', '1338803712', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803642', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803639', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803637', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803635', None, None, None, None, None, '2604434')] time used for this insertion : 0.012811422348022461 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.56774115562439 time spend to save output : 0.013130903244018555 total time spend for step 4 : 6.580872058868408 step5:split_time_score Fri Feb 21 12:00:38 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 : ['20723860'] 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 : [('20723860',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20723860) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338803712: {'path': 'temp/1740135632_2550480_1338803712_efec0b7a932bd8aafa2c5e926ea4d583.jpg', 'extension': 'jpg'}, 1338803639: {'path': 'temp/1740135632_2550480_1338803639_5ca1032c5b8cee250c58c74a21c67962.jpg', 'extension': 'jpg'}, 1338803642: {'path': 'temp/1740135632_2550480_1338803642_106a275c14ab1cd51ab380ddf3ee2ba9.jpg', 'extension': 'jpg'}, 1338803635: {'path': 'temp/1740135632_2550480_1338803635_2a883c2c73a28562eefa761a6c93c10f.jpg', 'extension': 'jpg'}, 1338803637: {'path': 'temp/1740135632_2550480_1338803637_5520d47163a3888403b248c78dd4872b.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 = 20723860; (('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 = 20723860 group by h (('11', 60),) 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=20723860 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 (20723860) 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 (20723860) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21022025 20723860 Nombre de photos uploadées : 60 / 23040 (0%) 21022025 20723860 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 21022025 20723860 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1338802091, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/544aa106e34cd585a67ac2c6f5415192.jpg', 'username': None, 'uploaded_at': 1740134784, 'text': 'image_21022025_11_45_04_010138m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1338802032, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8c6d5e1fc301c9dee827e1164b7661ed.jpg', 'username': None, 'uploaded_at': 1740134784, 'text': 'image_21022025_11_45_13_009127m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338802026, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/eef7e3125dbeca0e0ebadc6b0bfab2e3.jpg', 'username': None, 'uploaded_at': 1740134784, 'text': 'image_21022025_11_45_23_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338802012, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b60d01b9143d3167da899038711a3b24.jpg', 'username': None, 'uploaded_at': 1740134784, 'text': 'image_21022025_11_45_33_010147m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032835006713867188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20723860, '2025-02-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1615145,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023586511611938477 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= 1615145 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1615145, 'dashboard_run_id': 1624182, 'mtr_portfolio_id': 20722274, 'dashboard_result_id': 9006437, '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_P20722274_21-02-2025_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20722285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20722286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20722287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20722288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20722289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20722290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20722291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20722292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20722293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20722294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20722295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20722296, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1624182, 'mtr_portfolio_id': 20722950, 'dashboard_result_id': 9006438, '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_P20722950_21-02-2025_11_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20722995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20722996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20722997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20722998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20722999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20723000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20723001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20723002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20723003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20723004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20723005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20723006, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1624182, 'mtr_portfolio_id': 20723860, 'dashboard_result_id': 9006439, '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_P20723860_21-02-2025_11_58_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20723950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20723951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20723952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20723953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20723954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20723955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20723956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20723957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20723958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20723959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20723960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20723961, '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 = 20722274 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': 2604246, 'mtr_portfolio_id': 20722274, 'created_at': datetime.datetime(2025, 2, 21, 11, 32, 59), 'result': '0.04832017303510055', 'result_long': None, 'result_double': None}] Qualite : 0.04832017303510055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20722274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20722274_21-02-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20722274 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_P20722274_21-02-2025_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20722285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20722286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20722287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20722288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20722289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20722290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20722291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20722292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20722293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20722294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20722295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20722296, 'pht': 3726}}" where mtr_portfolio_id = 20722274 and dashboard_run_id = 1624182 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`=20722274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9006437, 0.04832017303510055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20722274_21-02-2025_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20722285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20722286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20722287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20722288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20722289, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20722290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20722291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20722292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20722293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20722294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20722295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20722296, '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 = 20722950 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': 2604353, 'mtr_portfolio_id': 20722950, 'created_at': datetime.datetime(2025, 2, 21, 11, 48, 59), 'result': '0.05584989852504906', 'result_long': None, 'result_double': None}] Qualite : 0.05584989852504906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20722950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20722950_21-02-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20722950 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_P20722950_21-02-2025_11_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20722995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20722996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20722997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20722998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20722999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20723000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20723001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20723002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20723003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20723004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20723005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20723006, 'pht': 3726}}" where mtr_portfolio_id = 20722950 and dashboard_run_id = 1624182 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`=20722950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9006438, 0.05584989852504906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20722950_21-02-2025_11_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20722995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20722996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20722997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20722998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20722999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20723000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20723001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20723002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20723003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20723004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20723005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20723006, '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 = 20723860 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': 2604434, 'mtr_portfolio_id': 20723860, 'created_at': datetime.datetime(2025, 2, 21, 12, 0, 31), 'result': '0.052037639871126924', 'result_long': None, 'result_double': None}] Qualite : 0.052037639871126924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20723860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20723860_21-02-2025_12_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20723860 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_P20723860_21-02-2025_12_00_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20723950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20723951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20723952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20723953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20723954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20723955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20723956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20723957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20723958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20723959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20723960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20723961, 'pht': 3726}}" where mtr_portfolio_id = 20723860 and dashboard_run_id = 1624182 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`=20723860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9006439, 0.052037639871126924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20723860_21-02-2025_12_00_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20723950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20723951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20723952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20723953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20723954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20723955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20723956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20723957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20723958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20723959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20723960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20723961, '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 (20722274,20722950,20723860) result : ((1338798087,), (1338798091,), (1338798217,), (1338798229,), (1338798235,), (1338798249,), (1338798259,), (1338798264,), (1338798309,), (1338798311,), (1338798314,), (1338798788,), (1338798790,), (1338798794,), (1338798862,), (1338798865,), (1338798871,), (1338798994,), (1338798997,), (1338799059,), (1338799150,), (1338799228,), (1338799555,), (1338799559,), (1338799599,), (1338799603,), (1338799646,), (1338799719,), (1338799722,), (1338799740,), (1338799766,), (1338799812,), (1338799813,), (1338799816,), (1338799820,), (1338799823,), (1338799904,), (1338799905,), (1338799908,), (1338799912,), (1338799948,), (1338799950,), (1338800036,), (1338800057,), (1338800115,), (1338800381,), (1338800382,), (1338800385,), (1338800413,), (1338800417,), (1338800421,), (1338800423,), (1338800449,), (1338800452,), (1338800455,), (1338800459,), (1338800635,), (1338800620,), (1338800621,), (1338800624,), (1338800628,), (1338800632,), (1338800681,), (1338800820,), (1338800824,), (1338800828,), (1338800991,), (1338800994,), (1338800997,), (1338801001,), (1338801004,), (1338801007,), (1338801022,), (1338801024,), (1338801027,), (1338801057,), (1338801062,), (1338801066,), (1338801069,), (1338801073,), (1338801084,), (1338801129,), (1338801132,), (1338801136,), (1338801140,), (1338801143,), (1338801171,), (1338801174,), (1338801186,), (1338801189,), (1338801192,), (1338801248,), (1338801251,), (1338801255,), (1338801271,), (1338801300,), (1338801359,), (1338801361,), (1338801364,), (1338801366,), (1338801368,), (1338801565,), (1338801569,), (1338801612,), (1338801618,), (1338801627,), (1338801684,), (1338801693,), (1338801695,), (1338801697,), (1338801702,), (1338801748,), (1338801759,), (1338801766,), (1338801769,), (1338801781,), (1338801815,), (1338801816,), (1338801818,), (1338801822,), (1338801871,), (1338801877,), (1338801886,), (1338801899,), (1338801904,), (1338801906,), (1338801936,), (1338801945,), (1338801949,), (1338801954,), (1338801957,), (1338802111,), (1338802008,), (1338802012,), (1338802026,), (1338802032,), (1338802091,), (1338802366,), (1338802440,), (1338802448,), (1338802462,), (1338802547,), (1338802551,), (1338802559,), (1338802567,), (1338802570,), (1338802574,), (1338802602,), (1338802607,), (1338802616,), (1338802625,), (1338802647,), (1338802672,), (1338802747,), (1338802758,), (1338802762,), (1338802766,), (1338802783,), (1338802787,), (1338802789,), (1338802791,), (1338802812,), (1338802814,), (1338802816,), (1338802855,), (1338802857,), (1338802860,), (1338802863,), (1338802878,), (1338803191,), (1338803194,), (1338803197,), (1338803218,), (1338803232,), (1338803237,), (1338803336,), (1338803339,), (1338803347,), (1338803408,), (1338803432,), (1338803434,), (1338803439,), (1338803443,), (1338803461,), (1338803462,), (1338803465,), (1338803470,), (1338803635,), (1338803637,), (1338803639,), (1338803642,), (1338803712,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20723860]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] map_info['map_portfolio_photo'] : {20723860: [1338803712, 1338803642, 1338803639, 1338803637, 1338803635, 1338803470, 1338803465, 1338803462, 1338803461, 1338803443, 1338803439, 1338803434, 1338803432, 1338803408, 1338803347, 1338803339, 1338803336, 1338803237, 1338803232, 1338803218, 1338803197, 1338803194, 1338803191, 1338802878, 1338802863, 1338802860, 1338802857, 1338802855, 1338802816, 1338802814, 1338802812, 1338802791, 1338802789, 1338802787, 1338802783, 1338802766, 1338802762, 1338802758, 1338802747, 1338802672, 1338802647, 1338802625, 1338802616, 1338802607, 1338802602, 1338802574, 1338802570, 1338802567, 1338802559, 1338802551, 1338802547, 1338802462, 1338802448, 1338802440, 1338802366, 1338802091, 1338802032, 1338802026, 1338802012, 1338802008]} final : True mtd_id 4302 list_pids : [1338803712, 1338803642, 1338803639, 1338803637, 1338803635] Looping around the photos to save general results len do output : 1 /20723860Didn'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, '2604434') ('4302', '20723860', '1338803712', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803642', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803639', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803637', None, None, None, None, None, '2604434') ('4302', None, None, None, None, None, None, None, '2604434') ('4302', '20723860', '1338803635', None, None, None, None, None, '2604434') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '20723860', 'None', None, None, None, None, '2604434'), ('4302', '20723860', '1338803712', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803642', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803639', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803637', None, None, None, None, None, '2604434'), ('4302', '20723860', '1338803635', None, None, None, None, None, '2604434')] time used for this insertion : 0.013561725616455078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2933990955352783 time spend to save output : 0.013781070709228516 total time spend for step 5 : 0.30718016624450684 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 (2604434) 2.78user 2.05system 0:13.67elapsed 35%CPU (0avgtext+0avgdata 158576maxresident)k 1800inputs+16184outputs (29major+75623minor)pagefaults 0swaps