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 : 3676207 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 (2660283) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2660283) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320594 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2660283'] with mtr_portfolio_ids : ['21320594'] and first list_photo_ids : [] new path : /proc/3676207/ Name: python3 Umask: 0002 State: R (running) Tgid: 3676207 Ngid: 0 Pid: 3676207 PPid: 3676206 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3676207 NSpid: 3676207 NSpgid: 3673779 NSsid: 3673779 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98936 kB VmRSS: 98936 kB RssAnon: 59768 kB RssFile: 39168 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3676207', 'Ngid': '0', 'Pid': '3676207', 'PPid': '3676206', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3676207', 'NSpid': '3676207', 'NSpgid': '3673779', 'NSsid': '3673779', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98936 kB', 'VmRSS': '98936 kB', 'RssAnon': '59768 kB', 'RssFile': '39168 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3676207', '1106848', '0', '1106848', '865596', '98936', b'', 'marlene', '2660283') 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 (21320594) 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 (2660283 ) ) 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 (21320594) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343271016, 'portfolio_id': 21320594}, {'photo_id': 1343270965, 'portfolio_id': 21320594}, {'photo_id': 1343270963, 'portfolio_id': 21320594}, {'photo_id': 1343270961, 'portfolio_id': 21320594}, {'photo_id': 1343270959, 'portfolio_id': 21320594}, {'photo_id': 1343270853, 'portfolio_id': 21320594}, {'photo_id': 1343270850, 'portfolio_id': 21320594}, {'photo_id': 1343270848, 'portfolio_id': 21320594}, {'photo_id': 1343270781, 'portfolio_id': 21320594}, {'photo_id': 1343270779, 'portfolio_id': 21320594}, {'photo_id': 1343270776, 'portfolio_id': 21320594}, {'photo_id': 1343270773, 'portfolio_id': 21320594}, {'photo_id': 1343270769, 'portfolio_id': 21320594}, {'photo_id': 1343270678, 'portfolio_id': 21320594}, {'photo_id': 1343270662, 'portfolio_id': 21320594}, {'photo_id': 1343270649, 'portfolio_id': 21320594}, {'photo_id': 1343270642, 'portfolio_id': 21320594}, {'photo_id': 1343270534, 'portfolio_id': 21320594}, {'photo_id': 1343270530, 'portfolio_id': 21320594}, {'photo_id': 1343270526, 'portfolio_id': 21320594}, {'photo_id': 1343270522, 'portfolio_id': 21320594}, {'photo_id': 1343270516, 'portfolio_id': 21320594}, {'photo_id': 1343270369, 'portfolio_id': 21320594}, {'photo_id': 1343270355, 'portfolio_id': 21320594}, {'photo_id': 1343270350, 'portfolio_id': 21320594}, {'photo_id': 1343270330, 'portfolio_id': 21320594}, {'photo_id': 1343270282, 'portfolio_id': 21320594}, {'photo_id': 1343270163, 'portfolio_id': 21320594}, {'photo_id': 1343270161, 'portfolio_id': 21320594}, {'photo_id': 1343270158, 'portfolio_id': 21320594}, {'photo_id': 1343270140, 'portfolio_id': 21320594}, {'photo_id': 1343270092, 'portfolio_id': 21320594}, {'photo_id': 1343270091, 'portfolio_id': 21320594}, {'photo_id': 1343270088, 'portfolio_id': 21320594}, {'photo_id': 1343270085, 'portfolio_id': 21320594}, {'photo_id': 1343270082, 'portfolio_id': 21320594}, {'photo_id': 1343270079, 'portfolio_id': 21320594}, {'photo_id': 1343270053, 'portfolio_id': 21320594}, {'photo_id': 1343270050, 'portfolio_id': 21320594}, {'photo_id': 1343270027, 'portfolio_id': 21320594}, {'photo_id': 1343270025, 'portfolio_id': 21320594}, {'photo_id': 1343270023, 'portfolio_id': 21320594}, {'photo_id': 1343270020, 'portfolio_id': 21320594}, {'photo_id': 1343270017, 'portfolio_id': 21320594}, {'photo_id': 1343270014, 'portfolio_id': 21320594}, {'photo_id': 1343269875, 'portfolio_id': 21320594}, {'photo_id': 1343269871, 'portfolio_id': 21320594}, {'photo_id': 1343269867, 'portfolio_id': 21320594}, {'photo_id': 1343269864, 'portfolio_id': 21320594}, {'photo_id': 1343269861, 'portfolio_id': 21320594}, {'photo_id': 1343269810, 'portfolio_id': 21320594}, {'photo_id': 1343269807, 'portfolio_id': 21320594}, {'photo_id': 1343269791, 'portfolio_id': 21320594}, {'photo_id': 1343269682, 'portfolio_id': 21320594}, {'photo_id': 1343269678, 'portfolio_id': 21320594}, {'photo_id': 1343269674, 'portfolio_id': 21320594}, {'photo_id': 1343269409, 'portfolio_id': 21320594}, {'photo_id': 1343269359, 'portfolio_id': 21320594}, {'photo_id': 1343269316, 'portfolio_id': 21320594}, {'photo_id': 1343269252, 'portfolio_id': 21320594}, {'photo_id': 1343269246, 'portfolio_id': 21320594}, {'photo_id': 1343269227, 'portfolio_id': 21320594}, {'photo_id': 1343269223, 'portfolio_id': 21320594}, {'photo_id': 1343269196, 'portfolio_id': 21320594}] map_portfolio_id_photo_id: {21320594: [1343271016, 1343270965, 1343270963, 1343270961, 1343270959, 1343270853, 1343270850, 1343270848, 1343270781, 1343270779, 1343270776, 1343270773, 1343270769, 1343270678, 1343270662, 1343270649, 1343270642, 1343270534, 1343270530, 1343270526, 1343270522, 1343270516, 1343270369, 1343270355, 1343270350, 1343270330, 1343270282, 1343270163, 1343270161, 1343270158, 1343270140, 1343270092, 1343270091, 1343270088, 1343270085, 1343270082, 1343270079, 1343270053, 1343270050, 1343270027, 1343270025, 1343270023, 1343270020, 1343270017, 1343270014, 1343269875, 1343269871, 1343269867, 1343269864, 1343269861, 1343269810, 1343269807, 1343269791, 1343269682, 1343269678, 1343269674, 1343269409, 1343269359, 1343269316, 1343269252, 1343269246, 1343269227, 1343269223, 1343269196]} ##### 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.016300678253173828 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 12 00:48:58 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 (21320594) 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 : 21320594 get user id for portfolio 21320594 get sub ptf for main ptf 21320594, type 3726 and hashtags ['autre_refus', 'Carton_brun', 'metal', 'papier', 'kraft', 'flou', 'Teint_Dans_La_Masse', 'environnement', 'Carton_gris', 'cartonnette', 'plastique', 'mal_croppe'] 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`=21320594 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','metal','papier','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_gris','cartonnette','plastique','mal_croppe')) 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`=21320594 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','metal','papier','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_gris','cartonnette','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21320594, 'sub_port_id': 21320596, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903507, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'plastique': {'main_port_id': 21320594, 'sub_port_id': 21320597, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903508, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'metal': {'main_port_id': 21320594, 'sub_port_id': 21320598, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903509, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'kraft': {'main_port_id': 21320594, 'sub_port_id': 21320599, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903510, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'environnement': {'main_port_id': 21320594, 'sub_port_id': 21320600, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903511, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'papier': {'main_port_id': 21320594, 'sub_port_id': 21320607, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903512, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'flou': {'main_port_id': 21320594, 'sub_port_id': 21320613, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903513, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'cartonnette': {'main_port_id': 21320594, 'sub_port_id': 21320615, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903514, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'Carton_brun': {'main_port_id': 21320594, 'sub_port_id': 21320618, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903515, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'Carton_gris': {'main_port_id': 21320594, 'sub_port_id': 21320629, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903516, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'mal_croppe': {'main_port_id': 21320594, 'sub_port_id': 21320630, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903517, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}, 'autre_refus': {'main_port_id': 21320594, 'sub_port_id': 21320631, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903518, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21320596 , 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=21320594 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 (21320596) result : ((1343269720,), (1343269834,), (1343270102,), (1343270103,), (1343270104,), (1343270105,), (1343270106,), (1343270107,), (1343270108,), (1343270123,), (1343270285,), (1343270286,), (1343270287,), (1343270429,), (1343270430,), (1343270431,), (1343270852,), (1343270913,), (1343270914,), (1343270915,), (1343270918,), (1343270919,), (1343271005,), (1343271006,), (1343271024,), (1343271025,), (1343271026,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320597 , 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=21320594 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 (21320597) result : ((1343269729,), (1343269852,), (1343269853,), (1343269854,), (1343269855,), (1343270117,), (1343270135,), (1343270456,), (1343270457,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320598 , 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=21320594 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 (21320598) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320599 , 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=21320594 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 (21320599) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320600 , 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=21320594 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 (21320600) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320607 , 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=21320594 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 (21320607) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320613 , 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=21320594 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 (21320613) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320615 , 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=21320594 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 (21320615) result : ((1343269723,), (1343269851,), (1343270131,), (1343270449,), (1343270708,), (1343270709,), (1343270740,), (1343270859,), (1343270860,), (1343270932,), (1343271156,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320618 , 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=21320594 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 (21320618) result : ((1343269725,), (1343269726,), (1343269727,), (1343270116,), (1343270134,), (1343270451,), (1343270452,), (1343270741,), (1343270933,), (1343270934,), (1343271183,), (1343271184,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320629 , 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=21320594 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 (21320629) result : ((1343269846,), (1343269847,), (1343269848,), (1343269849,), (1343270114,), (1343270130,), (1343270706,), (1343270707,), (1343270735,), (1343270736,), (1343270737,), (1343270931,), (1343271128,), (1343271138,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320630 , 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=21320594 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 (21320630) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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 21320631 , 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=21320594 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 (21320631) result : ((1343269721,), (1343269722,), (1343269837,), (1343269838,), (1343269839,), (1343269840,), (1343269841,), (1343269842,), (1343270000,), (1343270031,), (1343270096,), (1343270097,), (1343270109,), (1343270110,), (1343270111,), (1343270112,), (1343270125,), (1343270126,), (1343270127,), (1343270128,), (1343270129,), (1343270303,), (1343270442,), (1343270443,), (1343270444,), (1343270446,), (1343270447,), (1343270697,), (1343270698,), (1343270699,), (1343270701,), (1343270702,), (1343270731,), (1343270732,), (1343270733,), (1343270734,), (1343270855,), (1343270856,), (1343270857,), (1343270858,), (1343270923,), (1343270924,), (1343270925,), (1343270926,), (1343270927,), (1343270928,), (1343270929,), (1343271010,), (1343271061,), (1343271069,), (1343271077,), (1343271085,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21320594) result : ((1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) 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`=21320594 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','metal','papier','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_gris','cartonnette','plastique','mal_croppe')) 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`=21320594 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','metal','papier','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_gris','cartonnette','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21320594, 'sub_port_id': 21320632, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903519, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'plastique': {'main_port_id': 21320594, 'sub_port_id': 21320633, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903520, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'metal': {'main_port_id': 21320594, 'sub_port_id': 21320634, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903521, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'kraft': {'main_port_id': 21320594, 'sub_port_id': 21320635, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903522, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'environnement': {'main_port_id': 21320594, 'sub_port_id': 21320636, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903523, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'papier': {'main_port_id': 21320594, 'sub_port_id': 21320637, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903524, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'flou': {'main_port_id': 21320594, 'sub_port_id': 21320638, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903525, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'cartonnette': {'main_port_id': 21320594, 'sub_port_id': 21320640, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903526, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'Carton_brun': {'main_port_id': 21320594, 'sub_port_id': 21320641, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903527, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'Carton_gris': {'main_port_id': 21320594, 'sub_port_id': 21320642, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903528, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'mal_croppe': {'main_port_id': 21320594, 'sub_port_id': 21320643, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903529, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}, 'autre_refus': {'main_port_id': 21320594, 'sub_port_id': 21320644, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13903530, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 33, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320599 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320600 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320607 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320613 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320615 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320642,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320643,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21320644,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21320631 lien utilise dans velours : https://www.fotonower.com/velours/21320632,21320633,21320634,21320635,21320636,21320637,21320638,21320640,21320641,21320642,21320643,21320644?tags=Teint_Dans_La_Masse,plastique,metal,kraft,environnement,papier,flou,cartonnette,Carton_brun,Carton_gris,mal_croppe,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21320594]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343271016] map_info['map_portfolio_photo'] : {21320594: [1343271016, 1343270965, 1343270963, 1343270961, 1343270959, 1343270853, 1343270850, 1343270848, 1343270781, 1343270779, 1343270776, 1343270773, 1343270769, 1343270678, 1343270662, 1343270649, 1343270642, 1343270534, 1343270530, 1343270526, 1343270522, 1343270516, 1343270369, 1343270355, 1343270350, 1343270330, 1343270282, 1343270163, 1343270161, 1343270158, 1343270140, 1343270092, 1343270091, 1343270088, 1343270085, 1343270082, 1343270079, 1343270053, 1343270050, 1343270027, 1343270025, 1343270023, 1343270020, 1343270017, 1343270014, 1343269875, 1343269871, 1343269867, 1343269864, 1343269861, 1343269810, 1343269807, 1343269791, 1343269682, 1343269678, 1343269674, 1343269409, 1343269359, 1343269316, 1343269252, 1343269246, 1343269227, 1343269223, 1343269196]} final : False mtd_id 4302 list_pids : [1343271016] Looping around the photos to save general results len do output : 1 /21320594. 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, '2660283') ('4302', '21320594', '1343271016', None, None, None, None, None, '2660283') 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, '21320594', "{'Teint_Dans_La_Masse': 21320596, 'plastique': 21320597, 'metal': 21320598, 'kraft': 21320599, 'environnement': 21320600, 'papier': 21320607, 'flou': 21320613, 'cartonnette': 21320615, 'Carton_brun': 21320618, 'Carton_gris': 21320629, 'mal_croppe': 21320630, 'autre_refus': 21320631}", None, None, None, None, '2660283'), ('4302', '21320594', '1343271016', None, None, None, None, None, '2660283')] time used for this insertion : 0.016768693923950195 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.00087571144104 time spend to save output : 0.016995906829833984 total time spend for step 1 : 2.017871618270874 step2:final Wed Mar 12 00:49:00 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 (21320594) 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 21320594 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343269252,1343269246,1343269227,1343269196,1343269223,1343269409,1343269359,1343269316,1343269682,1343269678,1343269674,1343269810,1343269807,1343269791,1343269875,1343269871,1343269867,1343269864,1343269861,1343270027,1343270025,1343270023,1343270020,1343270017,1343270014,1343270053,1343270050,1343270092,1343270091,1343270088,1343270085,1343270082,1343270079,1343270163,1343270161,1343270158,1343270140,1343270369,1343270355,1343270350,1343270330,1343270534,1343270282,1343270530,1343270526,1343270522,1343270516,1343270678,1343270662,1343270649,1343270642,1343270781,1343270779,1343270776,1343270773,1343270769,1343270853,1343270850,1343270848,1343270965,1343270963,1343270961,1343270959,1343271016); 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([21320594]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343271016: ('0.0784371336807547',)} new output for save of step final : {1343271016: ('0.0784371336807547',)} [1343271016] map_info['map_portfolio_photo'] : {21320594: [1343271016, 1343270965, 1343270963, 1343270961, 1343270959, 1343270853, 1343270850, 1343270848, 1343270781, 1343270779, 1343270776, 1343270773, 1343270769, 1343270678, 1343270662, 1343270649, 1343270642, 1343270534, 1343270530, 1343270526, 1343270522, 1343270516, 1343270369, 1343270355, 1343270350, 1343270330, 1343270282, 1343270163, 1343270161, 1343270158, 1343270140, 1343270092, 1343270091, 1343270088, 1343270085, 1343270082, 1343270079, 1343270053, 1343270050, 1343270027, 1343270025, 1343270023, 1343270020, 1343270017, 1343270014, 1343269875, 1343269871, 1343269867, 1343269864, 1343269861, 1343269810, 1343269807, 1343269791, 1343269682, 1343269678, 1343269674, 1343269409, 1343269359, 1343269316, 1343269252, 1343269246, 1343269227, 1343269223, 1343269196]} final : False mtd_id 4302 list_pids : [1343271016] Looping around the photos to save general results len do output : 1 /1343271016.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, '2660283') ('4302', '21320594', '1343271016', None, None, None, None, None, '2660283') 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', '21320594', '1343271016', '0.0784371336807547', None, None, None, None, '2660283')] time used for this insertion : 0.012636423110961914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07077169418334961 time spend to save output : 0.012902975082397461 total time spend for step 2 : 0.08367466926574707 step3:velours_tree Wed Mar 12 00:49:00 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 : {21320594: [{'Teint_Dans_La_Masse': 21320596, 'plastique': 21320597, 'metal': 21320598, 'kraft': 21320599, 'environnement': 21320600, 'papier': 21320607, 'flou': 21320613, 'cartonnette': 21320615, 'Carton_brun': 21320618, 'Carton_gris': 21320629, 'mal_croppe': 21320630, 'autre_refus': 21320631}]} input_args_next_step : {21320594: ()} output_args : {21320594: [{'Teint_Dans_La_Masse': 21320596, 'plastique': 21320597, 'metal': 21320598, 'kraft': 21320599, 'environnement': 21320600, 'papier': 21320607, 'flou': 21320613, 'cartonnette': 21320615, 'Carton_brun': 21320618, 'Carton_gris': 21320629, 'mal_croppe': 21320630, 'autre_refus': 21320631}]} args : 21320594 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 : ({'Teint_Dans_La_Masse': 21320596, 'plastique': 21320597, 'metal': 21320598, 'kraft': 21320599, 'environnement': 21320600, 'papier': 21320607, 'flou': 21320613, 'cartonnette': 21320615, 'Carton_brun': 21320618, 'Carton_gris': 21320629, 'mal_croppe': 21320630, 'autre_refus': 21320631},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21320594) 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([21320594]) 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.27075719833374023 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.27080488204956055 step4:send_mail_cod Wed Mar 12 00:49:00 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 : {1343271016: ('0.0784371336807547',)} input_args_next_step : {1343271016: ()} output_args : {1343271016: ('0.0784371336807547',)} args : 1343271016 depend.output_id : 0 complete output_args for input 3 : {21320594: [{'Teint_Dans_La_Masse': 21320596, 'plastique': 21320597, 'metal': 21320598, 'kraft': 21320599, 'environnement': 21320600, 'papier': 21320607, 'flou': 21320613, 'cartonnette': 21320615, 'Carton_brun': 21320618, 'Carton_gris': 21320629, 'mal_croppe': 21320630, 'autre_refus': 21320631}]} input_args_next_step : {1343271016: ('0.0784371336807547',), 21320594: ()} output_args : {21320594: [{'Teint_Dans_La_Masse': 21320596, 'plastique': 21320597, 'metal': 21320598, 'kraft': 21320599, 'environnement': 21320600, 'papier': 21320607, 'flou': 21320613, 'cartonnette': 21320615, 'Carton_brun': 21320618, 'Carton_gris': 21320629, 'mal_croppe': 21320630, 'autre_refus': 21320631}]} args : 21320594 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.0784371336807547',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21320594) 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 (1343271016) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343271016 download finish for photo 1343271016 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_P21320594_12-03-2025_00_49_00.pdf 21320597 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=21320597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343269729: '1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706871997_0.png', 1343269852: '1741736053_2004399_1343269252_69f033b884be7e9d9f930f5b26fe8874_rle_crop_3706872995_0.png', 1343269853: '1741736053_2004399_1343269252_69f033b884be7e9d9f930f5b26fe8874_rle_crop_3706872994_0.png', 1343269854: '1741736053_2004399_1343269223_470428fe279ee9056ed7e1bf22a46c97_rle_crop_3706873047_0.png', 1343269855: '1741736053_2004399_1343269196_73226ce552fa8562a5526d7dc5ebea8c_rle_crop_3706873060_0.png', 1343270117: '1741736293_2006256_1343270017_0e30e15c670ed2124ae07812182f3df0_rle_crop_3706875257_0.png', 1343270135: '1741736307_2836916_1343269864_b7fd9b41dc8f4d75937ff53eb0f7c203_rle_crop_3706875311_0.png', 1343270456: '1741736414_2007331_1343270085_bf0d8269e2793f86580a83bbc8273e20_rle_crop_3706876195_0.png', 1343270457: '1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876231_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/cb498928ec0ae39cefa881c1fad16823_48417422.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3fda58c3b190bce2e6878bea6aa34cce_66867623.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/23ed656ebaad1fd9d6da3fc44c412594_44864917.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a3571655052897c7dbce49276e7176ea_42966604.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/820ed68ecdc9d67d783337eb92884945_69373978.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9df7330d38fbdf0e5347dfa24a3bf69b_21471448.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/78467221c440513431fbd9991b67ea65_45536916.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a929d9744c195bf563d33ea447dc1cff_49899840.png change filename to text .imagette213205971741736940/ imagette213205971741736940/1741736414_2007331_1343270085_bf0d8269e2793f86580a83bbc8273e20_rle_crop_3706876195_0.png.png imagette213205971741736940/1741736053_2004399_1343269252_69f033b884be7e9d9f930f5b26fe8874_rle_crop_3706872995_0.png.png imagette213205971741736940/1741736307_2836916_1343269864_b7fd9b41dc8f4d75937ff53eb0f7c203_rle_crop_3706875311_0.png.png imagette213205971741736940/1741736293_2006256_1343270017_0e30e15c670ed2124ae07812182f3df0_rle_crop_3706875257_0.png.png imagette213205971741736940/1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876231_0.png.png imagette213205971741736940/1741736053_2004399_1343269223_470428fe279ee9056ed7e1bf22a46c97_rle_crop_3706873047_0.png.png imagette213205971741736940/1741736053_2004399_1343269196_73226ce552fa8562a5526d7dc5ebea8c_rle_crop_3706873060_0.png.png imagette213205971741736940/1741736053_2004399_1343269252_69f033b884be7e9d9f930f5b26fe8874_rle_crop_3706872994_0.png.png imagette213205971741736940/1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706871997_0.png.png imagette213205981741736941/ imagette213205991741736941/ imagette213206131741736941/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7b9b8efa7eb5a9b04d6a2e8f8367e6d8_51204418.png imagette213205971741736940 21320598 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=21320598 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213205981741736941 21320599 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=21320599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213205991741736941 21320613 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=21320613 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213206131741736941 21320615 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=21320615 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343269723: '1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706871995_0.png', 1343269851: '1741736053_2004399_1343269246_4c18bddd3e5b5df07d4e934cb775c28d_rle_crop_3706873010_0.png', 1343270131: '1741736307_2836916_1343269871_3f0bc8c4199932fb3740f5dc0d9d5c6a_rle_crop_3706875234_0.png', 1343270449: '1741736414_2007331_1343270085_bf0d8269e2793f86580a83bbc8273e20_rle_crop_3706876184_0.png', 1343270708: '1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877063_0.png', 1343270709: '1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877060_0.png', 1343270740: '1741736546_2840261_1343270140_5cff72b660d782178f061fe779ea4781_rle_crop_3706877159_0.png', 1343270859: '1741736651_2008768_1343270649_b1096508dd742fdea917b6f9b2657fff_rle_crop_3706877736_0.png', 1343270860: '1741736651_2008768_1343270642_03efadfe8cb20320a0d3545beadee1a0_rle_crop_3706877753_0.png', 1343270932: '1741736665_2843392_1343270526_ea50f36372ae935dcd8bdd1a17dea849_rle_crop_3706877787_0.png', 1343271156: '1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879547_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9c2357b91df79d13f10acf2642f0930f_55883784.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7c8737a5b53caf6f2a241c862b42ccbc_51926781.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/41d958025ed92d3e4c8761811467de10_34644877.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e2b1cee8972413c60b132de9508ac464_45962767.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9a9ff804e206a34b8863b585349ac8e7_71960498.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/32166e136c907866b881dec74da7783a_39842932.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e1a371a31524b44c561703f6667153cd_88418733.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/384e6c10aec74c780ced7408fadb7299_13134220.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/053851e017c3d1721d9c7a1a59e6ab19_18273540.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f0e0656ec50246bc0ea36268bad22bc0_71240341.png change filename to text .imagette213206151741736941/ imagette213206151741736941/1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877063_0.png.png imagette213206151741736941/1741736053_2004399_1343269246_4c18bddd3e5b5df07d4e934cb775c28d_rle_crop_3706873010_0.png.png imagette213206151741736941/1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706871995_0.png.png imagette213206151741736941/1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879547_0.png.png imagette213206151741736941/1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877060_0.png.png imagette213206151741736941/1741736546_2840261_1343270140_5cff72b660d782178f061fe779ea4781_rle_crop_3706877159_0.png.png imagette213206151741736941/1741736651_2008768_1343270649_b1096508dd742fdea917b6f9b2657fff_rle_crop_3706877736_0.png.png imagette213206151741736941/1741736307_2836916_1343269871_3f0bc8c4199932fb3740f5dc0d9d5c6a_rle_crop_3706875234_0.png.png imagette213206151741736941/1741736665_2843392_1343270526_ea50f36372ae935dcd8bdd1a17dea849_rle_crop_3706877787_0.png.png imagette213206151741736941/1741736414_2007331_1343270085_bf0d8269e2793f86580a83bbc8273e20_rle_crop_3706876184_0.png.png imagette213206151741736941/1741736651_2008768_1343270642_03efadfe8cb20320a0d3545beadee1a0_rle_crop_3706877753_0.png.png imagette213206301741736942/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b0d7760fb9e52a432d3fd133da831be3_88930900.png imagette213206151741736941 21320630 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=21320630 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213206301741736942 21320631 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=21320631 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343270858: '1741736651_2008768_1343270642_03efadfe8cb20320a0d3545beadee1a0_rle_crop_3706877750_0.png', 1343270697: '1741736533_2008115_1343270355_1762589f5fd6ea13ddb54610de5a4169_rle_crop_3706877027_0.png', 1343270698: '1741736533_2008115_1343270350_a3a2a8abd960c704900c8ad464e38c58_rle_crop_3706877042_0.png', 1343270699: '1741736533_2008115_1343270350_a3a2a8abd960c704900c8ad464e38c58_rle_crop_3706877039_0.png', 1343270701: '1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877062_0.png', 1343270702: '1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877065_0.png', 1343270731: '1741736546_2840261_1343270369_21489f0b4c4b3f660c9d1d1068a1e8d9_rle_crop_3706877052_0.png', 1343270732: '1741736546_2840261_1343270161_0239f5e9abe0bc1fa99d8c17978d3fe0_rle_crop_3706877094_0.png', 1343270733: '1741736546_2840261_1343270158_03563c415be09753775f86fbd0eb6dd2_rle_crop_3706877107_0.png', 1343270734: '1741736546_2840261_1343270140_5cff72b660d782178f061fe779ea4781_rle_crop_3706877164_0.png', 1343270855: '1741736651_2008768_1343270662_1be90dcf20bbce1267ec1f707339aab0_rle_crop_3706877723_0.png', 1343270856: '1741736651_2008768_1343270649_b1096508dd742fdea917b6f9b2657fff_rle_crop_3706877733_0.png', 1343270857: '1741736651_2008768_1343270642_03efadfe8cb20320a0d3545beadee1a0_rle_crop_3706877747_0.png', 1343270447: '1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876227_0.png', 1343270923: '1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877770_0.png', 1343270924: '1741736665_2843392_1343270530_ead1cf2d1ccd6ab132812dacd703ef47_rle_crop_3706877779_0.png', 1343270925: '1741736665_2843392_1343270526_ea50f36372ae935dcd8bdd1a17dea849_rle_crop_3706877796_0.png', 1343270926: '1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877811_0.png', 1343270927: '1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877825_0.png', 1343270928: '1741736665_2843392_1343270516_7c6a1791af18cd899f3328ad25861d5d_rle_crop_3706877834_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9ad29d419b45540223363f525355130a_41261600.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/89dbf3708dbd38e8836380c7f86f784c_80272300.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ac48df77fa03145adfb0683c4d30352f_12288580.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/896ecc99afc5a97669913076230ba793_8951314.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/da7e851cbbe343602fa4a8e70315649a_10454968.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c6f96fb7381962de373cfe3c3ae827bf_16073488.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/18634a4abe840a51b49956e1e8f30dd0_71183498.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/745e69018c0eb3d923232ad140382f42_24936806.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d2901cf172956a1da2cb98cd7c24e610_95801654.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/6cc6c76e98ad1aa37f7d6bdcdd073bb5_66895575.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b9ee899188a9f9f9008b7a8b17eec1fc_48701261.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a91987aac331ed8dc51088442f289504_7287690.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/11e27cc922bcd1b89f1f03240e16cd41_19515673.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4e4d658cfb7b9a38804900fed333595e_35763511.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/44cbd36d45ab546dae2e21d480c69353_90590558.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/398e03f5264e7c13971ec0cc6c4ce233_80851828.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/111ea3c98142f8d07e49400c22625f32_17185722.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8a5449552799c53afdc31cb738ebed72_1065429.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a339dc63a0d5bd98c6bd0b040b04498c_34135448.png change filename to text .imagette213206311741736942/ imagette213206311741736942/1741736533_2008115_1343270350_a3a2a8abd960c704900c8ad464e38c58_rle_crop_3706877039_0.png.png imagette213206311741736942/1741736546_2840261_1343270369_21489f0b4c4b3f660c9d1d1068a1e8d9_rle_crop_3706877052_0.png.png imagette213206311741736942/1741736533_2008115_1343270350_a3a2a8abd960c704900c8ad464e38c58_rle_crop_3706877042_0.png.png imagette213206311741736942/1741736665_2843392_1343270530_ead1cf2d1ccd6ab132812dacd703ef47_rle_crop_3706877779_0.png.png imagette213206311741736942/1741736665_2843392_1343270516_7c6a1791af18cd899f3328ad25861d5d_rle_crop_3706877834_0.png.png imagette213206311741736942/1741736651_2008768_1343270642_03efadfe8cb20320a0d3545beadee1a0_rle_crop_3706877747_0.png.png imagette213206311741736942/1741736546_2840261_1343270161_0239f5e9abe0bc1fa99d8c17978d3fe0_rle_crop_3706877094_0.png.png imagette213206311741736942/1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876227_0.png.png imagette213206311741736942/1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877825_0.png.png imagette213206311741736942/1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877770_0.png.png imagette213206311741736942/1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877065_0.png.png imagette213206311741736942/1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877811_0.png.png imagette213206311741736942/1741736651_2008768_1343270662_1be90dcf20bbce1267ec1f707339aab0_rle_crop_3706877723_0.png.png imagette213206311741736942/1741736651_2008768_1343270642_03efadfe8cb20320a0d3545beadee1a0_rle_crop_3706877750_0.png.png imagette213206311741736942/1741736533_2008115_1343270330_2b63f4296222a42c5eefb8cb9d3ba2e4_rle_crop_3706877062_0.png.png imagette213206311741736942/1741736546_2840261_1343270158_03563c415be09753775f86fbd0eb6dd2_rle_crop_3706877107_0.png.png imagette213206311741736942/1741736546_2840261_1343270140_5cff72b660d782178f061fe779ea4781_rle_crop_3706877164_0.png.png imagette213206311741736942/1741736665_2843392_1343270526_ea50f36372ae935dcd8bdd1a17dea849_rle_crop_3706877796_0.png.png imagette213206311741736942/1741736533_2008115_1343270355_1762589f5fd6ea13ddb54610de5a4169_rle_crop_3706877027_0.png.png imagette213206311741736942/1741736651_2008768_1343270649_b1096508dd742fdea917b6f9b2657fff_rle_crop_3706877733_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/078378dcbd25e7dd3a69ddb76e641e5d_58298347.png imagette213206311741736942 21320596 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=21320596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343270429: '1741736414_2007331_1343270091_efd65a8a05f403cac846187f10ba5e39_rle_crop_3706876159_0.png', 1343271026: '1741736785_2846397_1343270769_763b9d2dd7d699a11dc56d20ddd660f5_rle_crop_3706879559_0.png', 1343271025: '1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879548_0.png', 1343271024: '1741736785_2846397_1343270853_322d05e93964202c91249d5fb30cbc15_rle_crop_3706879456_0.png', 1343271006: '1741736772_2009739_1343270850_8959c9bbe8891b8cfba42ded7f47c856_rle_crop_3706879291_0.png', 1343271005: '1741736772_2009739_1343270850_8959c9bbe8891b8cfba42ded7f47c856_rle_crop_3706879290_0.png', 1343270919: '1741736665_2843392_1343270516_7c6a1791af18cd899f3328ad25861d5d_rle_crop_3706877832_0.png', 1343270918: '1741736665_2843392_1343270516_7c6a1791af18cd899f3328ad25861d5d_rle_crop_3706877852_0.png', 1343270915: '1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877816_0.png', 1343270914: '1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877767_0.png', 1343270913: '1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877769_0.png', 1343270852: '1741736651_2008768_1343270662_1be90dcf20bbce1267ec1f707339aab0_rle_crop_3706877722_0.png', 1343270431: '1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876228_0.png', 1343270430: '1741736414_2007331_1343270085_bf0d8269e2793f86580a83bbc8273e20_rle_crop_3706876190_0.png', 1343269720: '1741736032_2004178_1343269316_fe072b8143653b0189f9c9194d462617_rle_crop_3706872022_0.png', 1343270287: '1741736394_2007103_1343270050_beaf6106a9bc9eba14ebd0bf1dc72147_rle_crop_3706875909_0.png', 1343270286: '1741736394_2007103_1343270050_beaf6106a9bc9eba14ebd0bf1dc72147_rle_crop_3706875911_0.png', 1343270285: '1741736394_2007103_1343270050_beaf6106a9bc9eba14ebd0bf1dc72147_rle_crop_3706875906_0.png', 1343270123: '1741736307_2836916_1343270027_d61437047230cea94746b7bc9781612c_rle_crop_3706875158_0.png', 1343270108: '1741736293_2006256_1343270014_4222810f70fc19ac3b1eaf8a1c0ecbe9_rle_crop_3706875277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a4699b3e75f90899abaf0855f4f765fd_24036661.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f5380df863cf9fdd76bf810d93e8a77f_45146564.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/032264e4c6f8339d5af7a1877db5add1_85650092.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ad0b445b5d8ab3660c6a14ba7cf6148c_5519746.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/afed5049ded97d3a8414bfbc64937d96_11082313.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/6480ebd024e0f9c78ca760b1e058b14f_6246636.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4b2d1d0f6366f793555caa8a23bba811_75143970.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/849528a940d2459b95458454bc927667_54743237.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5e9ac0f6c5407926c265fd15fdf81d9a_94130949.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f303821f504d3a114d6fef0cdee70a4b_9627955.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/eba255fc0799bcefac7f268573455694_77123673.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5ea70cd77c6851bea025bcc0457c5b55_77587832.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/40b92b94566f4852abfd9b67346a0be7_11554543.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/bb8acdfbc1f5cac67903f34f331ca5d6_95766226.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9dc3912216b4773981925e4f62460839_49589284.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/23a10a7d43a86e4c7355f710876c1ada_21959239.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3d5c3bfed3445d8c24f0bdc1e800288b_1655414.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/cd747bcddc83100a5d9fa7697fd18dde_720507.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c813180719d5eef6460916015466319e_78321076.png change filename to text .imagette213205961741736943/ imagette213205961741736943/1741736032_2004178_1343269316_fe072b8143653b0189f9c9194d462617_rle_crop_3706872022_0.png.png imagette213205961741736943/1741736785_2846397_1343270769_763b9d2dd7d699a11dc56d20ddd660f5_rle_crop_3706879559_0.png.png imagette213205961741736943/1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877769_0.png.png imagette213205961741736943/1741736394_2007103_1343270050_beaf6106a9bc9eba14ebd0bf1dc72147_rle_crop_3706875909_0.png.png imagette213205961741736943/1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879548_0.png.png imagette213205961741736943/1741736394_2007103_1343270050_beaf6106a9bc9eba14ebd0bf1dc72147_rle_crop_3706875906_0.png.png imagette213205961741736943/1741736772_2009739_1343270850_8959c9bbe8891b8cfba42ded7f47c856_rle_crop_3706879291_0.png.png imagette213205961741736943/1741736785_2846397_1343270853_322d05e93964202c91249d5fb30cbc15_rle_crop_3706879456_0.png.png imagette213205961741736943/1741736414_2007331_1343270091_efd65a8a05f403cac846187f10ba5e39_rle_crop_3706876159_0.png.png imagette213205961741736943/1741736293_2006256_1343270014_4222810f70fc19ac3b1eaf8a1c0ecbe9_rle_crop_3706875277_0.png.png imagette213205961741736943/1741736414_2007331_1343270085_bf0d8269e2793f86580a83bbc8273e20_rle_crop_3706876190_0.png.png imagette213205961741736943/1741736772_2009739_1343270850_8959c9bbe8891b8cfba42ded7f47c856_rle_crop_3706879290_0.png.png imagette213205961741736943/1741736665_2843392_1343270516_7c6a1791af18cd899f3328ad25861d5d_rle_crop_3706877852_0.png.png imagette213205961741736943/1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877816_0.png.png imagette213205961741736943/1741736651_2008768_1343270662_1be90dcf20bbce1267ec1f707339aab0_rle_crop_3706877722_0.png.png imagette213205961741736943/1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877767_0.png.png imagette213205961741736943/1741736394_2007103_1343270050_beaf6106a9bc9eba14ebd0bf1dc72147_rle_crop_3706875911_0.png.png imagette213205961741736943/1741736307_2836916_1343270027_d61437047230cea94746b7bc9781612c_rle_crop_3706875158_0.png.png imagette213205961741736943/1741736665_2843392_1343270516_7c6a1791af18cd899f3328ad25861d5d_rle_crop_3706877832_0.png.png imagette213205961741736943/1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876228_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ac2de552fb07e61ddf4d44e6dbd27cfc_33927225.png imagette213205961741736943 21320618 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=21320618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343269725: '1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706872004_0.png', 1343269726: '1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706871999_0.png', 1343269727: '1741736032_2004178_1343269316_fe072b8143653b0189f9c9194d462617_rle_crop_3706872033_0.png', 1343270116: '1741736293_2006256_1343270025_281f1cd99d6a46a5fe67cc44026adfb9_rle_crop_3706875119_0.png', 1343270134: '1741736307_2836916_1343269867_83f79ff3b1f418e898097e0709031914_rle_crop_3706875290_0.png', 1343270451: '1741736414_2007331_1343270082_bbb578beb684aeb06fd4384ad7f6e089_rle_crop_3706876209_0.png', 1343270452: '1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876226_0.png', 1343270741: '1741736546_2840261_1343270369_21489f0b4c4b3f660c9d1d1068a1e8d9_rle_crop_3706877053_0.png', 1343270933: '1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877766_0.png', 1343270934: '1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877819_0.png', 1343271183: '1741736785_2846397_1343270776_3144d9dfde03a3c4983f016871701f20_rle_crop_3706879512_0.png', 1343271184: '1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4eb8d46345c807704373f5bf511f5df1_78368744.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f3df68331178509e4a625b7e236fe254_86665444.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/98bb413185f940d58c11e20e168f45bc_61186010.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/95542ad664eddccf12028ef661909b76_10242041.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f302156ba2b358d6fa4cf6f25931d84d_2652295.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b02e54164a77d34195404f7225b66c31_94335762.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5d6401662705b885138434b5bb1898f9_79194815.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/45f644c6c9e45cd0f97528b518549fec_68007512.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/edd26f7b97e5057313b9ab18a1b73d47_25808094.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c8442f3e7a5269f4c8ea8276c0353567_36482531.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/197b991ba05dc2d0d8c9c461c30dcc31_83784420.png change filename to text .imagette213206181741736944/ imagette213206181741736944/1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879551_0.png.png imagette213206181741736944/1741736665_2843392_1343270522_f2cb11b9432c809cd24159390124559e_rle_crop_3706877819_0.png.png imagette213206181741736944/1741736546_2840261_1343270369_21489f0b4c4b3f660c9d1d1068a1e8d9_rle_crop_3706877053_0.png.png imagette213206181741736944/1741736032_2004178_1343269316_fe072b8143653b0189f9c9194d462617_rle_crop_3706872033_0.png.png imagette213206181741736944/1741736293_2006256_1343270025_281f1cd99d6a46a5fe67cc44026adfb9_rle_crop_3706875119_0.png.png imagette213206181741736944/1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706871999_0.png.png imagette213206181741736944/1741736307_2836916_1343269867_83f79ff3b1f418e898097e0709031914_rle_crop_3706875290_0.png.png imagette213206181741736944/1741736665_2843392_1343270678_29bbd2f16da1ca6d22ce7cf74b05f3ec_rle_crop_3706877766_0.png.png imagette213206181741736944/1741736414_2007331_1343270079_b6ac00662e3a2222baa9cd74b0650996_rle_crop_3706876226_0.png.png imagette213206181741736944/1741736032_2004178_1343269359_968444d793ea12c85c74eb4e38a194b7_rle_crop_3706872004_0.png.png imagette213206181741736944/1741736414_2007331_1343270082_bbb578beb684aeb06fd4384ad7f6e089_rle_crop_3706876209_0.png.png imagette213206181741736944/1741736785_2846397_1343270776_3144d9dfde03a3c4983f016871701f20_rle_crop_3706879512_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/65a0f8a260e02ac741b36fa9ca12eef5_64484156.png imagette213206181741736944 21320629 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=21320629 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343269846: '1741736053_2004399_1343269252_69f033b884be7e9d9f930f5b26fe8874_rle_crop_3706873000_0.png', 1343269847: '1741736053_2004399_1343269246_4c18bddd3e5b5df07d4e934cb775c28d_rle_crop_3706873014_0.png', 1343269848: '1741736053_2004399_1343269227_73104f7351a7abb45f3aed952792bd6e_rle_crop_3706873023_0.png', 1343269849: '1741736053_2004399_1343269227_73104f7351a7abb45f3aed952792bd6e_rle_crop_3706873025_0.png', 1343270114: '1741736293_2006256_1343270020_7454c86873404abc27b2e4254ef5aee9_rle_crop_3706875171_0.png', 1343270130: '1741736307_2836916_1343270027_d61437047230cea94746b7bc9781612c_rle_crop_3706875160_0.png', 1343270706: '1741736533_2008115_1343270355_1762589f5fd6ea13ddb54610de5a4169_rle_crop_3706877023_0.png', 1343270707: '1741736533_2008115_1343270350_a3a2a8abd960c704900c8ad464e38c58_rle_crop_3706877035_0.png', 1343270735: '1741736546_2840261_1343270369_21489f0b4c4b3f660c9d1d1068a1e8d9_rle_crop_3706877051_0.png', 1343270736: '1741736546_2840261_1343270161_0239f5e9abe0bc1fa99d8c17978d3fe0_rle_crop_3706877085_0.png', 1343270737: '1741736546_2840261_1343270140_5cff72b660d782178f061fe779ea4781_rle_crop_3706877160_0.png', 1343270931: '1741736665_2843392_1343270526_ea50f36372ae935dcd8bdd1a17dea849_rle_crop_3706877794_0.png', 1343271128: '1741736785_2846397_1343270779_ad8b8ea256cc2f18c60da59615d01c89_rle_crop_3706879482_0.png', 1343271138: '1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879549_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/6f05e3823a47db976d4502b7866801c9_80399496.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a66a2fa402f6fd4177b3fbe1ccc22e8c_58562294.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d4f85cfa3b24ee9b9f4b8c9a318f9aa5_19809243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/40f56837f165bdfda12b165bfe41947b_13876033.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/73aa1162026dba0ed4b97295240519cc_26879557.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1767af447b008258ced3f4d82d57b687_24266292.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e8233a9cbc32d8a121e5f8cc3e0349a7_3339330.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/93cbbcacc3388f9f43b5d40fc0f9b0ea_1510772.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7ed7778d725b586a47400d05968df10b_61054562.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/29e3f043dde435ee7e2bc847a7d4c078_5429989.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/356861ebe489bd1a415591a4ff0f3d53_31886300.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8ebdf0858352de339364f85e6c4e59ec_29097443.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/199d3c05142778bdebdc8d8a2023b8bd_18081561.png change filename to text .imagette213206291741736945/ imagette213206291741736945/1741736533_2008115_1343270350_a3a2a8abd960c704900c8ad464e38c58_rle_crop_3706877035_0.png.png imagette213206291741736945/1741736546_2840261_1343270369_21489f0b4c4b3f660c9d1d1068a1e8d9_rle_crop_3706877051_0.png.png imagette213206291741736945/1741736785_2846397_1343270779_ad8b8ea256cc2f18c60da59615d01c89_rle_crop_3706879482_0.png.png imagette213206291741736945/1741736053_2004399_1343269227_73104f7351a7abb45f3aed952792bd6e_rle_crop_3706873025_0.png.png imagette213206291741736945/1741736053_2004399_1343269246_4c18bddd3e5b5df07d4e934cb775c28d_rle_crop_3706873014_0.png.png imagette213206291741736945/1741736665_2843392_1343270526_ea50f36372ae935dcd8bdd1a17dea849_rle_crop_3706877794_0.png.png imagette213206291741736945/1741736533_2008115_1343270355_1762589f5fd6ea13ddb54610de5a4169_rle_crop_3706877023_0.png.png imagette213206291741736945/1741736546_2840261_1343270140_5cff72b660d782178f061fe779ea4781_rle_crop_3706877160_0.png.png imagette213206291741736945/1741736053_2004399_1343269252_69f033b884be7e9d9f930f5b26fe8874_rle_crop_3706873000_0.png.png imagette213206291741736945/1741736307_2836916_1343270027_d61437047230cea94746b7bc9781612c_rle_crop_3706875160_0.png.png imagette213206291741736945/1741736053_2004399_1343269227_73104f7351a7abb45f3aed952792bd6e_rle_crop_3706873023_0.png.png imagette213206291741736945/1741736546_2840261_1343270161_0239f5e9abe0bc1fa99d8c17978d3fe0_rle_crop_3706877085_0.png.png imagette213206291741736945/1741736293_2006256_1343270020_7454c86873404abc27b2e4254ef5aee9_rle_crop_3706875171_0.png.png imagette213206291741736945/1741736785_2846397_1343270773_9da6da076824dabb5bf694de43bc8fc6_rle_crop_3706879549_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f7c6a7f33b89434f051cad7ee038675e_97305178.png imagette213206291741736945 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21320594 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21320632,21320633,21320634,21320635,21320636,21320637,21320638,21320640,21320641,21320642,21320643,21320644?tags=Teint_Dans_La_Masse,plastique,metal,kraft,environnement,papier,flou,cartonnette,Carton_brun,Carton_gris,mal_croppe,autre_refus your option no_mail is active, we will not send the real mail to your client args[1343271016] : ('0.0784371336807547',) no score found for photo 1343271016 We are sending mail with results at report@fotonower.com refus_total : 0.0784371336807547 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=21320594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21320594]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343271016] map_info['map_portfolio_photo'] : {21320594: [1343271016, 1343270965, 1343270963, 1343270961, 1343270959, 1343270853, 1343270850, 1343270848, 1343270781, 1343270779, 1343270776, 1343270773, 1343270769, 1343270678, 1343270662, 1343270649, 1343270642, 1343270534, 1343270530, 1343270526, 1343270522, 1343270516, 1343270369, 1343270355, 1343270350, 1343270330, 1343270282, 1343270163, 1343270161, 1343270158, 1343270140, 1343270092, 1343270091, 1343270088, 1343270085, 1343270082, 1343270079, 1343270053, 1343270050, 1343270027, 1343270025, 1343270023, 1343270020, 1343270017, 1343270014, 1343269875, 1343269871, 1343269867, 1343269864, 1343269861, 1343269810, 1343269807, 1343269791, 1343269682, 1343269678, 1343269674, 1343269409, 1343269359, 1343269316, 1343269252, 1343269246, 1343269227, 1343269223, 1343269196]} final : False mtd_id 4302 list_pids : [1343271016] 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, '2660283') ('4302', '21320594', '1343271016', None, None, None, None, None, '2660283') 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', '21320594', '1343271016', None, None, None, None, None, '2660283')] time used for this insertion : 0.013651132583618164 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.759288787841797 time spend to save output : 0.013823986053466797 total time spend for step 4 : 5.773112773895264 step5:split_time_score Wed Mar 12 00:49:06 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 : ['21320594'] 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 : [('21320594',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21320594) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343271016: {'path': 'temp/1741736940_3676207_1343271016_9c5dd5de977bea76be884c12ed44de07.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 = 21320594; (('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 = 21320594 group by h (('00', 64),) 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=21320594 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 (21320594) 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 (21320594) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12032025 21320594 Nombre de photos uploadées : 64 / 23040 (0%) 12032025 21320594 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 12032025 21320594 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1343269252, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/69f033b884be7e9d9f930f5b26fe8874.jpg', 'username': None, 'uploaded_at': 1741735910, 'text': 'image_12032025_00_30_04_009140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343269246, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4c18bddd3e5b5df07d4e934cb775c28d.jpg', 'username': None, 'uploaded_at': 1741735910, 'text': 'image_12032025_00_30_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343269227, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/73104f7351a7abb45f3aed952792bd6e.jpg', 'username': None, 'uploaded_at': 1741735910, 'text': 'image_12032025_00_30_25_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343269196, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/73226ce552fa8562a5526d7dc5ebea8c.jpg', 'username': None, 'uploaded_at': 1741735895, 'text': 'image_12032025_00_30_35_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001821279525756836 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21320594, '2025-03-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1660967,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02315807342529297 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= 1660967 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668518, 'mtr_portfolio_id': 21319746, 'dashboard_result_id': 9370913, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21319753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21319754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21319755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21319756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21319757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21319758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21319759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21319760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21319761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21319762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21319763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21319764, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668518, 'mtr_portfolio_id': 21320320, 'dashboard_result_id': 9370914, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668518, 'mtr_portfolio_id': 21320594, 'dashboard_result_id': 9370915, '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_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, '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 = 21319746 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': 2660222, 'mtr_portfolio_id': 21319746, 'created_at': datetime.datetime(2025, 3, 12, 0, 23, 31), 'result': '0.07809161792567709', 'result_long': None, 'result_double': None}] Qualite : 0.07809161792567709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21319746 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21319746%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21319746 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21319753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21319754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21319755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21319756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21319757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21319758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21319759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21319760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21319761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21319762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21319763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21319764, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21319746 and dashboard_run_id = 1668518 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`=21319746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9370913, 0.07809161792567709, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21319753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21319754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21319755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21319756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21319757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21319758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21319759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21319760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21319761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21319762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21319763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21319764, 'pht': 3726}, 'url_report': ''}") 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 = 21320320 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': 2660266, 'mtr_portfolio_id': 21320320, 'created_at': datetime.datetime(2025, 3, 12, 0, 33, 30), 'result': '0.08049526919943051', 'result_long': None, 'result_double': None}] Qualite : 0.08049526919943051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21320320 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21320320%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21320320 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21320320 and dashboard_run_id = 1668518 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`=21320320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9370914, 0.08049526919943051, "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}, 'url_report': ''}") 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 = 21320594 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': 2660283, 'mtr_portfolio_id': 21320594, 'created_at': datetime.datetime(2025, 3, 12, 0, 49), 'result': '0.0784371336807547', 'result_long': None, 'result_double': None}] Qualite : 0.0784371336807547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21320594 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21320594_12-03-2025_00_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21320594 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_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, 'pht': 3726}}" where mtr_portfolio_id = 21320594 and dashboard_run_id = 1668518 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`=21320594 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9370915, 0.0784371336807547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, '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 (21319746,21320320,21320594) result : ((1343263052,), (1343263079,), (1343263460,), (1343263488,), (1343263522,), (1343263540,), (1343263757,), (1343263759,), (1343263765,), (1343263779,), (1343263810,), (1343263844,), (1343263964,), (1343263980,), (1343263987,), (1343263998,), (1343264011,), (1343264107,), (1343264109,), (1343264112,), (1343264114,), (1343264117,), (1343264265,), (1343264285,), (1343264405,), (1343264408,), (1343264411,), (1343264414,), (1343264418,), (1343264555,), (1343264583,), (1343264599,), (1343264610,), (1343264619,), (1343264625,), (1343264810,), (1343264814,), (1343264819,), (1343265123,), (1343266589,), (1343266801,), (1343266825,), (1343266829,), (1343266833,), (1343266837,), (1343266960,), (1343266986,), (1343266989,), (1343266995,), (1343267244,), (1343267259,), (1343267284,), (1343267312,), (1343267384,), (1343267454,), (1343267477,), (1343267499,), (1343267710,), (1343267754,), (1343267825,), (1343267842,), (1343267860,), (1343267869,), (1343267941,), (1343267954,), (1343267970,), (1343267983,), (1343268012,), (1343268024,), (1343268333,), (1343268372,), (1343268398,), (1343268402,), (1343268793,), (1343268842,), (1343268861,), (1343269085,), (1343269093,), (1343269110,), (1343269159,), (1343269261,), (1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12032025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21320594]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343271016] map_info['map_portfolio_photo'] : {21320594: [1343271016, 1343270965, 1343270963, 1343270961, 1343270959, 1343270853, 1343270850, 1343270848, 1343270781, 1343270779, 1343270776, 1343270773, 1343270769, 1343270678, 1343270662, 1343270649, 1343270642, 1343270534, 1343270530, 1343270526, 1343270522, 1343270516, 1343270369, 1343270355, 1343270350, 1343270330, 1343270282, 1343270163, 1343270161, 1343270158, 1343270140, 1343270092, 1343270091, 1343270088, 1343270085, 1343270082, 1343270079, 1343270053, 1343270050, 1343270027, 1343270025, 1343270023, 1343270020, 1343270017, 1343270014, 1343269875, 1343269871, 1343269867, 1343269864, 1343269861, 1343269810, 1343269807, 1343269791, 1343269682, 1343269678, 1343269674, 1343269409, 1343269359, 1343269316, 1343269252, 1343269246, 1343269227, 1343269223, 1343269196]} final : True mtd_id 4302 list_pids : [1343271016] Looping around the photos to save general results len do output : 1 /21320594Didn'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, '2660283') ('4302', '21320594', '1343271016', None, None, None, None, None, '2660283') 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, '21320594', 'None', None, None, None, None, '2660283'), ('4302', '21320594', '1343271016', None, None, None, None, None, '2660283')] time used for this insertion : 0.014914751052856445 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4250433444976807 time spend to save output : 0.015116214752197266 total time spend for step 5 : 2.440159559249878 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 (2660283) 1.76user 2.75system 0:14.78elapsed 30%CPU (0avgtext+0avgdata 148232maxresident)k 320inputs+11592outputs (1major+59660minor)pagefaults 0swaps