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 : 4022020 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 (2718081) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2718081) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993320 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2718081'] with mtr_portfolio_ids : ['21993320'] and first list_photo_ids : [] new path : /proc/4022020/ Name: python3 Umask: 0002 State: R (running) Tgid: 4022020 Ngid: 0 Pid: 4022020 PPid: 4022019 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4022020 NSpid: 4022020 NSpgid: 4018364 NSsid: 4018364 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98472 kB VmRSS: 98472 kB RssAnon: 59800 kB RssFile: 38672 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4022020', 'Ngid': '0', 'Pid': '4022020', 'PPid': '4022019', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4022020', 'NSpid': '4022020', 'NSpgid': '4018364', 'NSsid': '4018364', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98472 kB', 'VmRSS': '98472 kB', 'RssAnon': '59800 kB', 'RssFile': '38672 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '4022020', '1106928', '0', '1106928', '865676', '98472', b'', 'marlene', '2718081') 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 (21993320) 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 (2718081 ) ) 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 (21993320) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349649937, 'portfolio_id': 21993320}, {'photo_id': 1349649886, 'portfolio_id': 21993320}, {'photo_id': 1349649839, 'portfolio_id': 21993320}, {'photo_id': 1349649774, 'portfolio_id': 21993320}, {'photo_id': 1349649718, 'portfolio_id': 21993320}, {'photo_id': 1349649666, 'portfolio_id': 21993320}, {'photo_id': 1349649009, 'portfolio_id': 21993320}, {'photo_id': 1349648930, 'portfolio_id': 21993320}, {'photo_id': 1349648866, 'portfolio_id': 21993320}, {'photo_id': 1349648793, 'portfolio_id': 21993320}, {'photo_id': 1349648751, 'portfolio_id': 21993320}, {'photo_id': 1349648407, 'portfolio_id': 21993320}, {'photo_id': 1349648343, 'portfolio_id': 21993320}, {'photo_id': 1349648313, 'portfolio_id': 21993320}, {'photo_id': 1349648283, 'portfolio_id': 21993320}, {'photo_id': 1349648256, 'portfolio_id': 21993320}, {'photo_id': 1349648227, 'portfolio_id': 21993320}, {'photo_id': 1349647942, 'portfolio_id': 21993320}, {'photo_id': 1349647911, 'portfolio_id': 21993320}, {'photo_id': 1349647865, 'portfolio_id': 21993320}, {'photo_id': 1349647816, 'portfolio_id': 21993320}, {'photo_id': 1349647769, 'portfolio_id': 21993320}, {'photo_id': 1349647522, 'portfolio_id': 21993320}, {'photo_id': 1349647449, 'portfolio_id': 21993320}, {'photo_id': 1349647363, 'portfolio_id': 21993320}, {'photo_id': 1349647335, 'portfolio_id': 21993320}, {'photo_id': 1349647310, 'portfolio_id': 21993320}, {'photo_id': 1349647246, 'portfolio_id': 21993320}, {'photo_id': 1349646795, 'portfolio_id': 21993320}, {'photo_id': 1349646780, 'portfolio_id': 21993320}, {'photo_id': 1349646755, 'portfolio_id': 21993320}, {'photo_id': 1349646738, 'portfolio_id': 21993320}, {'photo_id': 1349646248, 'portfolio_id': 21993320}, {'photo_id': 1349646069, 'portfolio_id': 21993320}, {'photo_id': 1349645736, 'portfolio_id': 21993320}, {'photo_id': 1349645544, 'portfolio_id': 21993320}, {'photo_id': 1349645457, 'portfolio_id': 21993320}, {'photo_id': 1349645282, 'portfolio_id': 21993320}, {'photo_id': 1349645240, 'portfolio_id': 21993320}, {'photo_id': 1349645188, 'portfolio_id': 21993320}, {'photo_id': 1349645138, 'portfolio_id': 21993320}, {'photo_id': 1349645071, 'portfolio_id': 21993320}, {'photo_id': 1349644771, 'portfolio_id': 21993320}, {'photo_id': 1349644738, 'portfolio_id': 21993320}, {'photo_id': 1349644710, 'portfolio_id': 21993320}, {'photo_id': 1349644680, 'portfolio_id': 21993320}, {'photo_id': 1349644656, 'portfolio_id': 21993320}, {'photo_id': 1349644600, 'portfolio_id': 21993320}, {'photo_id': 1349644162, 'portfolio_id': 21993320}, {'photo_id': 1349644048, 'portfolio_id': 21993320}, {'photo_id': 1349643940, 'portfolio_id': 21993320}, {'photo_id': 1349643871, 'portfolio_id': 21993320}, {'photo_id': 1349643847, 'portfolio_id': 21993320}, {'photo_id': 1349643510, 'portfolio_id': 21993320}, {'photo_id': 1349643482, 'portfolio_id': 21993320}, {'photo_id': 1349643404, 'portfolio_id': 21993320}, {'photo_id': 1349643354, 'portfolio_id': 21993320}, {'photo_id': 1349643302, 'portfolio_id': 21993320}, {'photo_id': 1349643236, 'portfolio_id': 21993320}, {'photo_id': 1349642637, 'portfolio_id': 21993320}, {'photo_id': 1349642530, 'portfolio_id': 21993320}, {'photo_id': 1349642440, 'portfolio_id': 21993320}, {'photo_id': 1349642389, 'portfolio_id': 21993320}, {'photo_id': 1349642352, 'portfolio_id': 21993320}, {'photo_id': 1349641785, 'portfolio_id': 21993320}, {'photo_id': 1349641698, 'portfolio_id': 21993320}, {'photo_id': 1349641620, 'portfolio_id': 21993320}] map_portfolio_id_photo_id: {21993320: [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666, 1349649009, 1349648930, 1349648866, 1349648793, 1349648751, 1349648407, 1349648343, 1349648313, 1349648283, 1349648256, 1349648227, 1349647942, 1349647911, 1349647865, 1349647816, 1349647769, 1349647522, 1349647449, 1349647363, 1349647335, 1349647310, 1349647246, 1349646795, 1349646780, 1349646755, 1349646738, 1349646248, 1349646069, 1349645736, 1349645544, 1349645457, 1349645282, 1349645240, 1349645188, 1349645138, 1349645071, 1349644771, 1349644738, 1349644710, 1349644680, 1349644656, 1349644600, 1349644162, 1349644048, 1349643940, 1349643871, 1349643847, 1349643510, 1349643482, 1349643404, 1349643354, 1349643302, 1349643236, 1349642637, 1349642530, 1349642440, 1349642389, 1349642352, 1349641785, 1349641698, 1349641620]} ##### 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.01618361473083496 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 2 23:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21993320) 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 : 21993320 get user id for portfolio 21993320 get sub ptf for main ptf 21993320, type 3726 and hashtags ['Teint_Dans_La_Masse', 'metal', 'kraft', 'autre_refus', 'papier', 'plastique', 'mal_croppe', 'Carton_brun', 'flou', 'cartonnette', 'environnement', '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`=21993320 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','kraft','autre_refus','papier','plastique','mal_croppe','Carton_brun','flou','cartonnette','environnement','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`=21993320 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','kraft','autre_refus','papier','plastique','mal_croppe','Carton_brun','flou','cartonnette','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21993320, 'sub_port_id': 21993334, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490152, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21993320, 'sub_port_id': 21993335, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490153, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'Carton_brun': {'main_port_id': 21993320, 'sub_port_id': 21993336, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490154, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'kraft': {'main_port_id': 21993320, 'sub_port_id': 21993337, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490155, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'Carton_gris': {'main_port_id': 21993320, 'sub_port_id': 21993338, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490156, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'plastique': {'main_port_id': 21993320, 'sub_port_id': 21993339, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490157, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'environnement': {'main_port_id': 21993320, 'sub_port_id': 21993340, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490158, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'cartonnette': {'main_port_id': 21993320, 'sub_port_id': 21993341, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490159, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'papier': {'main_port_id': 21993320, 'sub_port_id': 21993342, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490160, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'flou': {'main_port_id': 21993320, 'sub_port_id': 21993343, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490161, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'autre_refus': {'main_port_id': 21993320, 'sub_port_id': 21993344, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490162, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}, 'mal_croppe': {'main_port_id': 21993320, 'sub_port_id': 21993345, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490163, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21993334 , 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=21993320 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 (21993334) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993335 , 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=21993320 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 (21993335) result : ((1349643729,), (1349644820,), (1349644821,), (1349646740,), (1349646741,), (1349646789,), (1349648108,), (1349648109,), (1349648110,), (1349648188,), (1349648189,), (1349648744,), (1349649194,), (1349649195,), (1349649196,), (1349649197,), (1349650104,), (1349650107,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993336 , 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=21993320 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 (21993336) result : ((1349643748,), (1349644850,), (1349646746,), (1349646747,), (1349646797,), (1349647868,), (1349648141,), (1349648142,), (1349648143,), (1349648144,), (1349648780,), (1349649282,), (1349649283,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993337 , 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=21993320 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 (21993337) result : ((1349645016,), (1349645019,), (1349649320,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993338 , 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=21993320 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 (21993338) result : ((1349644841,), (1349644982,), (1349644985,), (1349648123,), (1349648124,), (1349648125,), (1349648126,), (1349648204,), (1349649227,), (1349649230,), (1349650164,), (1349650165,), (1349650166,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993339 , 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=21993320 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 (21993339) result : ((1349643760,), (1349645006,), (1349646748,), (1349646749,), (1349648153,), (1349648154,), (1349648804,), (1349648805,), (1349649305,), (1349649307,), (1349650186,), (1349650188,), (1349650190,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993340 , 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=21993320 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 (21993340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993341 , 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=21993320 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 (21993341) result : ((1349646743,), (1349646744,), (1349646791,), (1349647858,), (1349648132,), (1349648212,), (1349648213,), (1349648755,), (1349649256,), (1349649257,), (1349649258,), (1349649262,), (1349650173,), (1349650174,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993342 , 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=21993320 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 (21993342) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993343 , 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=21993320 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 (21993343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993344 , 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=21993320 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 (21993344) result : ((1349643740,), (1349644832,), (1349644957,), (1349644959,), (1349644962,), (1349644965,), (1349647843,), (1349647844,), (1349648196,), (1349648197,), (1349648198,), (1349650148,), (1349650149,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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 21993345 , 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=21993320 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 (21993345) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21993320) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) 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 (1349644600) 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`=21993320 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','kraft','autre_refus','papier','plastique','mal_croppe','Carton_brun','flou','cartonnette','environnement','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`=21993320 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','kraft','autre_refus','papier','plastique','mal_croppe','Carton_brun','flou','cartonnette','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21993320, 'sub_port_id': 21993347, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490164, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21993320, 'sub_port_id': 21993348, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490165, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'Carton_brun': {'main_port_id': 21993320, 'sub_port_id': 21993349, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490166, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'kraft': {'main_port_id': 21993320, 'sub_port_id': 21993350, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490167, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'Carton_gris': {'main_port_id': 21993320, 'sub_port_id': 21993351, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490168, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'plastique': {'main_port_id': 21993320, 'sub_port_id': 21993352, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490169, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'environnement': {'main_port_id': 21993320, 'sub_port_id': 21993353, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490170, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'cartonnette': {'main_port_id': 21993320, 'sub_port_id': 21993354, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490171, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'papier': {'main_port_id': 21993320, 'sub_port_id': 21993355, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490172, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'flou': {'main_port_id': 21993320, 'sub_port_id': 21993356, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490173, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'autre_refus': {'main_port_id': 21993320, 'sub_port_id': 21993357, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490174, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}, 'mal_croppe': {'main_port_id': 21993320, 'sub_port_id': 21993358, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14490175, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21993358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21993345 lien utilise dans velours : https://www.fotonower.com/velours/21993347,21993348,21993349,21993350,21993351,21993352,21993353,21993354,21993355,21993356,21993357,21993358?tags=metal,Teint_Dans_La_Masse,Carton_brun,kraft,Carton_gris,plastique,environnement,cartonnette,papier,flou,autre_refus,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21993320]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] map_info['map_portfolio_photo'] : {21993320: [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666, 1349649009, 1349648930, 1349648866, 1349648793, 1349648751, 1349648407, 1349648343, 1349648313, 1349648283, 1349648256, 1349648227, 1349647942, 1349647911, 1349647865, 1349647816, 1349647769, 1349647522, 1349647449, 1349647363, 1349647335, 1349647310, 1349647246, 1349646795, 1349646780, 1349646755, 1349646738, 1349646248, 1349646069, 1349645736, 1349645544, 1349645457, 1349645282, 1349645240, 1349645188, 1349645138, 1349645071, 1349644771, 1349644738, 1349644710, 1349644680, 1349644656, 1349644600, 1349644162, 1349644048, 1349643940, 1349643871, 1349643847, 1349643510, 1349643482, 1349643404, 1349643354, 1349643302, 1349643236, 1349642637, 1349642530, 1349642440, 1349642389, 1349642352, 1349641785, 1349641698, 1349641620]} final : False mtd_id 4302 list_pids : [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] Looping around the photos to save general results len do output : 1 /21993320. 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, '2718081') ('4302', '21993320', '1349649937', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649886', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649839', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649774', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649718', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649666', None, None, None, None, None, '2718081') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '21993320', "{'metal': 21993334, 'Teint_Dans_La_Masse': 21993335, 'Carton_brun': 21993336, 'kraft': 21993337, 'Carton_gris': 21993338, 'plastique': 21993339, 'environnement': 21993340, 'cartonnette': 21993341, 'papier': 21993342, 'flou': 21993343, 'autre_refus': 21993344, 'mal_croppe': 21993345}", None, None, None, None, '2718081'), ('4302', '21993320', '1349649937', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649886', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649839', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649774', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649718', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649666', None, None, None, None, None, '2718081')] time used for this insertion : 0.012722253799438477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5810446739196777 time spend to save output : 0.012986898422241211 total time spend for step 1 : 0.594031572341919 step2:final Wed Apr 2 23:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21993320) 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 21993320 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349641785,1349641698,1349641620,1349642637,1349642530,1349642440,1349642389,1349642352,1349643510,1349643482,1349643404,1349643354,1349643302,1349644162,1349643236,1349644048,1349643940,1349643871,1349643847,1349644771,1349644738,1349644710,1349644680,1349644656,1349644600,1349645282,1349645240,1349645188,1349645138,1349645071,1349646248,1349646069,1349645736,1349645544,1349645457,1349646795,1349646780,1349646755,1349646738,1349647522,1349647449,1349647363,1349647335,1349647310,1349647246,1349647942,1349647911,1349647865,1349647816,1349647769,1349648407,1349648343,1349648313,1349648283,1349648256,1349648227,1349649009,1349648930,1349648866,1349648793,1349648751,1349649937,1349649886,1349649839,1349649774,1349649718,1349649666); 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([21993320]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} new output for save of step final : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] map_info['map_portfolio_photo'] : {21993320: [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666, 1349649009, 1349648930, 1349648866, 1349648793, 1349648751, 1349648407, 1349648343, 1349648313, 1349648283, 1349648256, 1349648227, 1349647942, 1349647911, 1349647865, 1349647816, 1349647769, 1349647522, 1349647449, 1349647363, 1349647335, 1349647310, 1349647246, 1349646795, 1349646780, 1349646755, 1349646738, 1349646248, 1349646069, 1349645736, 1349645544, 1349645457, 1349645282, 1349645240, 1349645188, 1349645138, 1349645071, 1349644771, 1349644738, 1349644710, 1349644680, 1349644656, 1349644600, 1349644162, 1349644048, 1349643940, 1349643871, 1349643847, 1349643510, 1349643482, 1349643404, 1349643354, 1349643302, 1349643236, 1349642637, 1349642530, 1349642440, 1349642389, 1349642352, 1349641785, 1349641698, 1349641620]} final : False mtd_id 4302 list_pids : [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] Looping around the photos to save general results len do output : 6 /1349649937.Didn't retrieve data . /1349649886.Didn't retrieve data . /1349649839.Didn't retrieve data . /1349649774.Didn't retrieve data . /1349649718.Didn't retrieve data . /1349649666.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, '2718081') ('4302', '21993320', '1349649937', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649886', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649839', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649774', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649718', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649666', None, None, None, None, None, '2718081') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '21993320', '1349649937', '0.04873893395301541', None, None, None, None, '2718081'), ('4302', '21993320', '1349649886', '0.04873893395301541', None, None, None, None, '2718081'), ('4302', '21993320', '1349649839', '0.04873893395301541', None, None, None, None, '2718081'), ('4302', '21993320', '1349649774', '0.04873893395301541', None, None, None, None, '2718081'), ('4302', '21993320', '1349649718', '0.04873893395301541', None, None, None, None, '2718081'), ('4302', '21993320', '1349649666', '0.04873893395301541', None, None, None, None, '2718081')] time used for this insertion : 0.012606382369995117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07103133201599121 time spend to save output : 0.012979269027709961 total time spend for step 2 : 0.08401060104370117 step3:velours_tree Wed Apr 2 23:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21993320: [{'metal': 21993334, 'Teint_Dans_La_Masse': 21993335, 'Carton_brun': 21993336, 'kraft': 21993337, 'Carton_gris': 21993338, 'plastique': 21993339, 'environnement': 21993340, 'cartonnette': 21993341, 'papier': 21993342, 'flou': 21993343, 'autre_refus': 21993344, 'mal_croppe': 21993345}]} input_args_next_step : {21993320: ()} output_args : {21993320: [{'metal': 21993334, 'Teint_Dans_La_Masse': 21993335, 'Carton_brun': 21993336, 'kraft': 21993337, 'Carton_gris': 21993338, 'plastique': 21993339, 'environnement': 21993340, 'cartonnette': 21993341, 'papier': 21993342, 'flou': 21993343, 'autre_refus': 21993344, 'mal_croppe': 21993345}]} args : 21993320 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 : ({'metal': 21993334, 'Teint_Dans_La_Masse': 21993335, 'Carton_brun': 21993336, 'kraft': 21993337, 'Carton_gris': 21993338, 'plastique': 21993339, 'environnement': 21993340, 'cartonnette': 21993341, 'papier': 21993342, 'flou': 21993343, 'autre_refus': 21993344, 'mal_croppe': 21993345},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21993320) 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([21993320]) 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.2745232582092285 time spend to save output : 5.054473876953125e-05 total time spend for step 3 : 0.27457380294799805 step4:send_mail_cod Wed Apr 2 23:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} input_args_next_step : {1349649937: ()} output_args : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} args : 1349649937 depend.output_id : 0 input_args_next_step : {1349649937: ('0.04873893395301541',), 1349649886: ()} output_args : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} args : 1349649886 depend.output_id : 0 input_args_next_step : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ()} output_args : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} args : 1349649839 depend.output_id : 0 input_args_next_step : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ()} output_args : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} args : 1349649774 depend.output_id : 0 input_args_next_step : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ()} output_args : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} args : 1349649718 depend.output_id : 0 input_args_next_step : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ()} output_args : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',)} args : 1349649666 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 : {21993320: [{'metal': 21993334, 'Teint_Dans_La_Masse': 21993335, 'Carton_brun': 21993336, 'kraft': 21993337, 'Carton_gris': 21993338, 'plastique': 21993339, 'environnement': 21993340, 'cartonnette': 21993341, 'papier': 21993342, 'flou': 21993343, 'autre_refus': 21993344, 'mal_croppe': 21993345}]} input_args_next_step : {1349649937: ('0.04873893395301541',), 1349649886: ('0.04873893395301541',), 1349649839: ('0.04873893395301541',), 1349649774: ('0.04873893395301541',), 1349649718: ('0.04873893395301541',), 1349649666: ('0.04873893395301541',), 21993320: ()} output_args : {21993320: [{'metal': 21993334, 'Teint_Dans_La_Masse': 21993335, 'Carton_brun': 21993336, 'kraft': 21993337, 'Carton_gris': 21993338, 'plastique': 21993339, 'environnement': 21993340, 'cartonnette': 21993341, 'papier': 21993342, 'flou': 21993343, 'autre_refus': 21993344, 'mal_croppe': 21993345}]} args : 21993320 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 :7, first value : ('0.04873893395301541',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21993320) 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 (1349649937,1349649886,1349649839,1349649774,1349649718,1349649666) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349649666 begin to download photo : 1349649774 begin to download photo : 1349649886 download finish for photo 1349649886 begin to download photo : 1349649937 download finish for photo 1349649774 begin to download photo : 1349649839 download finish for photo 1349649666 begin to download photo : 1349649718 download finish for photo 1349649937 download finish for photo 1349649718 download finish for photo 1349649839 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219933341743628500/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P21993320_02-04-2025_23_15_00.pdf 21993334 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=21993334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219933341743628500 21993337 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=21993337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349645016: '1743627927_3854655_1349642352_c8ff29d70368628be8a3e974bc58a0c6_rle_crop_3745144123_0.png', 1349645019: '1743627927_3854655_1349642352_c8ff29d70368628be8a3e974bc58a0c6_rle_crop_3745144120_0.png', 1349649320: '1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191014_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2d52cff8fd0f1a989093746c59b0f5af_5179113.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d3aee4e6f04390d1dee62700c06e0e8b_23276780.png change filename to text .imagette219933371743628500/ imagette219933371743628500/1743627927_3854655_1349642352_c8ff29d70368628be8a3e974bc58a0c6_rle_crop_3745144120_0.png.png imagette219933371743628500/1743627927_3854655_1349642352_c8ff29d70368628be8a3e974bc58a0c6_rle_crop_3745144123_0.png.png imagette219933371743628500/1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191014_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e3fc1b3ddcc3aab05a9922f10b4ffd55_71433956.png imagette219933371743628500 21993339 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=21993339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349643760: '1743627796_1532127_1349641698_5c230fd6237cad32d0111b132505f9a7_rle_crop_3745131886_0.png', 1349645006: '1743627927_3854655_1349643510_3eb998c140139112345b282af5cee2a2_rle_crop_3745144072_0.png', 1349646748: '1743628051_1534332_1349644771_f8a767b53e287ebdcb94c5d2d9c24706_rle_crop_3745159515_0.png', 1349646749: '1743628051_1534332_1349643871_b43c6a1db87389ba6300ae8d07c1ee95_rle_crop_3745160149_0.png', 1349648153: '1743628192_1535946_1349646795_8b06277695d8f24ac3a645d756d99193_rle_crop_3745163840_0.png', 1349648154: '1743628192_1535946_1349646795_8b06277695d8f24ac3a645d756d99193_rle_crop_3745163841_0.png', 1349648804: '1743628294_1537370_1349647911_e9b90e47375494e4eb6a107e9b072256_rle_crop_3745188586_0.png', 1349648805: '1743628294_1537370_1349647911_e9b90e47375494e4eb6a107e9b072256_rle_crop_3745188593_0.png', 1349649305: '1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191019_0.png', 1349649307: '1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191023_0.png', 1349650186: '1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197548_0.png', 1349650188: '1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197576_0.png', 1349650190: '1743628393_1538664_1349648227_1cc7f3ccd1b4a0e290ed84012d400189_rle_crop_3745197600_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/50022a22deb1443f29257d4ab4edd3a2_31450760.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fb16de10aff1f728795b2a6db323e2f3_36664562.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8ea76e9fa611e5b759356f0053171380_18417109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0686156fcf72705f0284cb1dbf66980d_96148386.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/212328a82d09f6e98677dc1dd41d3d74_78607178.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2bb76e1e0a8855e5b6d6c4b2e4cde63d_61437505.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d35b3133fbad30483e8e3d254e506219_28420066.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/01614a43c666354a546ea5c6a4d58d55_27427471.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d694f21f71e0a0aa6e6016587f4d6384_9882696.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7a3130d61be814e02b7314e27b057459_95587323.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/25cdad7a1c6f704cdf49be4d53a24b7f_91509348.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2334bf4257fd15ce666fc756e3810517_48336416.png change filename to text .imagette219933391743628500/ imagette219933391743628500/1743628192_1535946_1349646795_8b06277695d8f24ac3a645d756d99193_rle_crop_3745163840_0.png.png imagette219933391743628500/1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191019_0.png.png imagette219933391743628500/1743628192_1535946_1349646795_8b06277695d8f24ac3a645d756d99193_rle_crop_3745163841_0.png.png imagette219933391743628500/1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197576_0.png.png imagette219933391743628500/1743628294_1537370_1349647911_e9b90e47375494e4eb6a107e9b072256_rle_crop_3745188593_0.png.png imagette219933391743628500/1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197548_0.png.png imagette219933391743628500/1743627927_3854655_1349643510_3eb998c140139112345b282af5cee2a2_rle_crop_3745144072_0.png.png imagette219933391743628500/1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191023_0.png.png imagette219933391743628500/1743628051_1534332_1349644771_f8a767b53e287ebdcb94c5d2d9c24706_rle_crop_3745159515_0.png.png imagette219933391743628500/1743628294_1537370_1349647911_e9b90e47375494e4eb6a107e9b072256_rle_crop_3745188586_0.png.png imagette219933391743628500/1743628051_1534332_1349643871_b43c6a1db87389ba6300ae8d07c1ee95_rle_crop_3745160149_0.png.png imagette219933391743628500/1743628393_1538664_1349648227_1cc7f3ccd1b4a0e290ed84012d400189_rle_crop_3745197600_0.png.png imagette219933391743628500/1743627796_1532127_1349641698_5c230fd6237cad32d0111b132505f9a7_rle_crop_3745131886_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3e8dad62e3e3de69e05992f1e1109277_46389495.png imagette219933391743628500 21993341 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=21993341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349646743: '1743628051_1534332_1349644771_f8a767b53e287ebdcb94c5d2d9c24706_rle_crop_3745159516_0.png', 1349646744: '1743628051_1534332_1349643847_4e37f846d708b1c69339dcd80eba79b3_rle_crop_3745160166_0.png', 1349646791: '1743628045_3859420_1349644710_4d93d3e58e047c550554940a68924a89_rle_crop_3745160240_0.png', 1349647858: '1743628171_1535764_1349646780_492872cd39b05375d568cf2b92dde4cf_rle_crop_3745162599_0.png', 1349648132: '1743628192_1535946_1349646069_19dfb1456d4b1397aa0ea06f2898a10a_rle_crop_3745164887_0.png', 1349648212: '1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168789_0.png', 1349648213: '1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168784_0.png', 1349648755: '1743628294_1537370_1349647865_4bf1221eef5694f74a4f376921ec8751_rle_crop_3745188617_0.png', 1349649256: '1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191016_0.png', 1349649257: '1743628313_1537554_1349647335_0878def423ba7604f037dde5635dea4e_rle_crop_3745191150_0.png', 1349649258: '1743628313_1537554_1349647310_f6bae071d322ad9602ff420ebe84d78a_rle_crop_3745191177_0.png', 1349649262: '1743628313_1537554_1349647310_f6bae071d322ad9602ff420ebe84d78a_rle_crop_3745191180_0.png', 1349650173: '1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197579_0.png', 1349650174: '1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197575_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/161cee2ac39dfe0d21f0b98e7af2b472_60224469.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/730fe6267ca3198e20f54dca8be0077c_37309678.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/db230379dec6afd05049d83b72d306a6_65031904.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/954c6bcf683788721074738e9f74ea58_18015207.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3e15ecef92d1a90ff5c46f508206c9ea_61185612.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f9d892b71d1184daf93376b1df2377fd_85415419.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2cef57b17dd9cd7ae4d73489ae1c6879_16029000.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/76dc2623f1a4f83759c5bda471f5fece_91226382.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/37fcf3a5d39fe4ead20647293836f366_35965796.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2ebd5f270e7a06905d163b09503cd6a4_73643753.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e8a4701283e392887152e584ebfe6622_38711519.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/abe46cf759d8226bfc2ca27308002451_45202822.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a2f24f6013d6a18ce9597e4e562239c5_18914556.png change filename to text .imagette219933411743628501/ imagette219933411743628501/1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168789_0.png.png imagette219933411743628501/1743628313_1537554_1349647310_f6bae071d322ad9602ff420ebe84d78a_rle_crop_3745191180_0.png.png imagette219933411743628501/1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197579_0.png.png imagette219933411743628501/1743628171_1535764_1349646780_492872cd39b05375d568cf2b92dde4cf_rle_crop_3745162599_0.png.png imagette219933411743628501/1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191016_0.png.png imagette219933411743628501/1743628045_3859420_1349644710_4d93d3e58e047c550554940a68924a89_rle_crop_3745160240_0.png.png imagette219933411743628501/1743628051_1534332_1349644771_f8a767b53e287ebdcb94c5d2d9c24706_rle_crop_3745159516_0.png.png imagette219933411743628501/1743628313_1537554_1349647310_f6bae071d322ad9602ff420ebe84d78a_rle_crop_3745191177_0.png.png imagette219933411743628501/1743628051_1534332_1349643847_4e37f846d708b1c69339dcd80eba79b3_rle_crop_3745160166_0.png.png imagette219933411743628501/1743628294_1537370_1349647865_4bf1221eef5694f74a4f376921ec8751_rle_crop_3745188617_0.png.png imagette219933411743628501/1743628313_1537554_1349647335_0878def423ba7604f037dde5635dea4e_rle_crop_3745191150_0.png.png imagette219933411743628501/1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197575_0.png.png imagette219933411743628501/1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168784_0.png.png imagette219933411743628501/1743628192_1535946_1349646069_19dfb1456d4b1397aa0ea06f2898a10a_rle_crop_3745164887_0.png.png imagette219933431743628502/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5370a903ec2f982cc697584a8b5574cb_97426262.png imagette219933411743628501 21993343 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=21993343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219933431743628502 21993344 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=21993344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349643740: '1743627796_1532127_1349641620_c1153f1d6d0a1cdd880ce61641f6b168_rle_crop_3745131894_0.png', 1349644832: '1743627912_1533316_1349643404_6a285ab4357e7e2886030a446c765dc4_rle_crop_3745144026_0.png', 1349644957: '1743627927_3854655_1349642440_63073048379ac6e95926d7eb07173495_rle_crop_3745144086_0.png', 1349644959: '1743627927_3854655_1349642389_615ff8cd89c42d57914ab07efde2897a_rle_crop_3745144099_0.png', 1349644962: '1743627927_3854655_1349642389_615ff8cd89c42d57914ab07efde2897a_rle_crop_3745144098_0.png', 1349644965: '1743627927_3854655_1349642389_615ff8cd89c42d57914ab07efde2897a_rle_crop_3745144100_0.png', 1349647843: '1743628171_1535764_1349646780_492872cd39b05375d568cf2b92dde4cf_rle_crop_3745162601_0.png', 1349647844: '1743628171_1535764_1349646755_3fc3ea67ffda6ba847ea45fc1f40ccb4_rle_crop_3745162610_0.png', 1349648196: '1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168781_0.png', 1349648197: '1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168785_0.png', 1349648198: '1743628212_1536343_1349645071_6fe51aaad83e217cb9ff66f15e5c5e8b_rle_crop_3745169204_0.png', 1349650148: '1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197571_0.png', 1349650149: '1743628393_1538664_1349648256_55df3245030e5a752b99af1444e277db_rle_crop_3745197587_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a80778bb654b986e7415733d500521db_54148148.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b71905aab60d222db311416ea84a3c05_52016761.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/11ff5b1402192a52ac354e9f84a4480f_7870753.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/79ac48d5c1a2c2e6f4ddb5db6832bb7d_64984980.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/55426ce433552a99810146010e1bd418_30106852.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/65601ac7bf85492879ea196c4486cf7e_50702672.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/17b1429adccfdf733c5ba89e0bde3f11_15585240.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4225c51547694d7be6bcfa158d8facc0_47412367.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e8e4ecc0ed892482bc148c62bfd5371f_98167518.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f17628e8c5f185d06a29493f0b9a5ca2_50983322.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ef0031381c8fa8e11cd41309b340e07a_63269788.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/137676a8a9bcab164a1838c56484b5eb_20538950.png change filename to text .imagette219933441743628502/ imagette219933441743628502/1743627796_1532127_1349641620_c1153f1d6d0a1cdd880ce61641f6b168_rle_crop_3745131894_0.png.png imagette219933441743628502/1743627927_3854655_1349642440_63073048379ac6e95926d7eb07173495_rle_crop_3745144086_0.png.png imagette219933441743628502/1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168785_0.png.png imagette219933441743628502/1743628171_1535764_1349646755_3fc3ea67ffda6ba847ea45fc1f40ccb4_rle_crop_3745162610_0.png.png imagette219933441743628502/1743628212_1536343_1349645071_6fe51aaad83e217cb9ff66f15e5c5e8b_rle_crop_3745169204_0.png.png imagette219933441743628502/1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168781_0.png.png imagette219933441743628502/1743627912_1533316_1349643404_6a285ab4357e7e2886030a446c765dc4_rle_crop_3745144026_0.png.png imagette219933441743628502/1743628171_1535764_1349646780_492872cd39b05375d568cf2b92dde4cf_rle_crop_3745162601_0.png.png imagette219933441743628502/1743628393_1538664_1349648283_c593fc52c4d5c15f08ff04ec200015af_rle_crop_3745197571_0.png.png imagette219933441743628502/1743628393_1538664_1349648256_55df3245030e5a752b99af1444e277db_rle_crop_3745197587_0.png.png imagette219933441743628502/1743627927_3854655_1349642389_615ff8cd89c42d57914ab07efde2897a_rle_crop_3745144098_0.png.png imagette219933441743628502/1743627927_3854655_1349642389_615ff8cd89c42d57914ab07efde2897a_rle_crop_3745144100_0.png.png imagette219933441743628502/1743627927_3854655_1349642389_615ff8cd89c42d57914ab07efde2897a_rle_crop_3745144099_0.png.png imagette219933451743628503/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4657daffd3594ded9540a3e1585a144c_97955780.png imagette219933441743628502 21993345 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=21993345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219933451743628503 21993335 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=21993335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349648188: '1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168793_0.png', 1349650107: '1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197551_0.png', 1349650104: '1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197556_0.png', 1349649197: '1743628313_1537554_1349647363_3817b2545944b692ab72fd5dc4c431cf_rle_crop_3745191136_0.png', 1349649196: '1743628313_1537554_1349647363_3817b2545944b692ab72fd5dc4c431cf_rle_crop_3745191143_0.png', 1349649195: '1743628313_1537554_1349647449_6256a67d0100921bd93833f566f02cf5_rle_crop_3745191043_0.png', 1349649194: '1743628313_1537554_1349647449_6256a67d0100921bd93833f566f02cf5_rle_crop_3745191038_0.png', 1349648744: '1743628294_1537370_1349647816_823ba5f774a46777738286378bef8166_rle_crop_3745188637_0.png', 1349648189: '1743628212_1536343_1349645071_6fe51aaad83e217cb9ff66f15e5c5e8b_rle_crop_3745169206_0.png', 1349643729: '1743627796_1532127_1349641620_c1153f1d6d0a1cdd880ce61641f6b168_rle_crop_3745131897_0.png', 1349648110: '1743628192_1535946_1349645457_e4606e29165bf7b38dd187714b355d1b_rle_crop_3745168592_0.png', 1349648109: '1743628192_1535946_1349645736_b8a6d34053f283b33bbb26bdb27dc673_rle_crop_3745168552_0.png', 1349648108: '1743628192_1535946_1349646069_19dfb1456d4b1397aa0ea06f2898a10a_rle_crop_3745164893_0.png', 1349646789: '1743628045_3859420_1349644710_4d93d3e58e047c550554940a68924a89_rle_crop_3745160249_0.png', 1349646741: '1743628051_1534332_1349643847_4e37f846d708b1c69339dcd80eba79b3_rle_crop_3745160169_0.png', 1349646740: '1743628051_1534332_1349644771_f8a767b53e287ebdcb94c5d2d9c24706_rle_crop_3745159524_0.png', 1349644821: '1743627912_1533316_1349643482_e21137cc60728653ae58ed6b6c02ea23_rle_crop_3745144016_0.png', 1349644820: '1743627912_1533316_1349643482_e21137cc60728653ae58ed6b6c02ea23_rle_crop_3745144014_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cd7bbb1dc10905a6ea15f67e922bffc5_73842388.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2e091d5b3ecf7061709c9336e6efd7fa_33821905.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/815913a9fd51c850a4d5bcdc49226345_55006038.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9e626a349e0ae3d6f080409246646061_21821014.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/504e1a230c331cdac6708883dcf6a991_55656922.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/59b1a7df1f36fd37d2de80b34ed91717_9554829.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ee6b9fccfe26316375bcd38364444d51_32595422.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/22c1693f346e816e966bc8fea44c6434_85588359.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7d04a3b4c2a4c1b619dd15ef44047939_1420051.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f8e1da81a05b4ca9af52f86f666b660c_31081242.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/88fff54fc2ea0853709c99915b5e2e31_31318409.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6f7b218b8f8bcbf557063890528f1535_63362230.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/751d9b1bc273b0399dae295a4a5b1c89_51739694.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d4bce4a386a41dda354f7ddb06c4fcc8_80918073.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8da99d288a2bd33eec802729148e5b88_93848469.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/956c2ce19822c52b50410e2dc8766ec6_40783546.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/274160f96030a394fe205788db5725a2_70618108.png change filename to text .imagette219933351743628503/ imagette219933351743628503/1743628192_1535946_1349645736_b8a6d34053f283b33bbb26bdb27dc673_rle_crop_3745168552_0.png.png imagette219933351743628503/1743628313_1537554_1349647449_6256a67d0100921bd93833f566f02cf5_rle_crop_3745191038_0.png.png imagette219933351743628503/1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197556_0.png.png imagette219933351743628503/1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197551_0.png.png imagette219933351743628503/1743628192_1535946_1349645457_e4606e29165bf7b38dd187714b355d1b_rle_crop_3745168592_0.png.png imagette219933351743628503/1743628192_1535946_1349646069_19dfb1456d4b1397aa0ea06f2898a10a_rle_crop_3745164893_0.png.png imagette219933351743628503/1743628051_1534332_1349643847_4e37f846d708b1c69339dcd80eba79b3_rle_crop_3745160169_0.png.png imagette219933351743628503/1743627796_1532127_1349641620_c1153f1d6d0a1cdd880ce61641f6b168_rle_crop_3745131897_0.png.png imagette219933351743628503/1743628051_1534332_1349644771_f8a767b53e287ebdcb94c5d2d9c24706_rle_crop_3745159524_0.png.png imagette219933351743628503/1743627912_1533316_1349643482_e21137cc60728653ae58ed6b6c02ea23_rle_crop_3745144016_0.png.png imagette219933351743628503/1743628294_1537370_1349647816_823ba5f774a46777738286378bef8166_rle_crop_3745188637_0.png.png imagette219933351743628503/1743628313_1537554_1349647449_6256a67d0100921bd93833f566f02cf5_rle_crop_3745191043_0.png.png imagette219933351743628503/1743628045_3859420_1349644710_4d93d3e58e047c550554940a68924a89_rle_crop_3745160249_0.png.png imagette219933351743628503/1743628313_1537554_1349647363_3817b2545944b692ab72fd5dc4c431cf_rle_crop_3745191143_0.png.png imagette219933351743628503/1743628212_1536343_1349645071_6fe51aaad83e217cb9ff66f15e5c5e8b_rle_crop_3745169206_0.png.png imagette219933351743628503/1743627912_1533316_1349643482_e21137cc60728653ae58ed6b6c02ea23_rle_crop_3745144014_0.png.png imagette219933351743628503/1743628313_1537554_1349647363_3817b2545944b692ab72fd5dc4c431cf_rle_crop_3745191136_0.png.png imagette219933351743628503/1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168793_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ad377a868289cfed1d1a5e173f25f1f0_60170453.png imagette219933351743628503 21993336 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=21993336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349643748: '1743627796_1532127_1349641620_c1153f1d6d0a1cdd880ce61641f6b168_rle_crop_3745131896_0.png', 1349644850: '1743627912_1533316_1349643302_005764d48f442b75694f7a66a2712cb6_rle_crop_3745144051_0.png', 1349646746: '1743628051_1534332_1349643871_b43c6a1db87389ba6300ae8d07c1ee95_rle_crop_3745160146_0.png', 1349646747: '1743628051_1534332_1349643847_4e37f846d708b1c69339dcd80eba79b3_rle_crop_3745160165_0.png', 1349646797: '1743628045_3859420_1349644738_c1215dba34d0e8591c93f943ec1ecbc2_rle_crop_3745160227_0.png', 1349647868: '1743628171_1535764_1349646755_3fc3ea67ffda6ba847ea45fc1f40ccb4_rle_crop_3745162613_0.png', 1349648141: '1743628192_1535946_1349646795_8b06277695d8f24ac3a645d756d99193_rle_crop_3745163844_0.png', 1349648142: '1743628192_1535946_1349646069_19dfb1456d4b1397aa0ea06f2898a10a_rle_crop_3745164888_0.png', 1349648143: '1743628192_1535946_1349645736_b8a6d34053f283b33bbb26bdb27dc673_rle_crop_3745168548_0.png', 1349648144: '1743628192_1535946_1349645736_b8a6d34053f283b33bbb26bdb27dc673_rle_crop_3745168546_0.png', 1349648780: '1743628294_1537370_1349647865_4bf1221eef5694f74a4f376921ec8751_rle_crop_3745188623_0.png', 1349649282: '1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191020_0.png', 1349649283: '1743628313_1537554_1349647246_d18ee22b57df04bba2f8c0a07536ab95_rle_crop_3745191190_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/deebdb2724ffaba771cf202501e3d9ad_59291541.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8be9a33b56771363df7a1cdc6c161a90_71393246.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4a7437ed8ca6dbabcab0fbd5307f0b74_30188003.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b404e1a21b5f25d415beba1392a40478_12671102.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c4e40c2c0f9b1f357e120cc4ba0280cc_50120973.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2b987a38b443a2034aea6f4ce8b6cff5_95661149.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5463743a3cf990f5f77d2a108c4b1779_77842502.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9bb04f3d3d68ceec6f4d7e508cfeac0e_53644639.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e95fe134b258758830437ceb4b32d8f3_8243528.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a020ed99cfcdbd7bbc5bd03a2917da00_48514750.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cbbe31c95427eddd10760cb0971fa110_3378031.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f2eebaec59c3ad2f851765e1ae8a3859_29101163.png change filename to text .imagette219933361743628504/ imagette219933361743628504/1743628313_1537554_1349647942_b11a004513d0dc3d1fcd37f1053497a9_rle_crop_3745191020_0.png.png imagette219933361743628504/1743628313_1537554_1349647246_d18ee22b57df04bba2f8c0a07536ab95_rle_crop_3745191190_0.png.png imagette219933361743628504/1743628051_1534332_1349643847_4e37f846d708b1c69339dcd80eba79b3_rle_crop_3745160165_0.png.png imagette219933361743628504/1743628051_1534332_1349643871_b43c6a1db87389ba6300ae8d07c1ee95_rle_crop_3745160146_0.png.png imagette219933361743628504/1743628192_1535946_1349645736_b8a6d34053f283b33bbb26bdb27dc673_rle_crop_3745168546_0.png.png imagette219933361743628504/1743627796_1532127_1349641620_c1153f1d6d0a1cdd880ce61641f6b168_rle_crop_3745131896_0.png.png imagette219933361743628504/1743628294_1537370_1349647865_4bf1221eef5694f74a4f376921ec8751_rle_crop_3745188623_0.png.png imagette219933361743628504/1743627912_1533316_1349643302_005764d48f442b75694f7a66a2712cb6_rle_crop_3745144051_0.png.png imagette219933361743628504/1743628192_1535946_1349646795_8b06277695d8f24ac3a645d756d99193_rle_crop_3745163844_0.png.png imagette219933361743628504/1743628192_1535946_1349646069_19dfb1456d4b1397aa0ea06f2898a10a_rle_crop_3745164888_0.png.png imagette219933361743628504/1743628045_3859420_1349644738_c1215dba34d0e8591c93f943ec1ecbc2_rle_crop_3745160227_0.png.png imagette219933361743628504/1743628171_1535764_1349646755_3fc3ea67ffda6ba847ea45fc1f40ccb4_rle_crop_3745162613_0.png.png imagette219933361743628504/1743628192_1535946_1349645736_b8a6d34053f283b33bbb26bdb27dc673_rle_crop_3745168548_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/061d53311b7f13fe906fd556929cbd06_62761958.png imagette219933361743628504 21993338 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=21993338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349644841: '1743627912_1533316_1349643354_67ef3ea56845d04a8791d00a79c02f87_rle_crop_3745144037_0.png', 1349644982: '1743627927_3854655_1349642530_75b2acaa3defd5f000a7d7c3a6f25d77_rle_crop_3745144080_0.png', 1349644985: '1743627927_3854655_1349642352_c8ff29d70368628be8a3e974bc58a0c6_rle_crop_3745144124_0.png', 1349648123: '1743628192_1535946_1349645544_e23df0aadc1faf7b4d13343b2d420584_rle_crop_3745168562_0.png', 1349648124: '1743628192_1535946_1349645544_e23df0aadc1faf7b4d13343b2d420584_rle_crop_3745168563_0.png', 1349648125: '1743628192_1535946_1349645544_e23df0aadc1faf7b4d13343b2d420584_rle_crop_3745168559_0.png', 1349648126: '1743628192_1535946_1349645457_e4606e29165bf7b38dd187714b355d1b_rle_crop_3745168587_0.png', 1349648204: '1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168788_0.png', 1349649227: '1743628313_1537554_1349647335_0878def423ba7604f037dde5635dea4e_rle_crop_3745191147_0.png', 1349649230: '1743628313_1537554_1349647335_0878def423ba7604f037dde5635dea4e_rle_crop_3745191148_0.png', 1349650164: '1743628393_1538664_1349648343_400e12a24c5b37ff696915198ef2a126_rle_crop_3745197536_0.png', 1349650165: '1743628393_1538664_1349648343_400e12a24c5b37ff696915198ef2a126_rle_crop_3745197530_0.png', 1349650166: '1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197552_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/935c7450dcb919dfc8215cd563eb1837_60817934.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bda4d2773df74325489f09578fd99ef5_41020340.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6c2933ad1a31dbce1b01ef537013b94f_21717908.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f4fe0576baa13701fa6c2a897d959326_19696768.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9355e6ed639a219bf4ccd1a71178427b_49886541.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b6952dfeddcfa7e2ed4d10b4ad048394_5237245.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2e53c6278d2f0b4593c07d183d4d797d_78574939.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d8cd58a21aafe9dca6fb51c14a48181d_74153932.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b205dc5e931ed6b1e90485e458008fa5_51955143.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e400bb5e527ee02d31f24d56443f9707_894805.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4d85e3cd5805d227f97941e53debd064_92723205.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e066178c7290610b8760bac80a55bf54_82605290.png change filename to text .imagette219933381743628504/ imagette219933381743628504/1743628393_1538664_1349648313_de041f3f772cf73ce0f7940f93fffb43_rle_crop_3745197552_0.png.png imagette219933381743628504/1743627927_3854655_1349642352_c8ff29d70368628be8a3e974bc58a0c6_rle_crop_3745144124_0.png.png imagette219933381743628504/1743628393_1538664_1349648343_400e12a24c5b37ff696915198ef2a126_rle_crop_3745197530_0.png.png imagette219933381743628504/1743628192_1535946_1349645544_e23df0aadc1faf7b4d13343b2d420584_rle_crop_3745168559_0.png.png imagette219933381743628504/1743628192_1535946_1349645544_e23df0aadc1faf7b4d13343b2d420584_rle_crop_3745168562_0.png.png imagette219933381743628504/1743627927_3854655_1349642530_75b2acaa3defd5f000a7d7c3a6f25d77_rle_crop_3745144080_0.png.png imagette219933381743628504/1743628313_1537554_1349647335_0878def423ba7604f037dde5635dea4e_rle_crop_3745191147_0.png.png imagette219933381743628504/1743628313_1537554_1349647335_0878def423ba7604f037dde5635dea4e_rle_crop_3745191148_0.png.png imagette219933381743628504/1743628192_1535946_1349645457_e4606e29165bf7b38dd187714b355d1b_rle_crop_3745168587_0.png.png imagette219933381743628504/1743627912_1533316_1349643354_67ef3ea56845d04a8791d00a79c02f87_rle_crop_3745144037_0.png.png imagette219933381743628504/1743628393_1538664_1349648343_400e12a24c5b37ff696915198ef2a126_rle_crop_3745197536_0.png.png imagette219933381743628504/1743628212_1536343_1349646248_ccce6c32d825bc0c8b3130f394fac01e_rle_crop_3745168788_0.png.png imagette219933381743628504/1743628192_1535946_1349645544_e23df0aadc1faf7b4d13343b2d420584_rle_crop_3745168563_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7077afb1ae5b9090e1b86eaa0a506e5e_74374811.png imagette219933381743628504 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21993320 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21993347,21993348,21993349,21993350,21993351,21993352,21993353,21993354,21993355,21993356,21993357,21993358?tags=metal,Teint_Dans_La_Masse,Carton_brun,kraft,Carton_gris,plastique,environnement,cartonnette,papier,flou,autre_refus,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1349649937] : ('0.04873893395301541',) no score found for photo 1349649937 We are sending mail with results at report@fotonower.com args[1349649886] : ('0.04873893395301541',) no score found for photo 1349649886 We are sending mail with results at report@fotonower.com args[1349649839] : ('0.04873893395301541',) no score found for photo 1349649839 We are sending mail with results at report@fotonower.com args[1349649774] : ('0.04873893395301541',) no score found for photo 1349649774 We are sending mail with results at report@fotonower.com args[1349649718] : ('0.04873893395301541',) no score found for photo 1349649718 We are sending mail with results at report@fotonower.com args[1349649666] : ('0.04873893395301541',) no score found for photo 1349649666 We are sending mail with results at report@fotonower.com refus_total : 0.04873893395301541 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=21993320 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_P21993320_02-04-2025_23_15_00.pdf results_Auto_P21993320_02-04-2025_23_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_15_00.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','21993320','results_Auto_P21993320_02-04-2025_23_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_15_00.pdf','pdf','','0.32','0.04873893395301541') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21993320]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] map_info['map_portfolio_photo'] : {21993320: [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666, 1349649009, 1349648930, 1349648866, 1349648793, 1349648751, 1349648407, 1349648343, 1349648313, 1349648283, 1349648256, 1349648227, 1349647942, 1349647911, 1349647865, 1349647816, 1349647769, 1349647522, 1349647449, 1349647363, 1349647335, 1349647310, 1349647246, 1349646795, 1349646780, 1349646755, 1349646738, 1349646248, 1349646069, 1349645736, 1349645544, 1349645457, 1349645282, 1349645240, 1349645188, 1349645138, 1349645071, 1349644771, 1349644738, 1349644710, 1349644680, 1349644656, 1349644600, 1349644162, 1349644048, 1349643940, 1349643871, 1349643847, 1349643510, 1349643482, 1349643404, 1349643354, 1349643302, 1349643236, 1349642637, 1349642530, 1349642440, 1349642389, 1349642352, 1349641785, 1349641698, 1349641620]} final : False mtd_id 4302 list_pids : [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] 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, '2718081') ('4302', '21993320', '1349649937', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649886', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649839', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649774', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649718', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649666', None, None, None, None, None, '2718081') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '21993320', '1349649937', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649886', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649839', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649774', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649718', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649666', None, None, None, None, None, '2718081')] time used for this insertion : 1.0033016204833984 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.483144998550415 time spend to save output : 1.0035061836242676 total time spend for step 4 : 7.486651182174683 step5:split_time_score Wed Apr 2 23:15:07 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 : ['21993320'] 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 : [('21993320',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21993320) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349649886: {'path': 'temp/1743628500_4022020_1349649886_f5ffd98d2b9372f2c048313c7132996f.jpg', 'extension': 'jpg'}, 1349649937: {'path': 'temp/1743628500_4022020_1349649937_28673e697b99a91d89e1bba4dbb6c173.jpg', 'extension': 'jpg'}, 1349649666: {'path': 'temp/1743628500_4022020_1349649666_f2ddaefcb46ab9eec54c1d197fa3eef1.jpg', 'extension': 'jpg'}, 1349649718: {'path': 'temp/1743628500_4022020_1349649718_e687d0002dadc199feed54bcd0ed7cc3.jpg', 'extension': 'jpg'}, 1349649774: {'path': 'temp/1743628500_4022020_1349649774_9278f118914f74567685bf06237f4e1c.jpg', 'extension': 'jpg'}, 1349649839: {'path': 'temp/1743628500_4022020_1349649839_37992d10e625134ce3e3f22d7c09c3e1.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 = 21993320; (('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 = 21993320 group by h (('23', 67),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21993320 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 (21993320) 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 (21993320) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21993320 Nombre de photos uploadées : 67 / 23040 (0%) 02042025 21993320 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 02042025 21993320 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1349641785, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e0b821a64a7913226ae2ad58e84abf20.jpg', 'username': None, 'uploaded_at': 1743627672, 'text': 'image_02042025_23_00_14_10134.jpg'}, {'photo_id': 1349641698, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5c230fd6237cad32d0111b132505f9a7.jpg', 'username': None, 'uploaded_at': 1743627672, 'text': 'image_02042025_23_00_24_10136.jpg'}, {'photo_id': 1349641620, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c1153f1d6d0a1cdd880ce61641f6b168.jpg', 'username': None, 'uploaded_at': 1743627672, 'text': 'image_02042025_23_00_33_9125.jpg'}, {'photo_id': 1349642637, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a8044a8a01a4506430fc329b59aa645e.jpg', 'username': None, 'uploaded_at': 1743627733, 'text': 'image_02042025_23_00_43_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0036818981170654297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21993320, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025977611541748047 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719462, 'mtr_portfolio_id': 21990823, 'dashboard_result_id': 9823985, '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_P21990823_02-04-2025_22_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719462, 'mtr_portfolio_id': 21991914, 'dashboard_result_id': 9823986, '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_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719462, 'mtr_portfolio_id': 21992485, 'dashboard_result_id': 9823987, '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_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719462, 'mtr_portfolio_id': 21993320, 'dashboard_result_id': 9823988, '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_P21993320_02-04-2025_23_13_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, '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 = 21990823 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': 2717931, 'mtr_portfolio_id': 21990823, 'created_at': datetime.datetime(2025, 4, 2, 22, 33), 'result': '0.04877417881972289', 'result_long': None, 'result_double': None}] Qualite : 0.04877417881972289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21990823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_02-04-2025_22_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21990823 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_P21990823_02-04-2025_22_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, 'pht': 3726}}" where mtr_portfolio_id = 21990823 and dashboard_run_id = 1719462 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`=21990823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9823985, 0.04877417881972289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_02-04-2025_22_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, '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 = 21991914 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': 2717994, 'mtr_portfolio_id': 21991914, 'created_at': datetime.datetime(2025, 4, 2, 22, 48, 59), 'result': '0.04052662425498596', 'result_long': None, 'result_double': None}] Qualite : 0.04052662425498596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21991914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_02-04-2025_22_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21991914 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_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}" where mtr_portfolio_id = 21991914 and dashboard_run_id = 1719462 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`=21991914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9823986, 0.04052662425498596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, '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 = 21992485 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': 2718031, 'mtr_portfolio_id': 21992485, 'created_at': datetime.datetime(2025, 4, 2, 23, 3), 'result': '0.05175821212156914', 'result_long': None, 'result_double': None}] Qualite : 0.05175821212156914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21992485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_02-04-2025_23_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21992485 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_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}" where mtr_portfolio_id = 21992485 and dashboard_run_id = 1719462 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`=21992485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9823987, 0.05175821212156914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, '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 = 21993320 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': 2718081, 'mtr_portfolio_id': 21993320, 'created_at': datetime.datetime(2025, 4, 2, 23, 14, 59), 'result': '0.04873893395301541', 'result_long': None, 'result_double': None}] Qualite : 0.04873893395301541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21993320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21993320 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_P21993320_02-04-2025_23_15_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}" where mtr_portfolio_id = 21993320 and dashboard_run_id = 1719462 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`=21993320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9823988, 0.04873893395301541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_15_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, '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 (21990823,21991914,21992485,21993320) result : ((1349613859,), (1349613915,), (1349613967,), (1349614017,), (1349614081,), (1349614680,), (1349614710,), (1349615364,), (1349615387,), (1349615422,), (1349615777,), (1349615825,), (1349616243,), (1349616266,), (1349616307,), (1349616350,), (1349616399,), (1349616983,), (1349617024,), (1349617062,), (1349617089,), (1349617643,), (1349617744,), (1349617768,), (1349617822,), (1349617858,), (1349617904,), (1349618260,), (1349618414,), (1349618517,), (1349618657,), (1349618780,), (1349618857,), (1349619299,), (1349619316,), (1349619342,), (1349619370,), (1349619553,), (1349619577,), (1349619601,), (1349619623,), (1349619675,), (1349619747,), (1349620184,), (1349620201,), (1349620432,), (1349620737,), (1349620777,), (1349620834,), (1349620902,), (1349621535,), (1349621598,), (1349621648,), (1349621721,), (1349621782,), (1349622130,), (1349622158,), (1349622191,), (1349622626,), (1349623964,), (1349623977,), (1349624273,), (1349624317,), (1349624355,), (1349624387,), (1349624697,), (1349624722,), (1349624750,), (1349624772,), (1349624776,), (1349624779,), (1349624905,), (1349624925,), (1349624941,), (1349624947,), (1349624963,), (1349625025,), (1349625029,), (1349625032,), (1349625084,), (1349625097,), (1349625108,), (1349625117,), (1349625125,), (1349625144,), (1349625256,), (1349625262,), (1349625271,), (1349625297,), (1349625521,), (1349625525,), (1349625764,), (1349625775,), (1349625779,), (1349625783,), (1349625787,), (1349626076,), (1349626133,), (1349626158,), (1349626179,), (1349626183,), (1349626208,), (1349626484,), (1349626522,), (1349626547,), (1349626571,), (1349626603,), (1349626620,), (1349626804,), (1349626895,), (1349626910,), (1349626931,), (1349627394,), (1349627184,), (1349627209,), (1349627256,), (1349627304,), (1349627345,), (1349628007,), (1349628053,), (1349628085,), (1349628149,), (1349628654,), (1349628699,), (1349628779,), (1349628921,), (1349628996,), (1349629048,), (1349629663,), (1349629709,), (1349629768,), (1349629926,), (1349630080,), (1349630116,), (1349630971,), (1349631032,), (1349631097,), (1349631188,), (1349631857,), (1349631876,), (1349631952,), (1349631991,), (1349632055,), (1349632132,), (1349632687,), (1349632761,), (1349632867,), (1349632968,), (1349633671,), (1349633745,), (1349633904,), (1349633991,), (1349634076,), (1349634150,), (1349634636,), (1349634704,), (1349634837,), (1349634910,), (1349634932,), (1349635470,), (1349635574,), (1349635674,), (1349635758,), (1349635849,), (1349636481,), (1349636567,), (1349636639,), (1349636709,), (1349637359,), (1349637391,), (1349637439,), (1349637490,), (1349637544,), (1349637603,), (1349638758,), (1349638894,), (1349639008,), (1349639087,), (1349639157,), (1349640422,), (1349640504,), (1349640554,), (1349640608,), (1349640669,), (1349640867,), (1349640962,), (1349641052,), (1349641145,), (1349641230,), (1349641837,), (1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21993320]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] map_info['map_portfolio_photo'] : {21993320: [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666, 1349649009, 1349648930, 1349648866, 1349648793, 1349648751, 1349648407, 1349648343, 1349648313, 1349648283, 1349648256, 1349648227, 1349647942, 1349647911, 1349647865, 1349647816, 1349647769, 1349647522, 1349647449, 1349647363, 1349647335, 1349647310, 1349647246, 1349646795, 1349646780, 1349646755, 1349646738, 1349646248, 1349646069, 1349645736, 1349645544, 1349645457, 1349645282, 1349645240, 1349645188, 1349645138, 1349645071, 1349644771, 1349644738, 1349644710, 1349644680, 1349644656, 1349644600, 1349644162, 1349644048, 1349643940, 1349643871, 1349643847, 1349643510, 1349643482, 1349643404, 1349643354, 1349643302, 1349643236, 1349642637, 1349642530, 1349642440, 1349642389, 1349642352, 1349641785, 1349641698, 1349641620]} final : True mtd_id 4302 list_pids : [1349649937, 1349649886, 1349649839, 1349649774, 1349649718, 1349649666] Looping around the photos to save general results len do output : 1 /21993320Didn'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, '2718081') ('4302', '21993320', '1349649937', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649886', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649839', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649774', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649718', None, None, None, None, None, '2718081') ('4302', None, None, None, None, None, None, None, '2718081') ('4302', '21993320', '1349649666', None, None, None, None, None, '2718081') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '21993320', 'None', None, None, None, None, '2718081'), ('4302', '21993320', '1349649937', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649886', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649839', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649774', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649718', None, None, None, None, None, '2718081'), ('4302', '21993320', '1349649666', None, None, None, None, None, '2718081')] time used for this insertion : 0.012328863143920898 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33524203300476074 time spend to save output : 0.012556791305541992 total time spend for step 5 : 0.34779882431030273 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 (2718081) 2.24user 2.41system 0:13.23elapsed 35%CPU (0avgtext+0avgdata 159288maxresident)k 456inputs+17416outputs (0major+71626minor)pagefaults 0swaps