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 : 1904708 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 (2639041) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2639041) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073320 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2639041'] with mtr_portfolio_ids : ['21073320'] and first list_photo_ids : [] new path : /proc/1904708/ Name: python3 Umask: 0002 State: R (running) Tgid: 1904708 Ngid: 0 Pid: 1904708 PPid: 1904707 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1904708 NSpid: 1904708 NSpgid: 1901973 NSsid: 1901973 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98616 kB VmRSS: 98616 kB RssAnon: 59752 kB RssFile: 38864 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 66 nonvoluntary_ctxt_switches: 104 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1904708', 'Ngid': '0', 'Pid': '1904708', 'PPid': '1904707', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1904708', 'NSpid': '1904708', 'NSpgid': '1901973', 'NSsid': '1901973', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98616 kB', 'VmRSS': '98616 kB', 'RssAnon': '59752 kB', 'RssFile': '38864 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '66', 'nonvoluntary_ctxt_switches': '104'} ('datou_batch_current', '1904708', '1106844', '0', '1106844', '865592', '98616', b'', 'marlene', '2639041') 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 (21073320) 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 (2639041 ) ) 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 (21073320) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341049277, 'portfolio_id': 21073320}, {'photo_id': 1341049270, 'portfolio_id': 21073320}, {'photo_id': 1341049266, 'portfolio_id': 21073320}, {'photo_id': 1341049261, 'portfolio_id': 21073320}, {'photo_id': 1341049221, 'portfolio_id': 21073320}, {'photo_id': 1341049218, 'portfolio_id': 21073320}, {'photo_id': 1341049213, 'portfolio_id': 21073320}, {'photo_id': 1341049208, 'portfolio_id': 21073320}, {'photo_id': 1341049204, 'portfolio_id': 21073320}, {'photo_id': 1341049200, 'portfolio_id': 21073320}, {'photo_id': 1341049129, 'portfolio_id': 21073320}, {'photo_id': 1341049124, 'portfolio_id': 21073320}, {'photo_id': 1341049117, 'portfolio_id': 21073320}, {'photo_id': 1341049110, 'portfolio_id': 21073320}, {'photo_id': 1341049105, 'portfolio_id': 21073320}, {'photo_id': 1341049051, 'portfolio_id': 21073320}, {'photo_id': 1341049047, 'portfolio_id': 21073320}, {'photo_id': 1341049043, 'portfolio_id': 21073320}, {'photo_id': 1341049039, 'portfolio_id': 21073320}, {'photo_id': 1341049023, 'portfolio_id': 21073320}, {'photo_id': 1341048986, 'portfolio_id': 21073320}, {'photo_id': 1341048983, 'portfolio_id': 21073320}, {'photo_id': 1341048980, 'portfolio_id': 21073320}, {'photo_id': 1341048976, 'portfolio_id': 21073320}, {'photo_id': 1341048939, 'portfolio_id': 21073320}, {'photo_id': 1341048936, 'portfolio_id': 21073320}, {'photo_id': 1341048806, 'portfolio_id': 21073320}, {'photo_id': 1341048797, 'portfolio_id': 21073320}, {'photo_id': 1341048787, 'portfolio_id': 21073320}, {'photo_id': 1341048728, 'portfolio_id': 21073320}, {'photo_id': 1341048720, 'portfolio_id': 21073320}, {'photo_id': 1341048519, 'portfolio_id': 21073320}, {'photo_id': 1341048515, 'portfolio_id': 21073320}, {'photo_id': 1341048471, 'portfolio_id': 21073320}, {'photo_id': 1341048466, 'portfolio_id': 21073320}, {'photo_id': 1341048459, 'portfolio_id': 21073320}, {'photo_id': 1341048443, 'portfolio_id': 21073320}, {'photo_id': 1341048435, 'portfolio_id': 21073320}, {'photo_id': 1341048410, 'portfolio_id': 21073320}, {'photo_id': 1341048405, 'portfolio_id': 21073320}, {'photo_id': 1341048399, 'portfolio_id': 21073320}, {'photo_id': 1341048394, 'portfolio_id': 21073320}, {'photo_id': 1341048366, 'portfolio_id': 21073320}, {'photo_id': 1341048363, 'portfolio_id': 21073320}, {'photo_id': 1341048358, 'portfolio_id': 21073320}, {'photo_id': 1341048352, 'portfolio_id': 21073320}, {'photo_id': 1341048332, 'portfolio_id': 21073320}, {'photo_id': 1341048328, 'portfolio_id': 21073320}, {'photo_id': 1341048266, 'portfolio_id': 21073320}, {'photo_id': 1341048258, 'portfolio_id': 21073320}, {'photo_id': 1341048234, 'portfolio_id': 21073320}, {'photo_id': 1341048198, 'portfolio_id': 21073320}, {'photo_id': 1341047926, 'portfolio_id': 21073320}, {'photo_id': 1341047923, 'portfolio_id': 21073320}, {'photo_id': 1341047920, 'portfolio_id': 21073320}] map_portfolio_id_photo_id: {21073320: [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200, 1341049129, 1341049124, 1341049117, 1341049110, 1341049105, 1341049051, 1341049047, 1341049043, 1341049039, 1341049023, 1341048986, 1341048983, 1341048980, 1341048976, 1341048939, 1341048936, 1341048806, 1341048797, 1341048787, 1341048728, 1341048720, 1341048519, 1341048515, 1341048471, 1341048466, 1341048459, 1341048443, 1341048435, 1341048410, 1341048405, 1341048399, 1341048394, 1341048366, 1341048363, 1341048358, 1341048352, 1341048332, 1341048328, 1341048266, 1341048258, 1341048234, 1341048198, 1341047926, 1341047923, 1341047920]} ##### 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.01607346534729004 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 5 16:58:56 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 (21073320) 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 : 21073320 get user id for portfolio 21073320 get sub ptf for main ptf 21073320, type 3726 and hashtags ['plastique', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'kraft', 'mal_croppe', 'autre_refus', 'cartonnette', 'environnement', 'papier', 'metal', 'Carton_gris'] 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`=21073320 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','kraft','mal_croppe','autre_refus','cartonnette','environnement','papier','metal','Carton_gris')) 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`=21073320 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','kraft','mal_croppe','autre_refus','cartonnette','environnement','papier','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21073320, 'sub_port_id': 21073352, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683176, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'autre_refus': {'main_port_id': 21073320, 'sub_port_id': 21073354, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683177, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'environnement': {'main_port_id': 21073320, 'sub_port_id': 21073355, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683178, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'mal_croppe': {'main_port_id': 21073320, 'sub_port_id': 21073356, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683179, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'flou': {'main_port_id': 21073320, 'sub_port_id': 21073357, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683180, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'cartonnette': {'main_port_id': 21073320, 'sub_port_id': 21073358, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683181, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'plastique': {'main_port_id': 21073320, 'sub_port_id': 21073359, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683182, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'metal': {'main_port_id': 21073320, 'sub_port_id': 21073360, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683183, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'papier': {'main_port_id': 21073320, 'sub_port_id': 21073361, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683184, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'Carton_gris': {'main_port_id': 21073320, 'sub_port_id': 21073362, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683185, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'kraft': {'main_port_id': 21073320, 'sub_port_id': 21073363, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683186, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21073320, 'sub_port_id': 21073364, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683187, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21073352 , 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=21073320 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 (21073352) result : ((1341049015,), (1341049016,), (1341049098,), (1341049099,), (1341049143,), (1341049144,), (1341049145,), (1341049146,), (1341049166,), (1341049191,), (1341049192,), (1341049227,), (1341049228,), (1341049229,), (1341049310,), (1341049985,), (1341049987,), (1341049989,), (1341049991,), (1341049993,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073354 , 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=21073320 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 (21073354) result : ((1341048998,), (1341048999,), (1341049000,), (1341049091,), (1341049092,), (1341049093,), (1341049135,), (1341049136,), (1341049137,), (1341049155,), (1341049156,), (1341049157,), (1341049158,), (1341049159,), (1341049168,), (1341049169,), (1341049170,), (1341049176,), (1341049177,), (1341049223,), (1341049303,), (1341049313,), (1341049314,), (1341049315,), (1341049698,), (1341049700,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073355 , 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=21073320 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 (21073355) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073356 , 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=21073320 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 (21073356) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073357 , 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=21073320 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 (21073357) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073358 , 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=21073320 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 (21073358) result : ((1341049010,), (1341049012,), (1341049013,), (1341049014,), (1341049096,), (1341049162,), (1341049163,), (1341049164,), (1341049165,), (1341049181,), (1341049183,), (1341049184,), (1341049185,), (1341049186,), (1341049308,), (1341049885,), (1341049887,), (1341049889,), (1341049891,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073359 , 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=21073320 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 (21073359) result : ((1341049171,), (1341049172,), (1341049187,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073360 , 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=21073320 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 (21073360) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073361 , 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=21073320 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 (21073361) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073362 , 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=21073320 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 (21073362) result : ((1341049002,), (1341049095,), (1341049139,), (1341049160,), (1341049175,), (1341049178,), (1341049225,), (1341049226,), (1341049305,), (1341049306,), (1341049318,), (1341049319,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073363 , 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=21073320 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 (21073363) result : ((1341049102,), (1341049103,), (1341049147,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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 21073364 , 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=21073320 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 (21073364) result : ((1341048993,), (1341048994,), (1341049086,), (1341049087,), (1341049088,), (1341049089,), (1341049150,), (1341049151,), (1341049152,), (1341049153,), (1341049154,), (1341049300,), (1341049593,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21073320) result : ((1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) 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 (1341049200) 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`=21073320 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','kraft','mal_croppe','autre_refus','cartonnette','environnement','papier','metal','Carton_gris')) 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`=21073320 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','kraft','mal_croppe','autre_refus','cartonnette','environnement','papier','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21073320, 'sub_port_id': 21073365, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683188, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'autre_refus': {'main_port_id': 21073320, 'sub_port_id': 21073366, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683189, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'environnement': {'main_port_id': 21073320, 'sub_port_id': 21073367, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683190, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'mal_croppe': {'main_port_id': 21073320, 'sub_port_id': 21073368, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683191, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'flou': {'main_port_id': 21073320, 'sub_port_id': 21073369, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683192, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'cartonnette': {'main_port_id': 21073320, 'sub_port_id': 21073370, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683193, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'plastique': {'main_port_id': 21073320, 'sub_port_id': 21073371, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683194, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'metal': {'main_port_id': 21073320, 'sub_port_id': 21073372, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683195, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'papier': {'main_port_id': 21073320, 'sub_port_id': 21073373, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683196, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'Carton_gris': {'main_port_id': 21073320, 'sub_port_id': 21073374, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683197, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'kraft': {'main_port_id': 21073320, 'sub_port_id': 21073375, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683198, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21073320, 'sub_port_id': 21073376, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13683199, 'last_updated_at': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 16, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 16, 50, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073365,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073352 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073354 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073355 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073368,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073356 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073369,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073357 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073371,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073362 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073375,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073363 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21073376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21073364 lien utilise dans velours : https://www.fotonower.com/velours/21073365,21073366,21073367,21073368,21073369,21073370,21073371,21073372,21073373,21073374,21073375,21073376?tags=Carton_brun,autre_refus,environnement,mal_croppe,flou,cartonnette,plastique,metal,papier,Carton_gris,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21073320]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] map_info['map_portfolio_photo'] : {21073320: [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200, 1341049129, 1341049124, 1341049117, 1341049110, 1341049105, 1341049051, 1341049047, 1341049043, 1341049039, 1341049023, 1341048986, 1341048983, 1341048980, 1341048976, 1341048939, 1341048936, 1341048806, 1341048797, 1341048787, 1341048728, 1341048720, 1341048519, 1341048515, 1341048471, 1341048466, 1341048459, 1341048443, 1341048435, 1341048410, 1341048405, 1341048399, 1341048394, 1341048366, 1341048363, 1341048358, 1341048352, 1341048332, 1341048328, 1341048266, 1341048258, 1341048234, 1341048198, 1341047926, 1341047923, 1341047920]} final : False mtd_id 4302 list_pids : [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] Looping around the photos to save general results len do output : 1 /21073320. 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, '2639041') ('4302', '21073320', '1341049277', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049270', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049266', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049261', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049221', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049218', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049213', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049208', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049204', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049200', None, None, None, None, None, '2639041') 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, '21073320', "{'Carton_brun': 21073352, 'autre_refus': 21073354, 'environnement': 21073355, 'mal_croppe': 21073356, 'flou': 21073357, 'cartonnette': 21073358, 'plastique': 21073359, 'metal': 21073360, 'papier': 21073361, 'Carton_gris': 21073362, 'kraft': 21073363, 'Teint_Dans_La_Masse': 21073364}", None, None, None, None, '2639041'), ('4302', '21073320', '1341049277', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049270', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049266', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049261', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049221', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049218', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049213', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049208', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049204', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049200', None, None, None, None, None, '2639041')] time used for this insertion : 0.013596057891845703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.455059289932251 time spend to save output : 0.013982772827148438 total time spend for step 1 : 0.4690420627593994 step2:final Wed Mar 5 16:58:56 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 (21073320) 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 21073320 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341047926,1341047923,1341047920,1341048266,1341048258,1341048234,1341048198,1341048366,1341048363,1341048358,1341048352,1341048332,1341048328,1341048410,1341048405,1341048399,1341048394,1341048471,1341048466,1341048459,1341048443,1341048435,1341048519,1341048515,1341048806,1341048797,1341048787,1341048728,1341048720,1341048986,1341048983,1341048980,1341048976,1341048939,1341048936,1341049051,1341049047,1341049043,1341049039,1341049023,1341049129,1341049124,1341049117,1341049110,1341049105,1341049221,1341049218,1341049213,1341049208,1341049204,1341049200,1341049277,1341049270,1341049266,1341049261); 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([21073320]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} new output for save of step final : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] map_info['map_portfolio_photo'] : {21073320: [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200, 1341049129, 1341049124, 1341049117, 1341049110, 1341049105, 1341049051, 1341049047, 1341049043, 1341049039, 1341049023, 1341048986, 1341048983, 1341048980, 1341048976, 1341048939, 1341048936, 1341048806, 1341048797, 1341048787, 1341048728, 1341048720, 1341048519, 1341048515, 1341048471, 1341048466, 1341048459, 1341048443, 1341048435, 1341048410, 1341048405, 1341048399, 1341048394, 1341048366, 1341048363, 1341048358, 1341048352, 1341048332, 1341048328, 1341048266, 1341048258, 1341048234, 1341048198, 1341047926, 1341047923, 1341047920]} final : False mtd_id 4302 list_pids : [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] Looping around the photos to save general results len do output : 10 /1341049277.Didn't retrieve data . /1341049270.Didn't retrieve data . /1341049266.Didn't retrieve data . /1341049261.Didn't retrieve data . /1341049221.Didn't retrieve data . /1341049218.Didn't retrieve data . /1341049213.Didn't retrieve data . /1341049208.Didn't retrieve data . /1341049204.Didn't retrieve data . /1341049200.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, '2639041') ('4302', '21073320', '1341049277', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049270', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049266', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049261', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049221', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049218', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049213', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049208', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049204', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049200', None, None, None, None, None, '2639041') 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', '21073320', '1341049277', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049270', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049266', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049261', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049221', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049218', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049213', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049208', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049204', '0.07275737219914377', None, None, None, None, '2639041'), ('4302', '21073320', '1341049200', '0.07275737219914377', None, None, None, None, '2639041')] time used for this insertion : 0.013401031494140625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06594276428222656 time spend to save output : 0.014022111892700195 total time spend for step 2 : 0.07996487617492676 step3:velours_tree Wed Mar 5 16:58:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21073320: [{'Carton_brun': 21073352, 'autre_refus': 21073354, 'environnement': 21073355, 'mal_croppe': 21073356, 'flou': 21073357, 'cartonnette': 21073358, 'plastique': 21073359, 'metal': 21073360, 'papier': 21073361, 'Carton_gris': 21073362, 'kraft': 21073363, 'Teint_Dans_La_Masse': 21073364}]} input_args_next_step : {21073320: ()} output_args : {21073320: [{'Carton_brun': 21073352, 'autre_refus': 21073354, 'environnement': 21073355, 'mal_croppe': 21073356, 'flou': 21073357, 'cartonnette': 21073358, 'plastique': 21073359, 'metal': 21073360, 'papier': 21073361, 'Carton_gris': 21073362, 'kraft': 21073363, 'Teint_Dans_La_Masse': 21073364}]} args : 21073320 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_brun': 21073352, 'autre_refus': 21073354, 'environnement': 21073355, 'mal_croppe': 21073356, 'flou': 21073357, 'cartonnette': 21073358, 'plastique': 21073359, 'metal': 21073360, 'papier': 21073361, 'Carton_gris': 21073362, 'kraft': 21073363, 'Teint_Dans_La_Masse': 21073364},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21073320) 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([21073320]) 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.3052339553833008 time spend to save output : 6.628036499023438e-05 total time spend for step 3 : 0.305300235748291 step4:send_mail_cod Wed Mar 5 16:58:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} input_args_next_step : {1341049277: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049277 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049270 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049266 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049261 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049221 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049218 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049213 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049208 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049204 depend.output_id : 0 input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ()} output_args : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',)} args : 1341049200 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 : {21073320: [{'Carton_brun': 21073352, 'autre_refus': 21073354, 'environnement': 21073355, 'mal_croppe': 21073356, 'flou': 21073357, 'cartonnette': 21073358, 'plastique': 21073359, 'metal': 21073360, 'papier': 21073361, 'Carton_gris': 21073362, 'kraft': 21073363, 'Teint_Dans_La_Masse': 21073364}]} input_args_next_step : {1341049277: ('0.07275737219914377',), 1341049270: ('0.07275737219914377',), 1341049266: ('0.07275737219914377',), 1341049261: ('0.07275737219914377',), 1341049221: ('0.07275737219914377',), 1341049218: ('0.07275737219914377',), 1341049213: ('0.07275737219914377',), 1341049208: ('0.07275737219914377',), 1341049204: ('0.07275737219914377',), 1341049200: ('0.07275737219914377',), 21073320: ()} output_args : {21073320: [{'Carton_brun': 21073352, 'autre_refus': 21073354, 'environnement': 21073355, 'mal_croppe': 21073356, 'flou': 21073357, 'cartonnette': 21073358, 'plastique': 21073359, 'metal': 21073360, 'papier': 21073361, 'Carton_gris': 21073362, 'kraft': 21073363, 'Teint_Dans_La_Masse': 21073364}]} args : 21073320 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.07275737219914377',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21073320) 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 (1341049277,1341049270,1341049266,1341049261,1341049221,1341049218,1341049213,1341049208,1341049204,1341049200) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341049200 begin to download photo : 1341049213 begin to download photo : 1341049261 begin to download photo : 1341049277 download finish for photo 1341049200 begin to download photo : 1341049204 download finish for photo 1341049261 begin to download photo : 1341049266 download finish for photo 1341049277 download finish for photo 1341049213 begin to download photo : 1341049218 download finish for photo 1341049204 begin to download photo : 1341049208 download finish for photo 1341049266 begin to download photo : 1341049270 download finish for photo 1341049218 begin to download photo : 1341049221 download finish for photo 1341049221 download finish for photo 1341049270 download finish for photo 1341049208 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21073320_05-03-2025_16_58_57.pdf 21073354 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=21073354 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341049159: '1741190073_2942407_1341048332_28272c3b20277f9102262df29748e913_rle_crop_3694681285_0.png', 1341049700: '1741190192_2945000_1341048787_67b5d27bcf649b7b0aac6fc58935ae68_rle_crop_3694684912_0.png', 1341049698: '1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684622_0.png', 1341049315: '1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684707_0.png', 1341049314: '1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684701_0.png', 1341049313: '1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684709_0.png', 1341049303: '1741190173_2944142_1341048939_fe6cdd992ccb233b9e0ee759ea616402_rle_crop_3694684592_0.png', 1341049223: '1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681226_0.png', 1341049177: '1741190114_2943100_1341048198_ee597f96bc5cf9a877c025c6a7264129_rle_crop_3694681550_0.png', 1341049176: '1741190114_2943100_1341048366_f00a25d3e1b0b0f4decadd35d035161d_rle_crop_3694681331_0.png', 1341049170: '1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680228_0.png', 1341049169: '1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680215_0.png', 1341049168: '1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680203_0.png', 1341048998: '1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680203_0.png', 1341049158: '1741190073_2942407_1341048352_a1b8366b07ec53e433908517ec906beb_rle_crop_3694681263_0.png', 1341049157: '1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681249_0.png', 1341049156: '1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681246_0.png', 1341049155: '1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681208_0.png', 1341049137: '1741190055_2940977_1341048443_29d0e5efc0039aa129fa3bf0ebae54ee_rle_crop_3694681161_0.png', 1341049136: '1741190055_2940977_1341048459_bba76137e319653d34bf41a9ccb7df38_rle_crop_3694681063_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fdff4dcc3a7a629b089f44fd14ce414a_19101841.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ca963cb3953a62aa52d8705d887675de_44992942.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f2a90e19720aba81fdcfd2d8c063bf84_80807912.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/959da214ce61703343f2b7e92fc6a0a5_35421995.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/996463ad53e85d4f1877a3675b2007ae_10824275.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3a9276766f053b8f08a384c7dcb6e01e_79853478.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d0a2d0ed94ac0bff2dbd724927d39cda_7629630.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0fa61811c15c682b2517d7aa447d3474_90271849.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ce47cf82eb910fe9ec6c55e901c22c2b_69355218.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/84b94eeaf34aa9419fd3e371e31fbcf3_15002982.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8616bc9fcaf4347bf2e5a12ffaf95bf1_95555677.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/576853fb302df31266f7c7c5698c40e6_4868828.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c9476ccadf78981ba9c70f1ee80bba02_32637070.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c9476ccadf78981ba9c70f1ee80bba02_29526119.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/282e0b33322b65b48f18739757c601ee_46712153.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b399f54b435e9df63e9313e1a56ce0d5_24214450.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f3301535964631e9e03bb079ec89b18b_28171373.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1d830f3a6ee8b9694ddd34ed7fe4ca6c_71187218.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d000c0947c5d479a0cd089a7fc067195_59913427.png change filename to text .imagette210733541741190337/ imagette210733541741190337/1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684701_0.png.png imagette210733541741190337/1741190114_2943100_1341048366_f00a25d3e1b0b0f4decadd35d035161d_rle_crop_3694681331_0.png.png imagette210733541741190337/1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680215_0.png.png imagette210733541741190337/1741190055_2940977_1341048459_bba76137e319653d34bf41a9ccb7df38_rle_crop_3694681063_0.png.png imagette210733541741190337/1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680228_0.png.png imagette210733541741190337/1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681249_0.png.png imagette210733541741190337/1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681208_0.png.png imagette210733541741190337/1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684709_0.png.png imagette210733541741190337/1741190073_2942407_1341048352_a1b8366b07ec53e433908517ec906beb_rle_crop_3694681263_0.png.png imagette210733541741190337/1741190055_2940977_1341048443_29d0e5efc0039aa129fa3bf0ebae54ee_rle_crop_3694681161_0.png.png imagette210733541741190337/1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680203_0.png.png imagette210733541741190337/1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681246_0.png.png imagette210733541741190337/1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684707_0.png.png imagette210733541741190337/1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681226_0.png.png imagette210733541741190337/1741190192_2945000_1341048787_67b5d27bcf649b7b0aac6fc58935ae68_rle_crop_3694684912_0.png.png imagette210733541741190337/1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680203_0.png.png imagette210733541741190337/1741190173_2944142_1341048939_fe6cdd992ccb233b9e0ee759ea616402_rle_crop_3694684592_0.png.png imagette210733541741190337/1741190073_2942407_1341048332_28272c3b20277f9102262df29748e913_rle_crop_3694681285_0.png.png imagette210733541741190337/1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684622_0.png.png imagette210733541741190337/1741190114_2943100_1341048198_ee597f96bc5cf9a877c025c6a7264129_rle_crop_3694681550_0.png.png imagette210733561741190339/ imagette210733571741190339/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9b28945aee07a41c3cf48d745ea612c8_98506012.png imagette210733541741190337 21073356 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=21073356 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210733561741190339 21073357 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=21073357 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210733571741190339 21073358 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=21073358 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341049181: '1741190114_2943100_1341048198_ee597f96bc5cf9a877c025c6a7264129_rle_crop_3694681546_0.png', 1341049891: '1741190192_2945000_1341048720_356d469ed776e3edbd7f00c7bd17d9fa_rle_crop_3694684938_0.png', 1341049889: '1741190192_2945000_1341048728_3f81b4b269a1c6aa337ce3079a72e590_rle_crop_3694684926_0.png', 1341049887: '1741190192_2945000_1341048797_df68d9e33aea1641c4b4806d77c403fb_rle_crop_3694684900_0.png', 1341049885: '1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684617_0.png', 1341049308: '1741190173_2944142_1341048976_ccee9729fb3adcf9473fe4660b3c9959_rle_crop_3694684575_0.png', 1341049186: '1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680224_0.png', 1341049185: '1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680199_0.png', 1341049184: '1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680197_0.png', 1341049183: '1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680201_0.png', 1341049010: '1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680201_0.png', 1341049165: '1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681239_0.png', 1341049164: '1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681209_0.png', 1341049163: '1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681201_0.png', 1341049162: '1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681205_0.png', 1341049096: '1741190033_2940559_1341048266_ac8daea80bda379fe4a69af8caca51b4_rle_crop_3694680580_0.png', 1341049014: '1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680224_0.png', 1341049013: '1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680199_0.png', 1341049012: '1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680197_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/322a6edb204c9b941ecb25f5e55b2599_80218369.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/616258b05844a0dd68725a153bf157e0_8137172.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/99b464a4ab13971f7e3421f47e4d856c_17358853.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/48ee4899587b88acdbb84f9518e215a6_23301896.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0f74675bdf80b18cf8603965acaef4ec_31481291.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c46bf75023a9ddb6082a5bf8d326def3_50525990.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5596eb4d86f919c435e3a1d2b829e442_68559577.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8a0823879f603f85c97984244233bfb9_45145614.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e6c6323e1a98cadc5eb549b1fed39198_74329277.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/021f6810c4ae6a34e35d603aa3f6e0a2_11067872.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/021f6810c4ae6a34e35d603aa3f6e0a2_64947296.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9c80aa05d26a9769d74224e4b544c00c_67180048.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/29afd0355b3755b6ff68a503e05c30a1_8648569.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/73e5b888fc2aa10d8d2cff4af8d5a635_98126983.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3c0405bdc1ff530db0321e8e94cccad5_18971860.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f73675b68d23f21e57a8fe70abbf4723_67750078.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5596eb4d86f919c435e3a1d2b829e442_34380497.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8a0823879f603f85c97984244233bfb9_78215652.png change filename to text .imagette210733581741190339/ imagette210733581741190339/1741190114_2943100_1341048198_ee597f96bc5cf9a877c025c6a7264129_rle_crop_3694681546_0.png.png imagette210733581741190339/1741190173_2944142_1341048976_ccee9729fb3adcf9473fe4660b3c9959_rle_crop_3694684575_0.png.png imagette210733581741190339/1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680197_0.png.png imagette210733581741190339/1741190192_2945000_1341048720_356d469ed776e3edbd7f00c7bd17d9fa_rle_crop_3694684938_0.png.png imagette210733581741190339/1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681201_0.png.png imagette210733581741190339/1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684617_0.png.png imagette210733581741190339/1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680224_0.png.png imagette210733581741190339/1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680199_0.png.png imagette210733581741190339/1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681239_0.png.png imagette210733581741190339/1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680224_0.png.png imagette210733581741190339/1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680201_0.png.png imagette210733581741190339/1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680197_0.png.png imagette210733581741190339/1741190033_2940559_1341048266_ac8daea80bda379fe4a69af8caca51b4_rle_crop_3694680580_0.png.png imagette210733581741190339/1741190192_2945000_1341048797_df68d9e33aea1641c4b4806d77c403fb_rle_crop_3694684900_0.png.png imagette210733581741190339/1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680199_0.png.png imagette210733581741190339/1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681205_0.png.png imagette210733581741190339/1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680201_0.png.png imagette210733581741190339/1741190073_2942407_1341048363_0ae917647e60a31f3f9e77f621825b5b_rle_crop_3694681209_0.png.png imagette210733581741190339/1741190192_2945000_1341048728_3f81b4b269a1c6aa337ce3079a72e590_rle_crop_3694684926_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e6c6323e1a98cadc5eb549b1fed39198_66834861.png imagette210733581741190339 21073359 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=21073359 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341049171: '1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681248_0.png', 1341049172: '1741190073_2942407_1341048328_2b19d0ff11ddcf6e26d76a39f4bdab6f_rle_crop_3694681316_0.png', 1341049187: '1741190114_2943100_1341048198_ee597f96bc5cf9a877c025c6a7264129_rle_crop_3694681551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ac0cfde74b62b30073e8d3d8530d6624_24889822.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/71c261540d57fc08500b98063bedd904_71019949.png change filename to text .imagette210733591741190340/ imagette210733591741190340/1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681248_0.png.png imagette210733591741190340/1741190114_2943100_1341048198_ee597f96bc5cf9a877c025c6a7264129_rle_crop_3694681551_0.png.png imagette210733591741190340/1741190073_2942407_1341048328_2b19d0ff11ddcf6e26d76a39f4bdab6f_rle_crop_3694681316_0.png.png imagette210733601741190340/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5e12194f252ab39285b389001a644f70_48544969.png imagette210733591741190340 21073360 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=21073360 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210733601741190340 21073363 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=21073363 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341049102: '1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680598_0.png', 1341049103: '1741190033_2940559_1341047923_dd05db52b89a299130c5efe86fcbdbb0_rle_crop_3694680617_0.png', 1341049147: '1741190055_2940977_1341048519_8c00840a103dd3a39206ca43bd5875aa_rle_crop_3694681035_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c23aed15554b61ac74c3595a1978c8c9_29730008.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9a1756d1b3d14bf8a67a6a53addc4e5a_24891778.png change filename to text .imagette210733631741190340/ imagette210733631741190340/1741190033_2940559_1341047923_dd05db52b89a299130c5efe86fcbdbb0_rle_crop_3694680617_0.png.png imagette210733631741190340/1741190055_2940977_1341048519_8c00840a103dd3a39206ca43bd5875aa_rle_crop_3694681035_0.png.png imagette210733631741190340/1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680598_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fad60848c60c77ad1efc5ba1496a594c_13607584.png imagette210733631741190340 21073352 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=21073352 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341049192: '1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680219_0.png', 1341049993: '1741190192_2945000_1341048728_3f81b4b269a1c6aa337ce3079a72e590_rle_crop_3694684925_0.png', 1341049991: '1741190192_2945000_1341048787_67b5d27bcf649b7b0aac6fc58935ae68_rle_crop_3694684914_0.png', 1341049989: '1741190192_2945000_1341048797_df68d9e33aea1641c4b4806d77c403fb_rle_crop_3694684902_0.png', 1341049987: '1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684619_0.png', 1341049985: '1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684621_0.png', 1341049310: '1741190173_2944142_1341048983_5de8fafa36a6e820ebf3af44f303266a_rle_crop_3694684497_0.png', 1341049229: '1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681222_0.png', 1341049228: '1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681227_0.png', 1341049227: '1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681221_0.png', 1341049015: '1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680222_0.png', 1341049191: '1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680222_0.png', 1341049166: '1741190073_2942407_1341048332_28272c3b20277f9102262df29748e913_rle_crop_3694681287_0.png', 1341049146: '1741190055_2940977_1341048435_8fd96de17dfde667fb362a1f09b8ce3c_rle_crop_3694681186_0.png', 1341049145: '1741190055_2940977_1341048443_29d0e5efc0039aa129fa3bf0ebae54ee_rle_crop_3694681162_0.png', 1341049144: '1741190055_2940977_1341048466_033c412bb081aed18a51eecf8ed182e8_rle_crop_3694681046_0.png', 1341049143: '1741190055_2940977_1341048519_8c00840a103dd3a39206ca43bd5875aa_rle_crop_3694681032_0.png', 1341049099: '1741190033_2940559_1341047920_73c67bc23b56f281f1913a1afa2a72d2_rle_crop_3694680629_0.png', 1341049098: '1741190033_2940559_1341047920_73c67bc23b56f281f1913a1afa2a72d2_rle_crop_3694680633_0.png', 1341049016: '1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680219_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/af9eaca20e4f41c0ff098e0f1aa3962e_30394621.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/73562a2836a9bace3c9de456271c61db_36655290.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/949bde5ae20f6003ecc7eb20c44b5574_78395347.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9987c3b2b1fa14a9d5349b68886d992c_70109981.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/47420d655b4c2a7e7943571a6277f555_67883922.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/cae42c8123aaf19418327771b557d6de_54159545.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/474dfa242a6dad2ef7e7739a1c0d3ba2_2583411.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7d24bcf74027e8d3636cdb3e2b563cc6_9248760.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/acd1bd7549af189fe70807f98efe8ccc_74332209.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/55ae5d7a3d66965f75e00f5cce397ce4_58191330.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/064804f3db1edd3ec67265f18c5f18b3_20247644.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/064804f3db1edd3ec67265f18c5f18b3_73517831.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6a5a2a880724edccd4538a5e1c84063a_13367666.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d8c024f7d1008211893606dd33c2ea9f_87901500.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f3778bb72ecba7011ea75662fcc3cd28_79858142.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/dc3a88d6bd6a0f9f19d0d3b1af61d298_97382332.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e167086ab7ac65169ce25ad8f2072817_87283590.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/374103dd5b1f39a598e9a46fe61423fd_17138080.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8195953678fb40db01ff50f164552f9a_45505869.png change filename to text .imagette210733521741190340/ imagette210733521741190340/1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681221_0.png.png imagette210733521741190340/1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681227_0.png.png imagette210733521741190340/1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680219_0.png.png imagette210733521741190340/1741190055_2940977_1341048519_8c00840a103dd3a39206ca43bd5875aa_rle_crop_3694681032_0.png.png imagette210733521741190340/1741190033_2940559_1341047920_73c67bc23b56f281f1913a1afa2a72d2_rle_crop_3694680629_0.png.png imagette210733521741190340/1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684619_0.png.png imagette210733521741190340/1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680222_0.png.png imagette210733521741190340/1741190173_2944142_1341048983_5de8fafa36a6e820ebf3af44f303266a_rle_crop_3694684497_0.png.png imagette210733521741190340/1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680222_0.png.png imagette210733521741190340/1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681222_0.png.png imagette210733521741190340/1741190033_2940559_1341047920_73c67bc23b56f281f1913a1afa2a72d2_rle_crop_3694680633_0.png.png imagette210733521741190340/1741190055_2940977_1341048466_033c412bb081aed18a51eecf8ed182e8_rle_crop_3694681046_0.png.png imagette210733521741190340/1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680219_0.png.png imagette210733521741190340/1741190192_2945000_1341048797_df68d9e33aea1641c4b4806d77c403fb_rle_crop_3694684902_0.png.png imagette210733521741190340/1741190192_2945000_1341048728_3f81b4b269a1c6aa337ce3079a72e590_rle_crop_3694684925_0.png.png imagette210733521741190340/1741190055_2940977_1341048443_29d0e5efc0039aa129fa3bf0ebae54ee_rle_crop_3694681162_0.png.png imagette210733521741190340/1741190192_2945000_1341048986_00e35c037411b0d044ad91e5c4dd32bc_rle_crop_3694684621_0.png.png imagette210733521741190340/1741190055_2940977_1341048435_8fd96de17dfde667fb362a1f09b8ce3c_rle_crop_3694681186_0.png.png imagette210733521741190340/1741190073_2942407_1341048332_28272c3b20277f9102262df29748e913_rle_crop_3694681287_0.png.png imagette210733521741190340/1741190192_2945000_1341048787_67b5d27bcf649b7b0aac6fc58935ae68_rle_crop_3694684914_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/af9eaca20e4f41c0ff098e0f1aa3962e_58308608.png imagette210733521741190340 21073362 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=21073362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341049002: '1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680218_0.png', 1341049095: '1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680595_0.png', 1341049139: '1741190055_2940977_1341048519_8c00840a103dd3a39206ca43bd5875aa_rle_crop_3694681034_0.png', 1341049160: '1741190073_2942407_1341048352_a1b8366b07ec53e433908517ec906beb_rle_crop_3694681257_0.png', 1341049175: '1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680218_0.png', 1341049178: '1741190114_2943100_1341048366_f00a25d3e1b0b0f4decadd35d035161d_rle_crop_3694681330_0.png', 1341049225: '1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681219_0.png', 1341049226: '1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681225_0.png', 1341049305: '1741190173_2944142_1341048976_ccee9729fb3adcf9473fe4660b3c9959_rle_crop_3694684574_0.png', 1341049306: '1741190173_2944142_1341048976_ccee9729fb3adcf9473fe4660b3c9959_rle_crop_3694684579_0.png', 1341049318: '1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684704_0.png', 1341049319: '1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684706_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7870a9461870f90f30f667bbfa3bebe5_53910268.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/74e9509e5822165489ded0d38fcd9b58_96956610.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fdc1a56ec3af18f0be6f025a083adc90_59609669.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/eedc6836bb5849f5e9f9580b7e6d5a07_58667938.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7870a9461870f90f30f667bbfa3bebe5_61576901.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4530029347a2c50692da2bead60b601a_30612033.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ae554919214de422a983aee27bebb140_54000850.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d53681104738b8d5b457be0ea0a247d9_46653427.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/22215e7d2fd918c0ab0beb0744c287cc_88827830.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f9bb535a92887dbdb9e41e39b09b22cb_52803362.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3fe104ae4c552242d9693036bf2f26ec_46100225.png change filename to text .imagette210733621741190341/ imagette210733621741190341/1741190114_2943100_1341048366_f00a25d3e1b0b0f4decadd35d035161d_rle_crop_3694681330_0.png.png imagette210733621741190341/1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680218_0.png.png imagette210733621741190341/1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684706_0.png.png imagette210733621741190341/1741190212_2945333_1341048515_6905585b99745431690c6559368dd7ad_rle_crop_3694684704_0.png.png imagette210733621741190341/1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680595_0.png.png imagette210733621741190341/1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681225_0.png.png imagette210733621741190341/1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680218_0.png.png imagette210733621741190341/1741190173_2944142_1341048976_ccee9729fb3adcf9473fe4660b3c9959_rle_crop_3694684574_0.png.png imagette210733621741190341/1741190055_2940977_1341048519_8c00840a103dd3a39206ca43bd5875aa_rle_crop_3694681034_0.png.png imagette210733621741190341/1741190073_2942407_1341048352_a1b8366b07ec53e433908517ec906beb_rle_crop_3694681257_0.png.png imagette210733621741190341/1741190173_2944142_1341048976_ccee9729fb3adcf9473fe4660b3c9959_rle_crop_3694684579_0.png.png imagette210733621741190341/1741190151_2943805_1341048471_6c9daaf1f306e9a27358ec0cb44611c9_rle_crop_3694681219_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/44e7ca1a5788cc4934771a735837cae2_54704455.png imagette210733621741190341 21073364 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=21073364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341048993: '1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680202_0.png', 1341048994: '1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680226_0.png', 1341049086: '1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680600_0.png', 1341049087: '1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680601_0.png', 1341049088: '1741190033_2940559_1341047923_dd05db52b89a299130c5efe86fcbdbb0_rle_crop_3694680618_0.png', 1341049089: '1741190033_2940559_1341047923_dd05db52b89a299130c5efe86fcbdbb0_rle_crop_3694680614_0.png', 1341049150: '1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681250_0.png', 1341049151: '1741190073_2942407_1341048352_a1b8366b07ec53e433908517ec906beb_rle_crop_3694681262_0.png', 1341049152: '1741190073_2942407_1341048328_2b19d0ff11ddcf6e26d76a39f4bdab6f_rle_crop_3694681310_0.png', 1341049153: '1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680202_0.png', 1341049154: '1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680226_0.png', 1341049300: '1741190173_2944142_1341048936_86ebf4732e826b5cd030fd1a49a2052f_rle_crop_3694684606_0.png', 1341049593: '1741190192_2945000_1341048787_67b5d27bcf649b7b0aac6fc58935ae68_rle_crop_3694684913_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3138d3f773fe159157f6a93660d6825d_58077435.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3e0b8a5ae1f62925c7921d1fe0dcb85e_12464358.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/78d8a0af1638f6dd1d1172b924b6b157_22477202.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/042d4b92ea1f808d0df9d8c72f6e073d_62570752.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4dd59a9cfd4d8ae279c81c9fd31123d5_48994718.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/887cba02dec7c99410c3d17b64ecb015_41479796.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3b363beb32babf9413b8c30395b48d72_27752302.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5d8619f1a9b88a36d3d948a4c33d13db_86986619.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a9b019f0dae026d33c9287d0c2b90ef9_81175496.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3138d3f773fe159157f6a93660d6825d_82817979.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3e0b8a5ae1f62925c7921d1fe0dcb85e_784311.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/aa755845895c9000900282f60def39ae_95065415.png change filename to text .imagette210733641741190342/ imagette210733641741190342/1741190192_2945000_1341048787_67b5d27bcf649b7b0aac6fc58935ae68_rle_crop_3694684913_0.png.png imagette210733641741190342/1741190073_2942407_1341048328_2b19d0ff11ddcf6e26d76a39f4bdab6f_rle_crop_3694681310_0.png.png imagette210733641741190342/1741190073_2942407_1341048352_a1b8366b07ec53e433908517ec906beb_rle_crop_3694681262_0.png.png imagette210733641741190342/1741190092_2942720_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680202_0.png.png imagette210733641741190342/1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680601_0.png.png imagette210733641741190342/1741190073_2942407_1341048358_a5b78728089a6e2a518969f025d537f7_rle_crop_3694681250_0.png.png imagette210733641741190342/1741190033_2940559_1341047923_dd05db52b89a299130c5efe86fcbdbb0_rle_crop_3694680618_0.png.png imagette210733641741190342/1741190033_2940559_1341047926_6a5b81b1f4be3efaf13c76e2569ad62d_rle_crop_3694680600_0.png.png imagette210733641741190342/1741189994_2940113_1341048399_e82ff7cc3445a2297c20dbdf5e9458d1_rle_crop_3694680202_0.png.png imagette210733641741190342/1741190092_2942720_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680226_0.png.png imagette210733641741190342/1741190033_2940559_1341047923_dd05db52b89a299130c5efe86fcbdbb0_rle_crop_3694680614_0.png.png imagette210733641741190342/1741189994_2940113_1341048394_0228e5f0d926c681b03f5b7a623c36dc_rle_crop_3694680226_0.png.png imagette210733641741190342/1741190173_2944142_1341048936_86ebf4732e826b5cd030fd1a49a2052f_rle_crop_3694684606_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ef2fd33df294f80abbc58507684f1900_91963997.png imagette210733641741190342 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21073320 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21073365,21073366,21073367,21073368,21073369,21073370,21073371,21073372,21073373,21073374,21073375,21073376?tags=Carton_brun,autre_refus,environnement,mal_croppe,flou,cartonnette,plastique,metal,papier,Carton_gris,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1341049277] : ('0.07275737219914377',) no score found for photo 1341049277 We are sending mail with results at report@fotonower.com args[1341049270] : ('0.07275737219914377',) no score found for photo 1341049270 We are sending mail with results at report@fotonower.com args[1341049266] : ('0.07275737219914377',) no score found for photo 1341049266 We are sending mail with results at report@fotonower.com args[1341049261] : ('0.07275737219914377',) no score found for photo 1341049261 We are sending mail with results at report@fotonower.com args[1341049221] : ('0.07275737219914377',) no score found for photo 1341049221 We are sending mail with results at report@fotonower.com args[1341049218] : ('0.07275737219914377',) no score found for photo 1341049218 We are sending mail with results at report@fotonower.com args[1341049213] : ('0.07275737219914377',) no score found for photo 1341049213 We are sending mail with results at report@fotonower.com args[1341049208] : ('0.07275737219914377',) no score found for photo 1341049208 We are sending mail with results at report@fotonower.com args[1341049204] : ('0.07275737219914377',) no score found for photo 1341049204 We are sending mail with results at report@fotonower.com args[1341049200] : ('0.07275737219914377',) no score found for photo 1341049200 We are sending mail with results at report@fotonower.com refus_total : 0.07275737219914377 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=21073320 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_P21073320_05-03-2025_16_58_57.pdf results_Auto_P21073320_05-03-2025_16_58_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21073320_05-03-2025_16_58_57.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','21073320','results_Auto_P21073320_05-03-2025_16_58_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21073320_05-03-2025_16_58_57.pdf','pdf','','0.33','0.07275737219914377') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21073320]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] map_info['map_portfolio_photo'] : {21073320: [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200, 1341049129, 1341049124, 1341049117, 1341049110, 1341049105, 1341049051, 1341049047, 1341049043, 1341049039, 1341049023, 1341048986, 1341048983, 1341048980, 1341048976, 1341048939, 1341048936, 1341048806, 1341048797, 1341048787, 1341048728, 1341048720, 1341048519, 1341048515, 1341048471, 1341048466, 1341048459, 1341048443, 1341048435, 1341048410, 1341048405, 1341048399, 1341048394, 1341048366, 1341048363, 1341048358, 1341048352, 1341048332, 1341048328, 1341048266, 1341048258, 1341048234, 1341048198, 1341047926, 1341047923, 1341047920]} final : False mtd_id 4302 list_pids : [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] 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, '2639041') ('4302', '21073320', '1341049277', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049270', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049266', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049261', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049221', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049218', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049213', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049208', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049204', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049200', None, None, None, None, None, '2639041') 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', '21073320', '1341049277', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049270', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049266', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049261', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049221', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049218', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049213', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049208', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049204', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049200', None, None, None, None, None, '2639041')] time used for this insertion : 0.01312398910522461 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.070013999938965 time spend to save output : 0.013447761535644531 total time spend for step 4 : 7.083461761474609 step5:split_time_score Wed Mar 5 16:59:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21073320'] 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 : [('21073320',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21073320) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341049277: {'path': 'temp/1741190337_1904708_1341049277_a6eae98aa214bd2520054698319b9879.jpg', 'extension': 'jpg'}, 1341049213: {'path': 'temp/1741190337_1904708_1341049213_00f3f131ae6d310d1d14f7f25ebbdf6e.jpg', 'extension': 'jpg'}, 1341049218: {'path': 'temp/1741190337_1904708_1341049218_4e85223eec9bd893e4afd192a36558e5.jpg', 'extension': 'jpg'}, 1341049221: {'path': 'temp/1741190337_1904708_1341049221_3e330c1aeb762ebf72dd9ac49410744a.jpg', 'extension': 'jpg'}, 1341049261: {'path': 'temp/1741190337_1904708_1341049261_26965f86d5a89e8e57629767168cd006.jpg', 'extension': 'jpg'}, 1341049266: {'path': 'temp/1741190337_1904708_1341049266_fff384401876dc1e1c8d4a7c0a0c26cf.jpg', 'extension': 'jpg'}, 1341049270: {'path': 'temp/1741190337_1904708_1341049270_8f35e1a05fd122b93bc921fb721d9f67.jpg', 'extension': 'jpg'}, 1341049200: {'path': 'temp/1741190337_1904708_1341049200_3562e4f9ceeea36c16db087d585f5168.jpg', 'extension': 'jpg'}, 1341049204: {'path': 'temp/1741190337_1904708_1341049204_e49f53e45e417ddc96c7f58077417175.jpg', 'extension': 'jpg'}, 1341049208: {'path': 'temp/1741190337_1904708_1341049208_fc44732c228485a0388b1c8630a1a5af.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 = 21073320; (('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 = 21073320 group by h (('16', 55),) 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=21073320 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 (21073320) 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 (21073320) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05032025 21073320 Nombre de photos uploadées : 55 / 23040 (0%) 05032025 21073320 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 05032025 21073320 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1341047926, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6a5b81b1f4be3efaf13c76e2569ad62d.jpg', 'username': None, 'uploaded_at': 1741189584, 'text': 'image_05032025_16_45_14_10137.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341047923, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/dd05db52b89a299130c5efe86fcbdbb0.jpg', 'username': None, 'uploaded_at': 1741189584, 'text': 'image_05032025_16_45_35_10137.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1341047920, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/73c67bc23b56f281f1913a1afa2a72d2.jpg', 'username': None, 'uploaded_at': 1741189584, 'text': 'image_05032025_16_45_45_10135.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341048266, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ac8daea80bda379fe4a69af8caca51b4.jpg', 'username': None, 'uploaded_at': 1741189644, 'text': 'image_05032025_16_45_55_10133.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.1444091796875e-05 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027551651000976562 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21073320, '2025-03-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1639483,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02533698081970215 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1639483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649515, 'mtr_portfolio_id': 21071260, 'dashboard_result_id': 9238872, '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_P21071260_05-03-2025_16_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21071329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21071330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21071332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21071333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21071334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21071335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21071336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21071337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21071338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21071339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21071340, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649515, 'mtr_portfolio_id': 21072038, 'dashboard_result_id': 9238873, '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_P21072038_05-03-2025_16_33_10.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21072052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21072053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21072054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21072055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21072056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21072057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21072058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21072059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21072060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21072061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21072062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21072063, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649515, 'mtr_portfolio_id': 21072747, 'dashboard_result_id': 9238874, '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_P21072747_05-03-2025_16_48_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21072776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21072777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21072778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21072779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21072780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21072781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21072782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21072783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21072784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21072785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21072786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21072787, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1649515, 'mtr_portfolio_id': 21073320, 'dashboard_result_id': 9238875, '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_P21073320_05-03-2025_16_57_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21073352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21073354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21073355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21073356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21073357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21073358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21073359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21073360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21073361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21073362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21073363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21073364, '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 = 21071260 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': 2638701, 'mtr_portfolio_id': 21071260, 'created_at': datetime.datetime(2025, 3, 5, 16, 19, 1), 'result': '0.06036125755876414', 'result_long': None, 'result_double': None}] Qualite : 0.06036125755876414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21071260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21071260_05-03-2025_16_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21071260 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_P21071260_05-03-2025_16_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21071329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21071330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21071332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21071333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21071334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21071335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21071336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21071337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21071338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21071339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21071340, 'pht': 3726}}" where mtr_portfolio_id = 21071260 and dashboard_run_id = 1649515 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`=21071260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9238872, 0.06036125755876414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21071260_05-03-2025_16_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21071329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21071330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21071332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21071333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21071334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21071335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21071336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21071337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21071338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21071339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21071340, '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 = 21072038 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': 2638758, 'mtr_portfolio_id': 21072038, 'created_at': datetime.datetime(2025, 3, 5, 16, 33, 6), 'result': '0.07141917987258611', 'result_long': None, 'result_double': None}] Qualite : 0.07141917987258611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21072038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21072038_05-03-2025_16_33_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21072038 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_P21072038_05-03-2025_16_33_10.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21072052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21072053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21072054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21072055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21072056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21072057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21072058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21072059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21072060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21072061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21072062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21072063, 'pht': 3726}}" where mtr_portfolio_id = 21072038 and dashboard_run_id = 1649515 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`=21072038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9238873, 0.07141917987258611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21072038_05-03-2025_16_33_10.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21072052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21072053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21072054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21072055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21072056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21072057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21072058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21072059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21072060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21072061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21072062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21072063, '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 = 21072747 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': 2638887, 'mtr_portfolio_id': 21072747, 'created_at': datetime.datetime(2025, 3, 5, 16, 48, 29), 'result': '0.07377901151868069', 'result_long': None, 'result_double': None}] Qualite : 0.07377901151868069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21072747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21072747_05-03-2025_16_48_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21072747 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_P21072747_05-03-2025_16_48_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21072776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21072777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21072778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21072779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21072780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21072781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21072782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21072783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21072784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21072785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21072786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21072787, 'pht': 3726}}" where mtr_portfolio_id = 21072747 and dashboard_run_id = 1649515 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`=21072747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9238874, 0.07377901151868069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21072747_05-03-2025_16_48_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21072776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21072777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21072778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21072779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21072780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21072781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21072782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21072783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21072784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21072785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21072786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21072787, '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 = 21073320 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': 2639041, 'mtr_portfolio_id': 21073320, 'created_at': datetime.datetime(2025, 3, 5, 16, 58, 57), 'result': '0.07275737219914377', 'result_long': None, 'result_double': None}] Qualite : 0.07275737219914377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21073320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21073320_05-03-2025_16_58_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21073320 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_P21073320_05-03-2025_16_58_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21073352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21073354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21073355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21073356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21073357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21073358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21073359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21073360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21073361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21073362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21073363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21073364, 'pht': 3726}}" where mtr_portfolio_id = 21073320 and dashboard_run_id = 1649515 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`=21073320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9238875, 0.07275737219914377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21073320_05-03-2025_16_58_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21073352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21073354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21073355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21073356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21073357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21073358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21073359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21073360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21073361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21073362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21073363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21073364, '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 (21071260,21072038,21072747,21073320) result : ((1341040485,), (1341040534,), (1341040547,), (1341040553,), (1341040568,), (1341040905,), (1341040910,), (1341040916,), (1341040991,), (1341041078,), (1341041171,), (1341041210,), (1341041218,), (1341041223,), (1341041282,), (1341041294,), (1341041375,), (1341041845,), (1341041860,), (1341041953,), (1341042034,), (1341042123,), (1341042131,), (1341042133,), (1341042138,), (1341042166,), (1341042174,), (1341042190,), (1341042193,), (1341042245,), (1341042251,), (1341042301,), (1341042305,), (1341042348,), (1341042352,), (1341042362,), (1341042633,), (1341042648,), (1341042664,), (1341042669,), (1341042892,), (1341042902,), (1341042905,), (1341042925,), (1341042934,), (1341042979,), (1341042981,), (1341042985,), (1341042990,), (1341043040,), (1341043053,), (1341043057,), (1341043063,), (1341043066,), (1341043097,), (1341043101,), (1341043104,), (1341043111,), (1341043115,), (1341043163,), (1341043144,), (1341043147,), (1341043151,), (1341043154,), (1341043330,), (1341043358,), (1341043362,), (1341043367,), (1341043638,), (1341043642,), (1341043647,), (1341043652,), (1341043657,), (1341043660,), (1341043977,), (1341043983,), (1341043990,), (1341043996,), (1341044154,), (1341044158,), (1341044162,), (1341044166,), (1341044170,), (1341044207,), (1341044229,), (1341044259,), (1341044263,), (1341044268,), (1341044466,), (1341044469,), (1341044475,), (1341044480,), (1341044505,), (1341044508,), (1341044519,), (1341044523,), (1341044528,), (1341044533,), (1341044553,), (1341044558,), (1341044559,), (1341044562,), (1341044567,), (1341044612,), (1341044616,), (1341044619,), (1341044623,), (1341044663,), (1341044669,), (1341044674,), (1341044695,), (1341044698,), (1341044703,), (1341044878,), (1341044881,), (1341044884,), (1341044889,), (1341044976,), (1341045207,), (1341045241,), (1341045246,), (1341045256,), (1341045429,), (1341045468,), (1341045503,), (1341045507,), (1341045512,), (1341045516,), (1341045570,), (1341045586,), (1341045594,), (1341045602,), (1341045606,), (1341045684,), (1341045657,), (1341045666,), (1341045672,), (1341045677,), (1341045715,), (1341045722,), (1341045727,), (1341045732,), (1341045737,), (1341045753,), (1341045757,), (1341045762,), (1341045766,), (1341045771,), (1341045779,), (1341045800,), (1341045804,), (1341045808,), (1341045866,), (1341045869,), (1341045914,), (1341045923,), (1341045935,), (1341045940,), (1341046008,), (1341046045,), (1341046058,), (1341046121,), (1341046212,), (1341047013,), (1341047064,), (1341047101,), (1341047110,), (1341047153,), (1341047198,), (1341047219,), (1341047231,), (1341047583,), (1341047587,), (1341047592,), (1341047625,), (1341047634,), (1341047640,), (1341047648,), (1341047652,), (1341047655,), (1341047672,), (1341047675,), (1341047689,), (1341047692,), (1341047718,), (1341047741,), (1341047748,), (1341047753,), (1341047755,), (1341047891,), (1341047932,), (1341047920,), (1341047923,), (1341047926,), (1341048198,), (1341048234,), (1341048258,), (1341048266,), (1341048328,), (1341048332,), (1341048352,), (1341048358,), (1341048363,), (1341048366,), (1341048394,), (1341048399,), (1341048405,), (1341048410,), (1341048435,), (1341048443,), (1341048459,), (1341048466,), (1341048471,), (1341048515,), (1341048519,), (1341048720,), (1341048728,), (1341048787,), (1341048797,), (1341048806,), (1341048936,), (1341048939,), (1341048976,), (1341048980,), (1341048983,), (1341048986,), (1341049023,), (1341049039,), (1341049043,), (1341049047,), (1341049051,), (1341049105,), (1341049110,), (1341049117,), (1341049124,), (1341049129,), (1341049200,), (1341049204,), (1341049208,), (1341049213,), (1341049218,), (1341049221,), (1341049261,), (1341049266,), (1341049270,), (1341049277,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05032025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21073320]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] map_info['map_portfolio_photo'] : {21073320: [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200, 1341049129, 1341049124, 1341049117, 1341049110, 1341049105, 1341049051, 1341049047, 1341049043, 1341049039, 1341049023, 1341048986, 1341048983, 1341048980, 1341048976, 1341048939, 1341048936, 1341048806, 1341048797, 1341048787, 1341048728, 1341048720, 1341048519, 1341048515, 1341048471, 1341048466, 1341048459, 1341048443, 1341048435, 1341048410, 1341048405, 1341048399, 1341048394, 1341048366, 1341048363, 1341048358, 1341048352, 1341048332, 1341048328, 1341048266, 1341048258, 1341048234, 1341048198, 1341047926, 1341047923, 1341047920]} final : True mtd_id 4302 list_pids : [1341049277, 1341049270, 1341049266, 1341049261, 1341049221, 1341049218, 1341049213, 1341049208, 1341049204, 1341049200] Looping around the photos to save general results len do output : 1 /21073320Didn'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, '2639041') ('4302', '21073320', '1341049277', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049270', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049266', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049261', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049221', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049218', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049213', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049208', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049204', None, None, None, None, None, '2639041') ('4302', None, None, None, None, None, None, None, '2639041') ('4302', '21073320', '1341049200', None, None, None, None, None, '2639041') 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, '21073320', 'None', None, None, None, None, '2639041'), ('4302', '21073320', '1341049277', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049270', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049266', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049261', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049221', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049218', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049213', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049208', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049204', None, None, None, None, None, '2639041'), ('4302', '21073320', '1341049200', None, None, None, None, None, '2639041')] time used for this insertion : 0.01384592056274414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3636746406555176 time spend to save output : 0.014128923416137695 total time spend for step 5 : 0.3778035640716553 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 (2639041) 2.29user 2.31system 0:09.87elapsed 46%CPU (0avgtext+0avgdata 159572maxresident)k 1776inputs+17832outputs (40major+74714minor)pagefaults 0swaps