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 : 1780077 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 (2746110) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2746110) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296376 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2746110'] with mtr_portfolio_ids : ['22296376'] and first list_photo_ids : [] new path : /proc/1780077/ Name: python3 Umask: 0002 State: R (running) Tgid: 1780077 Ngid: 0 Pid: 1780077 PPid: 1780076 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1780077 NSpid: 1780077 NSpgid: 1778467 NSsid: 1778467 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97780 kB VmRSS: 97780 kB RssAnon: 59812 kB RssFile: 37968 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 536 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1780077', 'Ngid': '0', 'Pid': '1780077', 'PPid': '1780076', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1780077', 'NSpid': '1780077', 'NSpgid': '1778467', 'NSsid': '1778467', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97780 kB', 'VmRSS': '97780 kB', 'RssAnon': '59812 kB', 'RssFile': '37968 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '536 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '1780077', '1106848', '0', '1106848', '865596', '97780', b'', 'marlene', '2746110') 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 (22296376) 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 (2746110 ) ) 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 (22296376) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351861989, 'portfolio_id': 22296376}, {'photo_id': 1351861811, 'portfolio_id': 22296376}, {'photo_id': 1351861802, 'portfolio_id': 22296376}, {'photo_id': 1351861784, 'portfolio_id': 22296376}, {'photo_id': 1351861426, 'portfolio_id': 22296376}, {'photo_id': 1351861398, 'portfolio_id': 22296376}, {'photo_id': 1351861368, 'portfolio_id': 22296376}, {'photo_id': 1351861341, 'portfolio_id': 22296376}, {'photo_id': 1351861306, 'portfolio_id': 22296376}, {'photo_id': 1351861285, 'portfolio_id': 22296376}, {'photo_id': 1351861178, 'portfolio_id': 22296376}, {'photo_id': 1351861156, 'portfolio_id': 22296376}, {'photo_id': 1351861151, 'portfolio_id': 22296376}, {'photo_id': 1351861147, 'portfolio_id': 22296376}, {'photo_id': 1351861120, 'portfolio_id': 22296376}, {'photo_id': 1351861113, 'portfolio_id': 22296376}, {'photo_id': 1351861070, 'portfolio_id': 22296376}, {'photo_id': 1351861019, 'portfolio_id': 22296376}, {'photo_id': 1351860988, 'portfolio_id': 22296376}, {'photo_id': 1351860883, 'portfolio_id': 22296376}, {'photo_id': 1351860855, 'portfolio_id': 22296376}, {'photo_id': 1351860824, 'portfolio_id': 22296376}, {'photo_id': 1351860796, 'portfolio_id': 22296376}, {'photo_id': 1351860393, 'portfolio_id': 22296376}, {'photo_id': 1351860348, 'portfolio_id': 22296376}, {'photo_id': 1351860330, 'portfolio_id': 22296376}, {'photo_id': 1351860179, 'portfolio_id': 22296376}, {'photo_id': 1351860137, 'portfolio_id': 22296376}, {'photo_id': 1351860079, 'portfolio_id': 22296376}, {'photo_id': 1351860025, 'portfolio_id': 22296376}, {'photo_id': 1351859969, 'portfolio_id': 22296376}, {'photo_id': 1351859726, 'portfolio_id': 22296376}, {'photo_id': 1351859678, 'portfolio_id': 22296376}, {'photo_id': 1351859642, 'portfolio_id': 22296376}, {'photo_id': 1351859570, 'portfolio_id': 22296376}, {'photo_id': 1351859518, 'portfolio_id': 22296376}, {'photo_id': 1351859474, 'portfolio_id': 22296376}, {'photo_id': 1351859151, 'portfolio_id': 22296376}, {'photo_id': 1351859117, 'portfolio_id': 22296376}, {'photo_id': 1351859036, 'portfolio_id': 22296376}, {'photo_id': 1351858687, 'portfolio_id': 22296376}, {'photo_id': 1351858652, 'portfolio_id': 22296376}, {'photo_id': 1351858626, 'portfolio_id': 22296376}, {'photo_id': 1351858607, 'portfolio_id': 22296376}, {'photo_id': 1351858576, 'portfolio_id': 22296376}, {'photo_id': 1351858562, 'portfolio_id': 22296376}, {'photo_id': 1351858272, 'portfolio_id': 22296376}, {'photo_id': 1351858247, 'portfolio_id': 22296376}, {'photo_id': 1351858219, 'portfolio_id': 22296376}, {'photo_id': 1351858191, 'portfolio_id': 22296376}, {'photo_id': 1351858170, 'portfolio_id': 22296376}, {'photo_id': 1351858138, 'portfolio_id': 22296376}, {'photo_id': 1351857889, 'portfolio_id': 22296376}, {'photo_id': 1351857863, 'portfolio_id': 22296376}, {'photo_id': 1351857840, 'portfolio_id': 22296376}, {'photo_id': 1351857831, 'portfolio_id': 22296376}, {'photo_id': 1351857806, 'portfolio_id': 22296376}, {'photo_id': 1351857798, 'portfolio_id': 22296376}, {'photo_id': 1351857508, 'portfolio_id': 22296376}, {'photo_id': 1351857470, 'portfolio_id': 22296376}, {'photo_id': 1351857424, 'portfolio_id': 22296376}, {'photo_id': 1351857390, 'portfolio_id': 22296376}, {'photo_id': 1351857338, 'portfolio_id': 22296376}, {'photo_id': 1351856859, 'portfolio_id': 22296376}, {'photo_id': 1351856808, 'portfolio_id': 22296376}, {'photo_id': 1351856783, 'portfolio_id': 22296376}, {'photo_id': 1351856726, 'portfolio_id': 22296376}] map_portfolio_id_photo_id: {22296376: [1351861989, 1351861811, 1351861802, 1351861784, 1351861426, 1351861398, 1351861368, 1351861341, 1351861306, 1351861285, 1351861178, 1351861156, 1351861151, 1351861147, 1351861120, 1351861113, 1351861070, 1351861019, 1351860988, 1351860883, 1351860855, 1351860824, 1351860796, 1351860393, 1351860348, 1351860330, 1351860179, 1351860137, 1351860079, 1351860025, 1351859969, 1351859726, 1351859678, 1351859642, 1351859570, 1351859518, 1351859474, 1351859151, 1351859117, 1351859036, 1351858687, 1351858652, 1351858626, 1351858607, 1351858576, 1351858562, 1351858272, 1351858247, 1351858219, 1351858191, 1351858170, 1351858138, 1351857889, 1351857863, 1351857840, 1351857831, 1351857806, 1351857798, 1351857508, 1351857470, 1351857424, 1351857390, 1351857338, 1351856859, 1351856808, 1351856783, 1351856726]} ##### 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.021631956100463867 #### 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 Apr 11 20:03:27 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 (22296376) 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 : 22296376 get user id for portfolio 22296376 get sub ptf for main ptf 22296376, type 3726 and hashtags ['kraft', 'environnement', 'metal', 'cartonnette', 'Carton_brun', 'Teint_Dans_La_Masse', 'mal_croppe', 'autre_refus', 'Carton_gris', 'plastique', 'flou', 'papier'] 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`=22296376 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','cartonnette','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus','Carton_gris','plastique','flou','papier')) 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`=22296376 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','cartonnette','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus','Carton_gris','plastique','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22296376, 'sub_port_id': 22296402, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760488, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'papier': {'main_port_id': 22296376, 'sub_port_id': 22296404, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760489, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'Carton_gris': {'main_port_id': 22296376, 'sub_port_id': 22296405, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760490, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'cartonnette': {'main_port_id': 22296376, 'sub_port_id': 22296406, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760491, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'plastique': {'main_port_id': 22296376, 'sub_port_id': 22296407, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760492, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'autre_refus': {'main_port_id': 22296376, 'sub_port_id': 22296409, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760493, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'mal_croppe': {'main_port_id': 22296376, 'sub_port_id': 22296410, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760494, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'flou': {'main_port_id': 22296376, 'sub_port_id': 22296411, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760495, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'environnement': {'main_port_id': 22296376, 'sub_port_id': 22296412, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760496, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22296376, 'sub_port_id': 22296413, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760497, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'Carton_brun': {'main_port_id': 22296376, 'sub_port_id': 22296414, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760498, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}, 'kraft': {'main_port_id': 22296376, 'sub_port_id': 22296415, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760499, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22296402 , 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=22296376 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 (22296402) result : ((1351860545,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296404 , 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=22296376 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 (22296404) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296405 , 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=22296376 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 (22296405) result : ((1351861342,), (1351861343,), (1351861574,), (1351861575,), (1351861723,), (1351861724,), (1351861725,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296406 , 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=22296376 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 (22296406) result : ((1351860536,), (1351860538,), (1351860956,), (1351861246,), (1351861352,), (1351861353,), (1351861579,), (1351861580,), (1351861730,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296407 , 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=22296376 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 (22296407) result : ((1351860994,), (1351860996,), (1351860997,), (1351860998,), (1351861736,), (1351861958,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296409 , 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=22296376 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 (22296409) result : ((1351860523,), (1351860525,), (1351861332,), (1351861333,), (1351861572,), (1351861573,), (1351861718,), (1351861719,), (1351861952,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296410 , 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=22296376 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 (22296410) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296411 , 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=22296376 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 (22296411) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296412 , 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=22296376 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 (22296412) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296413 , 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=22296376 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 (22296413) result : ((1351860511,), (1351860949,), (1351860950,), (1351860952,), (1351861323,), (1351861324,), (1351861568,), (1351861569,), (1351861709,), (1351861710,), (1351861711,), (1351861949,), (1351861950,), (1351862272,), (1351862273,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296414 , 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=22296376 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 (22296414) result : ((1351860960,), (1351861358,), (1351861581,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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 22296415 , 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=22296376 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 (22296415) result : ((1351861006,), (1351861959,), (1351861960,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22296376) result : ((1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) 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`=22296376 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','cartonnette','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus','Carton_gris','plastique','flou','papier')) 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`=22296376 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','cartonnette','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus','Carton_gris','plastique','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22296376, 'sub_port_id': 22296417, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760500, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'papier': {'main_port_id': 22296376, 'sub_port_id': 22296418, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760501, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'Carton_gris': {'main_port_id': 22296376, 'sub_port_id': 22296419, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760502, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'cartonnette': {'main_port_id': 22296376, 'sub_port_id': 22296420, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760503, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'plastique': {'main_port_id': 22296376, 'sub_port_id': 22296421, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760504, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'autre_refus': {'main_port_id': 22296376, 'sub_port_id': 22296422, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760505, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'mal_croppe': {'main_port_id': 22296376, 'sub_port_id': 22296423, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760506, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'flou': {'main_port_id': 22296376, 'sub_port_id': 22296424, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760507, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'environnement': {'main_port_id': 22296376, 'sub_port_id': 22296425, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760508, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22296376, 'sub_port_id': 22296426, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760509, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'Carton_brun': {'main_port_id': 22296376, 'sub_port_id': 22296427, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760510, 'last_updated_at': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 19, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}, 'kraft': {'main_port_id': 22296376, 'sub_port_id': 22296428, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14760511, 'last_updated_at': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 20, 1, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 19, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296409 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296425,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296412 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296426,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296413 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296427,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296414 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22296428,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22296415 lien utilise dans velours : https://www.fotonower.com/velours/22296417,22296418,22296419,22296420,22296421,22296422,22296423,22296424,22296425,22296426,22296427,22296428?tags=metal,papier,Carton_gris,cartonnette,plastique,autre_refus,mal_croppe,flou,environnement,Teint_Dans_La_Masse,Carton_brun,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22296376]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351861989] map_info['map_portfolio_photo'] : {22296376: [1351861989, 1351861811, 1351861802, 1351861784, 1351861426, 1351861398, 1351861368, 1351861341, 1351861306, 1351861285, 1351861178, 1351861156, 1351861151, 1351861147, 1351861120, 1351861113, 1351861070, 1351861019, 1351860988, 1351860883, 1351860855, 1351860824, 1351860796, 1351860393, 1351860348, 1351860330, 1351860179, 1351860137, 1351860079, 1351860025, 1351859969, 1351859726, 1351859678, 1351859642, 1351859570, 1351859518, 1351859474, 1351859151, 1351859117, 1351859036, 1351858687, 1351858652, 1351858626, 1351858607, 1351858576, 1351858562, 1351858272, 1351858247, 1351858219, 1351858191, 1351858170, 1351858138, 1351857889, 1351857863, 1351857840, 1351857831, 1351857806, 1351857798, 1351857508, 1351857470, 1351857424, 1351857390, 1351857338, 1351856859, 1351856808, 1351856783, 1351856726]} final : False mtd_id 4302 list_pids : [1351861989] Looping around the photos to save general results len do output : 1 /22296376. 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, '2746110') ('4302', '22296376', '1351861989', None, None, None, None, None, '2746110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22296376', "{'metal': 22296402, 'papier': 22296404, 'Carton_gris': 22296405, 'cartonnette': 22296406, 'plastique': 22296407, 'autre_refus': 22296409, 'mal_croppe': 22296410, 'flou': 22296411, 'environnement': 22296412, 'Teint_Dans_La_Masse': 22296413, 'Carton_brun': 22296414, 'kraft': 22296415}", None, None, None, None, '2746110'), ('4302', '22296376', '1351861989', None, None, None, None, None, '2746110')] time used for this insertion : 0.012037992477416992 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.352912187576294 time spend to save output : 0.012288093566894531 total time spend for step 1 : 4.3652002811431885 step2:final Fri Apr 11 20:03: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 (22296376) 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 22296376 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351856859,1351856808,1351856783,1351856726,1351857508,1351857470,1351857424,1351857390,1351857338,1351857889,1351857863,1351857840,1351857831,1351857806,1351857798,1351858272,1351858247,1351858219,1351858191,1351858170,1351858138,1351858687,1351858652,1351858626,1351858607,1351858576,1351858562,1351859151,1351859117,1351859036,1351859726,1351859678,1351859642,1351859570,1351859518,1351859474,1351860179,1351860137,1351860079,1351860025,1351859969,1351860393,1351860348,1351860330,1351860883,1351860855,1351860824,1351860796,1351861120,1351861113,1351861070,1351861019,1351860988,1351861178,1351861156,1351861151,1351861147,1351861426,1351861398,1351861368,1351861341,1351861306,1351861285,1351861811,1351861802,1351861784,1351861989); 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([22296376]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351861989: ('0.04363770098468186',)} new output for save of step final : {1351861989: ('0.04363770098468186',)} [1351861989] map_info['map_portfolio_photo'] : {22296376: [1351861989, 1351861811, 1351861802, 1351861784, 1351861426, 1351861398, 1351861368, 1351861341, 1351861306, 1351861285, 1351861178, 1351861156, 1351861151, 1351861147, 1351861120, 1351861113, 1351861070, 1351861019, 1351860988, 1351860883, 1351860855, 1351860824, 1351860796, 1351860393, 1351860348, 1351860330, 1351860179, 1351860137, 1351860079, 1351860025, 1351859969, 1351859726, 1351859678, 1351859642, 1351859570, 1351859518, 1351859474, 1351859151, 1351859117, 1351859036, 1351858687, 1351858652, 1351858626, 1351858607, 1351858576, 1351858562, 1351858272, 1351858247, 1351858219, 1351858191, 1351858170, 1351858138, 1351857889, 1351857863, 1351857840, 1351857831, 1351857806, 1351857798, 1351857508, 1351857470, 1351857424, 1351857390, 1351857338, 1351856859, 1351856808, 1351856783, 1351856726]} final : False mtd_id 4302 list_pids : [1351861989] Looping around the photos to save general results len do output : 1 /1351861989.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, '2746110') ('4302', '22296376', '1351861989', None, None, None, None, None, '2746110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '22296376', '1351861989', '0.04363770098468186', None, None, None, None, '2746110')] time used for this insertion : 0.014192819595336914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0721445083618164 time spend to save output : 0.014426708221435547 total time spend for step 2 : 0.08657121658325195 step3:velours_tree Fri Apr 11 20:03: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 : {22296376: [{'metal': 22296402, 'papier': 22296404, 'Carton_gris': 22296405, 'cartonnette': 22296406, 'plastique': 22296407, 'autre_refus': 22296409, 'mal_croppe': 22296410, 'flou': 22296411, 'environnement': 22296412, 'Teint_Dans_La_Masse': 22296413, 'Carton_brun': 22296414, 'kraft': 22296415}]} input_args_next_step : {22296376: ()} output_args : {22296376: [{'metal': 22296402, 'papier': 22296404, 'Carton_gris': 22296405, 'cartonnette': 22296406, 'plastique': 22296407, 'autre_refus': 22296409, 'mal_croppe': 22296410, 'flou': 22296411, 'environnement': 22296412, 'Teint_Dans_La_Masse': 22296413, 'Carton_brun': 22296414, 'kraft': 22296415}]} args : 22296376 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 22296402, 'papier': 22296404, 'Carton_gris': 22296405, 'cartonnette': 22296406, 'plastique': 22296407, 'autre_refus': 22296409, 'mal_croppe': 22296410, 'flou': 22296411, 'environnement': 22296412, 'Teint_Dans_La_Masse': 22296413, 'Carton_brun': 22296414, 'kraft': 22296415},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22296376) 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([22296376]) 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.33705592155456543 time spend to save output : 8.20159912109375e-05 total time spend for step 3 : 0.33713793754577637 step4:send_mail_cod Fri Apr 11 20:03: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 : {1351861989: ('0.04363770098468186',)} input_args_next_step : {1351861989: ()} output_args : {1351861989: ('0.04363770098468186',)} args : 1351861989 depend.output_id : 0 complete output_args for input 3 : {22296376: [{'metal': 22296402, 'papier': 22296404, 'Carton_gris': 22296405, 'cartonnette': 22296406, 'plastique': 22296407, 'autre_refus': 22296409, 'mal_croppe': 22296410, 'flou': 22296411, 'environnement': 22296412, 'Teint_Dans_La_Masse': 22296413, 'Carton_brun': 22296414, 'kraft': 22296415}]} input_args_next_step : {1351861989: ('0.04363770098468186',), 22296376: ()} output_args : {22296376: [{'metal': 22296402, 'papier': 22296404, 'Carton_gris': 22296405, 'cartonnette': 22296406, 'plastique': 22296407, 'autre_refus': 22296409, 'mal_croppe': 22296410, 'flou': 22296411, 'environnement': 22296412, 'Teint_Dans_La_Masse': 22296413, 'Carton_brun': 22296414, 'kraft': 22296415}]} args : 22296376 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 :2, first value : ('0.04363770098468186',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22296376) 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 (1351861989) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351861989 download finish for photo 1351861989 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22296376_11-04-2025_20_03_32.pdf 22296402 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=22296402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351860545: '1744394022_582759_1351856808_69b81ddf65a05207e5d621bb1ace5a49_rle_crop_3758605817_0.png'} change filename to text .imagette222964021744394612/ imagette222964021744394612/1744394022_582759_1351856808_69b81ddf65a05207e5d621bb1ace5a49_rle_crop_3758605817_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/37ce87f35f89d27892ca352d668f00c0_57054254.png imagette222964021744394612 22296406 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=22296406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351860536: '1744394022_582759_1351856808_69b81ddf65a05207e5d621bb1ace5a49_rle_crop_3758605812_0.png', 1351860538: '1744394022_582759_1351856726_1346093896a9cb9967b9e4f085b3724b_rle_crop_3758605962_0.png', 1351860956: '1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606361_0.png', 1351861246: '1744394082_584790_1351859117_55d5975c57001c85a7ba0b7d3b73f55c_rle_crop_3758620102_0.png', 1351861352: '1744394171_2168770_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614612_0.png', 1351861353: '1744394171_2168770_1351858576_eac323cb92a2217a20facef0c021aafb_rle_crop_3758624904_0.png', 1351861579: '1744394233_2169454_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614612_0.png', 1351861580: '1744394233_2169454_1351858576_eac323cb92a2217a20facef0c021aafb_rle_crop_3758624904_0.png', 1351861730: '1744394292_2170279_1351860079_1aa05c3628bbd89a947ae8684cd960e7_rle_crop_3758635303_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1de01c5000c9e956cb3d5fc33b36595b_39071704.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0509e531791fa4dae53a4f43e49f6537_10430136.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/73f22312ea96e817b9581c5136d65269_32893734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a81f58b19f31bfac2b8d051a36c70afd_57165985.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f5863ef8c6d38c4cb1cb0ddbe9163d8d_83564180.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/942775edb768f2560d7fd7135b38de0d_10789090.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f5863ef8c6d38c4cb1cb0ddbe9163d8d_60229460.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/942775edb768f2560d7fd7135b38de0d_62828321.png change filename to text .imagette222964061744394612/ imagette222964061744394612/1744394082_584790_1351859117_55d5975c57001c85a7ba0b7d3b73f55c_rle_crop_3758620102_0.png.png imagette222964061744394612/1744394022_582759_1351856726_1346093896a9cb9967b9e4f085b3724b_rle_crop_3758605962_0.png.png imagette222964061744394612/1744394022_582759_1351856808_69b81ddf65a05207e5d621bb1ace5a49_rle_crop_3758605812_0.png.png imagette222964061744394612/1744394292_2170279_1351860079_1aa05c3628bbd89a947ae8684cd960e7_rle_crop_3758635303_0.png.png imagette222964061744394612/1744394171_2168770_1351858576_eac323cb92a2217a20facef0c021aafb_rle_crop_3758624904_0.png.png imagette222964061744394612/1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606361_0.png.png imagette222964061744394612/1744394171_2168770_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614612_0.png.png imagette222964061744394612/1744394233_2169454_1351858576_eac323cb92a2217a20facef0c021aafb_rle_crop_3758624904_0.png.png imagette222964061744394612/1744394233_2169454_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614612_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fd63da6d38c2469ef21dd489356b2290_26891767.png imagette222964061744394612 22296407 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=22296407 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351860994: '1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606371_0.png', 1351860996: '1744394112_2168331_1351859642_ec52bfc18c4c39f45532120b89da776b_rle_crop_3758610167_0.png', 1351860997: '1744394112_2168331_1351859570_a18e4adf9c987878c6e8b431cbf6fed8_rle_crop_3758610176_0.png', 1351860998: '1744394112_2168331_1351859474_fb9e44000e1402e9e9fc63159f21040f_rle_crop_3758610212_0.png', 1351861736: '1744394292_2170279_1351860025_3d0096b12081e908fcf886fc61fcf6a2_rle_crop_3758637428_0.png', 1351861958: '1744394353_2170850_1351860330_13122b7a3f4d2842a8bb30386979ec13_rle_crop_3758642377_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/56ab6f1d516e138d95a05c39c0cd3931_66650448.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/60ded7910ca6fc82062beca50a93dc35_48172817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a10293ac15f470de8efcd0e5845e9161_63282882.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/72541becce9a56b3f068ed01989590cf_67934209.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/70299f1c9317cc1121df383406f31f14_4080696.png change filename to text .imagette222964071744394612/ imagette222964071744394612/1744394292_2170279_1351860025_3d0096b12081e908fcf886fc61fcf6a2_rle_crop_3758637428_0.png.png imagette222964071744394612/1744394112_2168331_1351859642_ec52bfc18c4c39f45532120b89da776b_rle_crop_3758610167_0.png.png imagette222964071744394612/1744394112_2168331_1351859474_fb9e44000e1402e9e9fc63159f21040f_rle_crop_3758610212_0.png.png imagette222964071744394612/1744394112_2168331_1351859570_a18e4adf9c987878c6e8b431cbf6fed8_rle_crop_3758610176_0.png.png imagette222964071744394612/1744394353_2170850_1351860330_13122b7a3f4d2842a8bb30386979ec13_rle_crop_3758642377_0.png.png imagette222964071744394612/1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606371_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ac9d9d50fe832d445b0772c4d379b0e4_63457096.png imagette222964071744394612 22296409 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=22296409 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351860523: '1744394022_582759_1351856859_bc0c402fefa196af9e35163fc2efc41a_rle_crop_3758605722_0.png', 1351860525: '1744394022_582759_1351856726_1346093896a9cb9967b9e4f085b3724b_rle_crop_3758605968_0.png', 1351861332: '1744394171_2168770_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614611_0.png', 1351861333: '1744394171_2168770_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626983_0.png', 1351861572: '1744394233_2169454_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614611_0.png', 1351861573: '1744394233_2169454_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626983_0.png', 1351861718: '1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638439_0.png', 1351861719: '1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638445_0.png', 1351861952: '1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642110_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a64626e15c75792d848a449b2c8837f7_71635919.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9a777c94efa5be04c3f983305f7d3f3f_55540374.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f940de8472466e8a9c5fa33fc46582a2_19626075.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/014641c11be564eac651a40ed925b953_80330352.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f940de8472466e8a9c5fa33fc46582a2_63781916.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/014641c11be564eac651a40ed925b953_93033149.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b7b00e69cf554ef01be3a4e58c096d23_42955787.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fec3b49dbc3248e329eff939a1fbb971_47287423.png change filename to text .imagette222964091744394613/ imagette222964091744394613/1744394233_2169454_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626983_0.png.png imagette222964091744394613/1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638439_0.png.png imagette222964091744394613/1744394233_2169454_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614611_0.png.png imagette222964091744394613/1744394022_582759_1351856859_bc0c402fefa196af9e35163fc2efc41a_rle_crop_3758605722_0.png.png imagette222964091744394613/1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638445_0.png.png imagette222964091744394613/1744394022_582759_1351856726_1346093896a9cb9967b9e4f085b3724b_rle_crop_3758605968_0.png.png imagette222964091744394613/1744394171_2168770_1351859151_42016304525757ebaeb6803395dac9a5_rle_crop_3758614611_0.png.png imagette222964091744394613/1744394171_2168770_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626983_0.png.png imagette222964091744394613/1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642110_0.png.png imagette222964101744394613/ imagette222964111744394613/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0f8464d46bf199c28968595ee90593ba_31099814.png imagette222964091744394613 22296410 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=22296410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222964101744394613 22296411 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=22296411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222964111744394613 22296415 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=22296415 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351861006: '1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606363_0.png', 1351861959: '1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642112_0.png', 1351861960: '1744394353_2170850_1351860330_13122b7a3f4d2842a8bb30386979ec13_rle_crop_3758642379_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cb0c4db3b5d5c8343d87d79ffe30d2ed_26206897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/126d69e85cf3efe7e8384462a91e4150_35060360.png change filename to text .imagette222964151744394613/ imagette222964151744394613/1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642112_0.png.png imagette222964151744394613/1744394353_2170850_1351860330_13122b7a3f4d2842a8bb30386979ec13_rle_crop_3758642379_0.png.png imagette222964151744394613/1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606363_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/87ac7ef2e5c8564fd523d672a6c6ffc3_59365637.png imagette222964151744394613 22296405 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=22296405 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351861342: '1744394171_2168770_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620526_0.png', 1351861343: '1744394171_2168770_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626989_0.png', 1351861574: '1744394233_2169454_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620526_0.png', 1351861575: '1744394233_2169454_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626989_0.png', 1351861723: '1744394292_2170279_1351860137_e1158e3023fc6392f38402a2950ed77c_rle_crop_3758633529_0.png', 1351861724: '1744394292_2170279_1351860137_e1158e3023fc6392f38402a2950ed77c_rle_crop_3758633524_0.png', 1351861725: '1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638447_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c9a48bfd80663346f7e207a7ae952d11_56136085.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7f70bf584b315916b1da65093b6a9d78_92970115.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a4c63bdbe7a4f0e55721b9f8ada4ddf5_25890567.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/7f70bf584b315916b1da65093b6a9d78_66047874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/582112cf7b56eaa6b40e729bb64a6db8_20841432.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/210dba6067123ff46039ba8bff545ebb_606243.png change filename to text .imagette222964051744394614/ imagette222964051744394614/1744394171_2168770_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620526_0.png.png imagette222964051744394614/1744394292_2170279_1351860137_e1158e3023fc6392f38402a2950ed77c_rle_crop_3758633524_0.png.png imagette222964051744394614/1744394292_2170279_1351860137_e1158e3023fc6392f38402a2950ed77c_rle_crop_3758633529_0.png.png imagette222964051744394614/1744394233_2169454_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620526_0.png.png imagette222964051744394614/1744394171_2168770_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626989_0.png.png imagette222964051744394614/1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638447_0.png.png imagette222964051744394614/1744394233_2169454_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626989_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1c595e22ac961d02894341c1d8f92faa_64001248.png imagette222964051744394614 22296413 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=22296413 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351860511: '1744394022_582759_1351856859_bc0c402fefa196af9e35163fc2efc41a_rle_crop_3758605724_0.png', 1351860949: '1744394112_2168331_1351859518_73d99369b8f53899ef6ef9ac53baf88b_rle_crop_3758610195_0.png', 1351860950: '1744394112_2168331_1351859474_fb9e44000e1402e9e9fc63159f21040f_rle_crop_3758610213_0.png', 1351860952: '1744394112_2168331_1351859474_fb9e44000e1402e9e9fc63159f21040f_rle_crop_3758610211_0.png', 1351861323: '1744394171_2168770_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620530_0.png', 1351861324: '1744394171_2168770_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626982_0.png', 1351861568: '1744394233_2169454_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620530_0.png', 1351861569: '1744394233_2169454_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626982_0.png', 1351861709: '1744394292_2170279_1351860079_1aa05c3628bbd89a947ae8684cd960e7_rle_crop_3758635307_0.png', 1351861710: '1744394292_2170279_1351860025_3d0096b12081e908fcf886fc61fcf6a2_rle_crop_3758637431_0.png', 1351861711: '1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638444_0.png', 1351861949: '1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642117_0.png', 1351861950: '1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642114_0.png', 1351862272: '1744394415_2176616_1351861070_6df68bdabb028d7315e9b896a1e0488f_rle_crop_3758649997_0.png', 1351862273: '1744394415_2176616_1351861019_3fbf8cd83b95453690e321bbba868f8b_rle_crop_3758652095_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d2c8543dfbdf6ba6c933be9e387d8fe2_61068871.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/96249e41b46fc155e35dac77bdb2354c_32682305.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e1a92f9ea8a3b5227f2460876c794b19_10680111.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/52e54c0397038161f1ab7e4e730c07c8_10165355.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4cea343699253cfc98ddc5cdd02529db_37261592.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ba311901939d0416ce044b9395c79649_83798875.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4cea343699253cfc98ddc5cdd02529db_83287829.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ba311901939d0416ce044b9395c79649_67108603.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ddb1b2863778afcd737b449f21f83eec_22037313.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d35d01bd03ae63db295966305771f48a_12880459.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1beae78ccf6d93e781701c4cb6b80cac_97052409.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/00188872501831d35eb027a5f59252f5_35350845.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/eadfffac5133958739e6a478a6ee5b9c_21474801.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3698bc81e89a6baff8ffae03576748d0_61683533.png change filename to text .imagette222964131744394614/ imagette222964131744394614/1744394112_2168331_1351859474_fb9e44000e1402e9e9fc63159f21040f_rle_crop_3758610211_0.png.png imagette222964131744394614/1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642117_0.png.png imagette222964131744394614/1744394353_2170850_1351860883_15c791e390b9278ed90643a56131389f_rle_crop_3758642114_0.png.png imagette222964131744394614/1744394112_2168331_1351859474_fb9e44000e1402e9e9fc63159f21040f_rle_crop_3758610213_0.png.png imagette222964131744394614/1744394415_2176616_1351861019_3fbf8cd83b95453690e321bbba868f8b_rle_crop_3758652095_0.png.png imagette222964131744394614/1744394171_2168770_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626982_0.png.png imagette222964131744394614/1744394171_2168770_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620530_0.png.png imagette222964131744394614/1744394292_2170279_1351860025_3d0096b12081e908fcf886fc61fcf6a2_rle_crop_3758637431_0.png.png imagette222964131744394614/1744394233_2169454_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620530_0.png.png imagette222964131744394614/1744394292_2170279_1351859969_4a028a4ab05963c9ee6ee29804fd0c23_rle_crop_3758638444_0.png.png imagette222964131744394614/1744394112_2168331_1351859518_73d99369b8f53899ef6ef9ac53baf88b_rle_crop_3758610195_0.png.png imagette222964131744394614/1744394415_2176616_1351861070_6df68bdabb028d7315e9b896a1e0488f_rle_crop_3758649997_0.png.png imagette222964131744394614/1744394022_582759_1351856859_bc0c402fefa196af9e35163fc2efc41a_rle_crop_3758605724_0.png.png imagette222964131744394614/1744394292_2170279_1351860079_1aa05c3628bbd89a947ae8684cd960e7_rle_crop_3758635307_0.png.png imagette222964131744394614/1744394233_2169454_1351858562_544fba8c85813a7c084cf1a9a3fd371f_rle_crop_3758626982_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/57784a1e2b7eb175010aa60cc1abbd26_97016657.png imagette222964131744394614 22296414 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=22296414 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351860960: '1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606364_0.png', 1351861358: '1744394171_2168770_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620534_0.png', 1351861581: '1744394233_2169454_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620534_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/76072801b056fdc3338c0e849069e739_818967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1c2161e435fea6c7870502936173f660_98054677.png change filename to text .imagette222964141744394615/ imagette222964141744394615/1744394112_2168331_1351859678_155f0e2f190ca33ab7e88b8a0c075115_rle_crop_3758606364_0.png.png imagette222964141744394615/1744394171_2168770_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620534_0.png.png imagette222964141744394615/1744394233_2169454_1351858607_6d35360f01d2170a1d203294fd0c3177_rle_crop_3758620534_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1c2161e435fea6c7870502936173f660_51747013.png imagette222964141744394615 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22296376 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22296417,22296418,22296419,22296420,22296421,22296422,22296423,22296424,22296425,22296426,22296427,22296428?tags=metal,papier,Carton_gris,cartonnette,plastique,autre_refus,mal_croppe,flou,environnement,Teint_Dans_La_Masse,Carton_brun,kraft your option no_mail is active, we will not send the real mail to your client args[1351861989] : ('0.04363770098468186',) no score found for photo 1351861989 We are sending mail with results at report@fotonower.com refus_total : 0.04363770098468186 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=22296376 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_P22296376_11-04-2025_20_03_32.pdf results_Auto_P22296376_11-04-2025_20_03_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296376_11-04-2025_20_03_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','22296376','results_Auto_P22296376_11-04-2025_20_03_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296376_11-04-2025_20_03_32.pdf','pdf','','0.16','0.04363770098468186') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22296376]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351861989] map_info['map_portfolio_photo'] : {22296376: [1351861989, 1351861811, 1351861802, 1351861784, 1351861426, 1351861398, 1351861368, 1351861341, 1351861306, 1351861285, 1351861178, 1351861156, 1351861151, 1351861147, 1351861120, 1351861113, 1351861070, 1351861019, 1351860988, 1351860883, 1351860855, 1351860824, 1351860796, 1351860393, 1351860348, 1351860330, 1351860179, 1351860137, 1351860079, 1351860025, 1351859969, 1351859726, 1351859678, 1351859642, 1351859570, 1351859518, 1351859474, 1351859151, 1351859117, 1351859036, 1351858687, 1351858652, 1351858626, 1351858607, 1351858576, 1351858562, 1351858272, 1351858247, 1351858219, 1351858191, 1351858170, 1351858138, 1351857889, 1351857863, 1351857840, 1351857831, 1351857806, 1351857798, 1351857508, 1351857470, 1351857424, 1351857390, 1351857338, 1351856859, 1351856808, 1351856783, 1351856726]} final : False mtd_id 4302 list_pids : [1351861989] 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, '2746110') ('4302', '22296376', '1351861989', None, None, None, None, None, '2746110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '22296376', '1351861989', None, None, None, None, None, '2746110')] time used for this insertion : 0.012895822525024414 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9183568954467773 time spend to save output : 0.013076543807983398 total time spend for step 4 : 3.9314334392547607 step5:split_time_score Fri Apr 11 20:03:36 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 : ['22296376'] 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 : [('22296376',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22296376) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351861989: {'path': 'temp/1744394612_1780077_1351861989_e0b7ba181b3a12aa4a8019938381f714.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 = 22296376; (('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 = 22296376 group by h (('19', 67),) 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=22296376 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 (22296376) 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 (22296376) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22296376 Nombre de photos uploadées : 67 / 23040 (0%) 11042025 22296376 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 11042025 22296376 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1351856859, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bc0c402fefa196af9e35163fc2efc41a.jpg', 'username': None, 'uploaded_at': 1744393567, 'text': 'image_11042025_19_45_04_10167.jpg'}, {'photo_id': 1351856808, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/69b81ddf65a05207e5d621bb1ace5a49.jpg', 'username': None, 'uploaded_at': 1744393567, 'text': 'image_11042025_19_45_13_9133.jpg'}, {'photo_id': 1351856783, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5b4fde8851c401702c7a81c9838dc1be.jpg', 'username': None, 'uploaded_at': 1744393567, 'text': 'image_11042025_19_45_23_10220.jpg'}, {'photo_id': 1351856726, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1346093896a9cb9967b9e4f085b3724b.jpg', 'username': None, 'uploaded_at': 1744393567, 'text': 'image_11042025_19_45_33_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030736923217773438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22296376, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025246143341064453 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1744591, 'mtr_portfolio_id': 22294513, 'dashboard_result_id': 10035053, '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_P22294513_11-04-2025_19_33_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294588, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1744591, 'mtr_portfolio_id': 22295582, 'dashboard_result_id': 10035055, '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_P22295582_11-04-2025_19_47_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295596, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1744591, 'mtr_portfolio_id': 22296376, 'dashboard_result_id': 10035056, '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_P22296376_11-04-2025_20_01_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22296402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296415, '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 = 22294513 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': 2745986, 'mtr_portfolio_id': 22294513, 'created_at': datetime.datetime(2025, 4, 11, 19, 33, 32), 'result': '0.04393922219327648', 'result_long': None, 'result_double': None}] Qualite : 0.04393922219327648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294513_11-04-2025_19_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294513 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_P22294513_11-04-2025_19_33_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294588, 'pht': 3726}}" where mtr_portfolio_id = 22294513 and dashboard_run_id = 1744591 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`=22294513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10035053, 0.04393922219327648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294513_11-04-2025_19_33_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294588, '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 = 22295582 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': 2746069, 'mtr_portfolio_id': 22295582, 'created_at': datetime.datetime(2025, 4, 11, 19, 47, 32), 'result': '0.06369179666235565', 'result_long': None, 'result_double': None}] Qualite : 0.06369179666235565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22295582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295582_11-04-2025_19_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22295582 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_P22295582_11-04-2025_19_47_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295596, 'pht': 3726}}" where mtr_portfolio_id = 22295582 and dashboard_run_id = 1744591 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`=22295582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10035055, 0.06369179666235565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295582_11-04-2025_19_47_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295596, '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 = 22296376 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': 2746110, 'mtr_portfolio_id': 22296376, 'created_at': datetime.datetime(2025, 4, 11, 20, 3, 31), 'result': '0.04363770098468186', 'result_long': None, 'result_double': None}] Qualite : 0.04363770098468186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22296376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296376_11-04-2025_20_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22296376 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_P22296376_11-04-2025_20_03_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22296402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296415, 'pht': 3726}}" where mtr_portfolio_id = 22296376 and dashboard_run_id = 1744591 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`=22296376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10035056, 0.04363770098468186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296376_11-04-2025_20_03_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22296402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296415, '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 (22294513,22295582,22296376) result : ((1351846508,), (1351846511,), (1351846514,), (1351846974,), (1351847009,), (1351847046,), (1351847064,), (1351847104,), (1351847202,), (1351847475,), (1351847497,), (1351847510,), (1351847570,), (1351847644,), (1351847795,), (1351847837,), (1351847864,), (1351847887,), (1351847924,), (1351847990,), (1351848173,), (1351848175,), (1351848177,), (1351848256,), (1351848260,), (1351848282,), (1351848643,), (1351848697,), (1351848739,), (1351848775,), (1351848792,), (1351848818,), (1351849043,), (1351849070,), (1351849097,), (1351849293,), (1351849299,), (1351849303,), (1351849332,), (1351849343,), (1351849462,), (1351849466,), (1351849479,), (1351849494,), (1351849514,), (1351849542,), (1351849580,), (1351849610,), (1351849638,), (1351849654,), (1351849709,), (1351849721,), (1351849749,), (1351849772,), (1351849788,), (1351849797,), (1351849950,), (1351850045,), (1351850106,), (1351850127,), (1351850387,), (1351850410,), (1351850436,), (1351850459,), (1351850485,), (1351850788,), (1351850828,), (1351850840,), (1351850852,), (1351850872,), (1351850893,), (1351850974,), (1351850962,), (1351850968,), (1351851013,), (1351851028,), (1351851040,), (1351851061,), (1351851263,), (1351851279,), (1351851286,), (1351851300,), (1351851310,), (1351851334,), (1351851400,), (1351851409,), (1351851411,), (1351851415,), (1351851556,), (1351851560,), (1351851565,), (1351851927,), (1351851946,), (1351851949,), (1351851954,), (1351852009,), (1351852017,), (1351852084,), (1351852114,), (1351852134,), (1351852144,), (1351852148,), (1351852256,), (1351852275,), (1351852285,), (1351852319,), (1351852368,), (1351852613,), (1351852629,), (1351852653,), (1351852669,), (1351852915,), (1351852951,), (1351852975,), (1351852997,), (1351853024,), (1351853270,), (1351853300,), (1351853330,), (1351853778,), (1351853825,), (1351853900,), (1351853937,), (1351853963,), (1351854516,), (1351854589,), (1351854642,), (1351854703,), (1351854806,), (1351854866,), (1351855433,), (1351855483,), (1351855526,), (1351856032,), (1351856090,), (1351856162,), (1351856199,), (1351856220,), (1351856904,), (1351856726,), (1351856783,), (1351856808,), (1351856859,), (1351857338,), (1351857390,), (1351857424,), (1351857470,), (1351857508,), (1351857798,), (1351857806,), (1351857831,), (1351857840,), (1351857863,), (1351857889,), (1351858138,), (1351858170,), (1351858191,), (1351858219,), (1351858247,), (1351858272,), (1351858562,), (1351858576,), (1351858607,), (1351858626,), (1351858652,), (1351858687,), (1351859036,), (1351859117,), (1351859151,), (1351859474,), (1351859518,), (1351859570,), (1351859642,), (1351859678,), (1351859726,), (1351859969,), (1351860025,), (1351860079,), (1351860137,), (1351860179,), (1351860330,), (1351860348,), (1351860393,), (1351860796,), (1351860824,), (1351860855,), (1351860883,), (1351860988,), (1351861019,), (1351861070,), (1351861113,), (1351861120,), (1351861147,), (1351861151,), (1351861156,), (1351861178,), (1351861285,), (1351861306,), (1351861341,), (1351861368,), (1351861398,), (1351861426,), (1351861784,), (1351861802,), (1351861811,), (1351861989,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22296376]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351861989] map_info['map_portfolio_photo'] : {22296376: [1351861989, 1351861811, 1351861802, 1351861784, 1351861426, 1351861398, 1351861368, 1351861341, 1351861306, 1351861285, 1351861178, 1351861156, 1351861151, 1351861147, 1351861120, 1351861113, 1351861070, 1351861019, 1351860988, 1351860883, 1351860855, 1351860824, 1351860796, 1351860393, 1351860348, 1351860330, 1351860179, 1351860137, 1351860079, 1351860025, 1351859969, 1351859726, 1351859678, 1351859642, 1351859570, 1351859518, 1351859474, 1351859151, 1351859117, 1351859036, 1351858687, 1351858652, 1351858626, 1351858607, 1351858576, 1351858562, 1351858272, 1351858247, 1351858219, 1351858191, 1351858170, 1351858138, 1351857889, 1351857863, 1351857840, 1351857831, 1351857806, 1351857798, 1351857508, 1351857470, 1351857424, 1351857390, 1351857338, 1351856859, 1351856808, 1351856783, 1351856726]} final : True mtd_id 4302 list_pids : [1351861989] Looping around the photos to save general results len do output : 1 /22296376Didn'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, '2746110') ('4302', '22296376', '1351861989', None, None, None, None, None, '2746110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '22296376', 'None', None, None, None, None, '2746110'), ('4302', '22296376', '1351861989', None, None, None, None, None, '2746110')] time used for this insertion : 0.012713432312011719 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3098616600036621 time spend to save output : 0.012926340103149414 total time spend for step 5 : 0.3227880001068115 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 (2746110) 2.04user 2.21system 0:11.12elapsed 38%CPU (0avgtext+0avgdata 154992maxresident)k 1072inputs+7984outputs (25major+61788minor)pagefaults 0swaps