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 : 1748978 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 (2731921) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2731921) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144739 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2731921'] with mtr_portfolio_ids : ['22144739'] and first list_photo_ids : [] new path : /proc/1748978/ Name: python3 Umask: 0002 State: R (running) Tgid: 1748978 Ngid: 0 Pid: 1748978 PPid: 1748977 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1748978 NSpid: 1748978 NSpgid: 1745043 NSsid: 1745043 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98796 kB VmRSS: 98796 kB RssAnon: 59800 kB RssFile: 38996 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 67 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1748978', 'Ngid': '0', 'Pid': '1748978', 'PPid': '1748977', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1748978', 'NSpid': '1748978', 'NSpgid': '1745043', 'NSsid': '1745043', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98796 kB', 'VmRSS': '98796 kB', 'RssAnon': '59800 kB', 'RssFile': '38996 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '67'} ('datou_batch_current', '1748978', '1106828', '0', '1106828', '865576', '98796', b'', 'marlene', '2731921') 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 (22144739) 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 (2731921 ) ) 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 (22144739) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350769456, 'portfolio_id': 22144739}, {'photo_id': 1350769453, 'portfolio_id': 22144739}, {'photo_id': 1350769451, 'portfolio_id': 22144739}, {'photo_id': 1350769437, 'portfolio_id': 22144739}, {'photo_id': 1350769400, 'portfolio_id': 22144739}, {'photo_id': 1350769398, 'portfolio_id': 22144739}, {'photo_id': 1350769395, 'portfolio_id': 22144739}, {'photo_id': 1350769393, 'portfolio_id': 22144739}, {'photo_id': 1350769391, 'portfolio_id': 22144739}, {'photo_id': 1350769389, 'portfolio_id': 22144739}, {'photo_id': 1350769349, 'portfolio_id': 22144739}, {'photo_id': 1350769347, 'portfolio_id': 22144739}, {'photo_id': 1350769297, 'portfolio_id': 22144739}, {'photo_id': 1350769293, 'portfolio_id': 22144739}, {'photo_id': 1350769291, 'portfolio_id': 22144739}, {'photo_id': 1350769288, 'portfolio_id': 22144739}, {'photo_id': 1350769284, 'portfolio_id': 22144739}, {'photo_id': 1350769244, 'portfolio_id': 22144739}, {'photo_id': 1350769240, 'portfolio_id': 22144739}, {'photo_id': 1350769236, 'portfolio_id': 22144739}, {'photo_id': 1350769232, 'portfolio_id': 22144739}, {'photo_id': 1350769228, 'portfolio_id': 22144739}, {'photo_id': 1350769225, 'portfolio_id': 22144739}, {'photo_id': 1350769184, 'portfolio_id': 22144739}, {'photo_id': 1350769182, 'portfolio_id': 22144739}, {'photo_id': 1350769179, 'portfolio_id': 22144739}, {'photo_id': 1350769176, 'portfolio_id': 22144739}, {'photo_id': 1350769170, 'portfolio_id': 22144739}, {'photo_id': 1350769103, 'portfolio_id': 22144739}, {'photo_id': 1350769078, 'portfolio_id': 22144739}, {'photo_id': 1350769053, 'portfolio_id': 22144739}, {'photo_id': 1350768997, 'portfolio_id': 22144739}, {'photo_id': 1350768994, 'portfolio_id': 22144739}, {'photo_id': 1350768991, 'portfolio_id': 22144739}, {'photo_id': 1350768987, 'portfolio_id': 22144739}, {'photo_id': 1350768967, 'portfolio_id': 22144739}, {'photo_id': 1350768901, 'portfolio_id': 22144739}, {'photo_id': 1350768898, 'portfolio_id': 22144739}, {'photo_id': 1350768895, 'portfolio_id': 22144739}, {'photo_id': 1350768893, 'portfolio_id': 22144739}, {'photo_id': 1350768704, 'portfolio_id': 22144739}, {'photo_id': 1350768678, 'portfolio_id': 22144739}, {'photo_id': 1350768649, 'portfolio_id': 22144739}, {'photo_id': 1350768499, 'portfolio_id': 22144739}, {'photo_id': 1350768466, 'portfolio_id': 22144739}, {'photo_id': 1350768416, 'portfolio_id': 22144739}, {'photo_id': 1350768058, 'portfolio_id': 22144739}, {'photo_id': 1350768005, 'portfolio_id': 22144739}, {'photo_id': 1350767955, 'portfolio_id': 22144739}, {'photo_id': 1350767910, 'portfolio_id': 22144739}, {'photo_id': 1350767875, 'portfolio_id': 22144739}, {'photo_id': 1350767543, 'portfolio_id': 22144739}, {'photo_id': 1350767539, 'portfolio_id': 22144739}, {'photo_id': 1350767529, 'portfolio_id': 22144739}] map_portfolio_id_photo_id: {22144739: [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389, 1350769349, 1350769347, 1350769297, 1350769293, 1350769291, 1350769288, 1350769284, 1350769244, 1350769240, 1350769236, 1350769232, 1350769228, 1350769225, 1350769184, 1350769182, 1350769179, 1350769176, 1350769170, 1350769103, 1350769078, 1350769053, 1350768997, 1350768994, 1350768991, 1350768987, 1350768967, 1350768901, 1350768898, 1350768895, 1350768893, 1350768704, 1350768678, 1350768649, 1350768499, 1350768466, 1350768416, 1350768058, 1350768005, 1350767955, 1350767910, 1350767875, 1350767543, 1350767539, 1350767529]} ##### 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.016139984130859375 #### 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 Thu Apr 17 18:28:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22144739) 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 : 22144739 get user id for portfolio 22144739 get sub ptf for main ptf 22144739, type 3726 and hashtags ['mal_croppe', 'environnement', 'plastique', 'papier', 'autre_refus', 'Teint_Dans_La_Masse', 'metal', 'kraft', 'Carton_gris', 'Carton_brun', 'flou', '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`=22144739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','papier','autre_refus','Teint_Dans_La_Masse','metal','kraft','Carton_gris','Carton_brun','flou','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`=22144739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','papier','autre_refus','Teint_Dans_La_Masse','metal','kraft','Carton_gris','Carton_brun','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22144739, 'sub_port_id': 22144740, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624750, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'papier': {'main_port_id': 22144739, 'sub_port_id': 22144741, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624751, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'flou': {'main_port_id': 22144739, 'sub_port_id': 22144742, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624752, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'autre_refus': {'main_port_id': 22144739, 'sub_port_id': 22144743, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624753, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'cartonnette': {'main_port_id': 22144739, 'sub_port_id': 22144744, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624754, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'mal_croppe': {'main_port_id': 22144739, 'sub_port_id': 22144745, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624755, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'kraft': {'main_port_id': 22144739, 'sub_port_id': 22144746, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624756, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'metal': {'main_port_id': 22144739, 'sub_port_id': 22144747, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624757, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'plastique': {'main_port_id': 22144739, 'sub_port_id': 22144748, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624758, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'environnement': {'main_port_id': 22144739, 'sub_port_id': 22144749, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624759, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'Carton_brun': {'main_port_id': 22144739, 'sub_port_id': 22144750, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624760, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22144739, 'sub_port_id': 22144751, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624761, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22144740 , 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=22144739 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 (22144740) result : ((1350768882,), (1350768883,), (1350768884,), (1350768886,), (1350768887,), (1350769221,), (1350769222,), (1350769446,), (1350769447,), (1350769448,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144741 , 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=22144739 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 (22144741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144742 , 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=22144739 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 (22144742) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144743 , 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=22144739 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 (22144743) result : ((1350768881,), (1350769041,), (1350769308,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144744 , 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=22144739 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 (22144744) result : ((1350769208,), (1350769209,), (1350769312,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144745 , 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=22144739 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 (22144745) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144746 , 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=22144739 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 (22144746) result : ((1350769045,), (1350769130,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144747 , 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=22144739 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 (22144747) result : ((1350769214,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144748 , 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=22144739 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 (22144748) result : ((1350768890,), (1350768891,), (1350769127,), (1350769128,), (1350769315,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144749 , 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=22144739 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 (22144749) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144750 , 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=22144739 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 (22144750) result : ((1350768732,), (1350768888,), (1350769042,), (1350769043,), (1350769125,), (1350769212,), (1350769213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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 22144751 , 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=22144739 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 (22144751) result : ((1350768729,), (1350768730,), (1350768731,), (1350768874,), (1350768877,), (1350768878,), (1350768879,), (1350768880,), (1350769037,), (1350769038,), (1350769039,), (1350769123,), (1350769440,), (1350769441,), (1350769442,), (1350769443,), (1350769444,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144739) result : ((1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) 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 (1350769400) 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`=22144739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','papier','autre_refus','Teint_Dans_La_Masse','metal','kraft','Carton_gris','Carton_brun','flou','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`=22144739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','papier','autre_refus','Teint_Dans_La_Masse','metal','kraft','Carton_gris','Carton_brun','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22144739, 'sub_port_id': 22144752, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624762, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'papier': {'main_port_id': 22144739, 'sub_port_id': 22144753, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624763, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'flou': {'main_port_id': 22144739, 'sub_port_id': 22144754, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624764, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'autre_refus': {'main_port_id': 22144739, 'sub_port_id': 22144755, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624765, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'cartonnette': {'main_port_id': 22144739, 'sub_port_id': 22144756, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624766, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'mal_croppe': {'main_port_id': 22144739, 'sub_port_id': 22144757, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624767, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'kraft': {'main_port_id': 22144739, 'sub_port_id': 22144758, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624768, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'metal': {'main_port_id': 22144739, 'sub_port_id': 22144759, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624769, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'plastique': {'main_port_id': 22144739, 'sub_port_id': 22144760, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624770, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'environnement': {'main_port_id': 22144739, 'sub_port_id': 22144761, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624771, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'Carton_brun': {'main_port_id': 22144739, 'sub_port_id': 22144762, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624772, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22144739, 'sub_port_id': 22144763, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14624773, 'last_updated_at': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 18, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 18, 19, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22144763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22144751 lien utilise dans velours : https://www.fotonower.com/velours/22144752,22144753,22144754,22144755,22144756,22144757,22144758,22144759,22144760,22144761,22144762,22144763?tags=Carton_gris,papier,flou,autre_refus,cartonnette,mal_croppe,kraft,metal,plastique,environnement,Carton_brun,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22144739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] map_info['map_portfolio_photo'] : {22144739: [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389, 1350769349, 1350769347, 1350769297, 1350769293, 1350769291, 1350769288, 1350769284, 1350769244, 1350769240, 1350769236, 1350769232, 1350769228, 1350769225, 1350769184, 1350769182, 1350769179, 1350769176, 1350769170, 1350769103, 1350769078, 1350769053, 1350768997, 1350768994, 1350768991, 1350768987, 1350768967, 1350768901, 1350768898, 1350768895, 1350768893, 1350768704, 1350768678, 1350768649, 1350768499, 1350768466, 1350768416, 1350768058, 1350768005, 1350767955, 1350767910, 1350767875, 1350767543, 1350767539, 1350767529]} final : False mtd_id 4302 list_pids : [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] Looping around the photos to save general results len do output : 1 /22144739. 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, '2731921') ('4302', '22144739', '1350769456', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769453', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769451', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769437', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769400', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769398', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769395', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769393', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769391', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769389', None, None, None, None, None, '2731921') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22144739', "{'Carton_gris': 22144740, 'papier': 22144741, 'flou': 22144742, 'autre_refus': 22144743, 'cartonnette': 22144744, 'mal_croppe': 22144745, 'kraft': 22144746, 'metal': 22144747, 'plastique': 22144748, 'environnement': 22144749, 'Carton_brun': 22144750, 'Teint_Dans_La_Masse': 22144751}", None, None, None, None, '2731921'), ('4302', '22144739', '1350769456', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769453', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769451', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769437', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769400', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769398', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769395', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769393', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769391', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769389', None, None, None, None, None, '2731921')] time used for this insertion : 0.016464948654174805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46098923683166504 time spend to save output : 0.01685309410095215 total time spend for step 1 : 0.4778423309326172 step2:final Thu Apr 17 18:28: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 (22144739) 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 22144739 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350767543,1350767539,1350767529,1350768058,1350768005,1350767955,1350767910,1350767875,1350768499,1350768466,1350768416,1350768704,1350768678,1350768649,1350768901,1350768898,1350768895,1350768893,1350768997,1350768994,1350768991,1350768987,1350768967,1350769103,1350769078,1350769053,1350769184,1350769182,1350769179,1350769176,1350769170,1350769244,1350769240,1350769236,1350769232,1350769228,1350769225,1350769297,1350769293,1350769291,1350769288,1350769284,1350769349,1350769347,1350769400,1350769398,1350769395,1350769393,1350769391,1350769389,1350769456,1350769453,1350769451,1350769437); 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([22144739]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} new output for save of step final : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] map_info['map_portfolio_photo'] : {22144739: [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389, 1350769349, 1350769347, 1350769297, 1350769293, 1350769291, 1350769288, 1350769284, 1350769244, 1350769240, 1350769236, 1350769232, 1350769228, 1350769225, 1350769184, 1350769182, 1350769179, 1350769176, 1350769170, 1350769103, 1350769078, 1350769053, 1350768997, 1350768994, 1350768991, 1350768987, 1350768967, 1350768901, 1350768898, 1350768895, 1350768893, 1350768704, 1350768678, 1350768649, 1350768499, 1350768466, 1350768416, 1350768058, 1350768005, 1350767955, 1350767910, 1350767875, 1350767543, 1350767539, 1350767529]} final : False mtd_id 4302 list_pids : [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] Looping around the photos to save general results len do output : 10 /1350769456.Didn't retrieve data . /1350769453.Didn't retrieve data . /1350769451.Didn't retrieve data . /1350769437.Didn't retrieve data . /1350769400.Didn't retrieve data . /1350769398.Didn't retrieve data . /1350769395.Didn't retrieve data . /1350769393.Didn't retrieve data . /1350769391.Didn't retrieve data . /1350769389.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, '2731921') ('4302', '22144739', '1350769456', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769453', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769451', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769437', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769400', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769398', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769395', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769393', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769391', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769389', None, None, None, None, None, '2731921') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22144739', '1350769456', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769453', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769451', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769437', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769400', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769398', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769395', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769393', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769391', '0.06424531284006019', None, None, None, None, '2731921'), ('4302', '22144739', '1350769389', '0.06424531284006019', None, None, None, None, '2731921')] time used for this insertion : 0.014519214630126953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07290029525756836 time spend to save output : 0.015100717544555664 total time spend for step 2 : 0.08800101280212402 step3:velours_tree Thu Apr 17 18:28: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 : {22144739: [{'Carton_gris': 22144740, 'papier': 22144741, 'flou': 22144742, 'autre_refus': 22144743, 'cartonnette': 22144744, 'mal_croppe': 22144745, 'kraft': 22144746, 'metal': 22144747, 'plastique': 22144748, 'environnement': 22144749, 'Carton_brun': 22144750, 'Teint_Dans_La_Masse': 22144751}]} input_args_next_step : {22144739: ()} output_args : {22144739: [{'Carton_gris': 22144740, 'papier': 22144741, 'flou': 22144742, 'autre_refus': 22144743, 'cartonnette': 22144744, 'mal_croppe': 22144745, 'kraft': 22144746, 'metal': 22144747, 'plastique': 22144748, 'environnement': 22144749, 'Carton_brun': 22144750, 'Teint_Dans_La_Masse': 22144751}]} args : 22144739 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 : ({'Carton_gris': 22144740, 'papier': 22144741, 'flou': 22144742, 'autre_refus': 22144743, 'cartonnette': 22144744, 'mal_croppe': 22144745, 'kraft': 22144746, 'metal': 22144747, 'plastique': 22144748, 'environnement': 22144749, 'Carton_brun': 22144750, 'Teint_Dans_La_Masse': 22144751},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22144739) 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([22144739]) 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.36699795722961426 time spend to save output : 4.1484832763671875e-05 total time spend for step 3 : 0.36703944206237793 step4:send_mail_cod Thu Apr 17 18:28: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 : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} input_args_next_step : {1350769456: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769456 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769453 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769451 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769437 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769400 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769398 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769395 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769393 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769391 depend.output_id : 0 input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ()} output_args : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',)} args : 1350769389 depend.output_id : 0 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 3 : {22144739: [{'Carton_gris': 22144740, 'papier': 22144741, 'flou': 22144742, 'autre_refus': 22144743, 'cartonnette': 22144744, 'mal_croppe': 22144745, 'kraft': 22144746, 'metal': 22144747, 'plastique': 22144748, 'environnement': 22144749, 'Carton_brun': 22144750, 'Teint_Dans_La_Masse': 22144751}]} input_args_next_step : {1350769456: ('0.06424531284006019',), 1350769453: ('0.06424531284006019',), 1350769451: ('0.06424531284006019',), 1350769437: ('0.06424531284006019',), 1350769400: ('0.06424531284006019',), 1350769398: ('0.06424531284006019',), 1350769395: ('0.06424531284006019',), 1350769393: ('0.06424531284006019',), 1350769391: ('0.06424531284006019',), 1350769389: ('0.06424531284006019',), 22144739: ()} output_args : {22144739: [{'Carton_gris': 22144740, 'papier': 22144741, 'flou': 22144742, 'autre_refus': 22144743, 'cartonnette': 22144744, 'mal_croppe': 22144745, 'kraft': 22144746, 'metal': 22144747, 'plastique': 22144748, 'environnement': 22144749, 'Carton_brun': 22144750, 'Teint_Dans_La_Masse': 22144751}]} args : 22144739 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 :11, first value : ('0.06424531284006019',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22144739) 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 (1350769456,1350769453,1350769451,1350769437,1350769400,1350769398,1350769395,1350769393,1350769391,1350769389) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350769389 begin to download photo : 1350769395 begin to download photo : 1350769437 begin to download photo : 1350769456 download finish for photo 1350769395 begin to download photo : 1350769398 download finish for photo 1350769437 begin to download photo : 1350769451 download finish for photo 1350769456 download finish for photo 1350769389 begin to download photo : 1350769391 download finish for photo 1350769398 begin to download photo : 1350769400 download finish for photo 1350769451 begin to download photo : 1350769453 download finish for photo 1350769391 begin to download photo : 1350769393 download finish for photo 1350769400 download finish for photo 1350769453 download finish for photo 1350769393 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221447421744907339/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22144739_17-04-2025_18_28_59.pdf 22144742 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=22144742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221447421744907339 22144743 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=22144743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350768881: '1744906767_1658139_1350768005_9bf1ab32e28757f2375938a6745ecb5c_rle_crop_3752049474_0.png', 1350769041: '1744906874_3166640_1350768901_ed52555c2263ffd6fbbd3d724d9821d3_rle_crop_3752050772_0.png', 1350769308: '1744907101_3168799_1350769179_33a6c7d2626be3296e3a87d2dc600070_rle_crop_3752052411_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/030f587b62e1d9d6490529ccc7cdca5e_72809977.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/84573f7c9af99b11bd81c7bbf3212ef6_43374168.png change filename to text .imagette221447431744907339/ imagette221447431744907339/1744907101_3168799_1350769179_33a6c7d2626be3296e3a87d2dc600070_rle_crop_3752052411_0.png.png imagette221447431744907339/1744906767_1658139_1350768005_9bf1ab32e28757f2375938a6745ecb5c_rle_crop_3752049474_0.png.png imagette221447431744907339/1744906874_3166640_1350768901_ed52555c2263ffd6fbbd3d724d9821d3_rle_crop_3752050772_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/34f48051cfa70039b55cb441a77128e1_60486366.png imagette221447431744907339 22144744 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=22144744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350769208: '1744906991_3167748_1350768967_4f0966a7cdd7a4927c2f35d4958d730b_rle_crop_3752051857_0.png', 1350769209: '1744906991_3167748_1350768967_4f0966a7cdd7a4927c2f35d4958d730b_rle_crop_3752051858_0.png', 1350769312: '1744907101_3168799_1350769170_cf786cea0a52ee0f5251a64b727389c0_rle_crop_3752052435_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8f5f4a01ba63b16444d85135ccfd8034_87763350.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a8e40f4918718fa4699bb11d3c9697be_19719514.png change filename to text .imagette221447441744907339/ imagette221447441744907339/1744906991_3167748_1350768967_4f0966a7cdd7a4927c2f35d4958d730b_rle_crop_3752051858_0.png.png imagette221447441744907339/1744906991_3167748_1350768967_4f0966a7cdd7a4927c2f35d4958d730b_rle_crop_3752051857_0.png.png imagette221447441744907339/1744907101_3168799_1350769170_cf786cea0a52ee0f5251a64b727389c0_rle_crop_3752052435_0.png.png imagette221447451744907339/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c1a7bafde6f32d8587ee57d066af51c5_56565251.png imagette221447441744907339 22144745 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=22144745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221447451744907339 22144746 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=22144746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350769045: '1744906874_3166640_1350768901_ed52555c2263ffd6fbbd3d724d9821d3_rle_crop_3752050774_0.png', 1350769130: '1744906907_994453_1350768893_4477f473b76046f89367b8658e0a0475_rle_crop_3752050997_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0bc023618334ce58cfa42873c524ba6d_21316269.png change filename to text .imagette221447461744907339/ imagette221447461744907339/1744906907_994453_1350768893_4477f473b76046f89367b8658e0a0475_rle_crop_3752050997_0.png.png imagette221447461744907339/1744906874_3166640_1350768901_ed52555c2263ffd6fbbd3d724d9821d3_rle_crop_3752050774_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/39e181123303336facefd345bc816baa_26028058.png imagette221447461744907339 22144747 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=22144747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350769214: '1744906991_3167748_1350768994_c5fc3f36c1fbbea870d562e8c4605594_rle_crop_3752051822_0.png'} change filename to text .imagette221447471744907339/ imagette221447471744907339/1744906991_3167748_1350768994_c5fc3f36c1fbbea870d562e8c4605594_rle_crop_3752051822_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/97a17b91c0205f7b36975dc50deab1eb_76929742.png imagette221447471744907339 22144748 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=22144748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350768890: '1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049462_0.png', 1350768891: '1744906767_1658139_1350767955_627c86a4af9c8741f9fd8f3fa21ba5d1_rle_crop_3752049488_0.png', 1350769127: '1744906907_994453_1350768898_736721f4000205abf07ed3be233bbe7d_rle_crop_3752050972_0.png', 1350769128: '1744906907_994453_1350768895_c9d7362fd02d8009925d8ecea95060a1_rle_crop_3752050992_0.png', 1350769315: '1744907101_3168799_1350769182_f175fad02b8053afc4fe755b8c5e18f1_rle_crop_3752052252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b2b5bfd169c9b17d4c0e3870f3d8b8c8_9004258.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/4d8923b8768ced08bde98176cde62f96_86110833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ce8c3d3844420e6afcd4cbf32f20b051_97256587.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d96e70d7f53d75077cd9f991ed2f54bc_68481880.png change filename to text .imagette221447481744907340/ imagette221447481744907340/1744907101_3168799_1350769182_f175fad02b8053afc4fe755b8c5e18f1_rle_crop_3752052252_0.png.png imagette221447481744907340/1744906907_994453_1350768898_736721f4000205abf07ed3be233bbe7d_rle_crop_3752050972_0.png.png imagette221447481744907340/1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049462_0.png.png imagette221447481744907340/1744906907_994453_1350768895_c9d7362fd02d8009925d8ecea95060a1_rle_crop_3752050992_0.png.png imagette221447481744907340/1744906767_1658139_1350767955_627c86a4af9c8741f9fd8f3fa21ba5d1_rle_crop_3752049488_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1b267feca83c2bc9b860bbab1106071d_62578298.png imagette221447481744907340 22144740 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=22144740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350768882: '1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049463_0.png', 1350768883: '1744906767_1658139_1350767955_627c86a4af9c8741f9fd8f3fa21ba5d1_rle_crop_3752049489_0.png', 1350768884: '1744906767_1658139_1350767910_dbbadac1de40815771b429574950fa56_rle_crop_3752049503_0.png', 1350768886: '1744906767_1658139_1350767910_dbbadac1de40815771b429574950fa56_rle_crop_3752049508_0.png', 1350768887: '1744906767_1658139_1350767875_113c2ea77431046637e26e188af92f8f_rle_crop_3752049519_0.png', 1350769221: '1744907023_996318_1350769078_1da852478aa22d075a44ed5ea0ac7ac1_rle_crop_3752051888_0.png', 1350769222: '1744907023_996318_1350769078_1da852478aa22d075a44ed5ea0ac7ac1_rle_crop_3752051891_0.png', 1350769446: '1744907261_1000436_1350769284_472d6ef5165b013c80d9fa931130a926_rle_crop_3752054778_0.png', 1350769447: '1744907261_1000436_1350769284_472d6ef5165b013c80d9fa931130a926_rle_crop_3752054785_0.png', 1350769448: '1744907261_1000436_1350769284_472d6ef5165b013c80d9fa931130a926_rle_crop_3752054788_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/75d38396bc9476de7e536144c1247525_8464842.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/55f4b28cf4fe42310f7de9b447d704e3_43900936.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b01e73acb443df94b54b87d26763e72a_91920202.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b78f8066d291ec33704c9f317478a6d5_50550948.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cfd2cbf7afb67ee823996ab45df78cea_1510399.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/35713e23677af0f9daee2c84d57e4bc5_76885208.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f9514b404a7c8703e2d6962e504df75f_69562988.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1e0b43c55ec9c7529de9decfed0cd709_47084049.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cfee1367686abeff5f37b7a287cc57c1_58151458.png change filename to text .imagette221447401744907340/ imagette221447401744907340/1744907023_996318_1350769078_1da852478aa22d075a44ed5ea0ac7ac1_rle_crop_3752051888_0.png.png imagette221447401744907340/1744906767_1658139_1350767875_113c2ea77431046637e26e188af92f8f_rle_crop_3752049519_0.png.png imagette221447401744907340/1744906767_1658139_1350767910_dbbadac1de40815771b429574950fa56_rle_crop_3752049503_0.png.png imagette221447401744907340/1744907023_996318_1350769078_1da852478aa22d075a44ed5ea0ac7ac1_rle_crop_3752051891_0.png.png imagette221447401744907340/1744907261_1000436_1350769284_472d6ef5165b013c80d9fa931130a926_rle_crop_3752054778_0.png.png imagette221447401744907340/1744907261_1000436_1350769284_472d6ef5165b013c80d9fa931130a926_rle_crop_3752054785_0.png.png imagette221447401744907340/1744906767_1658139_1350767955_627c86a4af9c8741f9fd8f3fa21ba5d1_rle_crop_3752049489_0.png.png imagette221447401744907340/1744907261_1000436_1350769284_472d6ef5165b013c80d9fa931130a926_rle_crop_3752054788_0.png.png imagette221447401744907340/1744906767_1658139_1350767910_dbbadac1de40815771b429574950fa56_rle_crop_3752049508_0.png.png imagette221447401744907340/1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049463_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/76a6297be57076c10be31a52ba891c59_95709921.png imagette221447401744907340 22144750 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=22144750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350768732: '1744906753_3165281_1350768466_acee7a0eb9eac7c7a9b41e3aa604ba3e_rle_crop_3752049132_0.png', 1350768888: '1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049464_0.png', 1350769042: '1744906874_3166640_1350768678_a0cd53079ec2d7fac2ab2f053907534c_rle_crop_3752050782_0.png', 1350769043: '1744906874_3166640_1350768649_ca5847fef58342387a935f77cba2e501_rle_crop_3752050789_0.png', 1350769125: '1744906907_994453_1350768895_c9d7362fd02d8009925d8ecea95060a1_rle_crop_3752050990_0.png', 1350769212: '1744906991_3167748_1350769103_c99f2a1748d124b2bbe88ef1c78fdc65_rle_crop_3752051815_0.png', 1350769213: '1744906991_3167748_1350768967_4f0966a7cdd7a4927c2f35d4958d730b_rle_crop_3752051861_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/83d7c1892cbd56f44b56e6fe454eff5c_10999466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1d20ff0ad828c756a62785794053d6f9_1349242.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1b1cb5495b290223d6ac3542168e207c_50418055.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3cfb0c2bcc0b88e69c4e073b1ca03e6b_40871992.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2b75629ace36466b6f384e67a3951938_79692025.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b493deae9a19261adf2b5d6be5ac5083_10322624.png change filename to text .imagette221447501744907340/ imagette221447501744907340/1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049464_0.png.png imagette221447501744907340/1744906991_3167748_1350769103_c99f2a1748d124b2bbe88ef1c78fdc65_rle_crop_3752051815_0.png.png imagette221447501744907340/1744906874_3166640_1350768649_ca5847fef58342387a935f77cba2e501_rle_crop_3752050789_0.png.png imagette221447501744907340/1744906874_3166640_1350768678_a0cd53079ec2d7fac2ab2f053907534c_rle_crop_3752050782_0.png.png imagette221447501744907340/1744906907_994453_1350768895_c9d7362fd02d8009925d8ecea95060a1_rle_crop_3752050990_0.png.png imagette221447501744907340/1744906753_3165281_1350768466_acee7a0eb9eac7c7a9b41e3aa604ba3e_rle_crop_3752049132_0.png.png imagette221447501744907340/1744906991_3167748_1350768967_4f0966a7cdd7a4927c2f35d4958d730b_rle_crop_3752051861_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9cbe67433e498684366aba4e22e26b83_90715888.png imagette221447501744907340 22144751 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=22144751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350769037: '1744906874_3166640_1350768901_ed52555c2263ffd6fbbd3d724d9821d3_rle_crop_3752050778_0.png', 1350769444: '1744907261_1000436_1350769288_840d497cb9f3336268e29989ce5880d6_rle_crop_3752054769_0.png', 1350769443: '1744907261_1000436_1350769291_9299f7fae30aef60befd355288194ae9_rle_crop_3752054762_0.png', 1350769442: '1744907261_1000436_1350769291_9299f7fae30aef60befd355288194ae9_rle_crop_3752054760_0.png', 1350769441: '1744907261_1000436_1350769291_9299f7fae30aef60befd355288194ae9_rle_crop_3752054758_0.png', 1350769440: '1744907261_1000436_1350769293_39a850bfa538a9cf5e5460c0db3cf474_rle_crop_3752054751_0.png', 1350769123: '1744906907_994453_1350768898_736721f4000205abf07ed3be233bbe7d_rle_crop_3752050975_0.png', 1350769039: '1744906874_3166640_1350768649_ca5847fef58342387a935f77cba2e501_rle_crop_3752050790_0.png', 1350769038: '1744906874_3166640_1350768678_a0cd53079ec2d7fac2ab2f053907534c_rle_crop_3752050781_0.png', 1350768729: '1744906753_3165281_1350768466_acee7a0eb9eac7c7a9b41e3aa604ba3e_rle_crop_3752049134_0.png', 1350768880: '1744906767_1658139_1350767875_113c2ea77431046637e26e188af92f8f_rle_crop_3752049522_0.png', 1350768879: '1744906767_1658139_1350767955_627c86a4af9c8741f9fd8f3fa21ba5d1_rle_crop_3752049498_0.png', 1350768878: '1744906767_1658139_1350768005_9bf1ab32e28757f2375938a6745ecb5c_rle_crop_3752049484_0.png', 1350768877: '1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049467_0.png', 1350768874: '1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049470_0.png', 1350768731: '1744906753_3165281_1350768416_a8da9471bdc127d189540cb86f59d6e9_rle_crop_3752049148_0.png', 1350768730: '1744906753_3165281_1350768416_a8da9471bdc127d189540cb86f59d6e9_rle_crop_3752049150_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1db85de43918bc7aeebda630c23dbf3b_18513516.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/387bb27fb15faf3776aea77151103045_50365605.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6c54ec298ada9909395acbceb7d6b5b7_49216018.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c6e3b20b9e2cb59488f5f4fbdc074d30_47114784.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d5c5e35f6f3e2567cb3211361ffe5462_71002356.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2d7e16f3a438b071bad5356320df8e2c_15740860.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/488c720d859c3ce589d25ff463a5e404_18320390.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7ed76e46019d2d2a16418abbb773721a_22306429.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cf2cf1af80f87f3984a8d7dcf4f95394_1649809.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7611a1e61cb79f5569ce9eb0e9285f5b_72511985.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d390e0e68178eed1b43575979d66bfd7_70160035.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/839453689c8eaabed46c7891bb377c2c_38599590.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/02a4752c20d578f4ffcc80ed7235ab35_93929045.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c2d70eeb7d4376864fb4fdf0870f86e4_63181743.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7cf908add39a202efa45c86ea7d86643_3907175.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3bd12a48a4f66a82b274c18943b800bc_56682672.png change filename to text .imagette221447511744907341/ imagette221447511744907341/1744906874_3166640_1350768901_ed52555c2263ffd6fbbd3d724d9821d3_rle_crop_3752050778_0.png.png imagette221447511744907341/1744907261_1000436_1350769293_39a850bfa538a9cf5e5460c0db3cf474_rle_crop_3752054751_0.png.png imagette221447511744907341/1744906767_1658139_1350768005_9bf1ab32e28757f2375938a6745ecb5c_rle_crop_3752049484_0.png.png imagette221447511744907341/1744907261_1000436_1350769288_840d497cb9f3336268e29989ce5880d6_rle_crop_3752054769_0.png.png imagette221447511744907341/1744906874_3166640_1350768649_ca5847fef58342387a935f77cba2e501_rle_crop_3752050790_0.png.png imagette221447511744907341/1744906753_3165281_1350768466_acee7a0eb9eac7c7a9b41e3aa604ba3e_rle_crop_3752049134_0.png.png imagette221447511744907341/1744906753_3165281_1350768416_a8da9471bdc127d189540cb86f59d6e9_rle_crop_3752049148_0.png.png imagette221447511744907341/1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049470_0.png.png imagette221447511744907341/1744907261_1000436_1350769291_9299f7fae30aef60befd355288194ae9_rle_crop_3752054762_0.png.png imagette221447511744907341/1744906767_1658139_1350767955_627c86a4af9c8741f9fd8f3fa21ba5d1_rle_crop_3752049498_0.png.png imagette221447511744907341/1744906767_1658139_1350767875_113c2ea77431046637e26e188af92f8f_rle_crop_3752049522_0.png.png imagette221447511744907341/1744907261_1000436_1350769291_9299f7fae30aef60befd355288194ae9_rle_crop_3752054760_0.png.png imagette221447511744907341/1744906874_3166640_1350768678_a0cd53079ec2d7fac2ab2f053907534c_rle_crop_3752050781_0.png.png imagette221447511744907341/1744906907_994453_1350768898_736721f4000205abf07ed3be233bbe7d_rle_crop_3752050975_0.png.png imagette221447511744907341/1744907261_1000436_1350769291_9299f7fae30aef60befd355288194ae9_rle_crop_3752054758_0.png.png imagette221447511744907341/1744906767_1658139_1350768499_098c13fa3f809ae02e46745fab078035_rle_crop_3752049467_0.png.png imagette221447511744907341/1744906753_3165281_1350768416_a8da9471bdc127d189540cb86f59d6e9_rle_crop_3752049150_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/14a0958ee15ce2d1dc497b9d76977c13_55031959.png imagette221447511744907341 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22144739 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22144752,22144753,22144754,22144755,22144756,22144757,22144758,22144759,22144760,22144761,22144762,22144763?tags=Carton_gris,papier,flou,autre_refus,cartonnette,mal_croppe,kraft,metal,plastique,environnement,Carton_brun,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1350769456] : ('0.06424531284006019',) no score found for photo 1350769456 We are sending mail with results at report@fotonower.com args[1350769453] : ('0.06424531284006019',) no score found for photo 1350769453 We are sending mail with results at report@fotonower.com args[1350769451] : ('0.06424531284006019',) no score found for photo 1350769451 We are sending mail with results at report@fotonower.com args[1350769437] : ('0.06424531284006019',) no score found for photo 1350769437 We are sending mail with results at report@fotonower.com args[1350769400] : ('0.06424531284006019',) no score found for photo 1350769400 We are sending mail with results at report@fotonower.com args[1350769398] : ('0.06424531284006019',) no score found for photo 1350769398 We are sending mail with results at report@fotonower.com args[1350769395] : ('0.06424531284006019',) no score found for photo 1350769395 We are sending mail with results at report@fotonower.com args[1350769393] : ('0.06424531284006019',) no score found for photo 1350769393 We are sending mail with results at report@fotonower.com args[1350769391] : ('0.06424531284006019',) no score found for photo 1350769391 We are sending mail with results at report@fotonower.com args[1350769389] : ('0.06424531284006019',) no score found for photo 1350769389 We are sending mail with results at report@fotonower.com refus_total : 0.06424531284006019 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=22144739 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_P22144739_17-04-2025_18_28_59.pdf results_Auto_P22144739_17-04-2025_18_28_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_28_59.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','22144739','results_Auto_P22144739_17-04-2025_18_28_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_28_59.pdf','pdf','','0.25','0.06424531284006019') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22144739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] map_info['map_portfolio_photo'] : {22144739: [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389, 1350769349, 1350769347, 1350769297, 1350769293, 1350769291, 1350769288, 1350769284, 1350769244, 1350769240, 1350769236, 1350769232, 1350769228, 1350769225, 1350769184, 1350769182, 1350769179, 1350769176, 1350769170, 1350769103, 1350769078, 1350769053, 1350768997, 1350768994, 1350768991, 1350768987, 1350768967, 1350768901, 1350768898, 1350768895, 1350768893, 1350768704, 1350768678, 1350768649, 1350768499, 1350768466, 1350768416, 1350768058, 1350768005, 1350767955, 1350767910, 1350767875, 1350767543, 1350767539, 1350767529]} final : False mtd_id 4302 list_pids : [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] 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, '2731921') ('4302', '22144739', '1350769456', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769453', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769451', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769437', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769400', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769398', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769395', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769393', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769391', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769389', None, None, None, None, None, '2731921') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22144739', '1350769456', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769453', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769451', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769437', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769400', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769398', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769395', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769393', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769391', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769389', None, None, None, None, None, '2731921')] time used for this insertion : 0.017704486846923828 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.233493804931641 time spend to save output : 0.01801776885986328 total time spend for step 4 : 4.251511573791504 step5:split_time_score Thu Apr 17 18:29:03 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 : ['22144739'] 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 : [('22144739',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22144739) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350769456: {'path': 'temp/1744907338_1748978_1350769456_7e2489d3dfda5c5ea9b19768ac2a033b.jpg', 'extension': 'jpg'}, 1350769395: {'path': 'temp/1744907338_1748978_1350769395_174a3cd75c8cab7069a4a4bde73a6b04.jpg', 'extension': 'jpg'}, 1350769398: {'path': 'temp/1744907338_1748978_1350769398_ee391ea697ec63c4dc1e51ff0fe4d134.jpg', 'extension': 'jpg'}, 1350769400: {'path': 'temp/1744907338_1748978_1350769400_4e0ccca0afa68e4bdee96b6a92402c47.jpg', 'extension': 'jpg'}, 1350769437: {'path': 'temp/1744907338_1748978_1350769437_8f2d452ef381962fcd3820ae7db3914f.jpg', 'extension': 'jpg'}, 1350769451: {'path': 'temp/1744907338_1748978_1350769451_ebbd10b3e7c6c4b036283a478569f1ee.jpg', 'extension': 'jpg'}, 1350769453: {'path': 'temp/1744907338_1748978_1350769453_1334ad316cd5203bc670eea330891935.jpg', 'extension': 'jpg'}, 1350769389: {'path': 'temp/1744907338_1748978_1350769389_0f5e3e8cd1639eb5cc2d806b3e11116b.jpg', 'extension': 'jpg'}, 1350769391: {'path': 'temp/1744907338_1748978_1350769391_53f87e709036ae8abcf8cc5596a480c9.jpg', 'extension': 'jpg'}, 1350769393: {'path': 'temp/1744907338_1748978_1350769393_76e3298e3fa401b48f809eeadd590f59.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 = 22144739; (('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 = 22144739 group by h (('18', 54),) 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=22144739 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 (22144739) 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 (22144739) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17042025 22144739 Nombre de photos uploadées : 54 / 23040 (0%) 17042025 22144739 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 17042025 22144739 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1350767543, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0e2bd6b6edadb8877e90a964706136e8.jpg', 'username': None, 'uploaded_at': 1744906567, 'text': 'image_17042025_18_15_24_10134.jpg'}, {'photo_id': 1350767539, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8552dc9922488372c6482b738f46be52.jpg', 'username': None, 'uploaded_at': 1744906567, 'text': 'image_17042025_18_15_34_10145.jpg'}, {'photo_id': 1350767529, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/60f10df3d9ca4792432154d67de453c2.jpg', 'username': None, 'uploaded_at': 1744906567, 'text': 'image_17042025_18_15_43_9126.jpg'}, {'photo_id': 1350768058, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e7dca031e9ba8aae6187a9e54ea9954f.jpg', 'username': None, 'uploaded_at': 1744906632, 'text': 'image_17042025_18_15_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025818347930908203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22144739, '2025-04-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1721208,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026467084884643555 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= 1721208 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1721208, 'dashboard_run_id': 1731650, 'mtr_portfolio_id': 22144314, 'dashboard_result_id': 9942233, '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_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1731650, 'mtr_portfolio_id': 22144739, 'dashboard_result_id': 9942234, '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_P22144739_17-04-2025_18_27_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22144314 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': 2731869, 'mtr_portfolio_id': 22144314, 'created_at': datetime.datetime(2025, 4, 17, 18, 16, 59), 'result': '0.05901953950970541', 'result_long': None, 'result_double': None}] Qualite : 0.05901953950970541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22144314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144314_17-04-2025_18_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22144314 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_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, 'pht': 3726}}" where mtr_portfolio_id = 22144314 and dashboard_run_id = 1731650 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`=22144314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9942233, 0.05901953950970541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144314_17-04-2025_18_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144350, '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 = 22144739 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': 2731921, 'mtr_portfolio_id': 22144739, 'created_at': datetime.datetime(2025, 4, 17, 18, 28, 58), 'result': '0.06424531284006019', 'result_long': None, 'result_double': None}] Qualite : 0.06424531284006019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22144739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_28_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22144739 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_P22144739_17-04-2025_18_28_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, 'pht': 3726}}" where mtr_portfolio_id = 22144739 and dashboard_run_id = 1731650 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`=22144739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9942234, 0.06424531284006019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22144739_17-04-2025_18_28_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22144740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22144741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22144742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22144743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22144744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22144745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22144746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22144747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22144748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22144749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22144750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22144751, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22144314,22144739) result : ((1350762908,), (1350762937,), (1350762967,), (1350762994,), (1350763319,), (1350763346,), (1350763376,), (1350763429,), (1350763982,), (1350764029,), (1350764509,), (1350764537,), (1350764569,), (1350765199,), (1350765250,), (1350765304,), (1350765354,), (1350765408,), (1350765773,), (1350765776,), (1350765792,), (1350765818,), (1350765848,), (1350765855,), (1350765920,), (1350765925,), (1350765930,), (1350765934,), (1350765937,), (1350765989,), (1350766018,), (1350766048,), (1350766085,), (1350766112,), (1350766413,), (1350766445,), (1350766473,), (1350766509,), (1350766802,), (1350766827,), (1350766846,), (1350766851,), (1350766855,), (1350766881,), (1350766946,), (1350766951,), (1350766955,), (1350766960,), (1350766964,), (1350766995,), (1350766999,), (1350767002,), (1350767005,), (1350767085,), (1350767097,), (1350767104,), (1350767114,), (1350767123,), (1350767128,), (1350767214,), (1350767216,), (1350767218,), (1350767221,), (1350767547,), (1350767529,), (1350767539,), (1350767543,), (1350767875,), (1350767910,), (1350767955,), (1350768005,), (1350768058,), (1350768416,), (1350768466,), (1350768499,), (1350768649,), (1350768678,), (1350768704,), (1350768893,), (1350768895,), (1350768898,), (1350768901,), (1350768967,), (1350768987,), (1350768991,), (1350768994,), (1350768997,), (1350769053,), (1350769078,), (1350769103,), (1350769170,), (1350769176,), (1350769179,), (1350769182,), (1350769184,), (1350769225,), (1350769228,), (1350769232,), (1350769236,), (1350769240,), (1350769244,), (1350769284,), (1350769288,), (1350769291,), (1350769293,), (1350769297,), (1350769347,), (1350769349,), (1350769389,), (1350769391,), (1350769393,), (1350769395,), (1350769398,), (1350769400,), (1350769437,), (1350769451,), (1350769453,), (1350769456,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17042025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22144739]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] map_info['map_portfolio_photo'] : {22144739: [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389, 1350769349, 1350769347, 1350769297, 1350769293, 1350769291, 1350769288, 1350769284, 1350769244, 1350769240, 1350769236, 1350769232, 1350769228, 1350769225, 1350769184, 1350769182, 1350769179, 1350769176, 1350769170, 1350769103, 1350769078, 1350769053, 1350768997, 1350768994, 1350768991, 1350768987, 1350768967, 1350768901, 1350768898, 1350768895, 1350768893, 1350768704, 1350768678, 1350768649, 1350768499, 1350768466, 1350768416, 1350768058, 1350768005, 1350767955, 1350767910, 1350767875, 1350767543, 1350767539, 1350767529]} final : True mtd_id 4302 list_pids : [1350769456, 1350769453, 1350769451, 1350769437, 1350769400, 1350769398, 1350769395, 1350769393, 1350769391, 1350769389] Looping around the photos to save general results len do output : 1 /22144739Didn'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, '2731921') ('4302', '22144739', '1350769456', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769453', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769451', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769437', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769400', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769398', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769395', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769393', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769391', None, None, None, None, None, '2731921') ('4302', None, None, None, None, None, None, None, '2731921') ('4302', '22144739', '1350769389', None, None, None, None, None, '2731921') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22144739', 'None', None, None, None, None, '2731921'), ('4302', '22144739', '1350769456', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769453', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769451', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769437', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769400', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769398', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769395', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769393', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769391', None, None, None, None, None, '2731921'), ('4302', '22144739', '1350769389', None, None, None, None, None, '2731921')] time used for this insertion : 0.013103246688842773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.22745656967163086 time spend to save output : 0.013486862182617188 total time spend for step 5 : 0.24094343185424805 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 (2731921) 2.01user 2.37system 0:07.65elapsed 57%CPU (0avgtext+0avgdata 159952maxresident)k 15472inputs+13608outputs (166major+63945minor)pagefaults 0swaps