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 : 660823 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 (2637404) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2637404) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058601 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2637404'] with mtr_portfolio_ids : ['21058601'] and first list_photo_ids : [] new path : /proc/660823/ Name: python3 Umask: 0002 State: R (running) Tgid: 660823 Ngid: 0 Pid: 660823 PPid: 660822 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 660823 NSpid: 660823 NSpgid: 658130 NSsid: 658130 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97512 kB VmRSS: 97512 kB RssAnon: 59760 kB RssFile: 37752 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 66 nonvoluntary_ctxt_switches: 150 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '660823', 'Ngid': '0', 'Pid': '660823', 'PPid': '660822', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '660823', 'NSpid': '660823', 'NSpgid': '658130', 'NSsid': '658130', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97512 kB', 'VmRSS': '97512 kB', 'RssAnon': '59760 kB', 'RssFile': '37752 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '66', 'nonvoluntary_ctxt_switches': '150'} ('datou_batch_current', '660823', '1106844', '0', '1106844', '865592', '97512', b'', 'marlene', '2637404') 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 (21058601) 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 (2637404 ) ) 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 (21058601) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340993732, 'portfolio_id': 21058601}, {'photo_id': 1340993642, 'portfolio_id': 21058601}, {'photo_id': 1340993627, 'portfolio_id': 21058601}, {'photo_id': 1340993616, 'portfolio_id': 21058601}, {'photo_id': 1340993609, 'portfolio_id': 21058601}, {'photo_id': 1340993420, 'portfolio_id': 21058601}, {'photo_id': 1340993284, 'portfolio_id': 21058601}, {'photo_id': 1340993259, 'portfolio_id': 21058601}, {'photo_id': 1340993252, 'portfolio_id': 21058601}, {'photo_id': 1340993240, 'portfolio_id': 21058601}, {'photo_id': 1340993230, 'portfolio_id': 21058601}, {'photo_id': 1340993183, 'portfolio_id': 21058601}, {'photo_id': 1340993179, 'portfolio_id': 21058601}, {'photo_id': 1340993173, 'portfolio_id': 21058601}, {'photo_id': 1340993168, 'portfolio_id': 21058601}, {'photo_id': 1340993163, 'portfolio_id': 21058601}, {'photo_id': 1340993061, 'portfolio_id': 21058601}, {'photo_id': 1340992970, 'portfolio_id': 21058601}, {'photo_id': 1340992964, 'portfolio_id': 21058601}, {'photo_id': 1340992960, 'portfolio_id': 21058601}, {'photo_id': 1340992955, 'portfolio_id': 21058601}, {'photo_id': 1340992950, 'portfolio_id': 21058601}, {'photo_id': 1340992723, 'portfolio_id': 21058601}, {'photo_id': 1340992718, 'portfolio_id': 21058601}, {'photo_id': 1340992716, 'portfolio_id': 21058601}, {'photo_id': 1340992712, 'portfolio_id': 21058601}, {'photo_id': 1340992630, 'portfolio_id': 21058601}, {'photo_id': 1340992624, 'portfolio_id': 21058601}, {'photo_id': 1340992618, 'portfolio_id': 21058601}, {'photo_id': 1340992613, 'portfolio_id': 21058601}, {'photo_id': 1340992499, 'portfolio_id': 21058601}, {'photo_id': 1340992493, 'portfolio_id': 21058601}, {'photo_id': 1340992447, 'portfolio_id': 21058601}, {'photo_id': 1340992444, 'portfolio_id': 21058601}, {'photo_id': 1340992429, 'portfolio_id': 21058601}, {'photo_id': 1340992380, 'portfolio_id': 21058601}, {'photo_id': 1340992375, 'portfolio_id': 21058601}, {'photo_id': 1340992335, 'portfolio_id': 21058601}, {'photo_id': 1340992214, 'portfolio_id': 21058601}, {'photo_id': 1340992197, 'portfolio_id': 21058601}, {'photo_id': 1340992180, 'portfolio_id': 21058601}, {'photo_id': 1340992136, 'portfolio_id': 21058601}, {'photo_id': 1340991752, 'portfolio_id': 21058601}, {'photo_id': 1340991749, 'portfolio_id': 21058601}, {'photo_id': 1340991744, 'portfolio_id': 21058601}, {'photo_id': 1340991738, 'portfolio_id': 21058601}, {'photo_id': 1340991731, 'portfolio_id': 21058601}, {'photo_id': 1340991726, 'portfolio_id': 21058601}, {'photo_id': 1340991701, 'portfolio_id': 21058601}, {'photo_id': 1340991697, 'portfolio_id': 21058601}, {'photo_id': 1340991690, 'portfolio_id': 21058601}, {'photo_id': 1340991685, 'portfolio_id': 21058601}, {'photo_id': 1340991681, 'portfolio_id': 21058601}, {'photo_id': 1340991659, 'portfolio_id': 21058601}, {'photo_id': 1340991653, 'portfolio_id': 21058601}, {'photo_id': 1340991649, 'portfolio_id': 21058601}, {'photo_id': 1340991645, 'portfolio_id': 21058601}, {'photo_id': 1340991634, 'portfolio_id': 21058601}, {'photo_id': 1340991605, 'portfolio_id': 21058601}, {'photo_id': 1340991599, 'portfolio_id': 21058601}, {'photo_id': 1340991593, 'portfolio_id': 21058601}, {'photo_id': 1340991587, 'portfolio_id': 21058601}] map_portfolio_id_photo_id: {21058601: [1340993732, 1340993642, 1340993627, 1340993616, 1340993609, 1340993420, 1340993284, 1340993259, 1340993252, 1340993240, 1340993230, 1340993183, 1340993179, 1340993173, 1340993168, 1340993163, 1340993061, 1340992970, 1340992964, 1340992960, 1340992955, 1340992950, 1340992723, 1340992718, 1340992716, 1340992712, 1340992630, 1340992624, 1340992618, 1340992613, 1340992499, 1340992493, 1340992447, 1340992444, 1340992429, 1340992380, 1340992375, 1340992335, 1340992214, 1340992197, 1340992180, 1340992136, 1340991752, 1340991749, 1340991744, 1340991738, 1340991731, 1340991726, 1340991701, 1340991697, 1340991690, 1340991685, 1340991681, 1340991659, 1340991653, 1340991649, 1340991645, 1340991634, 1340991605, 1340991599, 1340991593, 1340991587]} ##### 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.014656305313110352 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 5 11:18:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21058601) 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 : 21058601 get user id for portfolio 21058601 get sub ptf for main ptf 21058601, type 3726 and hashtags ['papier', 'environnement', 'mal_croppe', 'flou', 'kraft', 'plastique', 'Carton_gris', 'autre_refus', 'cartonnette', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal'] 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`=21058601 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','mal_croppe','flou','kraft','plastique','Carton_gris','autre_refus','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal')) 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`=21058601 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','mal_croppe','flou','kraft','plastique','Carton_gris','autre_refus','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 21058601, 'sub_port_id': 21058609, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670243, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'papier': {'main_port_id': 21058601, 'sub_port_id': 21058610, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670244, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'kraft': {'main_port_id': 21058601, 'sub_port_id': 21058611, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670245, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'mal_croppe': {'main_port_id': 21058601, 'sub_port_id': 21058612, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670246, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'Carton_gris': {'main_port_id': 21058601, 'sub_port_id': 21058613, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670247, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'Carton_brun': {'main_port_id': 21058601, 'sub_port_id': 21058614, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670248, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'metal': {'main_port_id': 21058601, 'sub_port_id': 21058615, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670249, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'cartonnette': {'main_port_id': 21058601, 'sub_port_id': 21058616, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670250, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'environnement': {'main_port_id': 21058601, 'sub_port_id': 21058617, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670251, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21058601, 'sub_port_id': 21058618, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670252, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'plastique': {'main_port_id': 21058601, 'sub_port_id': 21058619, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670253, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}, 'autre_refus': {'main_port_id': 21058601, 'sub_port_id': 21058620, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670254, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21058609 , 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=21058601 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 (21058609) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058610 , 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=21058601 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 (21058610) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058611 , 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=21058601 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 (21058611) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058612 , 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=21058601 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 (21058612) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058613 , 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=21058601 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 (21058613) result : ((1340992485,), (1340992750,), (1340993315,), (1340993547,), (1340993548,), (1340993549,), (1340993550,), (1340993551,), (1340993552,), (1340993658,), (1340993698,), (1340994081,), (1340994626,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058614 , 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=21058601 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 (21058614) result : ((1340992439,), (1340992491,), (1340993635,), (1340993636,), (1340993637,), (1340993638,), (1340993702,), (1340993703,), (1340994428,), (1340994429,), (1340994431,), (1340994432,), (1340994636,), (1340994637,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058615 , 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=21058601 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 (21058615) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058616 , 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=21058601 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 (21058616) result : ((1340992487,), (1340992488,), (1340992489,), (1340992753,), (1340992754,), (1340993316,), (1340993553,), (1340993633,), (1340993700,), (1340994383,), (1340994633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058617 , 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=21058601 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 (21058617) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058618 , 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=21058601 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 (21058618) result : ((1340992479,), (1340992480,), (1340992481,), (1340992482,), (1340992740,), (1340992741,), (1340992742,), (1340993296,), (1340993297,), (1340993298,), (1340993304,), (1340993305,), (1340993306,), (1340993307,), (1340993543,), (1340993622,), (1340993623,), (1340993624,), (1340993653,), (1340993654,), (1340993689,), (1340994030,), (1340994033,), (1340994344,), (1340994345,), (1340994346,), (1340994618,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058619 , 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=21058601 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 (21058619) result : ((1340992440,), (1340993639,), (1340993640,), (1340993641,), (1340993643,), (1340993660,), (1340993706,), (1340994098,), (1340994465,), (1340994466,), (1340994468,), (1340994469,), (1340994639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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 21058620 , 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=21058601 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 (21058620) result : ((1340992406,), (1340992407,), (1340992483,), (1340992484,), (1340992745,), (1340992746,), (1340992747,), (1340992748,), (1340992749,), (1340993308,), (1340993309,), (1340993310,), (1340993311,), (1340993312,), (1340993544,), (1340993545,), (1340993625,), (1340993626,), (1340993656,), (1340993657,), (1340993691,), (1340993692,), (1340993693,), (1340993694,), (1340994038,), (1340994042,), (1340994375,), (1340994376,), (1340994377,), (1340994621,), (1340994622,), (1340994623,), (1340994624,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21058601) result : ((1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) 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`=21058601 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','mal_croppe','flou','kraft','plastique','Carton_gris','autre_refus','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal')) 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`=21058601 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','mal_croppe','flou','kraft','plastique','Carton_gris','autre_refus','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 21058601, 'sub_port_id': 21058621, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670255, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'papier': {'main_port_id': 21058601, 'sub_port_id': 21058622, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670256, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'kraft': {'main_port_id': 21058601, 'sub_port_id': 21058623, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670257, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'mal_croppe': {'main_port_id': 21058601, 'sub_port_id': 21058624, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670258, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'Carton_gris': {'main_port_id': 21058601, 'sub_port_id': 21058625, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670259, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'Carton_brun': {'main_port_id': 21058601, 'sub_port_id': 21058626, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670260, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'metal': {'main_port_id': 21058601, 'sub_port_id': 21058627, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670261, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'cartonnette': {'main_port_id': 21058601, 'sub_port_id': 21058628, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670262, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'environnement': {'main_port_id': 21058601, 'sub_port_id': 21058629, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670263, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 21058601, 'sub_port_id': 21058630, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670264, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'plastique': {'main_port_id': 21058601, 'sub_port_id': 21058631, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670265, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}, 'autre_refus': {'main_port_id': 21058601, 'sub_port_id': 21058632, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13670266, 'last_updated_at': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 11, 16, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 11, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058621,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058609 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058622,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058610 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058623,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058611 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058624,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058612 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058625,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058613 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058626,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058614 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058627,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058615 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058628,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058616 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058629,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058617 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058619 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21058632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21058620 lien utilise dans velours : https://www.fotonower.com/velours/21058621,21058622,21058623,21058624,21058625,21058626,21058627,21058628,21058629,21058630,21058631,21058632?tags=flou,papier,kraft,mal_croppe,Carton_gris,Carton_brun,metal,cartonnette,environnement,Teint_Dans_La_Masse,plastique,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21058601]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340993732] map_info['map_portfolio_photo'] : {21058601: [1340993732, 1340993642, 1340993627, 1340993616, 1340993609, 1340993420, 1340993284, 1340993259, 1340993252, 1340993240, 1340993230, 1340993183, 1340993179, 1340993173, 1340993168, 1340993163, 1340993061, 1340992970, 1340992964, 1340992960, 1340992955, 1340992950, 1340992723, 1340992718, 1340992716, 1340992712, 1340992630, 1340992624, 1340992618, 1340992613, 1340992499, 1340992493, 1340992447, 1340992444, 1340992429, 1340992380, 1340992375, 1340992335, 1340992214, 1340992197, 1340992180, 1340992136, 1340991752, 1340991749, 1340991744, 1340991738, 1340991731, 1340991726, 1340991701, 1340991697, 1340991690, 1340991685, 1340991681, 1340991659, 1340991653, 1340991649, 1340991645, 1340991634, 1340991605, 1340991599, 1340991593, 1340991587]} final : False mtd_id 4302 list_pids : [1340993732] Looping around the photos to save general results len do output : 1 /21058601. 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, '2637404') ('4302', '21058601', '1340993732', None, None, None, None, None, '2637404') 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, '21058601', "{'flou': 21058609, 'papier': 21058610, 'kraft': 21058611, 'mal_croppe': 21058612, 'Carton_gris': 21058613, 'Carton_brun': 21058614, 'metal': 21058615, 'cartonnette': 21058616, 'environnement': 21058617, 'Teint_Dans_La_Masse': 21058618, 'plastique': 21058619, 'autre_refus': 21058620}", None, None, None, None, '2637404'), ('4302', '21058601', '1340993732', None, None, None, None, None, '2637404')] time used for this insertion : 0.011772632598876953 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5658912658691406 time spend to save output : 0.012042760848999023 total time spend for step 1 : 1.5779340267181396 step2:final Wed Mar 5 11:19:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21058601) 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 21058601 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340991605,1340991599,1340991593,1340991587,1340991659,1340991653,1340991649,1340991645,1340991634,1340991701,1340991697,1340991690,1340991685,1340991681,1340991752,1340991749,1340991744,1340991738,1340991731,1340991726,1340992214,1340992197,1340992180,1340992136,1340992447,1340992444,1340992429,1340992380,1340992375,1340992630,1340992335,1340992624,1340992618,1340992613,1340992499,1340992493,1340992723,1340992718,1340992716,1340992712,1340993061,1340992970,1340992964,1340992960,1340992955,1340992950,1340993183,1340993179,1340993173,1340993168,1340993163,1340993284,1340993259,1340993252,1340993240,1340993230,1340993420,1340993642,1340993627,1340993616,1340993609,1340993732); 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([21058601]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340993732: ('0.05290679038097258',)} new output for save of step final : {1340993732: ('0.05290679038097258',)} [1340993732] map_info['map_portfolio_photo'] : {21058601: [1340993732, 1340993642, 1340993627, 1340993616, 1340993609, 1340993420, 1340993284, 1340993259, 1340993252, 1340993240, 1340993230, 1340993183, 1340993179, 1340993173, 1340993168, 1340993163, 1340993061, 1340992970, 1340992964, 1340992960, 1340992955, 1340992950, 1340992723, 1340992718, 1340992716, 1340992712, 1340992630, 1340992624, 1340992618, 1340992613, 1340992499, 1340992493, 1340992447, 1340992444, 1340992429, 1340992380, 1340992375, 1340992335, 1340992214, 1340992197, 1340992180, 1340992136, 1340991752, 1340991749, 1340991744, 1340991738, 1340991731, 1340991726, 1340991701, 1340991697, 1340991690, 1340991685, 1340991681, 1340991659, 1340991653, 1340991649, 1340991645, 1340991634, 1340991605, 1340991599, 1340991593, 1340991587]} final : False mtd_id 4302 list_pids : [1340993732] Looping around the photos to save general results len do output : 1 /1340993732.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, '2637404') ('4302', '21058601', '1340993732', None, None, None, None, None, '2637404') 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', '21058601', '1340993732', '0.05290679038097258', None, None, None, None, '2637404')] time used for this insertion : 0.011712074279785156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07116961479187012 time spend to save output : 0.011913061141967773 total time spend for step 2 : 0.08308267593383789 step3:velours_tree Wed Mar 5 11:19:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21058601: [{'flou': 21058609, 'papier': 21058610, 'kraft': 21058611, 'mal_croppe': 21058612, 'Carton_gris': 21058613, 'Carton_brun': 21058614, 'metal': 21058615, 'cartonnette': 21058616, 'environnement': 21058617, 'Teint_Dans_La_Masse': 21058618, 'plastique': 21058619, 'autre_refus': 21058620}]} input_args_next_step : {21058601: ()} output_args : {21058601: [{'flou': 21058609, 'papier': 21058610, 'kraft': 21058611, 'mal_croppe': 21058612, 'Carton_gris': 21058613, 'Carton_brun': 21058614, 'metal': 21058615, 'cartonnette': 21058616, 'environnement': 21058617, 'Teint_Dans_La_Masse': 21058618, 'plastique': 21058619, 'autre_refus': 21058620}]} args : 21058601 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 : ({'flou': 21058609, 'papier': 21058610, 'kraft': 21058611, 'mal_croppe': 21058612, 'Carton_gris': 21058613, 'Carton_brun': 21058614, 'metal': 21058615, 'cartonnette': 21058616, 'environnement': 21058617, 'Teint_Dans_La_Masse': 21058618, 'plastique': 21058619, 'autre_refus': 21058620},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21058601) 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([21058601]) 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.2785646915435791 time spend to save output : 4.124641418457031e-05 total time spend for step 3 : 0.27860593795776367 step4:send_mail_cod Wed Mar 5 11:19:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1340993732: ('0.05290679038097258',)} input_args_next_step : {1340993732: ()} output_args : {1340993732: ('0.05290679038097258',)} args : 1340993732 depend.output_id : 0 complete output_args for input 3 : {21058601: [{'flou': 21058609, 'papier': 21058610, 'kraft': 21058611, 'mal_croppe': 21058612, 'Carton_gris': 21058613, 'Carton_brun': 21058614, 'metal': 21058615, 'cartonnette': 21058616, 'environnement': 21058617, 'Teint_Dans_La_Masse': 21058618, 'plastique': 21058619, 'autre_refus': 21058620}]} input_args_next_step : {1340993732: ('0.05290679038097258',), 21058601: ()} output_args : {21058601: [{'flou': 21058609, 'papier': 21058610, 'kraft': 21058611, 'mal_croppe': 21058612, 'Carton_gris': 21058613, 'Carton_brun': 21058614, 'metal': 21058615, 'cartonnette': 21058616, 'environnement': 21058617, 'Teint_Dans_La_Masse': 21058618, 'plastique': 21058619, 'autre_refus': 21058620}]} args : 21058601 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.05290679038097258',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21058601) 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 (1340993732) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340993732 download finish for photo 1340993732 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette210586091741169941/ imagette210586111741169941/ imagette210586121741169941/ imagette210586151741169941/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21058601_05-03-2025_11_19_01.pdf 21058609 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=21058609 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210586091741169941 21058611 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=21058611 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210586111741169941 21058612 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=21058612 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210586121741169941 21058615 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=21058615 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210586151741169941 21058616 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=21058616 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340992487: '1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342429_0.png', 1340992488: '1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342427_0.png', 1340992489: '1741169152_2203335_1340991645_1b18886565f66d5836bf54b256ae3499_rle_crop_3694342698_0.png', 1340992753: '1741169193_2204095_1340991605_cab1eedf531d038e27e9fd40b19485b3_rle_crop_3694343218_0.png', 1340992754: '1741169193_2204095_1340991593_d1cc4ba228ee9f6a442ca7497084a347_rle_crop_3694343237_0.png', 1340993316: '1741169414_2214780_1340992499_59713b5ba7d60f6430a222c6834f5474_rle_crop_3694344939_0.png', 1340993553: '1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350163_0.png', 1340993633: '1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351537_0.png', 1340993700: '1741169693_2223499_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353755_0.png', 1340994383: '1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351537_0.png', 1340994633: '1741169773_2224875_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353755_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/191dcd42675e88fc382d64ea7b55635f_90297163.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fcb2367562b0ba4212959072df21a00d_55579752.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1b3204040ba06cbd80fbf3b214e0eab6_51832620.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6c210bed666abe65bc6728d6937695b8_42424175.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/728cbd15f93199349e0a97871103f811_50599851.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2c3e30a0a71c14f3aab5accc3b43528e_64455708.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/51dcd16058c824cb7731d3cfb0221ac1_64111992.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/eedd430c9bafe49d9b54a01154ead9f9_70647445.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/aa632e4d8283ecc73dbb1f8d63237e84_70784941.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/eedd430c9bafe49d9b54a01154ead9f9_80790925.png change filename to text .imagette210586161741169941/ imagette210586161741169941/1741169773_2224875_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353755_0.png.png imagette210586161741169941/1741169193_2204095_1340991593_d1cc4ba228ee9f6a442ca7497084a347_rle_crop_3694343237_0.png.png imagette210586161741169941/1741169152_2203335_1340991645_1b18886565f66d5836bf54b256ae3499_rle_crop_3694342698_0.png.png imagette210586161741169941/1741169414_2214780_1340992499_59713b5ba7d60f6430a222c6834f5474_rle_crop_3694344939_0.png.png imagette210586161741169941/1741169193_2204095_1340991605_cab1eedf531d038e27e9fd40b19485b3_rle_crop_3694343218_0.png.png imagette210586161741169941/1741169693_2223499_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353755_0.png.png imagette210586161741169941/1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342427_0.png.png imagette210586161741169941/1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342429_0.png.png imagette210586161741169941/1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351537_0.png.png imagette210586161741169941/1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351537_0.png.png imagette210586161741169941/1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350163_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/aa632e4d8283ecc73dbb1f8d63237e84_70364577.png imagette210586161741169941 21058619 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=21058619 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340992440: '1741169132_2203133_1340991681_2814809707e282f08584c04096c58974_rle_crop_3694342204_0.png', 1340993639: '1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351543_0.png', 1340993640: '1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351542_0.png', 1340993641: '1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351733_0.png', 1340993643: '1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351736_0.png', 1340993660: '1741169677_2223295_1340993284_40cf20f7afd7a7995f36669fa627012b_rle_crop_3694352945_0.png', 1340993706: '1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353546_0.png', 1340994098: '1741169732_2224140_1340993284_40cf20f7afd7a7995f36669fa627012b_rle_crop_3694352945_0.png', 1340994465: '1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351543_0.png', 1340994466: '1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351542_0.png', 1340994468: '1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351733_0.png', 1340994469: '1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351736_0.png', 1340994639: '1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/418229dbff52c79b1689d373cc50b77f_96928083.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b0e16944be4f5b0a46acae17dfc39415_18099797.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d50069b00415cdbff1f97346589d781b_34705191.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/69a29a49aafea25a68c01a1f36fb7cb6_88606328.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/104041b548d76b085b7c0c751ab72ab1_44364916.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0ad0a77704ab50f3189a6f2b83914664_64788709.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/aa1192f8b67ab4a09a0e3681e69e9afb_86221822.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0ad0a77704ab50f3189a6f2b83914664_45522081.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b0e16944be4f5b0a46acae17dfc39415_82392601.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d50069b00415cdbff1f97346589d781b_85921526.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/69a29a49aafea25a68c01a1f36fb7cb6_69519848.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/104041b548d76b085b7c0c751ab72ab1_99462543.png change filename to text .imagette210586191741169942/ imagette210586191741169942/1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351733_0.png.png imagette210586191741169942/1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351543_0.png.png imagette210586191741169942/1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351543_0.png.png imagette210586191741169942/1741169132_2203133_1340991681_2814809707e282f08584c04096c58974_rle_crop_3694342204_0.png.png imagette210586191741169942/1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353546_0.png.png imagette210586191741169942/1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351542_0.png.png imagette210586191741169942/1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351733_0.png.png imagette210586191741169942/1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351736_0.png.png imagette210586191741169942/1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353546_0.png.png imagette210586191741169942/1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351542_0.png.png imagette210586191741169942/1741169677_2223295_1340993284_40cf20f7afd7a7995f36669fa627012b_rle_crop_3694352945_0.png.png imagette210586191741169942/1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351736_0.png.png imagette210586191741169942/1741169732_2224140_1340993284_40cf20f7afd7a7995f36669fa627012b_rle_crop_3694352945_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/aa1192f8b67ab4a09a0e3681e69e9afb_70441508.png imagette210586191741169942 21058620 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=21058620 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340994042: '1741169732_2224140_1340993173_497f55b0aac7a56adaebdd113469faa3_rle_crop_3694352965_0.png', 1340993626: '1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351728_0.png', 1340993656: '1741169677_2223295_1340993179_cc1d1ec813189df66a70209ab240ba86_rle_crop_3694352950_0.png', 1340993657: '1741169677_2223295_1340993173_497f55b0aac7a56adaebdd113469faa3_rle_crop_3694352965_0.png', 1340993691: '1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353556_0.png', 1340993692: '1741169693_2223499_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353759_0.png', 1340993693: '1741169693_2223499_1340992955_80dbf1ba3dce059d8cde983741e919bf_rle_crop_3694353856_0.png', 1340993694: '1741169693_2223499_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353867_0.png', 1340994038: '1741169732_2224140_1340993179_cc1d1ec813189df66a70209ab240ba86_rle_crop_3694352950_0.png', 1340993625: '1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351547_0.png', 1340994375: '1741169752_2224430_1340993420_1d55d529fd923848bbb5d5bc3d26ac93_rle_crop_3694354336_0.png', 1340994376: '1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351547_0.png', 1340994377: '1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351728_0.png', 1340994621: '1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353556_0.png', 1340994622: '1741169773_2224875_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353759_0.png', 1340994623: '1741169773_2224875_1340992955_80dbf1ba3dce059d8cde983741e919bf_rle_crop_3694353856_0.png', 1340994624: '1741169773_2224875_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353867_0.png', 1340992406: '1741169132_2203133_1340991685_bcf378084a958f0329d67c5687c87082_rle_crop_3694342187_0.png', 1340993545: '1741169534_2218232_1340992712_627000b92a3617457936817544670385_rle_crop_3694350265_0.png', 1340993544: '1741169534_2218232_1340992716_1e7d0bd43409817b0197d2c1ad361e1f_rle_crop_3694350257_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8b4477f67b9e2f621ed4395b6fb7e8e2_4315869.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/db3e3354b21e21831ea1f2837f558392_19448255.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/18039a5b7b9574ef3d6f6b46170fa896_26224665.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8b4477f67b9e2f621ed4395b6fb7e8e2_49817217.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0f065b25a31b1eb533337421b5aac74b_3457277.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8aa387a6f8d38feb53ceba221802c280_69142798.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f9d56eda6ac43df82a1bc23b52efdfbf_84125979.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8efcdc63b3af1a5ad8ea68fd9531332c_94138282.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/18039a5b7b9574ef3d6f6b46170fa896_3554499.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7f7d443a4a1036b2a6a367a1adad4d4c_90546851.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6397cb61b0bcaf8efa9fb28c7ee11257_4659240.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7f7d443a4a1036b2a6a367a1adad4d4c_33569949.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/db3e3354b21e21831ea1f2837f558392_74228739.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0f065b25a31b1eb533337421b5aac74b_73112616.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8aa387a6f8d38feb53ceba221802c280_18225564.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f9d56eda6ac43df82a1bc23b52efdfbf_68892249.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8efcdc63b3af1a5ad8ea68fd9531332c_94205054.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/84d36fa12e78dd232fb9063e45310e5c_56133030.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2efcfae8d16b284256a86e7b4fa0a58b_91891975.png change filename to text .imagette210586201741169942/ imagette210586201741169942/1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353556_0.png.png imagette210586201741169942/1741169132_2203133_1340991685_bcf378084a958f0329d67c5687c87082_rle_crop_3694342187_0.png.png imagette210586201741169942/1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351547_0.png.png imagette210586201741169942/1741169534_2218232_1340992712_627000b92a3617457936817544670385_rle_crop_3694350265_0.png.png imagette210586201741169942/1741169732_2224140_1340993173_497f55b0aac7a56adaebdd113469faa3_rle_crop_3694352965_0.png.png imagette210586201741169942/1741169534_2218232_1340992716_1e7d0bd43409817b0197d2c1ad361e1f_rle_crop_3694350257_0.png.png imagette210586201741169942/1741169693_2223499_1340992955_80dbf1ba3dce059d8cde983741e919bf_rle_crop_3694353856_0.png.png imagette210586201741169942/1741169752_2224430_1340993420_1d55d529fd923848bbb5d5bc3d26ac93_rle_crop_3694354336_0.png.png imagette210586201741169942/1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351728_0.png.png imagette210586201741169942/1741169693_2223499_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353759_0.png.png imagette210586201741169942/1741169773_2224875_1340992955_80dbf1ba3dce059d8cde983741e919bf_rle_crop_3694353856_0.png.png imagette210586201741169942/1741169773_2224875_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353867_0.png.png imagette210586201741169942/1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351728_0.png.png imagette210586201741169942/1741169677_2223295_1340993173_497f55b0aac7a56adaebdd113469faa3_rle_crop_3694352965_0.png.png imagette210586201741169942/1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353556_0.png.png imagette210586201741169942/1741169677_2223295_1340993179_cc1d1ec813189df66a70209ab240ba86_rle_crop_3694352950_0.png.png imagette210586201741169942/1741169693_2223499_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353867_0.png.png imagette210586201741169942/1741169732_2224140_1340993179_cc1d1ec813189df66a70209ab240ba86_rle_crop_3694352950_0.png.png imagette210586201741169942/1741169773_2224875_1340992960_05c823f6ccf410170ff189c0ef95baa2_rle_crop_3694353759_0.png.png imagette210586201741169942/1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351547_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1b31230b2bf2a058c2abb4cd9bfa82fc_36718189.png imagette210586201741169942 21058613 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=21058613 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340992485: '1741169152_2203335_1340991653_517e25ad67ed8164bb546ea95f7848e2_rle_crop_3694342414_0.png', 1340992750: '1741169193_2204095_1340991593_d1cc4ba228ee9f6a442ca7497084a347_rle_crop_3694343238_0.png', 1340993315: '1741169414_2214780_1340992613_607b2e536071fed1c82c33eb14db2019_rle_crop_3694344900_0.png', 1340993547: '1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350161_0.png', 1340993548: '1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350160_0.png', 1340993549: '1741169534_2218232_1340992716_1e7d0bd43409817b0197d2c1ad361e1f_rle_crop_3694350248_0.png', 1340993550: '1741169534_2218232_1340992716_1e7d0bd43409817b0197d2c1ad361e1f_rle_crop_3694350249_0.png', 1340993551: '1741169534_2218232_1340992712_627000b92a3617457936817544670385_rle_crop_3694350263_0.png', 1340993552: '1741169534_2218232_1340992712_627000b92a3617457936817544670385_rle_crop_3694350262_0.png', 1340993658: '1741169677_2223295_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353358_0.png', 1340993698: '1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353549_0.png', 1340994081: '1741169732_2224140_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353358_0.png', 1340994626: '1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353549_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/04368897287b134b936a00c37fffc711_66994427.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5ee06d2127ec43b50e955a3488a8caa1_97651845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4cfc219c661b04156d015380b6911966_47749466.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/35b22ea224e886b880a6183b4b8274c0_17379916.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/368f1d455a6cbc40f0f32bdd5ae8ecb5_8414192.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f673e8352cbbc2122aabba0a7bb169c2_97403440.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b83c15c872ec6e84028e3455fc0e4628_8855275.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/61677e9cc6487f116fb8d50aeb63c938_7140784.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c3d45e0a7ee3660eeb08dd5539d616a7_21385876.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c9a97ae3b2966a30c3972ceb22a91c6b_48609387.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9615c6cf94eecaee9333691f224d5893_66234280.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c9a97ae3b2966a30c3972ceb22a91c6b_49344875.png change filename to text .imagette210586131741169944/ imagette210586131741169944/1741169534_2218232_1340992712_627000b92a3617457936817544670385_rle_crop_3694350262_0.png.png imagette210586131741169944/1741169677_2223295_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353358_0.png.png imagette210586131741169944/1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350160_0.png.png imagette210586131741169944/1741169534_2218232_1340992716_1e7d0bd43409817b0197d2c1ad361e1f_rle_crop_3694350249_0.png.png imagette210586131741169944/1741169152_2203335_1340991653_517e25ad67ed8164bb546ea95f7848e2_rle_crop_3694342414_0.png.png imagette210586131741169944/1741169414_2214780_1340992613_607b2e536071fed1c82c33eb14db2019_rle_crop_3694344900_0.png.png imagette210586131741169944/1741169534_2218232_1340992716_1e7d0bd43409817b0197d2c1ad361e1f_rle_crop_3694350248_0.png.png imagette210586131741169944/1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353549_0.png.png imagette210586131741169944/1741169732_2224140_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353358_0.png.png imagette210586131741169944/1741169534_2218232_1340992712_627000b92a3617457936817544670385_rle_crop_3694350263_0.png.png imagette210586131741169944/1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353549_0.png.png imagette210586131741169944/1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350161_0.png.png imagette210586131741169944/1741169193_2204095_1340991593_d1cc4ba228ee9f6a442ca7497084a347_rle_crop_3694343238_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9615c6cf94eecaee9333691f224d5893_10678520.png imagette210586131741169944 21058614 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=21058614 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340992439: '1741169132_2203133_1340991685_bcf378084a958f0329d67c5687c87082_rle_crop_3694342186_0.png', 1340992491: '1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342428_0.png', 1340993635: '1741169653_2223096_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351570_0.png', 1340993636: '1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351738_0.png', 1340993637: '1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351737_0.png', 1340993638: '1741169653_2223096_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351749_0.png', 1340993702: '1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353552_0.png', 1340993703: '1741169693_2223499_1340992964_0bc19b26f79c71c20c48f46a91715cdc_rle_crop_3694353564_0.png', 1340994428: '1741169752_2224430_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351570_0.png', 1340994429: '1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351738_0.png', 1340994431: '1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351737_0.png', 1340994432: '1741169752_2224430_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351749_0.png', 1340994636: '1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353552_0.png', 1340994637: '1741169773_2224875_1340992964_0bc19b26f79c71c20c48f46a91715cdc_rle_crop_3694353564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/79e74c577fe5fc4a9d7d04fcf060f820_69385939.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e5f98e19f1ffadbe008e23f75484a163_86146452.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/55820f6f81f3a358be54e603f4acef41_38492610.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8bbaffddcb9525948cf4d68f28dc9eda_58779660.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/681235a17dc8a9f88939d9046d25d952_55738701.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/47860fd6e624726d83d542c1d4cf91e7_27297941.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ae17246026aafa9da1741faa82cead14_71480281.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a662595c72a4bc654724105b1c759bd1_58868129.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/55820f6f81f3a358be54e603f4acef41_35084324.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8bbaffddcb9525948cf4d68f28dc9eda_78423266.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/681235a17dc8a9f88939d9046d25d952_36370220.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/47860fd6e624726d83d542c1d4cf91e7_24023830.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ae17246026aafa9da1741faa82cead14_67101364.png change filename to text .imagette210586141741169944/ imagette210586141741169944/1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351738_0.png.png imagette210586141741169944/1741169132_2203133_1340991685_bcf378084a958f0329d67c5687c87082_rle_crop_3694342186_0.png.png imagette210586141741169944/1741169693_2223499_1340992964_0bc19b26f79c71c20c48f46a91715cdc_rle_crop_3694353564_0.png.png imagette210586141741169944/1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351738_0.png.png imagette210586141741169944/1741169752_2224430_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351570_0.png.png imagette210586141741169944/1741169752_2224430_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351737_0.png.png imagette210586141741169944/1741169752_2224430_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351749_0.png.png imagette210586141741169944/1741169773_2224875_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353552_0.png.png imagette210586141741169944/1741169773_2224875_1340992964_0bc19b26f79c71c20c48f46a91715cdc_rle_crop_3694353564_0.png.png imagette210586141741169944/1741169653_2223096_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351570_0.png.png imagette210586141741169944/1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342428_0.png.png imagette210586141741169944/1741169653_2223096_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351749_0.png.png imagette210586141741169944/1741169653_2223096_1340993240_6f576bf6ff71f3976995e3b2d81c4b80_rle_crop_3694351737_0.png.png imagette210586141741169944/1741169693_2223499_1340992970_0e3cc9e97e5dde5cf4fe1e0d6ab4f850_rle_crop_3694353552_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a662595c72a4bc654724105b1c759bd1_29006680.png imagette210586141741169944 21058618 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=21058618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340993307: '1741169432_2215110_1340992136_73fdd52c640d4da6b1697b2e65f32e75_rle_crop_3694344921_0.png', 1340994618: '1741169773_2224875_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353869_0.png', 1340994346: '1741169752_2224430_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351747_0.png', 1340994345: '1741169752_2224430_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351568_0.png', 1340994344: '1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351544_0.png', 1340994033: '1741169732_2224140_1340993163_4bb08bc886c7a44a7d8f120df3b61ac2_rle_crop_3694353371_0.png', 1340994030: '1741169732_2224140_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353362_0.png', 1340993689: '1741169693_2223499_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353869_0.png', 1340993654: '1741169677_2223295_1340993163_4bb08bc886c7a44a7d8f120df3b61ac2_rle_crop_3694353371_0.png', 1340993653: '1741169677_2223295_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353362_0.png', 1340993624: '1741169653_2223096_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351747_0.png', 1340993623: '1741169653_2223096_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351568_0.png', 1340993622: '1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351544_0.png', 1340993543: '1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350165_0.png', 1340992479: '1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342433_0.png', 1340993306: '1741169432_2215110_1340992136_73fdd52c640d4da6b1697b2e65f32e75_rle_crop_3694344918_0.png', 1340993305: '1741169432_2215110_1340992180_12dae28044549df62ff5961f109d2263_rle_crop_3694344880_0.png', 1340993304: '1741169432_2215110_1340992197_ab440aadcebdd68c8c8076e344db9538_rle_crop_3694344854_0.png', 1340993298: '1741169414_2214780_1340992499_59713b5ba7d60f6430a222c6834f5474_rle_crop_3694344933_0.png', 1340993297: '1741169414_2214780_1340992499_59713b5ba7d60f6430a222c6834f5474_rle_crop_3694344936_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/602d4d219f3d8afb6e3326304d71a273_46816226.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/32ca671ecbc25e57175e9bea38812bfb_26075395.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5dff2026f7bf53a0ba87e69c92f609ba_85703920.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3b73bf5ffaf6f10ed868c572713e6a95_40970918.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fcebf432858d37368e942746d390f614_95305382.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c6d2349efd4e61aad00126f02588726a_8938352.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c698b16a3ab6e3f2f4440d33072a7e65_81744132.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/32ca671ecbc25e57175e9bea38812bfb_42690592.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c6d2349efd4e61aad00126f02588726a_79417064.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c698b16a3ab6e3f2f4440d33072a7e65_63961946.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5dff2026f7bf53a0ba87e69c92f609ba_61911936.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3b73bf5ffaf6f10ed868c572713e6a95_47442822.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fcebf432858d37368e942746d390f614_40882383.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a8eb143d57e25fb4e49fc1be08976809_79003406.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1404b56555ad3eab4a52cfa209e1db36_93798655.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0fff7769fcbb25f4ae4378cb4bbc5735_76676828.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f5705a96f82cfb2d4d4490ae6db5d953_93820041.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fa21f59fb2ea8703c94e66c2910482d6_2224043.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/baf512c042c0028e91240c4c97c4b935_7933179.png change filename to text .imagette210586181741169945/ imagette210586181741169945/1741169653_2223096_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351568_0.png.png imagette210586181741169945/1741169752_2224430_1340993252_e5ee4892b0eae5dab38ea1eece9a4604_rle_crop_3694351568_0.png.png imagette210586181741169945/1741169653_2223096_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351747_0.png.png imagette210586181741169945/1741169732_2224140_1340993163_4bb08bc886c7a44a7d8f120df3b61ac2_rle_crop_3694353371_0.png.png imagette210586181741169945/1741169534_2218232_1340992718_44db7b8c423d74dd10c17118fe06c5d6_rle_crop_3694350165_0.png.png imagette210586181741169945/1741169677_2223295_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353362_0.png.png imagette210586181741169945/1741169432_2215110_1340992180_12dae28044549df62ff5961f109d2263_rle_crop_3694344880_0.png.png imagette210586181741169945/1741169752_2224430_1340993230_30b9459dfc39b7f3133d42a2771fd512_rle_crop_3694351747_0.png.png imagette210586181741169945/1741169752_2224430_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351544_0.png.png imagette210586181741169945/1741169414_2214780_1340992499_59713b5ba7d60f6430a222c6834f5474_rle_crop_3694344933_0.png.png imagette210586181741169945/1741169693_2223499_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353869_0.png.png imagette210586181741169945/1741169432_2215110_1340992197_ab440aadcebdd68c8c8076e344db9538_rle_crop_3694344854_0.png.png imagette210586181741169945/1741169732_2224140_1340993168_805c31ecccb3e7aad1296e2439240449_rle_crop_3694353362_0.png.png imagette210586181741169945/1741169773_2224875_1340992950_d7cb6ec99d8a5ed45d04e89c54b896f0_rle_crop_3694353869_0.png.png imagette210586181741169945/1741169432_2215110_1340992136_73fdd52c640d4da6b1697b2e65f32e75_rle_crop_3694344918_0.png.png imagette210586181741169945/1741169432_2215110_1340992136_73fdd52c640d4da6b1697b2e65f32e75_rle_crop_3694344921_0.png.png imagette210586181741169945/1741169414_2214780_1340992499_59713b5ba7d60f6430a222c6834f5474_rle_crop_3694344936_0.png.png imagette210586181741169945/1741169152_2203335_1340991649_3c2ddad70cbafbe2585d287844a286a9_rle_crop_3694342433_0.png.png imagette210586181741169945/1741169677_2223295_1340993163_4bb08bc886c7a44a7d8f120df3b61ac2_rle_crop_3694353371_0.png.png imagette210586181741169945/1741169653_2223096_1340993259_35fbef3979cc2437ce46dcfb692f9122_rle_crop_3694351544_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6c78a23888e05cc6c3cc6695fe1fefc2_82528854.png imagette210586181741169945 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21058601 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21058621,21058622,21058623,21058624,21058625,21058626,21058627,21058628,21058629,21058630,21058631,21058632?tags=flou,papier,kraft,mal_croppe,Carton_gris,Carton_brun,metal,cartonnette,environnement,Teint_Dans_La_Masse,plastique,autre_refus your option no_mail is active, we will not send the real mail to your client args[1340993732] : ('0.05290679038097258',) no score found for photo 1340993732 We are sending mail with results at report@fotonower.com refus_total : 0.05290679038097258 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=21058601 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_P21058601_05-03-2025_11_19_01.pdf results_Auto_P21058601_05-03-2025_11_19_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21058601_05-03-2025_11_19_01.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','21058601','results_Auto_P21058601_05-03-2025_11_19_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21058601_05-03-2025_11_19_01.pdf','pdf','','0.21','0.05290679038097258') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21058601]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340993732] map_info['map_portfolio_photo'] : {21058601: [1340993732, 1340993642, 1340993627, 1340993616, 1340993609, 1340993420, 1340993284, 1340993259, 1340993252, 1340993240, 1340993230, 1340993183, 1340993179, 1340993173, 1340993168, 1340993163, 1340993061, 1340992970, 1340992964, 1340992960, 1340992955, 1340992950, 1340992723, 1340992718, 1340992716, 1340992712, 1340992630, 1340992624, 1340992618, 1340992613, 1340992499, 1340992493, 1340992447, 1340992444, 1340992429, 1340992380, 1340992375, 1340992335, 1340992214, 1340992197, 1340992180, 1340992136, 1340991752, 1340991749, 1340991744, 1340991738, 1340991731, 1340991726, 1340991701, 1340991697, 1340991690, 1340991685, 1340991681, 1340991659, 1340991653, 1340991649, 1340991645, 1340991634, 1340991605, 1340991599, 1340991593, 1340991587]} final : False mtd_id 4302 list_pids : [1340993732] 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, '2637404') ('4302', '21058601', '1340993732', None, None, None, None, None, '2637404') 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', '21058601', '1340993732', None, None, None, None, None, '2637404')] time used for this insertion : 0.010712862014770508 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.187939167022705 time spend to save output : 0.010952472686767578 total time spend for step 4 : 6.198891639709473 step5:split_time_score Wed Mar 5 11:19:07 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 : ['21058601'] 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 : [('21058601',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21058601) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340993732: {'path': 'temp/1741169941_660823_1340993732_d8ed4d1f56185f90975f919517567116.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 = 21058601; (('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 = 21058601 group by h (('11', 62),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21058601 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 (21058601) 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 (21058601) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05032025 21058601 Nombre de photos uploadées : 62 / 23040 (0%) 05032025 21058601 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 05032025 21058601 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1340991605, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/cab1eedf531d038e27e9fd40b19485b3.jpg', 'username': None, 'uploaded_at': 1741168884, 'text': 'image_05032025_11_00_04_010151m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340991599, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c7bf086d16595e421512159450bd8b13.jpg', 'username': None, 'uploaded_at': 1741168884, 'text': 'image_05032025_11_00_23_009127m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1340991593, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d1cc4ba228ee9f6a442ca7497084a347.jpg', 'username': None, 'uploaded_at': 1741168884, 'text': 'image_05032025_11_00_33_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1340991587, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5698bcca1dec9fd556e8de78dacd7595.jpg', 'username': None, 'uploaded_at': 1741168884, 'text': 'image_05032025_11_00_43_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.245208740234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.3828277587890625e-05 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031120777130126953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21058601, '2025-03-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1639483,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023430585861206055 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= 1639483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1639483, 'dashboard_run_id': 1648589, 'mtr_portfolio_id': 21057093, 'dashboard_result_id': 9228684, '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_P21057093_05-03-2025_10_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21057145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057151, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1648589, 'mtr_portfolio_id': 21057791, 'dashboard_result_id': 9228685, '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_P21057791_05-03-2025_11_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21057843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057854, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1648589, 'mtr_portfolio_id': 21058601, 'dashboard_result_id': 9228687, '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_P21058601_05-03-2025_11_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21058609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21058610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21058611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21058612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21058613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21058614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21058615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21058616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21058617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21058618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21058619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21058620, '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 = 21057093 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': 2637172, 'mtr_portfolio_id': 21057093, 'created_at': datetime.datetime(2025, 3, 5, 10, 48, 59), 'result': '0.07712479343907049', 'result_long': None, 'result_double': None}] Qualite : 0.07712479343907049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21057093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057093_05-03-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21057093 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_P21057093_05-03-2025_10_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21057145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057151, 'pht': 3726}}" where mtr_portfolio_id = 21057093 and dashboard_run_id = 1648589 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`=21057093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9228684, 0.07712479343907049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057093_05-03-2025_10_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21057145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057151, '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 = 21057791 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': 2637252, 'mtr_portfolio_id': 21057791, 'created_at': datetime.datetime(2025, 3, 5, 11, 3), 'result': '0.08542071964861277', 'result_long': None, 'result_double': None}] Qualite : 0.08542071964861277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21057791 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057791_05-03-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21057791 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_P21057791_05-03-2025_11_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21057843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057854, 'pht': 3726}}" where mtr_portfolio_id = 21057791 and dashboard_run_id = 1648589 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`=21057791 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9228685, 0.08542071964861277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21057791_05-03-2025_11_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21057843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21057844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21057845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21057846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21057847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21057848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21057849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21057850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21057851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21057852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21057853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21057854, '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 = 21058601 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': 2637404, 'mtr_portfolio_id': 21058601, 'created_at': datetime.datetime(2025, 3, 5, 11, 19, 1), 'result': '0.05290679038097258', 'result_long': None, 'result_double': None}] Qualite : 0.05290679038097258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21058601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21058601_05-03-2025_11_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21058601 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_P21058601_05-03-2025_11_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21058609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21058610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21058611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21058612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21058613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21058614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21058615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21058616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21058617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21058618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21058619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21058620, 'pht': 3726}}" where mtr_portfolio_id = 21058601 and dashboard_run_id = 1648589 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`=21058601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9228687, 0.05290679038097258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21058601_05-03-2025_11_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21058609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21058610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21058611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21058612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21058613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21058614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21058615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21058616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21058617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21058618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21058619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21058620, '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 (21057093,21057791,21058601) result : ((1340985772,), (1340985779,), (1340985791,), (1340985812,), (1340985817,), (1340985844,), (1340985853,), (1340985863,), (1340985881,), (1340985922,), (1340985925,), (1340985930,), (1340985938,), (1340985944,), (1340985997,), (1340986000,), (1340986018,), (1340986074,), (1340986249,), (1340986562,), (1340986633,), (1340986647,), (1340986658,), (1340986693,), (1340986815,), (1340986860,), (1340986871,), (1340986877,), (1340986884,), (1340986887,), (1340986968,), (1340986970,), (1340986976,), (1340986985,), (1340987068,), (1340987071,), (1340987077,), (1340987088,), (1340987180,), (1340987206,), (1340987214,), (1340987220,), (1340987230,), (1340987237,), (1340987255,), (1340987263,), (1340987276,), (1340987285,), (1340987320,), (1340987323,), (1340987330,), (1340987337,), (1340987372,), (1340987385,), (1340987401,), (1340987409,), (1340987419,), (1340987425,), (1340987444,), (1340987486,), (1340987495,), (1340987506,), (1340987516,), (1340987526,), (1340987537,), (1340987543,), (1340987552,), (1340987557,), (1340987562,), (1340987605,), (1340987609,), (1340987623,), (1340987629,), (1340987636,), (1340987641,), (1340987689,), (1340987667,), (1340987671,), (1340987677,), (1340987685,), (1340987739,), (1340987741,), (1340987747,), (1340987753,), (1340987768,), (1340987810,), (1340987895,), (1340987910,), (1340987915,), (1340987921,), (1340988047,), (1340988093,), (1340988095,), (1340988098,), (1340988103,), (1340988107,), (1340988113,), (1340989452,), (1340989676,), (1340989952,), (1340989959,), (1340989999,), (1340990034,), (1340990037,), (1340990039,), (1340990046,), (1340990053,), (1340990060,), (1340990070,), (1340990668,), (1340990690,), (1340990768,), (1340990840,), (1340991322,), (1340991325,), (1340991331,), (1340991337,), (1340991344,), (1340991354,), (1340991388,), (1340991396,), (1340991407,), (1340991416,), (1340991421,), (1340991498,), (1340991503,), (1340991511,), (1340991520,), (1340991547,), (1340991552,), (1340991554,), (1340991557,), (1340991563,), (1340991610,), (1340991587,), (1340991593,), (1340991599,), (1340991605,), (1340991634,), (1340991645,), (1340991649,), (1340991653,), (1340991659,), (1340991681,), (1340991685,), (1340991690,), (1340991697,), (1340991701,), (1340991726,), (1340991731,), (1340991738,), (1340991744,), (1340991749,), (1340991752,), (1340992136,), (1340992180,), (1340992197,), (1340992214,), (1340992335,), (1340992375,), (1340992380,), (1340992429,), (1340992444,), (1340992447,), (1340992493,), (1340992499,), (1340992613,), (1340992618,), (1340992624,), (1340992630,), (1340992712,), (1340992716,), (1340992718,), (1340992723,), (1340992950,), (1340992955,), (1340992960,), (1340992964,), (1340992970,), (1340993061,), (1340993163,), (1340993168,), (1340993173,), (1340993179,), (1340993183,), (1340993230,), (1340993240,), (1340993252,), (1340993259,), (1340993284,), (1340993420,), (1340993609,), (1340993616,), (1340993627,), (1340993642,), (1340993732,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05032025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21058601]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340993732] map_info['map_portfolio_photo'] : {21058601: [1340993732, 1340993642, 1340993627, 1340993616, 1340993609, 1340993420, 1340993284, 1340993259, 1340993252, 1340993240, 1340993230, 1340993183, 1340993179, 1340993173, 1340993168, 1340993163, 1340993061, 1340992970, 1340992964, 1340992960, 1340992955, 1340992950, 1340992723, 1340992718, 1340992716, 1340992712, 1340992630, 1340992624, 1340992618, 1340992613, 1340992499, 1340992493, 1340992447, 1340992444, 1340992429, 1340992380, 1340992375, 1340992335, 1340992214, 1340992197, 1340992180, 1340992136, 1340991752, 1340991749, 1340991744, 1340991738, 1340991731, 1340991726, 1340991701, 1340991697, 1340991690, 1340991685, 1340991681, 1340991659, 1340991653, 1340991649, 1340991645, 1340991634, 1340991605, 1340991599, 1340991593, 1340991587]} final : True mtd_id 4302 list_pids : [1340993732] Looping around the photos to save general results len do output : 1 /21058601Didn'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, '2637404') ('4302', '21058601', '1340993732', None, None, None, None, None, '2637404') 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, '21058601', 'None', None, None, None, None, '2637404'), ('4302', '21058601', '1340993732', None, None, None, None, None, '2637404')] time used for this insertion : 0.011988639831542969 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2939152717590332 time spend to save output : 0.012216806411743164 total time spend for step 5 : 0.30613207817077637 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 (2637404) 2.11user 2.81system 0:12.59elapsed 39%CPU (0avgtext+0avgdata 155740maxresident)k 56inputs+11840outputs (7major+61917minor)pagefaults 0swaps