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 : 2837732 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 (2576366) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2576366) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445427 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2576366'] with mtr_portfolio_ids : ['20445427'] and first list_photo_ids : [] new path : /proc/2837732/ Name: python3 Umask: 0002 State: R (running) Tgid: 2837732 Ngid: 0 Pid: 2837732 PPid: 2837731 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2837732 NSpid: 2837732 NSpgid: 2834406 NSsid: 2834406 VmPeak: 1106824 kB VmSize: 1106824 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97612 kB VmRSS: 97612 kB RssAnon: 59736 kB RssFile: 37876 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 604 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: 39 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2837732', 'Ngid': '0', 'Pid': '2837732', 'PPid': '2837731', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2837732', 'NSpid': '2837732', 'NSpgid': '2834406', 'NSsid': '2834406', 'VmPeak': '1106824 kB', 'VmSize': '1106824 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97612 kB', 'VmRSS': '97612 kB', 'RssAnon': '59736 kB', 'RssFile': '37876 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '39', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2837732', '1106824', '0', '1106824', '865576', '97612', b'', 'marlene', '2576366') 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 (20445427) 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 (2576366 ) ) 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 (20445427) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336833180, 'portfolio_id': 20445427}, {'photo_id': 1336832933, 'portfolio_id': 20445427}, {'photo_id': 1336832929, 'portfolio_id': 20445427}, {'photo_id': 1336832924, 'portfolio_id': 20445427}, {'photo_id': 1336832866, 'portfolio_id': 20445427}, {'photo_id': 1336832862, 'portfolio_id': 20445427}, {'photo_id': 1336832774, 'portfolio_id': 20445427}, {'photo_id': 1336832769, 'portfolio_id': 20445427}, {'photo_id': 1336832765, 'portfolio_id': 20445427}, {'photo_id': 1336832734, 'portfolio_id': 20445427}, {'photo_id': 1336832727, 'portfolio_id': 20445427}, {'photo_id': 1336832718, 'portfolio_id': 20445427}, {'photo_id': 1336832710, 'portfolio_id': 20445427}, {'photo_id': 1336832707, 'portfolio_id': 20445427}, {'photo_id': 1336832665, 'portfolio_id': 20445427}, {'photo_id': 1336832662, 'portfolio_id': 20445427}, {'photo_id': 1336832657, 'portfolio_id': 20445427}, {'photo_id': 1336832652, 'portfolio_id': 20445427}, {'photo_id': 1336832649, 'portfolio_id': 20445427}, {'photo_id': 1336832627, 'portfolio_id': 20445427}, {'photo_id': 1336832623, 'portfolio_id': 20445427}, {'photo_id': 1336832619, 'portfolio_id': 20445427}, {'photo_id': 1336832615, 'portfolio_id': 20445427}, {'photo_id': 1336832611, 'portfolio_id': 20445427}, {'photo_id': 1336832586, 'portfolio_id': 20445427}, {'photo_id': 1336832583, 'portfolio_id': 20445427}, {'photo_id': 1336832578, 'portfolio_id': 20445427}, {'photo_id': 1336832567, 'portfolio_id': 20445427}, {'photo_id': 1336832557, 'portfolio_id': 20445427}, {'photo_id': 1336832552, 'portfolio_id': 20445427}, {'photo_id': 1336832517, 'portfolio_id': 20445427}, {'photo_id': 1336832514, 'portfolio_id': 20445427}, {'photo_id': 1336832470, 'portfolio_id': 20445427}, {'photo_id': 1336832467, 'portfolio_id': 20445427}, {'photo_id': 1336832464, 'portfolio_id': 20445427}, {'photo_id': 1336832462, 'portfolio_id': 20445427}, {'photo_id': 1336832458, 'portfolio_id': 20445427}, {'photo_id': 1336832455, 'portfolio_id': 20445427}, {'photo_id': 1336832370, 'portfolio_id': 20445427}, {'photo_id': 1336832362, 'portfolio_id': 20445427}, {'photo_id': 1336832346, 'portfolio_id': 20445427}, {'photo_id': 1336832329, 'portfolio_id': 20445427}, {'photo_id': 1336832313, 'portfolio_id': 20445427}, {'photo_id': 1336832246, 'portfolio_id': 20445427}, {'photo_id': 1336832007, 'portfolio_id': 20445427}, {'photo_id': 1336832003, 'portfolio_id': 20445427}, {'photo_id': 1336831998, 'portfolio_id': 20445427}, {'photo_id': 1336831804, 'portfolio_id': 20445427}, {'photo_id': 1336831800, 'portfolio_id': 20445427}, {'photo_id': 1336831797, 'portfolio_id': 20445427}, {'photo_id': 1336831785, 'portfolio_id': 20445427}, {'photo_id': 1336831780, 'portfolio_id': 20445427}, {'photo_id': 1336831738, 'portfolio_id': 20445427}, {'photo_id': 1336831734, 'portfolio_id': 20445427}, {'photo_id': 1336831730, 'portfolio_id': 20445427}, {'photo_id': 1336831728, 'portfolio_id': 20445427}, {'photo_id': 1336831688, 'portfolio_id': 20445427}, {'photo_id': 1336831684, 'portfolio_id': 20445427}, {'photo_id': 1336831659, 'portfolio_id': 20445427}, {'photo_id': 1336831480, 'portfolio_id': 20445427}, {'photo_id': 1336831476, 'portfolio_id': 20445427}, {'photo_id': 1336831441, 'portfolio_id': 20445427}, {'photo_id': 1336831372, 'portfolio_id': 20445427}, {'photo_id': 1336831103, 'portfolio_id': 20445427}, {'photo_id': 1336831099, 'portfolio_id': 20445427}, {'photo_id': 1336831093, 'portfolio_id': 20445427}, {'photo_id': 1336831079, 'portfolio_id': 20445427}] map_portfolio_id_photo_id: {20445427: [1336833180, 1336832933, 1336832929, 1336832924, 1336832866, 1336832862, 1336832774, 1336832769, 1336832765, 1336832734, 1336832727, 1336832718, 1336832710, 1336832707, 1336832665, 1336832662, 1336832657, 1336832652, 1336832649, 1336832627, 1336832623, 1336832619, 1336832615, 1336832611, 1336832586, 1336832583, 1336832578, 1336832567, 1336832557, 1336832552, 1336832517, 1336832514, 1336832470, 1336832467, 1336832464, 1336832462, 1336832458, 1336832455, 1336832370, 1336832362, 1336832346, 1336832329, 1336832313, 1336832246, 1336832007, 1336832003, 1336831998, 1336831804, 1336831800, 1336831797, 1336831785, 1336831780, 1336831738, 1336831734, 1336831730, 1336831728, 1336831688, 1336831684, 1336831659, 1336831480, 1336831476, 1336831441, 1336831372, 1336831103, 1336831099, 1336831093, 1336831079]} ##### 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.01614665985107422 #### 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 Tue Feb 11 14:32:57 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 (20445427) 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 : 20445427 get user id for portfolio 20445427 get sub ptf for main ptf 20445427, type 3726 and hashtags ['Carton_brun', 'flou', 'environnement', 'papier', 'metal', 'plastique', 'mal_croppe', 'Carton_gris', 'Teint_Dans_La_Masse', 'autre_refus', 'kraft', 'cartonnette'] 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`=20445427 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','papier','metal','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','cartonnette')) 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`=20445427 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','papier','metal','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20445427, 'sub_port_id': 20445466, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120223, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'metal': {'main_port_id': 20445427, 'sub_port_id': 20445467, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120224, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'Carton_gris': {'main_port_id': 20445427, 'sub_port_id': 20445468, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120225, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'papier': {'main_port_id': 20445427, 'sub_port_id': 20445469, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120226, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'Carton_brun': {'main_port_id': 20445427, 'sub_port_id': 20445470, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120227, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'flou': {'main_port_id': 20445427, 'sub_port_id': 20445471, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120228, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'environnement': {'main_port_id': 20445427, 'sub_port_id': 20445472, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120229, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'mal_croppe': {'main_port_id': 20445427, 'sub_port_id': 20445473, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120230, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'plastique': {'main_port_id': 20445427, 'sub_port_id': 20445474, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120231, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'cartonnette': {'main_port_id': 20445427, 'sub_port_id': 20445475, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120232, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'autre_refus': {'main_port_id': 20445427, 'sub_port_id': 20445476, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120233, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}, 'kraft': {'main_port_id': 20445427, 'sub_port_id': 20445477, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120234, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445466 , 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=20445427 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 (20445466) result : ((1336831783,), (1336831784,), (1336832234,), (1336832235,), (1336832282,), (1336832284,), (1336832348,), (1336832349,), (1336832350,), (1336832490,), (1336832492,), (1336832493,), (1336832494,), (1336832560,), (1336832561,), (1336832562,), (1336832563,), (1336832676,), (1336832677,), (1336832715,), (1336832716,), (1336832717,), (1336832816,), (1336832817,), (1336832818,), (1336832821,), (1336832822,), (1336832852,), (1336833166,), (1336833167,), (1336833168,), (1336833169,), (1336833170,), (1336833195,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445467 , 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=20445427 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 (20445467) result : ((1336832859,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445468 , 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=20445427 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 (20445468) result : ((1336831790,), (1336832237,), (1336832238,), (1336832239,), (1336832240,), (1336832360,), (1336832497,), (1336832498,), (1336832564,), (1336832565,), (1336832682,), (1336832683,), (1336832684,), (1336832685,), (1336832686,), (1336832687,), (1336832688,), (1336832689,), (1336832690,), (1336832691,), (1336832735,), (1336832832,), (1336832833,), (1336832834,), (1336832835,), (1336832836,), (1336832837,), (1336832838,), (1336832839,), (1336832840,), (1336832841,), (1336832853,), (1336833196,), (1336833197,), (1336833198,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445469 , 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=20445427 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 (20445469) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445470 , 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=20445427 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 (20445470) result : ((1336831794,), (1336831795,), (1336832366,), (1336832367,), (1336832505,), (1336832509,), (1336832576,), (1336832698,), (1336832699,), (1336832700,), (1336832728,), (1336832729,), (1336832730,), (1336832737,), (1336832828,), (1336832829,), (1336832830,), (1336832848,), (1336832849,), (1336832850,), (1336832855,), (1336832856,), (1336833174,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445471 , 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=20445427 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 (20445471) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445472 , 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=20445427 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 (20445472) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445473 , 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=20445427 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 (20445473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445474 , 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=20445427 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 (20445474) result : ((1336832731,), (1336832831,), (1336832851,), (1336833200,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445475 , 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=20445427 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 (20445475) result : ((1336831791,), (1336831792,), (1336832241,), (1336832365,), (1336832499,), (1336832500,), (1336832501,), (1336832502,), (1336832503,), (1336832504,), (1336832570,), (1336832571,), (1336832572,), (1336832573,), (1336832574,), (1336832575,), (1336832693,), (1336832694,), (1336832695,), (1336832696,), (1336832697,), (1336832723,), (1336832724,), (1336832823,), (1336832824,), (1336832843,), (1336832844,), (1336832845,), (1336832846,), (1336832847,), (1336832854,), (1336833199,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445476 , 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=20445427 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 (20445476) result : ((1336831789,), (1336832359,), (1336832679,), (1336832719,), (1336832820,), (1336832826,), (1336833172,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20445477 , 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=20445427 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 (20445477) result : ((1336832242,), (1336833202,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20445427) result : ((1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,)) 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 (1336831800) and cspi.crop_hashtag_id = chi.id; 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`=20445427 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','papier','metal','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','cartonnette')) 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`=20445427 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','papier','metal','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20445427, 'sub_port_id': 20445478, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120235, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'metal': {'main_port_id': 20445427, 'sub_port_id': 20445479, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120236, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'Carton_gris': {'main_port_id': 20445427, 'sub_port_id': 20445480, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120237, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'papier': {'main_port_id': 20445427, 'sub_port_id': 20445481, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120238, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'Carton_brun': {'main_port_id': 20445427, 'sub_port_id': 20445482, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120239, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'flou': {'main_port_id': 20445427, 'sub_port_id': 20445483, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120240, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'environnement': {'main_port_id': 20445427, 'sub_port_id': 20445484, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120241, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'mal_croppe': {'main_port_id': 20445427, 'sub_port_id': 20445485, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120242, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'plastique': {'main_port_id': 20445427, 'sub_port_id': 20445486, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120243, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'cartonnette': {'main_port_id': 20445427, 'sub_port_id': 20445487, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120244, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'autre_refus': {'main_port_id': 20445427, 'sub_port_id': 20445488, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120245, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}, 'kraft': {'main_port_id': 20445427, 'sub_port_id': 20445489, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13120246, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445473 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445474 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445487,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445475 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20445489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20445477 lien utilise dans velours : https://www.fotonower.com/velours/20445478,20445479,20445480,20445481,20445482,20445483,20445484,20445485,20445486,20445487,20445488,20445489?tags=Teint_Dans_La_Masse,metal,Carton_gris,papier,Carton_brun,flou,environnement,mal_croppe,plastique,cartonnette,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20445427]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336833180] map_info['map_portfolio_photo'] : {20445427: [1336833180, 1336832933, 1336832929, 1336832924, 1336832866, 1336832862, 1336832774, 1336832769, 1336832765, 1336832734, 1336832727, 1336832718, 1336832710, 1336832707, 1336832665, 1336832662, 1336832657, 1336832652, 1336832649, 1336832627, 1336832623, 1336832619, 1336832615, 1336832611, 1336832586, 1336832583, 1336832578, 1336832567, 1336832557, 1336832552, 1336832517, 1336832514, 1336832470, 1336832467, 1336832464, 1336832462, 1336832458, 1336832455, 1336832370, 1336832362, 1336832346, 1336832329, 1336832313, 1336832246, 1336832007, 1336832003, 1336831998, 1336831804, 1336831800, 1336831797, 1336831785, 1336831780, 1336831738, 1336831734, 1336831730, 1336831728, 1336831688, 1336831684, 1336831659, 1336831480, 1336831476, 1336831441, 1336831372, 1336831103, 1336831099, 1336831093, 1336831079]} final : False mtd_id 4302 list_pids : [1336833180] Looping around the photos to save general results len do output : 1 /20445427. 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, '2576366') ('4302', '20445427', '1336833180', None, None, None, None, None, '2576366') 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, '20445427', "{'Teint_Dans_La_Masse': 20445466, 'metal': 20445467, 'Carton_gris': 20445468, 'papier': 20445469, 'Carton_brun': 20445470, 'flou': 20445471, 'environnement': 20445472, 'mal_croppe': 20445473, 'plastique': 20445474, 'cartonnette': 20445475, 'autre_refus': 20445476, 'kraft': 20445477}", None, None, None, None, '2576366'), ('4302', '20445427', '1336833180', None, None, None, None, None, '2576366')] time used for this insertion : 0.01283407211303711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5053787231445312 time spend to save output : 0.013058662414550781 total time spend for step 1 : 0.518437385559082 step2:final Tue Feb 11 14:32: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 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 (20445427) 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 20445427 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336831103,1336831099,1336831093,1336831079,1336831480,1336831476,1336831441,1336831372,1336831688,1336831684,1336831659,1336831738,1336831734,1336831730,1336831728,1336831804,1336831800,1336831797,1336831785,1336831780,1336832007,1336832003,1336831998,1336832370,1336832362,1336832346,1336832329,1336832313,1336832246,1336832470,1336832467,1336832464,1336832462,1336832458,1336832455,1336832517,1336832514,1336832586,1336832583,1336832578,1336832567,1336832557,1336832552,1336832627,1336832623,1336832619,1336832615,1336832611,1336832665,1336832662,1336832657,1336832652,1336832649,1336832734,1336832727,1336832718,1336832710,1336832707,1336832774,1336832769,1336832765,1336832933,1336832929,1336832924,1336832866,1336832862,1336833180); 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([20445427]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336833180: ('0.05450807037980681',)} new output for save of step final : {1336833180: ('0.05450807037980681',)} [1336833180] map_info['map_portfolio_photo'] : {20445427: [1336833180, 1336832933, 1336832929, 1336832924, 1336832866, 1336832862, 1336832774, 1336832769, 1336832765, 1336832734, 1336832727, 1336832718, 1336832710, 1336832707, 1336832665, 1336832662, 1336832657, 1336832652, 1336832649, 1336832627, 1336832623, 1336832619, 1336832615, 1336832611, 1336832586, 1336832583, 1336832578, 1336832567, 1336832557, 1336832552, 1336832517, 1336832514, 1336832470, 1336832467, 1336832464, 1336832462, 1336832458, 1336832455, 1336832370, 1336832362, 1336832346, 1336832329, 1336832313, 1336832246, 1336832007, 1336832003, 1336831998, 1336831804, 1336831800, 1336831797, 1336831785, 1336831780, 1336831738, 1336831734, 1336831730, 1336831728, 1336831688, 1336831684, 1336831659, 1336831480, 1336831476, 1336831441, 1336831372, 1336831103, 1336831099, 1336831093, 1336831079]} final : False mtd_id 4302 list_pids : [1336833180] Looping around the photos to save general results len do output : 1 /1336833180.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, '2576366') ('4302', '20445427', '1336833180', None, None, None, None, None, '2576366') 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', '20445427', '1336833180', '0.05450807037980681', None, None, None, None, '2576366')] time used for this insertion : 0.01082754135131836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07078194618225098 time spend to save output : 0.011020183563232422 total time spend for step 2 : 0.0818021297454834 step3:velours_tree Tue Feb 11 14:32: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 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 : {20445427: [{'Teint_Dans_La_Masse': 20445466, 'metal': 20445467, 'Carton_gris': 20445468, 'papier': 20445469, 'Carton_brun': 20445470, 'flou': 20445471, 'environnement': 20445472, 'mal_croppe': 20445473, 'plastique': 20445474, 'cartonnette': 20445475, 'autre_refus': 20445476, 'kraft': 20445477}]} input_args_next_step : {20445427: ()} output_args : {20445427: [{'Teint_Dans_La_Masse': 20445466, 'metal': 20445467, 'Carton_gris': 20445468, 'papier': 20445469, 'Carton_brun': 20445470, 'flou': 20445471, 'environnement': 20445472, 'mal_croppe': 20445473, 'plastique': 20445474, 'cartonnette': 20445475, 'autre_refus': 20445476, 'kraft': 20445477}]} args : 20445427 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': 20445466, 'metal': 20445467, 'Carton_gris': 20445468, 'papier': 20445469, 'Carton_brun': 20445470, 'flou': 20445471, 'environnement': 20445472, 'mal_croppe': 20445473, 'plastique': 20445474, 'cartonnette': 20445475, 'autre_refus': 20445476, 'kraft': 20445477},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20445427) 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([20445427]) 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.2795684337615967 time spend to save output : 4.00543212890625e-05 total time spend for step 3 : 0.27960848808288574 step4:send_mail_cod Tue Feb 11 14:32: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 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 : {1336833180: ('0.05450807037980681',)} input_args_next_step : {1336833180: ()} output_args : {1336833180: ('0.05450807037980681',)} args : 1336833180 depend.output_id : 0 complete output_args for input 3 : {20445427: [{'Teint_Dans_La_Masse': 20445466, 'metal': 20445467, 'Carton_gris': 20445468, 'papier': 20445469, 'Carton_brun': 20445470, 'flou': 20445471, 'environnement': 20445472, 'mal_croppe': 20445473, 'plastique': 20445474, 'cartonnette': 20445475, 'autre_refus': 20445476, 'kraft': 20445477}]} input_args_next_step : {1336833180: ('0.05450807037980681',), 20445427: ()} output_args : {20445427: [{'Teint_Dans_La_Masse': 20445466, 'metal': 20445467, 'Carton_gris': 20445468, 'papier': 20445469, 'Carton_brun': 20445470, 'flou': 20445471, 'environnement': 20445472, 'mal_croppe': 20445473, 'plastique': 20445474, 'cartonnette': 20445475, 'autre_refus': 20445476, 'kraft': 20445477}]} args : 20445427 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.05450807037980681',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20445427) 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 (1336833180) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336833180 download finish for photo 1336833180 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_P20445427_11-02-2025_14_32_58.pdf 20445467 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=20445467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336832859: '1739280532_2179696_1336832623_1880693dbad323b327f7a0da949332e4_rle_crop_3670061897_0.png'} change filename to text .imagette204454671739280778/ imagette204454671739280778/1739280532_2179696_1336832623_1880693dbad323b327f7a0da949332e4_rle_crop_3670061897_0.png.png imagette204454711739280778/ imagette204454731739280778/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/c88f7add5e8246c51caab50a1ea7e409_99383185.png imagette204454671739280778 20445471 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=20445471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204454711739280778 20445473 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=20445473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204454731739280778 20445474 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=20445474 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336832731: '1739280392_2178146_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060933_0.png', 1336832831: '1739280472_2178967_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060933_0.png', 1336832851: '1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670061848_0.png', 1336833200: '1739280614_2181523_1336832734_de4ada293a0e5ae00a4dc753a48e5e0b_rle_crop_3670064803_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a378ce36caa3969a3635bee8c34e699c_88635485.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a378ce36caa3969a3635bee8c34e699c_48336372.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/97acb531f243488a0fa5421ecb321629_95457380.png change filename to text .imagette204454741739280778/ imagette204454741739280778/1739280614_2181523_1336832734_de4ada293a0e5ae00a4dc753a48e5e0b_rle_crop_3670064803_0.png.png imagette204454741739280778/1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670061848_0.png.png imagette204454741739280778/1739280472_2178967_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060933_0.png.png imagette204454741739280778/1739280392_2178146_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060933_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/9bda231a14940ed8f061d7166641696e_55622613.png imagette204454741739280778 20445475 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=20445475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336832693: '1739280372_2177983_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060738_0.png', 1336833199: '1739280614_2181523_1336832649_6096717992dad375753aa8bc26bd5aa2_rle_crop_3670064848_0.png', 1336832854: '1739280532_2179696_1336832619_5a2fdb34680cac724502749a5c110451_rle_crop_3670061918_0.png', 1336832847: '1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060779_0.png', 1336832846: '1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060776_0.png', 1336832845: '1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060780_0.png', 1336832844: '1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060761_0.png', 1336832843: '1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060738_0.png', 1336832824: '1739280472_2178967_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060959_0.png', 1336832823: '1739280472_2178967_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060926_0.png', 1336832724: '1739280392_2178146_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060959_0.png', 1336832723: '1739280392_2178146_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060926_0.png', 1336832697: '1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060779_0.png', 1336832696: '1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060776_0.png', 1336832695: '1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060780_0.png', 1336832694: '1739280372_2177983_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060761_0.png', 1336831791: '1739279953_2169079_1336831476_f6300ac99d7475a395725c2d179eb3d2_rle_crop_3670054080_0.png', 1336832575: '1739280199_2172120_1336831079_40bcbac4cf8c008bcee80e7d51271e2b_rle_crop_3670057371_0.png', 1336832574: '1739280199_2172120_1336831079_40bcbac4cf8c008bcee80e7d51271e2b_rle_crop_3670057368_0.png', 1336832573: '1739280199_2172120_1336831093_059855fa6cc94edb62ac3cb1f2061e30_rle_crop_3670057354_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/49365d8bdc84282d83403296afc5cfb3_81373748.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/22f1f0fa26e2309148895fceab138929_98952604.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/145e41eb484e1e68cfad508f63b98aa1_35337389.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f92258045d1a18686e34760ed67b323e_21644811.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a005931944cf7f562c992f2ccc2c6e19_77724370.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b17fa63ab222a3be5ab9539666268e26_83443068.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/48a1af792520792ec7f3b7d5d4a6d3c8_23570709.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/49365d8bdc84282d83403296afc5cfb3_52062132.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b47d2cf4e5478bd81be6d715e5e24cac_89078267.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2662a1bd4120ae498713f0d5d082fc56_34126541.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b47d2cf4e5478bd81be6d715e5e24cac_45824070.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2662a1bd4120ae498713f0d5d082fc56_78732603.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f92258045d1a18686e34760ed67b323e_53175731.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a005931944cf7f562c992f2ccc2c6e19_89405603.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b17fa63ab222a3be5ab9539666268e26_45070655.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/48a1af792520792ec7f3b7d5d4a6d3c8_91453187.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/ff061a1ac7848461d335017c05f9fa5e_15034224.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1eafad35ecb1c792e52166f8ad1bc3b6_59660455.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5755e78a4e63f0c3d6346519a978118e_22633640.png change filename to text .imagette204454751739280778/ imagette204454751739280778/1739280199_2172120_1336831079_40bcbac4cf8c008bcee80e7d51271e2b_rle_crop_3670057371_0.png.png imagette204454751739280778/1739280392_2178146_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060926_0.png.png imagette204454751739280778/1739280472_2178967_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060959_0.png.png imagette204454751739280778/1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060776_0.png.png imagette204454751739280778/1739280372_2177983_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060761_0.png.png imagette204454751739280778/1739280392_2178146_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060959_0.png.png imagette204454751739280778/1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060738_0.png.png imagette204454751739280778/1739280199_2172120_1336831079_40bcbac4cf8c008bcee80e7d51271e2b_rle_crop_3670057368_0.png.png imagette204454751739280778/1739280472_2178967_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060926_0.png.png imagette204454751739280778/1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060780_0.png.png imagette204454751739280778/1739280614_2181523_1336832649_6096717992dad375753aa8bc26bd5aa2_rle_crop_3670064848_0.png.png imagette204454751739280778/1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060761_0.png.png imagette204454751739280778/1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060780_0.png.png imagette204454751739280778/1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060776_0.png.png imagette204454751739280778/1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060779_0.png.png imagette204454751739280778/1739279953_2169079_1336831476_f6300ac99d7475a395725c2d179eb3d2_rle_crop_3670054080_0.png.png imagette204454751739280778/1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060779_0.png.png imagette204454751739280778/1739280532_2179696_1336832619_5a2fdb34680cac724502749a5c110451_rle_crop_3670061918_0.png.png imagette204454751739280778/1739280199_2172120_1336831093_059855fa6cc94edb62ac3cb1f2061e30_rle_crop_3670057354_0.png.png imagette204454751739280778/1739280372_2177983_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060738_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/15548d6caaa79dec0ca4244258224ff4_62172962.png imagette204454751739280778 20445476 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=20445476 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336831789: '1739279953_2169079_1336831441_91ff64ad72b0bfb20024069267a6abc8_rle_crop_3670054089_0.png', 1336832359: '1739280073_2170847_1336831730_be0fb0a5f03b08b0360f89d2c0385161_rle_crop_3670057087_0.png', 1336832679: '1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060777_0.png', 1336832719: '1739280392_2178146_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060960_0.png', 1336832820: '1739280472_2178967_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060960_0.png', 1336832826: '1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060777_0.png', 1336833172: '1739280594_2181209_1336832718_140ae07ec16e8947f0cc9b40fc9aaf96_rle_crop_3670062889_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/07878d275aecb070dabd473c2ace7ec7_10998672.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4020e449c9ee9083cbb626979e7c9314_62429382.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e0ba88d679ac06bdca0d3885319364fd_44574661.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b2ddb0c3a258ac2ea5dad9fe00e5eedc_16008234.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b2ddb0c3a258ac2ea5dad9fe00e5eedc_81635749.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e0ba88d679ac06bdca0d3885319364fd_97531009.png change filename to text .imagette204454761739280779/ imagette204454761739280779/1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060777_0.png.png imagette204454761739280779/1739280073_2170847_1336831730_be0fb0a5f03b08b0360f89d2c0385161_rle_crop_3670057087_0.png.png imagette204454761739280779/1739280392_2178146_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060960_0.png.png imagette204454761739280779/1739279953_2169079_1336831441_91ff64ad72b0bfb20024069267a6abc8_rle_crop_3670054089_0.png.png imagette204454761739280779/1739280472_2178967_1336832464_9cb44fda358220dac936e6a64c157d22_rle_crop_3670060960_0.png.png imagette204454761739280779/1739280594_2181209_1336832718_140ae07ec16e8947f0cc9b40fc9aaf96_rle_crop_3670062889_0.png.png imagette204454761739280779/1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060777_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a7df4fea989fae26fc52d4f93cdfe408_94631825.png imagette204454761739280779 20445477 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=20445477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336832242: '1739280053_2170597_1336831785_f67ff4b7d45584982fab1bd4cc3e2eef_rle_crop_3670057024_0.png', 1336833202: '1739280614_2181523_1336832734_de4ada293a0e5ae00a4dc753a48e5e0b_rle_crop_3670064806_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/299c67973fbe823555d10cf6ebf2c081_57738866.png change filename to text .imagette204454771739280780/ imagette204454771739280780/1739280614_2181523_1336832734_de4ada293a0e5ae00a4dc753a48e5e0b_rle_crop_3670064806_0.png.png imagette204454771739280780/1739280053_2170597_1336831785_f67ff4b7d45584982fab1bd4cc3e2eef_rle_crop_3670057024_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/82d7e4c2927dcb8865a33c767a874090_36882490.png imagette204454771739280780 20445466 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=20445466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336832822: '1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060785_0.png', 1336832677: '1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060785_0.png', 1336832715: '1739280392_2178146_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060925_0.png', 1336832716: '1739280392_2178146_1336832462_017c97c42ba8816af864045956718564_rle_crop_3670060984_0.png', 1336832717: '1739280392_2178146_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061044_0.png', 1336832816: '1739280472_2178967_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060925_0.png', 1336832817: '1739280472_2178967_1336832462_017c97c42ba8816af864045956718564_rle_crop_3670060984_0.png', 1336832818: '1739280472_2178967_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061044_0.png', 1336832821: '1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060745_0.png', 1336832676: '1739280372_2177983_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060745_0.png', 1336832852: '1739280532_2179696_1336832611_52331ba3b0dc3731b5a2e7e84ad0a358_rle_crop_3670061950_0.png', 1336833166: '1739280594_2181209_1336832727_86f30c3c52f180d16bc8649cae669478_rle_crop_3670062765_0.png', 1336833167: '1739280594_2181209_1336832718_140ae07ec16e8947f0cc9b40fc9aaf96_rle_crop_3670062892_0.png', 1336833168: '1739280594_2181209_1336832710_6fa4ece4b95709c87b199902e00b7932_rle_crop_3670062913_0.png', 1336833169: '1739280594_2181209_1336832710_6fa4ece4b95709c87b199902e00b7932_rle_crop_3670062915_0.png', 1336833170: '1739280594_2181209_1336832707_52d9bfea41eea2bfa156c41303488ac0_rle_crop_3670062986_0.png', 1336833195: '1739280614_2181523_1336832649_6096717992dad375753aa8bc26bd5aa2_rle_crop_3670064857_0.png', 1336832490: '1739280112_2171304_1336831480_38619b6618630e8fd93cf9f85e689eaf_rle_crop_3670057286_0.png', 1336831784: '1739279953_2169079_1336831372_224313edbf83e78dd2ac1f6505597e52_rle_crop_3670054111_0.png', 1336832234: '1739280053_2170597_1336831800_8cb3e35e6797f88d616148b66c9f1b94_rle_crop_3670056960_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1cb5f00094cc11aab7859afe39d49cde_26459354.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1cb5f00094cc11aab7859afe39d49cde_65657760.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/0b54fdf2fb3a6b6028422e8e1a88effd_37083412.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/210391ff6bd6b62eefc240e507857108_75046918.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b81cf5e2113af3faaa9079d714b6f20c_43294162.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/0b54fdf2fb3a6b6028422e8e1a88effd_39106190.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/210391ff6bd6b62eefc240e507857108_91109109.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b81cf5e2113af3faaa9079d714b6f20c_21805570.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/45738b46abed8311c4609f650aaa6ebb_26416362.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/45738b46abed8311c4609f650aaa6ebb_45807774.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/17d25052f0a113c43a48526d959acf37_74269375.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/3d44c42769476fbe6387d865227f0674_21810448.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5a98138faded17dcb77fe0bca20be6f5_77149662.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a2e42e95b191ac14204a965f2c48f690_12270081.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e542f5403d291ce18dea24e7c417e45e_55489690.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/3a661a27ac26c81c683953d240b0d688_20833656.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e32bfb599abb509a4e405d2490d08323_56941652.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/10e379eceab2cd75f49ccf2bb85bf53c_2499658.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/af9ac8b7c8034d996d995483299d687e_26658311.png change filename to text .imagette204454661739280780/ imagette204454661739280780/1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060745_0.png.png imagette204454661739280780/1739280594_2181209_1336832718_140ae07ec16e8947f0cc9b40fc9aaf96_rle_crop_3670062892_0.png.png imagette204454661739280780/1739280594_2181209_1336832727_86f30c3c52f180d16bc8649cae669478_rle_crop_3670062765_0.png.png imagette204454661739280780/1739280594_2181209_1336832707_52d9bfea41eea2bfa156c41303488ac0_rle_crop_3670062986_0.png.png imagette204454661739280780/1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060785_0.png.png imagette204454661739280780/1739280614_2181523_1336832649_6096717992dad375753aa8bc26bd5aa2_rle_crop_3670064857_0.png.png imagette204454661739280780/1739280392_2178146_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061044_0.png.png imagette204454661739280780/1739280112_2171304_1336831480_38619b6618630e8fd93cf9f85e689eaf_rle_crop_3670057286_0.png.png imagette204454661739280780/1739279953_2169079_1336831372_224313edbf83e78dd2ac1f6505597e52_rle_crop_3670054111_0.png.png imagette204454661739280780/1739280392_2178146_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060925_0.png.png imagette204454661739280780/1739280472_2178967_1336832462_017c97c42ba8816af864045956718564_rle_crop_3670060984_0.png.png imagette204454661739280780/1739280594_2181209_1336832710_6fa4ece4b95709c87b199902e00b7932_rle_crop_3670062913_0.png.png imagette204454661739280780/1739280472_2178967_1336832517_4bff6d7dd10c63cfe5b8e1eec78c6a48_rle_crop_3670060925_0.png.png imagette204454661739280780/1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060785_0.png.png imagette204454661739280780/1739280392_2178146_1336832462_017c97c42ba8816af864045956718564_rle_crop_3670060984_0.png.png imagette204454661739280780/1739280594_2181209_1336832710_6fa4ece4b95709c87b199902e00b7932_rle_crop_3670062915_0.png.png imagette204454661739280780/1739280053_2170597_1336831800_8cb3e35e6797f88d616148b66c9f1b94_rle_crop_3670056960_0.png.png imagette204454661739280780/1739280372_2177983_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060745_0.png.png imagette204454661739280780/1739280472_2178967_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061044_0.png.png imagette204454661739280780/1739280532_2179696_1336832611_52331ba3b0dc3731b5a2e7e84ad0a358_rle_crop_3670061950_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a46eb48747ab4a556ca3fc1a919c70d7_49039086.png imagette204454661739280780 20445468 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=20445468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336832837: '1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060741_0.png', 1336832690: '1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060783_0.png', 1336832691: '1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060789_0.png', 1336832735: '1739280453_2178751_1336832514_16cea6da66f48d66254218aa0079a8be_rle_crop_3670061076_0.png', 1336832832: '1739280492_2179226_1336832470_14f8b45e00d04ef5116fed9510afb076_rle_crop_3670060696_0.png', 1336832833: '1739280492_2179226_1336832470_14f8b45e00d04ef5116fed9510afb076_rle_crop_3670060695_0.png', 1336832834: '1739280492_2179226_1336832362_01837fda8c1273372b009143b737f719_rle_crop_3670060706_0.png', 1336832835: '1739280492_2179226_1336832362_01837fda8c1273372b009143b737f719_rle_crop_3670060710_0.png', 1336832836: '1739280492_2179226_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060726_0.png', 1336832689: '1739280372_2177983_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060768_0.png', 1336832838: '1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060746_0.png', 1336832839: '1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060768_0.png', 1336832840: '1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060783_0.png', 1336832841: '1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060789_0.png', 1336832853: '1739280532_2179696_1336832619_5a2fdb34680cac724502749a5c110451_rle_crop_3670061925_0.png', 1336833196: '1739280614_2181523_1336832734_de4ada293a0e5ae00a4dc753a48e5e0b_rle_crop_3670064804_0.png', 1336833197: '1739280614_2181523_1336832657_75d352f0b6ff4fd5dcb7a27634525d03_rle_crop_3670064821_0.png', 1336833198: '1739280614_2181523_1336832652_57064060d3dc29f322b73eb070997006_rle_crop_3670064837_0.png', 1336832565: '1739280199_2172120_1336831079_40bcbac4cf8c008bcee80e7d51271e2b_rle_crop_3670057381_0.png', 1336832237: '1739280053_2170597_1336831800_8cb3e35e6797f88d616148b66c9f1b94_rle_crop_3670056962_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/fe6a07f871df9a98290263e6cd9a9055_63434937.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/26174a0725452074b7bff148225197bf_54255076.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/367b4a5c1879d912c50ab7c63fc2def1_62003953.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/395b9b680b0a0e1ad7fa7eb27bd3fbdd_26123435.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b310f27e5077aeb1fbd72bcba0566317_10790163.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1b825175fbfb424f6327bd7f44698858_84492827.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/3dc9b10f31fa4b88efc0d0f2c23d5606_94415332.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e93ce48a4d2c6617df1104c86fb684fa_20348033.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/272c9da8b03c806cb4f9850e161d9b70_88712488.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/c4ccc57be3eb3214148713699c196dec_53313233.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b532e3170fc9872462325a3e066f9b3a_60329775.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/c4ccc57be3eb3214148713699c196dec_65078007.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/26174a0725452074b7bff148225197bf_66383058.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/367b4a5c1879d912c50ab7c63fc2def1_80978150.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/afad51764ad86010a7e06bcfabfe6827_9261164.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/fde094f20fc8cda1a053748a30e4fbe0_54575960.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f9883c11f1c51fdc5b969af6d389c1fc_74158383.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/ccfa93a12cbd781345b444556c32f83a_39912182.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f4ab779b57b530c822e43479ffff9c0e_65401917.png change filename to text .imagette204454681739280781/ imagette204454681739280781/1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060768_0.png.png imagette204454681739280781/1739280372_2177983_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060768_0.png.png imagette204454681739280781/1739280199_2172120_1336831079_40bcbac4cf8c008bcee80e7d51271e2b_rle_crop_3670057381_0.png.png imagette204454681739280781/1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060741_0.png.png imagette204454681739280781/1739280492_2179226_1336832470_14f8b45e00d04ef5116fed9510afb076_rle_crop_3670060696_0.png.png imagette204454681739280781/1739280492_2179226_1336832470_14f8b45e00d04ef5116fed9510afb076_rle_crop_3670060695_0.png.png imagette204454681739280781/1739280492_2179226_1336832362_01837fda8c1273372b009143b737f719_rle_crop_3670060706_0.png.png imagette204454681739280781/1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060783_0.png.png imagette204454681739280781/1739280492_2179226_1336832329_ff93f12792600b548f32ef17c9cb64d0_rle_crop_3670060746_0.png.png imagette204454681739280781/1739280614_2181523_1336832734_de4ada293a0e5ae00a4dc753a48e5e0b_rle_crop_3670064804_0.png.png imagette204454681739280781/1739280053_2170597_1336831800_8cb3e35e6797f88d616148b66c9f1b94_rle_crop_3670056962_0.png.png imagette204454681739280781/1739280614_2181523_1336832652_57064060d3dc29f322b73eb070997006_rle_crop_3670064837_0.png.png imagette204454681739280781/1739280532_2179696_1336832619_5a2fdb34680cac724502749a5c110451_rle_crop_3670061925_0.png.png imagette204454681739280781/1739280372_2177983_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060789_0.png.png imagette204454681739280781/1739280453_2178751_1336832514_16cea6da66f48d66254218aa0079a8be_rle_crop_3670061076_0.png.png imagette204454681739280781/1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060789_0.png.png imagette204454681739280781/1739280492_2179226_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060726_0.png.png imagette204454681739280781/1739280492_2179226_1336832246_4da49d6abb8833f340a284886e15197e_rle_crop_3670060783_0.png.png imagette204454681739280781/1739280492_2179226_1336832362_01837fda8c1273372b009143b737f719_rle_crop_3670060710_0.png.png imagette204454681739280781/1739280614_2181523_1336832657_75d352f0b6ff4fd5dcb7a27634525d03_rle_crop_3670064821_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/dbe316231f24c34e775c2d01f96123f8_29141721.png imagette204454681739280781 20445470 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=20445470 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336832729: '1739280392_2178146_1336832458_2278de46c2ae5cb2216f7a5d4895c483_rle_crop_3670061020_0.png', 1336833174: '1739280594_2181209_1336832718_140ae07ec16e8947f0cc9b40fc9aaf96_rle_crop_3670062894_0.png', 1336832856: '1739280532_2179696_1336832611_52331ba3b0dc3731b5a2e7e84ad0a358_rle_crop_3670061948_0.png', 1336832855: '1739280532_2179696_1336832623_1880693dbad323b327f7a0da949332e4_rle_crop_3670061912_0.png', 1336832850: '1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060760_0.png', 1336832849: '1739280492_2179226_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060725_0.png', 1336832848: '1739280492_2179226_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060720_0.png', 1336832830: '1739280472_2178967_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061041_0.png', 1336832829: '1739280472_2178967_1336832458_2278de46c2ae5cb2216f7a5d4895c483_rle_crop_3670061020_0.png', 1336832828: '1739280472_2178967_1336832467_59a77a214a1f1eeed2834c1470ca269d_rle_crop_3670060944_0.png', 1336832737: '1739280453_2178751_1336832514_16cea6da66f48d66254218aa0079a8be_rle_crop_3670061074_0.png', 1336832730: '1739280392_2178146_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061041_0.png', 1336831794: '1739279953_2169079_1336831688_571c5573d2b696e9bee55be2a7564d48_rle_crop_3670054062_0.png', 1336832728: '1739280392_2178146_1336832467_59a77a214a1f1eeed2834c1470ca269d_rle_crop_3670060944_0.png', 1336832700: '1739280372_2177983_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060760_0.png', 1336832699: '1739280372_2177983_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060725_0.png', 1336832698: '1739280372_2177983_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060720_0.png', 1336832576: '1739280199_2172120_1336831093_059855fa6cc94edb62ac3cb1f2061e30_rle_crop_3670057355_0.png', 1336832509: '1739280171_2171914_1336832003_a8a238d55c1c96dc210169d8ee58ee34_rle_crop_3670057392_0.png', 1336832505: '1739280112_2171304_1336831093_059855fa6cc94edb62ac3cb1f2061e30_rle_crop_3670057355_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/097025b7d59f39125519e902c54577e6_79391888.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/dfeb4fa10bba43b548cd59b6964c7ce2_705441.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/d5a644c61f60ddba19fd87c4cf131b33_87284687.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/06c3a1313e1bc9378d82b8dd2b98f05e_12832010.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4be78442753dbca685122799bd36a707_47075042.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e25904e688d6453b16578206ece79b31_61755201.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/afbe13e53ff830225c0dfb26ebb23b31_43940620.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/88920cf336342786af527b92455f29e0_45086690.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/097025b7d59f39125519e902c54577e6_18582550.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/33d1fdc095d6d274e65f09998aa958d9_244713.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/56ae17e6b1b38d4593b15f468b79d698_13095877.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/88920cf336342786af527b92455f29e0_84881451.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/dc59537d3357d032185d18d017443e0e_92109142.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/33d1fdc095d6d274e65f09998aa958d9_55469978.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4be78442753dbca685122799bd36a707_74614936.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e25904e688d6453b16578206ece79b31_89695969.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/afbe13e53ff830225c0dfb26ebb23b31_42133196.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/71ca6efdb893ad41a9ed8819f1e3f3c1_40096361.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5c9d54d31613505ac3cabd3dc12059fa_67668681.png change filename to text .imagette204454701739280782/ imagette204454701739280782/1739280392_2178146_1336832467_59a77a214a1f1eeed2834c1470ca269d_rle_crop_3670060944_0.png.png imagette204454701739280782/1739280472_2178967_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061041_0.png.png imagette204454701739280782/1739280112_2171304_1336831093_059855fa6cc94edb62ac3cb1f2061e30_rle_crop_3670057355_0.png.png imagette204454701739280782/1739280532_2179696_1336832623_1880693dbad323b327f7a0da949332e4_rle_crop_3670061912_0.png.png imagette204454701739280782/1739280492_2179226_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060725_0.png.png imagette204454701739280782/1739279953_2169079_1336831688_571c5573d2b696e9bee55be2a7564d48_rle_crop_3670054062_0.png.png imagette204454701739280782/1739280392_2178146_1336832455_2cef37fbed27a72bc3ce4412305ea099_rle_crop_3670061041_0.png.png imagette204454701739280782/1739280392_2178146_1336832458_2278de46c2ae5cb2216f7a5d4895c483_rle_crop_3670061020_0.png.png imagette204454701739280782/1739280472_2178967_1336832458_2278de46c2ae5cb2216f7a5d4895c483_rle_crop_3670061020_0.png.png imagette204454701739280782/1739280171_2171914_1336832003_a8a238d55c1c96dc210169d8ee58ee34_rle_crop_3670057392_0.png.png imagette204454701739280782/1739280472_2178967_1336832467_59a77a214a1f1eeed2834c1470ca269d_rle_crop_3670060944_0.png.png imagette204454701739280782/1739280453_2178751_1336832514_16cea6da66f48d66254218aa0079a8be_rle_crop_3670061074_0.png.png imagette204454701739280782/1739280372_2177983_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060720_0.png.png imagette204454701739280782/1739280492_2179226_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060760_0.png.png imagette204454701739280782/1739280532_2179696_1336832611_52331ba3b0dc3731b5a2e7e84ad0a358_rle_crop_3670061948_0.png.png imagette204454701739280782/1739280492_2179226_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060720_0.png.png imagette204454701739280782/1739280372_2177983_1336832346_d926cdc19bbbd35a570e2670d6716ec1_rle_crop_3670060725_0.png.png imagette204454701739280782/1739280594_2181209_1336832718_140ae07ec16e8947f0cc9b40fc9aaf96_rle_crop_3670062894_0.png.png imagette204454701739280782/1739280199_2172120_1336831093_059855fa6cc94edb62ac3cb1f2061e30_rle_crop_3670057355_0.png.png imagette204454701739280782/1739280372_2177983_1336832313_fc089527513b07f05e66d675df4bedb8_rle_crop_3670060760_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/71ca6efdb893ad41a9ed8819f1e3f3c1_83855416.png imagette204454701739280782 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20445427 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20445478,20445479,20445480,20445481,20445482,20445483,20445484,20445485,20445486,20445487,20445488,20445489?tags=Teint_Dans_La_Masse,metal,Carton_gris,papier,Carton_brun,flou,environnement,mal_croppe,plastique,cartonnette,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1336833180] : ('0.05450807037980681',) no score found for photo 1336833180 apple ('0.05450807037980681',) We are sending mail with results at report@fotonower.com refus_total : 0.05450807037980681 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=20445427 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445427_11-02-2025_14_32_58.pdf results_Auto_P20445427_11-02-2025_14_32_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445427_11-02-2025_14_32_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20445427','results_Auto_P20445427_11-02-2025_14_32_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445427_11-02-2025_14_32_58.pdf','pdf','','0.24','0.05450807037980681') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20445427]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336833180] map_info['map_portfolio_photo'] : {20445427: [1336833180, 1336832933, 1336832929, 1336832924, 1336832866, 1336832862, 1336832774, 1336832769, 1336832765, 1336832734, 1336832727, 1336832718, 1336832710, 1336832707, 1336832665, 1336832662, 1336832657, 1336832652, 1336832649, 1336832627, 1336832623, 1336832619, 1336832615, 1336832611, 1336832586, 1336832583, 1336832578, 1336832567, 1336832557, 1336832552, 1336832517, 1336832514, 1336832470, 1336832467, 1336832464, 1336832462, 1336832458, 1336832455, 1336832370, 1336832362, 1336832346, 1336832329, 1336832313, 1336832246, 1336832007, 1336832003, 1336831998, 1336831804, 1336831800, 1336831797, 1336831785, 1336831780, 1336831738, 1336831734, 1336831730, 1336831728, 1336831688, 1336831684, 1336831659, 1336831480, 1336831476, 1336831441, 1336831372, 1336831103, 1336831099, 1336831093, 1336831079]} final : False mtd_id 4302 list_pids : [1336833180] 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, '2576366') ('4302', '20445427', '1336833180', None, None, None, None, None, '2576366') 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', '20445427', '1336833180', None, None, None, None, None, '2576366')] time used for this insertion : 0.012565851211547852 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.97866678237915 time spend to save output : 0.012772560119628906 total time spend for step 4 : 5.991439342498779 step5:split_time_score Tue Feb 11 14:33:04 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 : ['20445427'] 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 : [('20445427',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20445427) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336833180: {'path': 'temp/1739280778_2837732_1336833180_0093952fa8afa68c94b91e57d0295227.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 = 20445427; (('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 = 20445427 group by h (('14', 67),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20445427 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 (20445427) 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 (20445427) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11022025 20445427 Nombre de photos uploadées : 67 / 23040 (0%) 11022025 20445427 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 11022025 20445427 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1336831103, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/18000d9d12e7ce4fd4e6ea9c25e8d175.jpg', 'username': None, 'uploaded_at': 1739279767, 'text': 'image_11022025_14_15_04_010150m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1336831099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b51fa641452b58ee3b5d13487252f61b.jpg', 'username': None, 'uploaded_at': 1739279767, 'text': 'image_11022025_14_15_14_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336831093, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/059855fa6cc94edb62ac3cb1f2061e30.jpg', 'username': None, 'uploaded_at': 1739279767, 'text': 'image_11022025_14_15_24_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336831079, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/40bcbac4cf8c008bcee80e7d51271e2b.jpg', 'username': None, 'uploaded_at': 1739279767, 'text': 'image_11022025_14_15_34_010141m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003320932388305664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20445427, '2025-02-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1593540,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0247647762298584 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= 1593540 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602785, 'mtr_portfolio_id': 20444624, 'dashboard_result_id': 8819129, '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_P20444624_11-02-2025_14_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20444626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20444627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20444628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20444629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20444630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20444631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20444632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20444633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20444634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20444635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20444636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20444637, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602785, 'mtr_portfolio_id': 20445086, 'dashboard_result_id': 8819130, '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_P20445086_11-02-2025_14_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445102, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602785, 'mtr_portfolio_id': 20445427, 'dashboard_result_id': 8819131, '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_P20445427_11-02-2025_14_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445477, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602785, 'mtr_portfolio_id': 20445956, 'dashboard_result_id': 8819135, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 20444624 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': 2576305, 'mtr_portfolio_id': 20444624, 'created_at': datetime.datetime(2025, 2, 11, 14, 5), 'result': '0.041731256614495484', 'result_long': None, 'result_double': None}] Qualite : 0.041731256614495484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20444624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20444624_11-02-2025_14_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20444624 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_P20444624_11-02-2025_14_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20444626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20444627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20444628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20444629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20444630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20444631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20444632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20444633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20444634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20444635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20444636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20444637, 'pht': 3726}}" where mtr_portfolio_id = 20444624 and dashboard_run_id = 1602785 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`=20444624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8819129, 0.041731256614495484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20444624_11-02-2025_14_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20444626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20444627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20444628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20444629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20444630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20444631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20444632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20444633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20444634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20444635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20444636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20444637, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20445086 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': 2576339, 'mtr_portfolio_id': 20445086, 'created_at': datetime.datetime(2025, 2, 11, 14, 18, 57), 'result': '0.04085076539270608', 'result_long': None, 'result_double': None}] Qualite : 0.04085076539270608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20445086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445086_11-02-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445086 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_P20445086_11-02-2025_14_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445102, 'pht': 3726}}" where mtr_portfolio_id = 20445086 and dashboard_run_id = 1602785 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`=20445086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8819130, 0.04085076539270608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445086_11-02-2025_14_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445102, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20445427 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': 2576366, 'mtr_portfolio_id': 20445427, 'created_at': datetime.datetime(2025, 2, 11, 14, 32, 58), 'result': '0.05450807037980681', 'result_long': None, 'result_double': None}] Qualite : 0.05450807037980681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20445427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445427_11-02-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445427 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_P20445427_11-02-2025_14_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445477, 'pht': 3726}}" where mtr_portfolio_id = 20445427 and dashboard_run_id = 1602785 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`=20445427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8819131, 0.05450807037980681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445427_11-02-2025_14_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445477, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20445956 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 20445956 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20445956 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20445956%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445956 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 20445956 and dashboard_run_id = 1602785 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20444624,20445086,20445427,20445956) result : ((1336826174,), (1336826452,), (1336826621,), (1336826626,), (1336826629,), (1336827417,), (1336827419,), (1336827421,), (1336827458,), (1336827460,), (1336827464,), (1336827467,), (1336827535,), (1336827590,), (1336827642,), (1336827644,), (1336827706,), (1336827711,), (1336827715,), (1336828059,), (1336828160,), (1336828252,), (1336828844,), (1336828847,), (1336828851,), (1336828854,), (1336828857,), (1336828929,), (1336828934,), (1336828939,), (1336828943,), (1336829270,), (1336829275,), (1336829279,), (1336829294,), (1336830033,), (1336830028,), (1336830030,), (1336830205,), (1336830207,), (1336830210,), (1336830213,), (1336830217,), (1336830219,), (1336830259,), (1336830261,), (1336830264,), (1336830267,), (1336830269,), (1336830272,), (1336830354,), (1336830355,), (1336830357,), (1336830376,), (1336830413,), (1336830417,), (1336830452,), (1336830453,), (1336830471,), (1336830532,), (1336830546,), (1336830548,), (1336830551,), (1336830593,), (1336830595,), (1336830597,), (1336830603,), (1336830716,), (1336830719,), (1336830730,), (1336830794,), (1336830796,), (1336830798,), (1336830801,), (1336830806,), (1336830848,), (1336830933,), (1336830941,), (1336830945,), (1336830948,), (1336830982,), (1336830983,), (1336830986,), (1336830989,), (1336830992,), (1336830993,), (1336831029,), (1336831031,), (1336831033,), (1336831035,), (1336831107,), (1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,), (1336833129,), (1336833153,), (1336833158,), (1336833162,), (1336833176,), (1336833204,), (1336833208,), (1336833212,), (1336833216,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11022025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20445427]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336833180] map_info['map_portfolio_photo'] : {20445427: [1336833180, 1336832933, 1336832929, 1336832924, 1336832866, 1336832862, 1336832774, 1336832769, 1336832765, 1336832734, 1336832727, 1336832718, 1336832710, 1336832707, 1336832665, 1336832662, 1336832657, 1336832652, 1336832649, 1336832627, 1336832623, 1336832619, 1336832615, 1336832611, 1336832586, 1336832583, 1336832578, 1336832567, 1336832557, 1336832552, 1336832517, 1336832514, 1336832470, 1336832467, 1336832464, 1336832462, 1336832458, 1336832455, 1336832370, 1336832362, 1336832346, 1336832329, 1336832313, 1336832246, 1336832007, 1336832003, 1336831998, 1336831804, 1336831800, 1336831797, 1336831785, 1336831780, 1336831738, 1336831734, 1336831730, 1336831728, 1336831688, 1336831684, 1336831659, 1336831480, 1336831476, 1336831441, 1336831372, 1336831103, 1336831099, 1336831093, 1336831079]} final : True mtd_id 4302 list_pids : [1336833180] Looping around the photos to save general results len do output : 1 /20445427Didn'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, '2576366') ('4302', '20445427', '1336833180', None, None, None, None, None, '2576366') 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, '20445427', 'None', None, None, None, None, '2576366'), ('4302', '20445427', '1336833180', None, None, None, None, None, '2576366')] time used for this insertion : 0.014139175415039062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.061593770980835 time spend to save output : 0.014364242553710938 total time spend for step 5 : 1.075958013534546 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 (2576366) 1.93user 1.96system 0:09.82elapsed 39%CPU (0avgtext+0avgdata 155108maxresident)k 152inputs+13568outputs (4major+62003minor)pagefaults 0swaps