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 : 1101883 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 (2752342) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2752342) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337144 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2752342'] with mtr_portfolio_ids : ['22337144'] and first list_photo_ids : [] new path : /proc/1101883/ Name: python3 Umask: 0002 State: R (running) Tgid: 1101883 Ngid: 0 Pid: 1101883 PPid: 1101881 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1101883 NSpid: 1101883 NSpgid: 1096343 NSsid: 1096343 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98328 kB VmRSS: 98328 kB RssAnon: 59804 kB RssFile: 38524 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 105 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1101883', 'Ngid': '0', 'Pid': '1101883', 'PPid': '1101881', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1101883', 'NSpid': '1101883', 'NSpgid': '1096343', 'NSsid': '1096343', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98328 kB', 'VmRSS': '98328 kB', 'RssAnon': '59804 kB', 'RssFile': '38524 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '105'} ('datou_batch_current', '1101883', '1106936', '0', '1106936', '865684', '98328', b'', 'marlene', '2752342') 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 (22337144) 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 (2752342 ) ) 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 (22337144) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352983052, 'portfolio_id': 22337144}, {'photo_id': 1352982519, 'portfolio_id': 22337144}, {'photo_id': 1352982435, 'portfolio_id': 22337144}, {'photo_id': 1352982403, 'portfolio_id': 22337144}, {'photo_id': 1352982371, 'portfolio_id': 22337144}, {'photo_id': 1352981493, 'portfolio_id': 22337144}, {'photo_id': 1352981438, 'portfolio_id': 22337144}, {'photo_id': 1352981403, 'portfolio_id': 22337144}, {'photo_id': 1352980838, 'portfolio_id': 22337144}, {'photo_id': 1352980801, 'portfolio_id': 22337144}, {'photo_id': 1352980773, 'portfolio_id': 22337144}, {'photo_id': 1352980636, 'portfolio_id': 22337144}, {'photo_id': 1352980631, 'portfolio_id': 22337144}, {'photo_id': 1352980627, 'portfolio_id': 22337144}, {'photo_id': 1352980625, 'portfolio_id': 22337144}, {'photo_id': 1352980623, 'portfolio_id': 22337144}, {'photo_id': 1352980621, 'portfolio_id': 22337144}, {'photo_id': 1352980578, 'portfolio_id': 22337144}, {'photo_id': 1352980573, 'portfolio_id': 22337144}, {'photo_id': 1352980568, 'portfolio_id': 22337144}, {'photo_id': 1352980563, 'portfolio_id': 22337144}, {'photo_id': 1352980559, 'portfolio_id': 22337144}, {'photo_id': 1352980485, 'portfolio_id': 22337144}, {'photo_id': 1352980462, 'portfolio_id': 22337144}, {'photo_id': 1352980457, 'portfolio_id': 22337144}, {'photo_id': 1352980347, 'portfolio_id': 22337144}, {'photo_id': 1352980223, 'portfolio_id': 22337144}, {'photo_id': 1352980220, 'portfolio_id': 22337144}, {'photo_id': 1352980216, 'portfolio_id': 22337144}, {'photo_id': 1352980215, 'portfolio_id': 22337144}, {'photo_id': 1352980212, 'portfolio_id': 22337144}, {'photo_id': 1352980049, 'portfolio_id': 22337144}, {'photo_id': 1352980021, 'portfolio_id': 22337144}, {'photo_id': 1352979986, 'portfolio_id': 22337144}, {'photo_id': 1352979955, 'portfolio_id': 22337144}, {'photo_id': 1352979916, 'portfolio_id': 22337144}, {'photo_id': 1352979890, 'portfolio_id': 22337144}, {'photo_id': 1352979484, 'portfolio_id': 22337144}, {'photo_id': 1352979457, 'portfolio_id': 22337144}, {'photo_id': 1352979429, 'portfolio_id': 22337144}, {'photo_id': 1352979222, 'portfolio_id': 22337144}, {'photo_id': 1352979219, 'portfolio_id': 22337144}, {'photo_id': 1352979216, 'portfolio_id': 22337144}, {'photo_id': 1352979212, 'portfolio_id': 22337144}, {'photo_id': 1352979166, 'portfolio_id': 22337144}, {'photo_id': 1352979148, 'portfolio_id': 22337144}, {'photo_id': 1352979108, 'portfolio_id': 22337144}, {'photo_id': 1352979102, 'portfolio_id': 22337144}, {'photo_id': 1352979099, 'portfolio_id': 22337144}, {'photo_id': 1352979097, 'portfolio_id': 22337144}, {'photo_id': 1352978867, 'portfolio_id': 22337144}, {'photo_id': 1352978843, 'portfolio_id': 22337144}, {'photo_id': 1352978840, 'portfolio_id': 22337144}, {'photo_id': 1352978836, 'portfolio_id': 22337144}, {'photo_id': 1352978770, 'portfolio_id': 22337144}, {'photo_id': 1352978766, 'portfolio_id': 22337144}, {'photo_id': 1352978748, 'portfolio_id': 22337144}, {'photo_id': 1352978533, 'portfolio_id': 22337144}, {'photo_id': 1352978530, 'portfolio_id': 22337144}, {'photo_id': 1352978528, 'portfolio_id': 22337144}, {'photo_id': 1352978526, 'portfolio_id': 22337144}, {'photo_id': 1352978525, 'portfolio_id': 22337144}] map_portfolio_id_photo_id: {22337144: [1352983052, 1352982519, 1352982435, 1352982403, 1352982371, 1352981493, 1352981438, 1352981403, 1352980838, 1352980801, 1352980773, 1352980636, 1352980631, 1352980627, 1352980625, 1352980623, 1352980621, 1352980578, 1352980573, 1352980568, 1352980563, 1352980559, 1352980485, 1352980462, 1352980457, 1352980347, 1352980223, 1352980220, 1352980216, 1352980215, 1352980212, 1352980049, 1352980021, 1352979986, 1352979955, 1352979916, 1352979890, 1352979484, 1352979457, 1352979429, 1352979222, 1352979219, 1352979216, 1352979212, 1352979166, 1352979148, 1352979108, 1352979102, 1352979099, 1352979097, 1352978867, 1352978843, 1352978840, 1352978836, 1352978770, 1352978766, 1352978748, 1352978533, 1352978530, 1352978528, 1352978526, 1352978525]} ##### 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.016930580139160156 #### 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 Apr 23 10:02: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 (22337144) 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 : 22337144 get user id for portfolio 22337144 get sub ptf for main ptf 22337144, type 3726 and hashtags ['kraft', 'Carton_gris', 'flou', 'cartonnette', 'Carton_brun', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'mal_croppe', 'autre_refus'] 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`=22337144 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Carton_brun','environnement','papier','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus')) 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`=22337144 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Carton_brun','environnement','papier','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22337144, 'sub_port_id': 22337169, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794405, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'papier': {'main_port_id': 22337144, 'sub_port_id': 22337170, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794406, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'flou': {'main_port_id': 22337144, 'sub_port_id': 22337171, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794407, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'environnement': {'main_port_id': 22337144, 'sub_port_id': 22337172, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794408, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'mal_croppe': {'main_port_id': 22337144, 'sub_port_id': 22337173, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794409, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'Carton_brun': {'main_port_id': 22337144, 'sub_port_id': 22337174, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794410, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22337144, 'sub_port_id': 22337175, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794411, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'metal': {'main_port_id': 22337144, 'sub_port_id': 22337176, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794412, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'autre_refus': {'main_port_id': 22337144, 'sub_port_id': 22337177, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794413, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'Carton_gris': {'main_port_id': 22337144, 'sub_port_id': 22337178, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794414, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'plastique': {'main_port_id': 22337144, 'sub_port_id': 22337179, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794415, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'cartonnette': {'main_port_id': 22337144, 'sub_port_id': 22337180, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794416, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22337169 , 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=22337144 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 (22337169) result : ((1352980560,), (1352980561,), (1352981184,), (1352982338,), (1352983786,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337170 , 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=22337144 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 (22337170) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337171 , 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=22337144 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 (22337171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337172 , 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=22337144 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 (22337172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337173 , 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=22337144 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 (22337173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337174 , 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=22337144 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 (22337174) result : ((1352979814,), (1352979815,), (1352979816,), (1352979974,), (1352980064,), (1352980238,), (1352980239,), (1352980345,), (1352980346,), (1352980549,), (1352980550,), (1352980551,), (1352980552,), (1352980553,), (1352981177,), (1352982314,), (1352982315,), (1352982316,), (1352982318,), (1352983781,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337175 , 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=22337144 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 (22337175) result : ((1352979785,), (1352979786,), (1352979787,), (1352979788,), (1352979789,), (1352979790,), (1352979791,), (1352979938,), (1352979940,), (1352979942,), (1352979944,), (1352979946,), (1352979949,), (1352979951,), (1352980341,), (1352980342,), (1352980531,), (1352980532,), (1352980533,), (1352980534,), (1352980535,), (1352981110,), (1352981111,), (1352981113,), (1352981789,), (1352981790,), (1352982257,), (1352982258,), (1352983685,), (1352983690,), (1352983708,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337176 , 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=22337144 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 (22337176) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337177 , 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=22337144 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 (22337177) result : ((1352980537,), (1352980538,), (1352981137,), (1352981138,), (1352981797,), (1352981798,), (1352981799,), (1352983714,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337178 , 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=22337144 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 (22337178) result : ((1352979803,), (1352979804,), (1352979805,), (1352979806,), (1352979962,), (1352979964,), (1352979966,), (1352980062,), (1352980343,), (1352980344,), (1352980540,), (1352980541,), (1352980542,), (1352980543,), (1352981816,), (1352981818,), (1352981820,), (1352981822,), (1352981824,), (1352983736,), (1352983737,), (1352983750,), (1352983754,), (1352983758,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337179 , 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=22337144 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 (22337179) result : ((1352979985,), (1352979988,), (1352979990,), (1352980556,), (1352980557,), (1352981840,), (1352982753,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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 22337180 , 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=22337144 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 (22337180) result : ((1352979812,), (1352980544,), (1352980545,), (1352980546,), (1352980548,), (1352981168,), (1352981169,), (1352981170,), (1352981171,), (1352981831,), (1352981832,), (1352982282,), (1352982283,), (1352982285,), (1352983764,), (1352983765,), (1352983767,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22337144) result : ((1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) 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`=22337144 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Carton_brun','environnement','papier','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus')) 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`=22337144 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Carton_brun','environnement','papier','Teint_Dans_La_Masse','metal','plastique','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22337144, 'sub_port_id': 22337181, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794417, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'papier': {'main_port_id': 22337144, 'sub_port_id': 22337182, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794418, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'flou': {'main_port_id': 22337144, 'sub_port_id': 22337183, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794419, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'environnement': {'main_port_id': 22337144, 'sub_port_id': 22337184, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794420, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'mal_croppe': {'main_port_id': 22337144, 'sub_port_id': 22337185, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794421, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'Carton_brun': {'main_port_id': 22337144, 'sub_port_id': 22337186, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794422, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22337144, 'sub_port_id': 22337187, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794423, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'metal': {'main_port_id': 22337144, 'sub_port_id': 22337188, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794424, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'autre_refus': {'main_port_id': 22337144, 'sub_port_id': 22337189, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794425, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'Carton_gris': {'main_port_id': 22337144, 'sub_port_id': 22337190, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794426, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'plastique': {'main_port_id': 22337144, 'sub_port_id': 22337191, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794427, 'last_updated_at': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 9, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}, 'cartonnette': {'main_port_id': 22337144, 'sub_port_id': 22337192, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14794428, 'last_updated_at': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 9, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22337192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22337180 lien utilise dans velours : https://www.fotonower.com/velours/22337181,22337182,22337183,22337184,22337185,22337186,22337187,22337188,22337189,22337190,22337191,22337192?tags=kraft,papier,flou,environnement,mal_croppe,Carton_brun,Teint_Dans_La_Masse,metal,autre_refus,Carton_gris,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22337144]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352983052] map_info['map_portfolio_photo'] : {22337144: [1352983052, 1352982519, 1352982435, 1352982403, 1352982371, 1352981493, 1352981438, 1352981403, 1352980838, 1352980801, 1352980773, 1352980636, 1352980631, 1352980627, 1352980625, 1352980623, 1352980621, 1352980578, 1352980573, 1352980568, 1352980563, 1352980559, 1352980485, 1352980462, 1352980457, 1352980347, 1352980223, 1352980220, 1352980216, 1352980215, 1352980212, 1352980049, 1352980021, 1352979986, 1352979955, 1352979916, 1352979890, 1352979484, 1352979457, 1352979429, 1352979222, 1352979219, 1352979216, 1352979212, 1352979166, 1352979148, 1352979108, 1352979102, 1352979099, 1352979097, 1352978867, 1352978843, 1352978840, 1352978836, 1352978770, 1352978766, 1352978748, 1352978533, 1352978530, 1352978528, 1352978526, 1352978525]} final : False mtd_id 4302 list_pids : [1352983052] Looping around the photos to save general results len do output : 1 /22337144. 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, '2752342') ('4302', '22337144', '1352983052', None, None, None, None, None, '2752342') 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, '22337144', "{'kraft': 22337169, 'papier': 22337170, 'flou': 22337171, 'environnement': 22337172, 'mal_croppe': 22337173, 'Carton_brun': 22337174, 'Teint_Dans_La_Masse': 22337175, 'metal': 22337176, 'autre_refus': 22337177, 'Carton_gris': 22337178, 'plastique': 22337179, 'cartonnette': 22337180}", None, None, None, None, '2752342'), ('4302', '22337144', '1352983052', None, None, None, None, None, '2752342')] time used for this insertion : 0.017792701721191406 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6579859256744385 time spend to save output : 0.018168926239013672 total time spend for step 1 : 1.6761548519134521 step2:final Wed Apr 23 10:03: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 (22337144) 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 22337144 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352978533,1352978530,1352978528,1352978526,1352978525,1352978770,1352978766,1352978748,1352978867,1352978843,1352978840,1352978836,1352979166,1352979148,1352979108,1352979102,1352979099,1352979097,1352979222,1352979219,1352979216,1352979212,1352979484,1352979457,1352979429,1352980049,1352980021,1352979986,1352979955,1352979916,1352979890,1352980223,1352980220,1352980216,1352980215,1352980212,1352980485,1352980462,1352980457,1352980347,1352980578,1352980573,1352980568,1352980563,1352980559,1352980636,1352980631,1352980627,1352980625,1352980623,1352980621,1352980838,1352980801,1352980773,1352981493,1352981438,1352981403,1352982519,1352982435,1352982403,1352982371,1352983052); 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([22337144]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352983052: ('0.059795252541870805',)} new output for save of step final : {1352983052: ('0.059795252541870805',)} [1352983052] map_info['map_portfolio_photo'] : {22337144: [1352983052, 1352982519, 1352982435, 1352982403, 1352982371, 1352981493, 1352981438, 1352981403, 1352980838, 1352980801, 1352980773, 1352980636, 1352980631, 1352980627, 1352980625, 1352980623, 1352980621, 1352980578, 1352980573, 1352980568, 1352980563, 1352980559, 1352980485, 1352980462, 1352980457, 1352980347, 1352980223, 1352980220, 1352980216, 1352980215, 1352980212, 1352980049, 1352980021, 1352979986, 1352979955, 1352979916, 1352979890, 1352979484, 1352979457, 1352979429, 1352979222, 1352979219, 1352979216, 1352979212, 1352979166, 1352979148, 1352979108, 1352979102, 1352979099, 1352979097, 1352978867, 1352978843, 1352978840, 1352978836, 1352978770, 1352978766, 1352978748, 1352978533, 1352978530, 1352978528, 1352978526, 1352978525]} final : False mtd_id 4302 list_pids : [1352983052] Looping around the photos to save general results len do output : 1 /1352983052.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, '2752342') ('4302', '22337144', '1352983052', None, None, None, None, None, '2752342') 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', '22337144', '1352983052', '0.059795252541870805', None, None, None, None, '2752342')] time used for this insertion : 0.017084598541259766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07643890380859375 time spend to save output : 0.017313241958618164 total time spend for step 2 : 0.09375214576721191 step3:velours_tree Wed Apr 23 10:03: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 : {22337144: [{'kraft': 22337169, 'papier': 22337170, 'flou': 22337171, 'environnement': 22337172, 'mal_croppe': 22337173, 'Carton_brun': 22337174, 'Teint_Dans_La_Masse': 22337175, 'metal': 22337176, 'autre_refus': 22337177, 'Carton_gris': 22337178, 'plastique': 22337179, 'cartonnette': 22337180}]} input_args_next_step : {22337144: ()} output_args : {22337144: [{'kraft': 22337169, 'papier': 22337170, 'flou': 22337171, 'environnement': 22337172, 'mal_croppe': 22337173, 'Carton_brun': 22337174, 'Teint_Dans_La_Masse': 22337175, 'metal': 22337176, 'autre_refus': 22337177, 'Carton_gris': 22337178, 'plastique': 22337179, 'cartonnette': 22337180}]} args : 22337144 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 22337169, 'papier': 22337170, 'flou': 22337171, 'environnement': 22337172, 'mal_croppe': 22337173, 'Carton_brun': 22337174, 'Teint_Dans_La_Masse': 22337175, 'metal': 22337176, 'autre_refus': 22337177, 'Carton_gris': 22337178, 'plastique': 22337179, 'cartonnette': 22337180},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22337144) 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([22337144]) 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.34025144577026367 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.34029245376586914 step4:send_mail_cod Wed Apr 23 10:03:02 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 : {1352983052: ('0.059795252541870805',)} input_args_next_step : {1352983052: ()} output_args : {1352983052: ('0.059795252541870805',)} args : 1352983052 depend.output_id : 0 complete output_args for input 3 : {22337144: [{'kraft': 22337169, 'papier': 22337170, 'flou': 22337171, 'environnement': 22337172, 'mal_croppe': 22337173, 'Carton_brun': 22337174, 'Teint_Dans_La_Masse': 22337175, 'metal': 22337176, 'autre_refus': 22337177, 'Carton_gris': 22337178, 'plastique': 22337179, 'cartonnette': 22337180}]} input_args_next_step : {1352983052: ('0.059795252541870805',), 22337144: ()} output_args : {22337144: [{'kraft': 22337169, 'papier': 22337170, 'flou': 22337171, 'environnement': 22337172, 'mal_croppe': 22337173, 'Carton_brun': 22337174, 'Teint_Dans_La_Masse': 22337175, 'metal': 22337176, 'autre_refus': 22337177, 'Carton_gris': 22337178, 'plastique': 22337179, 'cartonnette': 22337180}]} args : 22337144 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.059795252541870805',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22337144) 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 (1352983052) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352983052 download finish for photo 1352983052 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22337144_23-04-2025_10_03_02.pdf 22337169 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=22337169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352980560: '1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168770_0.png', 1352980561: '1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168773_0.png', 1352981184: '1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183760_0.png', 1352982338: '1745395152_3999045_1352980216_5ad9012330eb30fbac69e7ac58a517ce_rle_crop_3765190909_0.png', 1352983786: '1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195077_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/554778dd5730181a237afe798f3cce2c_79453025.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9dc9ffb37cc947ab40f8764a6d05fc60_17191362.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d21a0803e68d9571d1c323396cc36577_65636721.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3f34376d32c5f3868b7182376dc1d539_5983778.png change filename to text .imagette223371691745395382/ imagette223371691745395382/1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183760_0.png.png imagette223371691745395382/1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168770_0.png.png imagette223371691745395382/1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195077_0.png.png imagette223371691745395382/1745395152_3999045_1352980216_5ad9012330eb30fbac69e7ac58a517ce_rle_crop_3765190909_0.png.png imagette223371691745395382/1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168773_0.png.png imagette223371711745395382/ imagette223371731745395382/ imagette223371761745395382/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d9f31a3dc67a21ddc8903648cf31cb42_28384668.png imagette223371691745395382 22337171 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=22337171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223371711745395382 22337173 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=22337173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223371731745395382 22337176 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=22337176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223371761745395382 22337177 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=22337177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352980537: '1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168813_0.png', 1352980538: '1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168827_0.png', 1352981137: '1745395021_3997662_1352980568_8e4828ac94436291c2e2680a4aff233b_rle_crop_3765183743_0.png', 1352981138: '1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183757_0.png', 1352981797: '1745395091_3998554_1352980021_208dc911a4be2bf4dc1dc8fafe9adb13_rle_crop_3765186422_0.png', 1352981798: '1745395091_3998554_1352979986_17b07e526ea87ac66521e0a0f784b9bf_rle_crop_3765186438_0.png', 1352981799: '1745395091_3998554_1352979890_72522cc46de98a4f31cfb9dc2e3ace45_rle_crop_3765186526_0.png', 1352983714: '1745395308_2422109_1352982519_3452675fdf11a5301158061247905316_rle_crop_3765195057_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3b673b42dd676c40854a85c87f6a1a4a_11631879.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/682c327b763147ed1323ea8b27a46cbe_72023188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7e689562c3dd490aab356309e379ec1e_44339640.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0789aeb79d1533b4fda922c2ab6794f3_63452460.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4314a5f3bec7c0f48202f9fb05ed03d8_53541761.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7ddd9cb597a90ef641adcdbd3d5868f0_34034800.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1c99c9ee1467ed60542fb159f22d04d5_32378887.png change filename to text .imagette223371771745395382/ imagette223371771745395382/1745395308_2422109_1352982519_3452675fdf11a5301158061247905316_rle_crop_3765195057_0.png.png imagette223371771745395382/1745395091_3998554_1352980021_208dc911a4be2bf4dc1dc8fafe9adb13_rle_crop_3765186422_0.png.png imagette223371771745395382/1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168827_0.png.png imagette223371771745395382/1745395021_3997662_1352980568_8e4828ac94436291c2e2680a4aff233b_rle_crop_3765183743_0.png.png imagette223371771745395382/1745395091_3998554_1352979986_17b07e526ea87ac66521e0a0f784b9bf_rle_crop_3765186438_0.png.png imagette223371771745395382/1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168813_0.png.png imagette223371771745395382/1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183757_0.png.png imagette223371771745395382/1745395091_3998554_1352979890_72522cc46de98a4f31cfb9dc2e3ace45_rle_crop_3765186526_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dd199098a087ff9732e03385db83bb9d_2505324.png imagette223371771745395382 22337179 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=22337179 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352979985: '1745394709_2379409_1352979219_7f2f1c208292a5fab2f465682a7989b4_rle_crop_3765168141_0.png', 1352979988: '1745394709_2379409_1352979216_60d895eb418061c459bf47da121e5611_rle_crop_3765168154_0.png', 1352979990: '1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168172_0.png', 1352980556: '1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168785_0.png', 1352980557: '1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168789_0.png', 1352981840: '1745395091_3998554_1352980223_57348429a4f248a5f47369f1cdb8802d_rle_crop_3765186392_0.png', 1352982753: '1745395213_4004028_1352980049_ac72debda42dde6651b941a557e39ce4_rle_crop_3765190992_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bf3051ec672eafdc8d837083a2530fbc_388533.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/13eea4bb2024af6d14cfb5663e7dbea8_90518340.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0dd5635cda893112706b3874530104d5_16255262.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d3fa56411ae87b877b3b5d7f87c3ffe9_95697638.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/04380af4da67b7e7da85fc8733c0702a_10948798.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/857f5dfe0d5ce1007ad2bf1bf916296d_60339666.png change filename to text .imagette223371791745395383/ imagette223371791745395383/1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168789_0.png.png imagette223371791745395383/1745395213_4004028_1352980049_ac72debda42dde6651b941a557e39ce4_rle_crop_3765190992_0.png.png imagette223371791745395383/1745394709_2379409_1352979219_7f2f1c208292a5fab2f465682a7989b4_rle_crop_3765168141_0.png.png imagette223371791745395383/1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168785_0.png.png imagette223371791745395383/1745394709_2379409_1352979216_60d895eb418061c459bf47da121e5611_rle_crop_3765168154_0.png.png imagette223371791745395383/1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168172_0.png.png imagette223371791745395383/1745395091_3998554_1352980223_57348429a4f248a5f47369f1cdb8802d_rle_crop_3765186392_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2260b8870db751bb99317bca44df6a15_67766524.png imagette223371791745395383 22337180 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=22337180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352981171: '1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183759_0.png', 1352983767: '1745395274_4024030_1352982403_68204451ecd7d3ae7f6cffc174708ab1_rle_crop_3765195852_0.png', 1352983765: '1745395274_4024030_1352982403_68204451ecd7d3ae7f6cffc174708ab1_rle_crop_3765195853_0.png', 1352983764: '1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195080_0.png', 1352982285: '1745395152_3999045_1352980215_6abea4f3cb49fc2d789ccf77521fc54f_rle_crop_3765190934_0.png', 1352982283: '1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190894_0.png', 1352982282: '1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190896_0.png', 1352981832: '1745395091_3998554_1352979890_72522cc46de98a4f31cfb9dc2e3ace45_rle_crop_3765186523_0.png', 1352981831: '1745395091_3998554_1352979916_b4bedcb1a6550ad58334d19c06f6f4c7_rle_crop_3765186500_0.png', 1352979812: '1745394671_3994039_1352979222_19be6783bb2b3af5fdb51a7dc36da40f_rle_crop_3765167431_0.png', 1352981170: '1745395021_3997662_1352980568_8e4828ac94436291c2e2680a4aff233b_rle_crop_3765183741_0.png', 1352981169: '1745395021_3997662_1352980568_8e4828ac94436291c2e2680a4aff233b_rle_crop_3765183742_0.png', 1352981168: '1745395021_3997662_1352980573_d3d999564c0046f10511a577c0630617_rle_crop_3765183730_0.png', 1352980548: '1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168822_0.png', 1352980546: '1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168826_0.png', 1352980545: '1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168809_0.png', 1352980544: '1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168808_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5c46e37b9c50595c5e32f64e28872140_62773619.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5fa3cf5ce823f522740872f74a3cb857_12637875.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/880c2ff60170e2cdf94fda772d48c13e_71205108.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b72ac434ae5d68451dba2f5b38ae957d_54264433.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b6a1168541adbc758942091d14689cf0_38108096.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1c919d19db34e3be3f269fc9547e430b_12460985.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dd9bda99cb61ff8d3aa7cb903854f35a_94304455.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b36a83371a88dd6eacdfe3867636bbc2_39173796.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f0598b5625a6b74209b5b5ab20e1e08a_91250032.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2184fa61341ee437735e554525142d22_11499315.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a423d992b1c3270e03516cc68ddf3093_85122844.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/07db1599da08dd32d5d4ae4cc551d0d4_55366409.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d434ba6c7612f64bb23ff70ff2d4a1dc_33303388.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/820c247460b0b0f893c4e8e508ac98f3_77267144.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3a3e93230c04303351c95cf10b62df23_65390909.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e238de5faf8e95d2970fbbac996216ca_39843441.png change filename to text .imagette223371801745395383/ imagette223371801745395383/1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168822_0.png.png imagette223371801745395383/1745395274_4024030_1352982403_68204451ecd7d3ae7f6cffc174708ab1_rle_crop_3765195852_0.png.png imagette223371801745395383/1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190896_0.png.png imagette223371801745395383/1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168809_0.png.png imagette223371801745395383/1745395091_3998554_1352979916_b4bedcb1a6550ad58334d19c06f6f4c7_rle_crop_3765186500_0.png.png imagette223371801745395383/1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195080_0.png.png imagette223371801745395383/1745395021_3997662_1352980568_8e4828ac94436291c2e2680a4aff233b_rle_crop_3765183742_0.png.png imagette223371801745395383/1745395152_3999045_1352980215_6abea4f3cb49fc2d789ccf77521fc54f_rle_crop_3765190934_0.png.png imagette223371801745395383/1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183759_0.png.png imagette223371801745395383/1745394671_3994039_1352979222_19be6783bb2b3af5fdb51a7dc36da40f_rle_crop_3765167431_0.png.png imagette223371801745395383/1745395021_3997662_1352980573_d3d999564c0046f10511a577c0630617_rle_crop_3765183730_0.png.png imagette223371801745395383/1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168808_0.png.png imagette223371801745395383/1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168826_0.png.png imagette223371801745395383/1745395021_3997662_1352980568_8e4828ac94436291c2e2680a4aff233b_rle_crop_3765183741_0.png.png imagette223371801745395383/1745395274_4024030_1352982403_68204451ecd7d3ae7f6cffc174708ab1_rle_crop_3765195853_0.png.png imagette223371801745395383/1745395091_3998554_1352979890_72522cc46de98a4f31cfb9dc2e3ace45_rle_crop_3765186523_0.png.png imagette223371801745395383/1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190894_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/003920f09d131e2de2a40aae908b51bb_47900678.png imagette223371801745395383 22337174 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=22337174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352980550: '1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168811_0.png', 1352983781: '1745395308_2422109_1352981403_46d362aa9170adb6de916260d72979a0_rle_crop_3765195877_0.png', 1352982318: '1745395152_3999045_1352980212_79cec5b2cd9723b2fb5777937c52391a_rle_crop_3765190949_0.png', 1352982316: '1745395152_3999045_1352980212_79cec5b2cd9723b2fb5777937c52391a_rle_crop_3765190952_0.png', 1352982315: '1745395152_3999045_1352980216_5ad9012330eb30fbac69e7ac58a517ce_rle_crop_3765190913_0.png', 1352982314: '1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190892_0.png', 1352981177: '1745395021_3997662_1352980573_d3d999564c0046f10511a577c0630617_rle_crop_3765183733_0.png', 1352980553: '1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168920_0.png', 1352980552: '1745394853_3995831_1352978526_d5f7a104a7f0c5fccccad88e68507271_rle_crop_3765168841_0.png', 1352980551: '1745394853_3995831_1352978526_d5f7a104a7f0c5fccccad88e68507271_rle_crop_3765168843_0.png', 1352979814: '1745394671_3994039_1352979108_843daca25a23b82f96b3f4f73ac4d45e_rle_crop_3765167465_0.png', 1352980549: '1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168790_0.png', 1352980346: '1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168433_0.png', 1352980345: '1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168435_0.png', 1352980239: '1745394791_3995299_1352979457_cc6948e60ac2836a88ec27a236427fc6_rle_crop_3765168332_0.png', 1352980238: '1745394791_3995299_1352979457_cc6948e60ac2836a88ec27a236427fc6_rle_crop_3765168336_0.png', 1352980064: '1745394732_3994684_1352979166_8d45f0f0b1df3145513df5c4c9c3aed8_rle_crop_3765168251_0.png', 1352979974: '1745394709_2379409_1352979219_7f2f1c208292a5fab2f465682a7989b4_rle_crop_3765168136_0.png', 1352979816: '1745394671_3994039_1352979097_d6caffa4c3b281135076b161f111f715_rle_crop_3765167511_0.png', 1352979815: '1745394671_3994039_1352979099_290ba6a9a68ff64fac5c6aaf3327c86a_rle_crop_3765167499_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a882b071106b8b41d4989e7813f28d7b_62312984.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a10974179c82e6b019e7467bf3a85293_45085615.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7495320f4ba1d186e81b3014d202a1e8_37590662.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a303a250588e62952e7eadae056b4dce_59664020.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9b4457531117e1432f60d1f96dd9754f_39378015.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/39143ca57781940f231a1c80a45ba760_27391282.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a3c0d583f5b994b5149d8d6ba4a64f75_87824472.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2ca61160b617460ff30c21af7577ee9b_74037567.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/53b17f469f0016dec726771f5707fc0e_54085240.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1e8473b8482dd890dfd56c13e8de95bd_86843926.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/961f0f8ae4da561c07b64360d8228f0f_69971695.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b553f00aca79dfbb4261cef1a0db439d_64127136.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e93059e15f41f2edeefd97088267f0c0_14602947.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0d4df6353be85f5df554270c0d17a89e_38812474.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1feed98345f8a9672b037c7179bfc654_97748162.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fae1c604d465e09dace551700354d084_65431228.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3ce7a878879102861d1b840cb902d6b4_45798041.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dc0ef1ef3beda72711a66d7e348d0535_11842176.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0ee74c5b873401faa77a26f4e986a6ae_66528298.png change filename to text .imagette223371741745395384/ imagette223371741745395384/1745395152_3999045_1352980212_79cec5b2cd9723b2fb5777937c52391a_rle_crop_3765190949_0.png.png imagette223371741745395384/1745394791_3995299_1352979457_cc6948e60ac2836a88ec27a236427fc6_rle_crop_3765168336_0.png.png imagette223371741745395384/1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168790_0.png.png imagette223371741745395384/1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168920_0.png.png imagette223371741745395384/1745394709_2379409_1352979219_7f2f1c208292a5fab2f465682a7989b4_rle_crop_3765168136_0.png.png imagette223371741745395384/1745394671_3994039_1352979099_290ba6a9a68ff64fac5c6aaf3327c86a_rle_crop_3765167499_0.png.png imagette223371741745395384/1745394671_3994039_1352979108_843daca25a23b82f96b3f4f73ac4d45e_rle_crop_3765167465_0.png.png imagette223371741745395384/1745395308_2422109_1352981403_46d362aa9170adb6de916260d72979a0_rle_crop_3765195877_0.png.png imagette223371741745395384/1745395152_3999045_1352980216_5ad9012330eb30fbac69e7ac58a517ce_rle_crop_3765190913_0.png.png imagette223371741745395384/1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168811_0.png.png imagette223371741745395384/1745395021_3997662_1352980573_d3d999564c0046f10511a577c0630617_rle_crop_3765183733_0.png.png imagette223371741745395384/1745394732_3994684_1352979166_8d45f0f0b1df3145513df5c4c9c3aed8_rle_crop_3765168251_0.png.png imagette223371741745395384/1745395152_3999045_1352980212_79cec5b2cd9723b2fb5777937c52391a_rle_crop_3765190952_0.png.png imagette223371741745395384/1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168433_0.png.png imagette223371741745395384/1745394791_3995299_1352979457_cc6948e60ac2836a88ec27a236427fc6_rle_crop_3765168332_0.png.png imagette223371741745395384/1745394853_3995831_1352978526_d5f7a104a7f0c5fccccad88e68507271_rle_crop_3765168841_0.png.png imagette223371741745395384/1745394853_3995831_1352978526_d5f7a104a7f0c5fccccad88e68507271_rle_crop_3765168843_0.png.png imagette223371741745395384/1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190892_0.png.png imagette223371741745395384/1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168435_0.png.png imagette223371741745395384/1745394671_3994039_1352979097_d6caffa4c3b281135076b161f111f715_rle_crop_3765167511_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7f0291879699e33fc5709c37ff198dbd_16533441.png imagette223371741745395384 22337175 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=22337175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352980342: '1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168434_0.png', 1352983708: '1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195083_0.png', 1352983690: '1745395308_2422109_1352981438_246af7e30ed8e96a417c0eeb1cbe7c2f_rle_crop_3765195844_0.png', 1352983685: '1745395308_2422109_1352982519_3452675fdf11a5301158061247905316_rle_crop_3765195060_0.png', 1352982258: '1745395152_3999045_1352980215_6abea4f3cb49fc2d789ccf77521fc54f_rle_crop_3765190931_0.png', 1352982257: '1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190899_0.png', 1352981790: '1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186481_0.png', 1352981789: '1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186483_0.png', 1352981113: '1745395021_3997662_1352980559_d0c1741751542676b316f6d1d8588d67_rle_crop_3765183793_0.png', 1352981111: '1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183763_0.png', 1352981110: '1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183756_0.png', 1352980535: '1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168919_0.png', 1352980534: '1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168924_0.png', 1352980533: '1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168831_0.png', 1352980532: '1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168777_0.png', 1352980531: '1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168775_0.png', 1352979785: '1745394671_3994039_1352979222_19be6783bb2b3af5fdb51a7dc36da40f_rle_crop_3765167434_0.png', 1352980341: '1745394821_2383028_1352978766_434ba4642625c9c6fc56dec41d0d5efd_rle_crop_3765168422_0.png', 1352979951: '1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168167_0.png', 1352979949: '1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168173_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f9c42b16560d69c6e5ab782219334e9b_27508888.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4ddf22847db8aacebfa048b04888031c_80065837.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fd19847a88ecc0fd3d4dcd6fc9e5f91f_38324166.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5d02bc5d47a13c5061444e3ee996a194_50879885.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2ed51fddae76b39c3af9e3805c6067b4_32737932.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7f8d276918e464350a93106658ec1305_2123171.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9d10e9b7b60cf43e6d97fa8be0fa4e2e_26369810.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a41f171f2fc22ca9054187f17b6c04b7_82639905.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6ff0093e691b766f1ab937ac976aceca_91336494.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a37210fde29ade3f23c10bf21b2c0c16_89325814.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/931d4ed99c3cd8b2af681af318d3f348_87690717.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ddf1ddfbcab615a2e3e44977b15e2bb5_47302708.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/aab11ea658525bbe09d495081530f57f_67150658.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/53096206250df42e6891c29e701816b1_82554375.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a8584ca5848cb2c5bfa7087df662f6cf_33170729.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ec73a2f3e11c9d71ad7dd9f6ee597125_66632141.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/55f9772a72859685fb23ef5f0a5dacc2_74470702.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/48106d43ed361de173cf6dd30521ad9f_62621366.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/60748bdc5ebb02821b313019e97c6159_87279521.png change filename to text .imagette223371751745395385/ imagette223371751745395385/1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168173_0.png.png imagette223371751745395385/1745394821_2383028_1352978766_434ba4642625c9c6fc56dec41d0d5efd_rle_crop_3765168422_0.png.png imagette223371751745395385/1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186481_0.png.png imagette223371751745395385/1745395021_3997662_1352980559_d0c1741751542676b316f6d1d8588d67_rle_crop_3765183793_0.png.png imagette223371751745395385/1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168777_0.png.png imagette223371751745395385/1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186483_0.png.png imagette223371751745395385/1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183763_0.png.png imagette223371751745395385/1745395308_2422109_1352981438_246af7e30ed8e96a417c0eeb1cbe7c2f_rle_crop_3765195844_0.png.png imagette223371751745395385/1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168924_0.png.png imagette223371751745395385/1745395021_3997662_1352980563_e9f2af6b32591bc08a05d942cdbb73ab_rle_crop_3765183756_0.png.png imagette223371751745395385/1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195083_0.png.png imagette223371751745395385/1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168831_0.png.png imagette223371751745395385/1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168919_0.png.png imagette223371751745395385/1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168167_0.png.png imagette223371751745395385/1745394853_3995831_1352978770_53b740509be1fa58efdfae7ba24a5180_rle_crop_3765168775_0.png.png imagette223371751745395385/1745394671_3994039_1352979222_19be6783bb2b3af5fdb51a7dc36da40f_rle_crop_3765167434_0.png.png imagette223371751745395385/1745395152_3999045_1352980215_6abea4f3cb49fc2d789ccf77521fc54f_rle_crop_3765190931_0.png.png imagette223371751745395385/1745395308_2422109_1352982519_3452675fdf11a5301158061247905316_rle_crop_3765195060_0.png.png imagette223371751745395385/1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168434_0.png.png imagette223371751745395385/1745395152_3999045_1352980220_0c3e0257b068277e7bf0657b6852695a_rle_crop_3765190899_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/85aba05ad3fa422ea386d2f8ad0a0fb1_74747054.png imagette223371751745395385 22337178 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=22337178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352980542: '1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168820_0.png', 1352983758: '1745395308_2422109_1352981403_46d362aa9170adb6de916260d72979a0_rle_crop_3765195872_0.png', 1352983754: '1745395308_2422109_1352981403_46d362aa9170adb6de916260d72979a0_rle_crop_3765195873_0.png', 1352983750: '1745395308_2422109_1352982519_3452675fdf11a5301158061247905316_rle_crop_3765195066_0.png', 1352983737: '1745395274_4024030_1352982371_1236db9ee6eb91add84b58a30a77d7ec_rle_crop_3765195933_0.png', 1352983736: '1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195082_0.png', 1352981824: '1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186480_0.png', 1352981822: '1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186482_0.png', 1352981820: '1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186478_0.png', 1352981818: '1745395091_3998554_1352980021_208dc911a4be2bf4dc1dc8fafe9adb13_rle_crop_3765186424_0.png', 1352981816: '1745395091_3998554_1352980223_57348429a4f248a5f47369f1cdb8802d_rle_crop_3765186387_0.png', 1352980543: '1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168925_0.png', 1352979803: '1745394671_3994039_1352979148_d98ee0d405e22716f9e05e8ae153d4a7_rle_crop_3765167446_0.png', 1352980541: '1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168807_0.png', 1352980540: '1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168788_0.png', 1352980344: '1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168430_0.png', 1352980343: '1745394821_2383028_1352978766_434ba4642625c9c6fc56dec41d0d5efd_rle_crop_3765168419_0.png', 1352980062: '1745394732_3994684_1352978843_e252a3b2dced608e21eb886fb7d565c0_rle_crop_3765168263_0.png', 1352979966: '1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168165_0.png', 1352979964: '1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168164_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4a7ef0cbeb90b16e769590edc79a8b6a_51306769.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1bca7dea41e7cf469d272bbbfe8776bc_11112232.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/993a6b2998cad012f78d93dfc2088945_8423269.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8462514a96b958ae7c7b3768c43f0b8b_51900917.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/096d3b39f72b8e698a9c8f657c856aaa_62283488.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/efb7325bf6a63fdf7dddbe2795c8f9eb_60166838.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e437d7df7e730a113155983c1db3a108_65756995.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c286065decfe696ea2e5bcacd71d3e65_7347207.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5b3c6273d060b1d9bc488941d582dbd0_92335287.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c96ae8db6e6ab41e68ac7ef3be2a1bf0_176845.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a621fc57e64a23413576c9b60fdfcacc_99417746.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/27968f2ed05342fa1bb25323c1db8243_51755995.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1e7eb045fff2c1aef4286b1672b562a3_94576283.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ad482ce654421643546928ffae48d05e_91256253.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9f14b70c78d8b92cc3c7f3214df237a9_25084959.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9cedf088486609402d18f14184d94253_27801446.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/880f6621f044e4605c1183d51cd53745_5235073.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/95c9a65eeea892270e682a2744f6e76f_91210591.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ca6ccee116cb90edbdbe1e30b200d254_54834320.png change filename to text .imagette223371781745395387/ imagette223371781745395387/1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186482_0.png.png imagette223371781745395387/1745395308_2422109_1352981403_46d362aa9170adb6de916260d72979a0_rle_crop_3765195872_0.png.png imagette223371781745395387/1745394671_3994039_1352979148_d98ee0d405e22716f9e05e8ae153d4a7_rle_crop_3765167446_0.png.png imagette223371781745395387/1745395308_2422109_1352981403_46d362aa9170adb6de916260d72979a0_rle_crop_3765195873_0.png.png imagette223371781745395387/1745394853_3995831_1352978530_8dce5f697f9e2258ad25b851d2d58881_rle_crop_3765168807_0.png.png imagette223371781745395387/1745395274_4024030_1352982371_1236db9ee6eb91add84b58a30a77d7ec_rle_crop_3765195933_0.png.png imagette223371781745395387/1745395091_3998554_1352980223_57348429a4f248a5f47369f1cdb8802d_rle_crop_3765186387_0.png.png imagette223371781745395387/1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168165_0.png.png imagette223371781745395387/1745395091_3998554_1352980021_208dc911a4be2bf4dc1dc8fafe9adb13_rle_crop_3765186424_0.png.png imagette223371781745395387/1745394853_3995831_1352978525_19f02f2aadab96b77d59a76f4aceb23a_rle_crop_3765168925_0.png.png imagette223371781745395387/1745395308_2422109_1352982519_3452675fdf11a5301158061247905316_rle_crop_3765195066_0.png.png imagette223371781745395387/1745394732_3994684_1352978843_e252a3b2dced608e21eb886fb7d565c0_rle_crop_3765168263_0.png.png imagette223371781745395387/1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186480_0.png.png imagette223371781745395387/1745394821_2383028_1352978766_434ba4642625c9c6fc56dec41d0d5efd_rle_crop_3765168419_0.png.png imagette223371781745395387/1745394853_3995831_1352978528_d6a95f842ba1125060c9ec820d7de8c8_rle_crop_3765168820_0.png.png imagette223371781745395387/1745395091_3998554_1352979955_96677b2a9575c1e6ea12693c7345b166_rle_crop_3765186478_0.png.png imagette223371781745395387/1745395274_4024030_1352982435_2fff60be0de5480aa758f8180e67ce43_rle_crop_3765195082_0.png.png imagette223371781745395387/1745394853_3995831_1352978533_afd0774d52adb879da580533b9a334dc_rle_crop_3765168788_0.png.png imagette223371781745395387/1745394709_2379409_1352979212_4b4f8bb0bd62b022f019af568b098b4d_rle_crop_3765168164_0.png.png imagette223371781745395387/1745394821_2383028_1352978748_46d94c32945e7f1f5a09ab8b835ba9d3_rle_crop_3765168430_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bec8742319b549214a5c6ac5430a4ed7_94333404.png imagette223371781745395387 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22337144 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22337181,22337182,22337183,22337184,22337185,22337186,22337187,22337188,22337189,22337190,22337191,22337192?tags=kraft,papier,flou,environnement,mal_croppe,Carton_brun,Teint_Dans_La_Masse,metal,autre_refus,Carton_gris,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1352983052] : ('0.059795252541870805',) no score found for photo 1352983052 We are sending mail with results at report@fotonower.com refus_total : 0.059795252541870805 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=22337144 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_P22337144_23-04-2025_10_03_02.pdf results_Auto_P22337144_23-04-2025_10_03_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.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','22337144','results_Auto_P22337144_23-04-2025_10_03_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf','pdf','','0.3','0.059795252541870805') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22337144]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352983052] map_info['map_portfolio_photo'] : {22337144: [1352983052, 1352982519, 1352982435, 1352982403, 1352982371, 1352981493, 1352981438, 1352981403, 1352980838, 1352980801, 1352980773, 1352980636, 1352980631, 1352980627, 1352980625, 1352980623, 1352980621, 1352980578, 1352980573, 1352980568, 1352980563, 1352980559, 1352980485, 1352980462, 1352980457, 1352980347, 1352980223, 1352980220, 1352980216, 1352980215, 1352980212, 1352980049, 1352980021, 1352979986, 1352979955, 1352979916, 1352979890, 1352979484, 1352979457, 1352979429, 1352979222, 1352979219, 1352979216, 1352979212, 1352979166, 1352979148, 1352979108, 1352979102, 1352979099, 1352979097, 1352978867, 1352978843, 1352978840, 1352978836, 1352978770, 1352978766, 1352978748, 1352978533, 1352978530, 1352978528, 1352978526, 1352978525]} final : False mtd_id 4302 list_pids : [1352983052] 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, '2752342') ('4302', '22337144', '1352983052', None, None, None, None, None, '2752342') 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', '22337144', '1352983052', None, None, None, None, None, '2752342')] time used for this insertion : 0.013614654541015625 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.418035507202148 time spend to save output : 0.013787269592285156 total time spend for step 4 : 7.431822776794434 step5:split_time_score Wed Apr 23 10:03:09 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 : ['22337144'] 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 : [('22337144',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22337144) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352983052: {'path': 'temp/1745395382_1101883_1352983052_2eb97c7a11c2480eb585fecd9e5bb7c6.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 = 22337144; (('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 = 22337144 group by h (('09', 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=22337144 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 (22337144) 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 (22337144) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22337144 Nombre de photos uploadées : 62 / 23040 (0%) 23042025 22337144 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 23042025 22337144 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1352978533, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/afd0774d52adb879da580533b9a334dc.jpg', 'username': None, 'uploaded_at': 1745394367, 'text': 'image_23042025_09_45_04_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352978530, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8dce5f697f9e2258ad25b851d2d58881.jpg', 'username': None, 'uploaded_at': 1745394367, 'text': 'image_23042025_09_45_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352978528, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d6a95f842ba1125060c9ec820d7de8c8.jpg', 'username': None, 'uploaded_at': 1745394367, 'text': 'image_23042025_09_45_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352978526, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d5f7a104a7f0c5fccccad88e68507271.jpg', 'username': None, 'uploaded_at': 1745394367, 'text': 'image_23042025_09_45_34_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 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027341842651367188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22337144, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025232791900634766 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748574, 'mtr_portfolio_id': 22336354, 'dashboard_result_id': 10043937, '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_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748574, 'mtr_portfolio_id': 22337144, 'dashboard_result_id': 10043938, '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_P22337144_23-04-2025_10_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, '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 = 22336354 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': 2752283, 'mtr_portfolio_id': 22336354, 'created_at': datetime.datetime(2025, 4, 23, 9, 49), 'result': '0.0756758171083557', 'result_long': None, 'result_double': None}] Qualite : 0.0756758171083557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22336354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22336354 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_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}" where mtr_portfolio_id = 22336354 and dashboard_run_id = 1748574 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`=22336354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10043937, 0.0756758171083557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, '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 = 22337144 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': 2752342, 'mtr_portfolio_id': 22337144, 'created_at': datetime.datetime(2025, 4, 23, 10, 3, 1), 'result': '0.059795252541870805', 'result_long': None, 'result_double': None}] Qualite : 0.059795252541870805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22337144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22337144 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_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}" where mtr_portfolio_id = 22337144 and dashboard_run_id = 1748574 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`=22337144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10043938, 0.059795252541870805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_23-04-2025_10_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, '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 (22336354,22337144) result : ((1352971452,), (1352971456,), (1352971458,), (1352971621,), (1352971655,), (1352971690,), (1352971740,), (1352971801,), (1352971999,), (1352972747,), (1352972756,), (1352972776,), (1352972780,), (1352972828,), (1352973500,), (1352973532,), (1352973642,), (1352973690,), (1352973820,), (1352974131,), (1352974154,), (1352974198,), (1352974234,), (1352974285,), (1352974323,), (1352974518,), (1352974551,), (1352974579,), (1352974618,), (1352975052,), (1352975087,), (1352975113,), (1352975140,), (1352975169,), (1352975200,), (1352975496,), (1352975502,), (1352975518,), (1352975525,), (1352975531,), (1352975785,), (1352975812,), (1352975840,), (1352975879,), (1352975934,), (1352976201,), (1352976210,), (1352976240,), (1352976270,), (1352976619,), (1352976630,), (1352976639,), (1352976702,), (1352976808,), (1352976920,), (1352977563,), (1352977638,), (1352977725,), (1352977763,), (1352977805,), (1352977837,), (1352978122,), (1352978126,), (1352978140,), (1352978349,), (1352978412,), (1352978449,), (1352978476,), (1352978488,), (1352978549,), (1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'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([22337144]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352983052] map_info['map_portfolio_photo'] : {22337144: [1352983052, 1352982519, 1352982435, 1352982403, 1352982371, 1352981493, 1352981438, 1352981403, 1352980838, 1352980801, 1352980773, 1352980636, 1352980631, 1352980627, 1352980625, 1352980623, 1352980621, 1352980578, 1352980573, 1352980568, 1352980563, 1352980559, 1352980485, 1352980462, 1352980457, 1352980347, 1352980223, 1352980220, 1352980216, 1352980215, 1352980212, 1352980049, 1352980021, 1352979986, 1352979955, 1352979916, 1352979890, 1352979484, 1352979457, 1352979429, 1352979222, 1352979219, 1352979216, 1352979212, 1352979166, 1352979148, 1352979108, 1352979102, 1352979099, 1352979097, 1352978867, 1352978843, 1352978840, 1352978836, 1352978770, 1352978766, 1352978748, 1352978533, 1352978530, 1352978528, 1352978526, 1352978525]} final : True mtd_id 4302 list_pids : [1352983052] Looping around the photos to save general results len do output : 1 /22337144Didn'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, '2752342') ('4302', '22337144', '1352983052', None, None, None, None, None, '2752342') 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, '22337144', 'None', None, None, None, None, '2752342'), ('4302', '22337144', '1352983052', None, None, None, None, None, '2752342')] time used for this insertion : 0.012421131134033203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.25479626655578613 time spend to save output : 0.01262211799621582 total time spend for step 5 : 0.26741838455200195 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 (2752342) 2.22user 2.28system 0:13.76elapsed 32%CPU (0avgtext+0avgdata 155572maxresident)k 40inputs+14552outputs (3major+71285minor)pagefaults 0swaps