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 : 2105391 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 (2557853) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2557853) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284556 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2557853'] with mtr_portfolio_ids : ['20284556'] and first list_photo_ids : [] new path : /proc/2105391/ Name: python3 Umask: 0002 State: R (running) Tgid: 2105391 Ngid: 0 Pid: 2105391 PPid: 2105390 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2105391 NSpid: 2105391 NSpgid: 2103381 NSsid: 2103381 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98268 kB VmRSS: 98268 kB RssAnon: 59760 kB RssFile: 38508 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 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: 102 nonvoluntary_ctxt_switches: 142 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2105391', 'Ngid': '0', 'Pid': '2105391', 'PPid': '2105390', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2105391', 'NSpid': '2105391', 'NSpgid': '2103381', 'NSsid': '2103381', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98268 kB', 'VmRSS': '98268 kB', 'RssAnon': '59760 kB', 'RssFile': '38508 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '102', 'nonvoluntary_ctxt_switches': '142'} ('datou_batch_current', '2105391', '1106844', '0', '1106844', '865596', '98268', b'', 'marlene', '2557853') 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 (20284556) 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 (2557853 ) ) 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 (20284556) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335112737, 'portfolio_id': 20284556}, {'photo_id': 1335112690, 'portfolio_id': 20284556}, {'photo_id': 1335112686, 'portfolio_id': 20284556}, {'photo_id': 1335112672, 'portfolio_id': 20284556}, {'photo_id': 1335112670, 'portfolio_id': 20284556}, {'photo_id': 1335112665, 'portfolio_id': 20284556}, {'photo_id': 1335112278, 'portfolio_id': 20284556}, {'photo_id': 1335112272, 'portfolio_id': 20284556}, {'photo_id': 1335112270, 'portfolio_id': 20284556}, {'photo_id': 1335112156, 'portfolio_id': 20284556}, {'photo_id': 1335112152, 'portfolio_id': 20284556}, {'photo_id': 1335112149, 'portfolio_id': 20284556}, {'photo_id': 1335112135, 'portfolio_id': 20284556}, {'photo_id': 1335112091, 'portfolio_id': 20284556}, {'photo_id': 1335112055, 'portfolio_id': 20284556}, {'photo_id': 1335111906, 'portfolio_id': 20284556}, {'photo_id': 1335111849, 'portfolio_id': 20284556}, {'photo_id': 1335111777, 'portfolio_id': 20284556}, {'photo_id': 1335111708, 'portfolio_id': 20284556}, {'photo_id': 1335111100, 'portfolio_id': 20284556}, {'photo_id': 1335111098, 'portfolio_id': 20284556}, {'photo_id': 1335111095, 'portfolio_id': 20284556}, {'photo_id': 1335111092, 'portfolio_id': 20284556}, {'photo_id': 1335111091, 'portfolio_id': 20284556}, {'photo_id': 1335111088, 'portfolio_id': 20284556}, {'photo_id': 1335111055, 'portfolio_id': 20284556}, {'photo_id': 1335111053, 'portfolio_id': 20284556}, {'photo_id': 1335111049, 'portfolio_id': 20284556}, {'photo_id': 1335111046, 'portfolio_id': 20284556}, {'photo_id': 1335111043, 'portfolio_id': 20284556}, {'photo_id': 1335111020, 'portfolio_id': 20284556}, {'photo_id': 1335111013, 'portfolio_id': 20284556}, {'photo_id': 1335111010, 'portfolio_id': 20284556}, {'photo_id': 1335110998, 'portfolio_id': 20284556}, {'photo_id': 1335110842, 'portfolio_id': 20284556}, {'photo_id': 1335110801, 'portfolio_id': 20284556}, {'photo_id': 1335110764, 'portfolio_id': 20284556}, {'photo_id': 1335110745, 'portfolio_id': 20284556}, {'photo_id': 1335110682, 'portfolio_id': 20284556}, {'photo_id': 1335110425, 'portfolio_id': 20284556}, {'photo_id': 1335110422, 'portfolio_id': 20284556}, {'photo_id': 1335110369, 'portfolio_id': 20284556}, {'photo_id': 1335110362, 'portfolio_id': 20284556}, {'photo_id': 1335110335, 'portfolio_id': 20284556}, {'photo_id': 1335110333, 'portfolio_id': 20284556}, {'photo_id': 1335110331, 'portfolio_id': 20284556}, {'photo_id': 1335110329, 'portfolio_id': 20284556}, {'photo_id': 1335110327, 'portfolio_id': 20284556}, {'photo_id': 1335110283, 'portfolio_id': 20284556}, {'photo_id': 1335110077, 'portfolio_id': 20284556}, {'photo_id': 1335110075, 'portfolio_id': 20284556}, {'photo_id': 1335110072, 'portfolio_id': 20284556}, {'photo_id': 1335110070, 'portfolio_id': 20284556}, {'photo_id': 1335110068, 'portfolio_id': 20284556}, {'photo_id': 1335110066, 'portfolio_id': 20284556}, {'photo_id': 1335109449, 'portfolio_id': 20284556}, {'photo_id': 1335109447, 'portfolio_id': 20284556}, {'photo_id': 1335109444, 'portfolio_id': 20284556}, {'photo_id': 1335109442, 'portfolio_id': 20284556}, {'photo_id': 1335109440, 'portfolio_id': 20284556}, {'photo_id': 1335109438, 'portfolio_id': 20284556}, {'photo_id': 1335109388, 'portfolio_id': 20284556}, {'photo_id': 1335109386, 'portfolio_id': 20284556}, {'photo_id': 1335109346, 'portfolio_id': 20284556}, {'photo_id': 1335109125, 'portfolio_id': 20284556}, {'photo_id': 1335109123, 'portfolio_id': 20284556}, {'photo_id': 1335109121, 'portfolio_id': 20284556}] map_portfolio_id_photo_id: {20284556: [1335112737, 1335112690, 1335112686, 1335112672, 1335112670, 1335112665, 1335112278, 1335112272, 1335112270, 1335112156, 1335112152, 1335112149, 1335112135, 1335112091, 1335112055, 1335111906, 1335111849, 1335111777, 1335111708, 1335111100, 1335111098, 1335111095, 1335111092, 1335111091, 1335111088, 1335111055, 1335111053, 1335111049, 1335111046, 1335111043, 1335111020, 1335111013, 1335111010, 1335110998, 1335110842, 1335110801, 1335110764, 1335110745, 1335110682, 1335110425, 1335110422, 1335110369, 1335110362, 1335110335, 1335110333, 1335110331, 1335110329, 1335110327, 1335110283, 1335110077, 1335110075, 1335110072, 1335110070, 1335110068, 1335110066, 1335109449, 1335109447, 1335109444, 1335109442, 1335109440, 1335109438, 1335109388, 1335109386, 1335109346, 1335109125, 1335109123, 1335109121]} ##### 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.017055034637451172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 6 04:32:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20284556) 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 : 20284556 get user id for portfolio 20284556 get sub ptf for main ptf 20284556, type 3726 and hashtags ['plastique', 'autre_refus', 'cartonnette', 'Carton_brun', 'Carton_gris', 'mal_croppe', 'kraft', 'papier', 'Teint_Dans_La_Masse', 'environnement', 'flou', 'metal'] 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`=20284556 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','Carton_gris','mal_croppe','kraft','papier','Teint_Dans_La_Masse','environnement','flou','metal')) 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`=20284556 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','Carton_gris','mal_croppe','kraft','papier','Teint_Dans_La_Masse','environnement','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20284556, 'sub_port_id': 20284586, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976194, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'kraft': {'main_port_id': 20284556, 'sub_port_id': 20284587, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976195, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'flou': {'main_port_id': 20284556, 'sub_port_id': 20284588, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976196, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'papier': {'main_port_id': 20284556, 'sub_port_id': 20284589, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976197, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'metal': {'main_port_id': 20284556, 'sub_port_id': 20284590, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976198, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'cartonnette': {'main_port_id': 20284556, 'sub_port_id': 20284591, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976199, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'Carton_gris': {'main_port_id': 20284556, 'sub_port_id': 20284592, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976200, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'Teint_Dans_La_Masse': {'main_port_id': 20284556, 'sub_port_id': 20284593, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976201, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'autre_refus': {'main_port_id': 20284556, 'sub_port_id': 20284594, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976202, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'environnement': {'main_port_id': 20284556, 'sub_port_id': 20284595, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976203, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'plastique': {'main_port_id': 20284556, 'sub_port_id': 20284596, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976204, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}, 'Carton_brun': {'main_port_id': 20284556, 'sub_port_id': 20284597, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976205, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20284586 , 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=20284556 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 (20284586) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284587 , 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=20284556 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 (20284587) result : ((1335110624,), (1335112225,), (1335112359,), (1335112360,), (1335112823,), (1335112824,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284588 , 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=20284556 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 (20284588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284589 , 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=20284556 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 (20284589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284590 , 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=20284556 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 (20284590) result : ((1335110635,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284591 , 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=20284556 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 (20284591) result : ((1335111926,), (1335112203,), (1335112205,), (1335112207,), (1335112353,), (1335112354,), (1335112355,), (1335112356,), (1335112357,), (1335112358,), (1335112789,), (1335112791,), (1335112793,), (1335112816,), (1335112817,), (1335112818,), (1335112819,), (1335112820,), (1335112821,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284592 , 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=20284556 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 (20284592) result : ((1335110578,), (1335110579,), (1335110761,), (1335110762,), (1335110763,), (1335111065,), (1335112159,), (1335112330,), (1335112743,), (1335112744,), (1335112745,), (1335112746,), (1335112814,), (1335112815,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284593 , 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=20284556 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 (20284593) result : ((1335109459,), (1335109460,), (1335109461,), (1335109462,), (1335110287,), (1335110509,), (1335110512,), (1335110746,), (1335110747,), (1335110748,), (1335110749,), (1335110750,), (1335111060,), (1335111061,), (1335111062,), (1335111922,), (1335111923,), (1335111924,), (1335112153,), (1335112154,), (1335112155,), (1335112180,), (1335112181,), (1335112274,), (1335112275,), (1335112738,), (1335112739,), (1335112740,), (1335112741,), (1335112742,), (1335112807,), (1335112808,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284594 , 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=20284556 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 (20284594) result : ((1335110552,), (1335110759,), (1335110760,), (1335111063,), (1335111925,), (1335112158,), (1335112306,), (1335112307,), (1335112309,), (1335112689,), (1335112810,), (1335112811,), (1335112812,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284595 , 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=20284556 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 (20284595) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284596 , 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=20284556 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 (20284596) result : ((1335112219,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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 20284597 , 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=20284556 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 (20284597) result : ((1335110288,), (1335110290,), (1335110765,), (1335112691,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20284556) result : ((1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) 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 (1335111100) 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`=20284556 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','Carton_gris','mal_croppe','kraft','papier','Teint_Dans_La_Masse','environnement','flou','metal')) 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`=20284556 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','Carton_gris','mal_croppe','kraft','papier','Teint_Dans_La_Masse','environnement','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20284556, 'sub_port_id': 20284622, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976230, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'kraft': {'main_port_id': 20284556, 'sub_port_id': 20284623, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976231, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'flou': {'main_port_id': 20284556, 'sub_port_id': 20284624, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976232, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'papier': {'main_port_id': 20284556, 'sub_port_id': 20284625, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976233, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'metal': {'main_port_id': 20284556, 'sub_port_id': 20284626, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976234, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'cartonnette': {'main_port_id': 20284556, 'sub_port_id': 20284627, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976235, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'Carton_gris': {'main_port_id': 20284556, 'sub_port_id': 20284628, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976236, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 20284556, 'sub_port_id': 20284629, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976237, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'autre_refus': {'main_port_id': 20284556, 'sub_port_id': 20284630, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976238, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'environnement': {'main_port_id': 20284556, 'sub_port_id': 20284631, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976239, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'plastique': {'main_port_id': 20284556, 'sub_port_id': 20284632, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976240, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 21, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}, 'Carton_brun': {'main_port_id': 20284556, 'sub_port_id': 20284633, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12976241, 'last_updated_at': datetime.datetime(2025, 2, 6, 4, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 4, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 4, 21, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284622,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284623,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284624,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284625,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284626,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284627,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284628,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284629,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20284633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20284597 lien utilise dans velours : https://www.fotonower.com/velours/20284622,20284623,20284624,20284625,20284626,20284627,20284628,20284629,20284630,20284631,20284632,20284633?tags=mal_croppe,kraft,flou,papier,metal,cartonnette,Carton_gris,Teint_Dans_La_Masse,autre_refus,environnement,plastique,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20284556]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] map_info['map_portfolio_photo'] : {20284556: [1335112737, 1335112690, 1335112686, 1335112672, 1335112670, 1335112665, 1335112278, 1335112272, 1335112270, 1335112156, 1335112152, 1335112149, 1335112135, 1335112091, 1335112055, 1335111906, 1335111849, 1335111777, 1335111708, 1335111100, 1335111098, 1335111095, 1335111092, 1335111091, 1335111088, 1335111055, 1335111053, 1335111049, 1335111046, 1335111043, 1335111020, 1335111013, 1335111010, 1335110998, 1335110842, 1335110801, 1335110764, 1335110745, 1335110682, 1335110425, 1335110422, 1335110369, 1335110362, 1335110335, 1335110333, 1335110331, 1335110329, 1335110327, 1335110283, 1335110077, 1335110075, 1335110072, 1335110070, 1335110068, 1335110066, 1335109449, 1335109447, 1335109444, 1335109442, 1335109440, 1335109438, 1335109388, 1335109386, 1335109346, 1335109125, 1335109123, 1335109121]} final : False mtd_id 4302 list_pids : [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] Looping around the photos to save general results len do output : 1 /20284556. 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, '2557853') ('4302', '20284556', '1335112737', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112690', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112686', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112672', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112670', None, None, None, None, None, '2557853') 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', None, '20284556', "{'mal_croppe': 20284586, 'kraft': 20284587, 'flou': 20284588, 'papier': 20284589, 'metal': 20284590, 'cartonnette': 20284591, 'Carton_gris': 20284592, 'Teint_Dans_La_Masse': 20284593, 'autre_refus': 20284594, 'environnement': 20284595, 'plastique': 20284596, 'Carton_brun': 20284597}", None, None, None, None, '2557853'), ('4302', '20284556', '1335112737', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112690', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112686', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112672', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112670', None, None, None, None, None, '2557853')] time used for this insertion : 0.013731718063354492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5990087985992432 time spend to save output : 0.014035940170288086 total time spend for step 1 : 0.6130447387695312 step2:final Thu Feb 6 04:32:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20284556) 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 20284556 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335109125,1335109123,1335109121,1335109388,1335109386,1335109346,1335109449,1335109447,1335109444,1335109442,1335109440,1335109438,1335110077,1335110075,1335110072,1335110070,1335110068,1335110066,1335110283,1335110335,1335110333,1335110331,1335110329,1335110327,1335110425,1335110422,1335110369,1335110362,1335110842,1335110801,1335110764,1335110745,1335110682,1335111020,1335111013,1335111010,1335110998,1335111055,1335111053,1335111049,1335111046,1335111043,1335111100,1335111098,1335111095,1335111092,1335111091,1335111088,1335111906,1335111849,1335111777,1335111708,1335112156,1335112152,1335112149,1335112135,1335112091,1335112055,1335112278,1335112272,1335112270,1335112690,1335112686,1335112672,1335112665,1335112670,1335112737); 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([20284556]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} new output for save of step final : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] map_info['map_portfolio_photo'] : {20284556: [1335112737, 1335112690, 1335112686, 1335112672, 1335112670, 1335112665, 1335112278, 1335112272, 1335112270, 1335112156, 1335112152, 1335112149, 1335112135, 1335112091, 1335112055, 1335111906, 1335111849, 1335111777, 1335111708, 1335111100, 1335111098, 1335111095, 1335111092, 1335111091, 1335111088, 1335111055, 1335111053, 1335111049, 1335111046, 1335111043, 1335111020, 1335111013, 1335111010, 1335110998, 1335110842, 1335110801, 1335110764, 1335110745, 1335110682, 1335110425, 1335110422, 1335110369, 1335110362, 1335110335, 1335110333, 1335110331, 1335110329, 1335110327, 1335110283, 1335110077, 1335110075, 1335110072, 1335110070, 1335110068, 1335110066, 1335109449, 1335109447, 1335109444, 1335109442, 1335109440, 1335109438, 1335109388, 1335109386, 1335109346, 1335109125, 1335109123, 1335109121]} final : False mtd_id 4302 list_pids : [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] Looping around the photos to save general results len do output : 5 /1335112737.Didn't retrieve data . /1335112690.Didn't retrieve data . /1335112686.Didn't retrieve data . /1335112672.Didn't retrieve data . /1335112670.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, '2557853') ('4302', '20284556', '1335112737', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112690', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112686', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112672', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112670', None, None, None, None, None, '2557853') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '20284556', '1335112737', '0.05806768104778496', None, None, None, None, '2557853'), ('4302', '20284556', '1335112690', '0.05806768104778496', None, None, None, None, '2557853'), ('4302', '20284556', '1335112686', '0.05806768104778496', None, None, None, None, '2557853'), ('4302', '20284556', '1335112672', '0.05806768104778496', None, None, None, None, '2557853'), ('4302', '20284556', '1335112670', '0.05806768104778496', None, None, None, None, '2557853')] time used for this insertion : 0.019736528396606445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07391571998596191 time spend to save output : 0.02017378807067871 total time spend for step 2 : 0.09408950805664062 step3:velours_tree Thu Feb 6 04:32:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20284556: [{'mal_croppe': 20284586, 'kraft': 20284587, 'flou': 20284588, 'papier': 20284589, 'metal': 20284590, 'cartonnette': 20284591, 'Carton_gris': 20284592, 'Teint_Dans_La_Masse': 20284593, 'autre_refus': 20284594, 'environnement': 20284595, 'plastique': 20284596, 'Carton_brun': 20284597}]} input_args_next_step : {20284556: ()} output_args : {20284556: [{'mal_croppe': 20284586, 'kraft': 20284587, 'flou': 20284588, 'papier': 20284589, 'metal': 20284590, 'cartonnette': 20284591, 'Carton_gris': 20284592, 'Teint_Dans_La_Masse': 20284593, 'autre_refus': 20284594, 'environnement': 20284595, 'plastique': 20284596, 'Carton_brun': 20284597}]} args : 20284556 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 : ({'mal_croppe': 20284586, 'kraft': 20284587, 'flou': 20284588, 'papier': 20284589, 'metal': 20284590, 'cartonnette': 20284591, 'Carton_gris': 20284592, 'Teint_Dans_La_Masse': 20284593, 'autre_refus': 20284594, 'environnement': 20284595, 'plastique': 20284596, 'Carton_brun': 20284597},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20284556) 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([20284556]) 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.34632420539855957 time spend to save output : 7.414817810058594e-05 total time spend for step 3 : 0.34639835357666016 step4:send_mail_cod Thu Feb 6 04:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} input_args_next_step : {1335112737: ()} output_args : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} args : 1335112737 depend.output_id : 0 input_args_next_step : {1335112737: ('0.05806768104778496',), 1335112690: ()} output_args : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} args : 1335112690 depend.output_id : 0 input_args_next_step : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ()} output_args : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} args : 1335112686 depend.output_id : 0 input_args_next_step : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ()} output_args : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} args : 1335112672 depend.output_id : 0 input_args_next_step : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ()} output_args : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',)} args : 1335112670 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 : {20284556: [{'mal_croppe': 20284586, 'kraft': 20284587, 'flou': 20284588, 'papier': 20284589, 'metal': 20284590, 'cartonnette': 20284591, 'Carton_gris': 20284592, 'Teint_Dans_La_Masse': 20284593, 'autre_refus': 20284594, 'environnement': 20284595, 'plastique': 20284596, 'Carton_brun': 20284597}]} input_args_next_step : {1335112737: ('0.05806768104778496',), 1335112690: ('0.05806768104778496',), 1335112686: ('0.05806768104778496',), 1335112672: ('0.05806768104778496',), 1335112670: ('0.05806768104778496',), 20284556: ()} output_args : {20284556: [{'mal_croppe': 20284586, 'kraft': 20284587, 'flou': 20284588, 'papier': 20284589, 'metal': 20284590, 'cartonnette': 20284591, 'Carton_gris': 20284592, 'Teint_Dans_La_Masse': 20284593, 'autre_refus': 20284594, 'environnement': 20284595, 'plastique': 20284596, 'Carton_brun': 20284597}]} args : 20284556 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 :6, first value : ('0.05806768104778496',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20284556) 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 (1335112737,1335112690,1335112686,1335112672,1335112670) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335112670 begin to download photo : 1335112686 begin to download photo : 1335112737 download finish for photo 1335112670 begin to download photo : 1335112672 download finish for photo 1335112686 begin to download photo : 1335112690 download finish for photo 1335112737 download finish for photo 1335112672 download finish for photo 1335112690 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette202845861738812778/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P20284556_06-02-2025_04_32_58.pdf 20284586 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=20284586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202845861738812778 20284587 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=20284587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335110624: '1738812093_2871521_1335110283_88e1ad5d3e10d3e478adb6b47562c26e_rle_crop_3657103021_0.png', 1335112225: '1738812452_2878091_1335111055_a21697621bad641ee85954a13184faff_rle_crop_3657112942_0.png', 1335112359: '1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113263_0.png', 1335112360: '1738812473_2878292_1335111046_35a3d852b1f4c1ba4c6ec42135d817b4_rle_crop_3657113346_0.png', 1335112823: '1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113263_0.png', 1335112824: '1738812592_2879622_1335111046_35a3d852b1f4c1ba4c6ec42135d817b4_rle_crop_3657113346_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9c7d98b15eb2b2b55e8f142256b0589f_78334680.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a319b1b9e383cfe596a00c4be02b4b81_21866480.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ac3bbf4658f9ce9737cd70dea171e05c_3658087.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/463e0f1b766b0652de1daee31ebc15c4_74771522.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ac3bbf4658f9ce9737cd70dea171e05c_23941594.png change filename to text .imagette202845871738812778/ imagette202845871738812778/1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113263_0.png.png imagette202845871738812778/1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113263_0.png.png imagette202845871738812778/1738812473_2878292_1335111046_35a3d852b1f4c1ba4c6ec42135d817b4_rle_crop_3657113346_0.png.png imagette202845871738812778/1738812093_2871521_1335110283_88e1ad5d3e10d3e478adb6b47562c26e_rle_crop_3657103021_0.png.png imagette202845871738812778/1738812592_2879622_1335111046_35a3d852b1f4c1ba4c6ec42135d817b4_rle_crop_3657113346_0.png.png imagette202845871738812778/1738812452_2878091_1335111055_a21697621bad641ee85954a13184faff_rle_crop_3657112942_0.png.png imagette202845881738812778/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/463e0f1b766b0652de1daee31ebc15c4_8947317.png imagette202845871738812778 20284588 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=20284588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202845881738812778 20284590 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=20284590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335110635: '1738812093_2871521_1335110075_f374b4adb35166715ad35ec0ff529fa1_rle_crop_3657103218_0.png'} change filename to text .imagette202845901738812778/ imagette202845901738812778/1738812093_2871521_1335110075_f374b4adb35166715ad35ec0ff529fa1_rle_crop_3657103218_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/fc047c75f1aa635e877416b913367637_84350781.png imagette202845901738812778 20284591 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=20284591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335112358: '1738812473_2878292_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113358_0.png', 1335112821: '1738812592_2879622_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113358_0.png', 1335112820: '1738812592_2879622_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113362_0.png', 1335112819: '1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113269_0.png', 1335112818: '1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113270_0.png', 1335112817: '1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113266_0.png', 1335112816: '1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113240_0.png', 1335112793: '1738812573_2879400_1335111092_a8b4fc3607daa0099ec235b5118fdf19_rle_crop_3657114257_0.png', 1335112791: '1738812573_2879400_1335111095_6a38c39b5dd5bcbc033101d61ce7cf6d_rle_crop_3657114232_0.png', 1335112789: '1738812573_2879400_1335111098_46598e24e67880588e533c21bd0fb105_rle_crop_3657114215_0.png', 1335111926: '1738812393_2877371_1335110764_85e95905f2a340a86d6f79405ab29927_rle_crop_3657112640_0.png', 1335112357: '1738812473_2878292_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113362_0.png', 1335112356: '1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113269_0.png', 1335112355: '1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113270_0.png', 1335112354: '1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113266_0.png', 1335112353: '1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113240_0.png', 1335112207: '1738812452_2878091_1335110998_4d9e693489795eb9fa73926e9f8ec7fb_rle_crop_3657111559_0.png', 1335112205: '1738812452_2878091_1335111055_a21697621bad641ee85954a13184faff_rle_crop_3657112946_0.png', 1335112203: '1738812452_2878091_1335111055_a21697621bad641ee85954a13184faff_rle_crop_3657112947_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5a3a8b59681d2098e5f8900a72f1c049_64626552.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5a3a8b59681d2098e5f8900a72f1c049_86876961.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5edad9cda413d134a13348c28b9b8b53_11709531.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/fe6bf14b4a754070f79b84b73128c5b4_14386034.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/11b27bae09361d2ba770f61818ed8490_69874335.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1a668273eab823ca0c3dd29f7ac09dc8_3959992.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a1935d8993f556198167e23461509404_55168032.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7dff9d071c61034fc619595ef5aa2311_65669681.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/69b60a709c120f559024532f27739af6_79095071.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5945984bd412ab921031fcea289a297c_96265752.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/00bbda30beb1240e7a0dcc1e85b4e6fd_86411750.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5edad9cda413d134a13348c28b9b8b53_12203121.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/fe6bf14b4a754070f79b84b73128c5b4_6257446.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/11b27bae09361d2ba770f61818ed8490_81264222.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1a668273eab823ca0c3dd29f7ac09dc8_53698449.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a1935d8993f556198167e23461509404_99586102.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ec88ae80cdd84d273d3fe9fd12949ce6_90799043.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5d9e41829479228c1a6879d895a57ffa_42626224.png change filename to text .imagette202845911738812778/ imagette202845911738812778/1738812393_2877371_1335110764_85e95905f2a340a86d6f79405ab29927_rle_crop_3657112640_0.png.png imagette202845911738812778/1738812452_2878091_1335111055_a21697621bad641ee85954a13184faff_rle_crop_3657112947_0.png.png imagette202845911738812778/1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113270_0.png.png imagette202845911738812778/1738812592_2879622_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113362_0.png.png imagette202845911738812778/1738812473_2878292_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113358_0.png.png imagette202845911738812778/1738812452_2878091_1335110998_4d9e693489795eb9fa73926e9f8ec7fb_rle_crop_3657111559_0.png.png imagette202845911738812778/1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113269_0.png.png imagette202845911738812778/1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113266_0.png.png imagette202845911738812778/1738812573_2879400_1335111095_6a38c39b5dd5bcbc033101d61ce7cf6d_rle_crop_3657114232_0.png.png imagette202845911738812778/1738812573_2879400_1335111092_a8b4fc3607daa0099ec235b5118fdf19_rle_crop_3657114257_0.png.png imagette202845911738812778/1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113240_0.png.png imagette202845911738812778/1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113240_0.png.png imagette202845911738812778/1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113270_0.png.png imagette202845911738812778/1738812473_2878292_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113362_0.png.png imagette202845911738812778/1738812573_2879400_1335111098_46598e24e67880588e533c21bd0fb105_rle_crop_3657114215_0.png.png imagette202845911738812778/1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113269_0.png.png imagette202845911738812778/1738812452_2878091_1335111055_a21697621bad641ee85954a13184faff_rle_crop_3657112946_0.png.png imagette202845911738812778/1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113266_0.png.png imagette202845911738812778/1738812592_2879622_1335111043_2b9534b7877d9f7a88244865e66f9095_rle_crop_3657113358_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b7ff90974f73e990d25cbfee646473b5_4371786.png imagette202845911738812778 20284594 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=20284594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335110552: '1738812093_2871521_1335110072_aab4ab55c1479cecaee1415712f6e984_rle_crop_3657103228_0.png', 1335110759: '1738812112_2871878_1335110077_6bdf66b6d91d74f0fecc22487eb2116d_rle_crop_3657104103_0.png', 1335110760: '1738812112_2871878_1335109447_414052fddcc38fff0ac108c71d57f96c_rle_crop_3657104327_0.png', 1335111063: '1738812234_2873510_1335110329_beed95fbe7ddeb628c5f7283a7ef0a59_rle_crop_3657109601_0.png', 1335111925: '1738812393_2877371_1335110801_4b6c88977fa1e309856ccc50e8ecba9d_rle_crop_3657112618_0.png', 1335112158: '1738812413_2877568_1335110329_beed95fbe7ddeb628c5f7283a7ef0a59_rle_crop_3657109601_0.png', 1335112306: '1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113233_0.png', 1335112307: '1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113236_0.png', 1335112309: '1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113234_0.png', 1335112689: '1738812553_2879234_1335111708_353009c83e35057df4b2772631c90140_rle_crop_3657113892_0.png', 1335112810: '1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113233_0.png', 1335112811: '1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113236_0.png', 1335112812: '1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113234_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/af00d3fcd6e581819001e0e0708f15c3_43351783.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b622aff55dc43a35613b3d21e560de88_58662646.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f4dc7bb25e3f76b436ca3a2297fa6f88_91676395.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/cb3ef9afee6c0d6a41727ca345a8aed5_1095447.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/81d4e262c849ce077196d8f380e580d5_30692300.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/cb3ef9afee6c0d6a41727ca345a8aed5_42354453.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ebec4a58c6b608bc6fb18d8c055ef364_5187527.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/fd1821c50b05e0dce4f3e3ddd8ce4bdc_35617724.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f039f8956e1117b26157053431b1219b_63118835.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d4e2f17ea605b39eb198f790624d6d23_92726623.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ebec4a58c6b608bc6fb18d8c055ef364_53269698.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/fd1821c50b05e0dce4f3e3ddd8ce4bdc_48273620.png change filename to text .imagette202845941738812779/ imagette202845941738812779/1738812413_2877568_1335110329_beed95fbe7ddeb628c5f7283a7ef0a59_rle_crop_3657109601_0.png.png imagette202845941738812779/1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113236_0.png.png imagette202845941738812779/1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113234_0.png.png imagette202845941738812779/1738812234_2873510_1335110329_beed95fbe7ddeb628c5f7283a7ef0a59_rle_crop_3657109601_0.png.png imagette202845941738812779/1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113234_0.png.png imagette202845941738812779/1738812553_2879234_1335111708_353009c83e35057df4b2772631c90140_rle_crop_3657113892_0.png.png imagette202845941738812779/1738812093_2871521_1335110072_aab4ab55c1479cecaee1415712f6e984_rle_crop_3657103228_0.png.png imagette202845941738812779/1738812393_2877371_1335110801_4b6c88977fa1e309856ccc50e8ecba9d_rle_crop_3657112618_0.png.png imagette202845941738812779/1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113233_0.png.png imagette202845941738812779/1738812112_2871878_1335110077_6bdf66b6d91d74f0fecc22487eb2116d_rle_crop_3657104103_0.png.png imagette202845941738812779/1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113236_0.png.png imagette202845941738812779/1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113233_0.png.png imagette202845941738812779/1738812112_2871878_1335109447_414052fddcc38fff0ac108c71d57f96c_rle_crop_3657104327_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f039f8956e1117b26157053431b1219b_74423443.png imagette202845941738812779 20284596 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=20284596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335112219: '1738812452_2878091_1335110998_4d9e693489795eb9fa73926e9f8ec7fb_rle_crop_3657111560_0.png'} change filename to text .imagette202845961738812780/ imagette202845961738812780/1738812452_2878091_1335110998_4d9e693489795eb9fa73926e9f8ec7fb_rle_crop_3657111560_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d8db550bb0e6dd5046131e40ef37e187_74786931.png imagette202845961738812780 20284592 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=20284592 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335110578: '1738812093_2871521_1335110068_8538256ec8f43371054f5d9fb8cdfa51_rle_crop_3657103254_0.png', 1335110579: '1738812093_2871521_1335110068_8538256ec8f43371054f5d9fb8cdfa51_rle_crop_3657103251_0.png', 1335110761: '1738812112_2871878_1335109442_814ef73f4c0e3e9c854b8622ccf1b5b9_rle_crop_3657104565_0.png', 1335110762: '1738812112_2871878_1335109440_835adfe45a20aeb9d38974c44cbfaef2_rle_crop_3657104988_0.png', 1335110763: '1738812112_2871878_1335109438_f43c444b58f33661370681dd02c072b8_rle_crop_3657105243_0.png', 1335111065: '1738812234_2873510_1335110425_a64ba90835f4c7cadc97d7312352ff6a_rle_crop_3657109359_0.png', 1335112159: '1738812413_2877568_1335110425_a64ba90835f4c7cadc97d7312352ff6a_rle_crop_3657109359_0.png', 1335112330: '1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113231_0.png', 1335112743: '1738812573_2879400_1335111098_46598e24e67880588e533c21bd0fb105_rle_crop_3657114216_0.png', 1335112744: '1738812573_2879400_1335111095_6a38c39b5dd5bcbc033101d61ce7cf6d_rle_crop_3657114234_0.png', 1335112745: '1738812573_2879400_1335111091_024b66a9edd7f3beb124800f56796f81_rle_crop_3657114876_0.png', 1335112746: '1738812573_2879400_1335111088_b203467d7c36b8a2fa37dd065ec3f51b_rle_crop_3657114929_0.png', 1335112814: '1738812592_2879622_1335111100_e2754d61edfeaeb417e3294793b60368_rle_crop_3657114848_0.png', 1335112815: '1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113231_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b1a00ec8c2ee9d38fdff67b80fd18245_96485502.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/39a30613be8453c3ecc667df683facd1_82992771.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ff41858f41cfec271af2fb71a30bec60_21254641.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1621d48336e4ec6aed7310f1bf8281e7_96367556.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f32edb783dee3e85bd7a1d5f61add6e1_37591500.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c27c3a3a97fe378cd19a3e3aefbfc1ab_70441964.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c27c3a3a97fe378cd19a3e3aefbfc1ab_37691284.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dc26e231fac834da493741991af49ddd_27292705.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c577104276b93fc01201e1ab67d288bb_58104527.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dadedcd2f83bc9d91a8e0608bafaaa28_46220162.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/59125d7db42b9fc383f2be7428ba4ae7_70654608.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/28cf997f8c81fa3a31461ca9d784a537_60262145.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/879cea17d6a3307a133267ccfb303a23_87374697.png change filename to text .imagette202845921738812780/ imagette202845921738812780/1738812112_2871878_1335109442_814ef73f4c0e3e9c854b8622ccf1b5b9_rle_crop_3657104565_0.png.png imagette202845921738812780/1738812112_2871878_1335109438_f43c444b58f33661370681dd02c072b8_rle_crop_3657105243_0.png.png imagette202845921738812780/1738812573_2879400_1335111088_b203467d7c36b8a2fa37dd065ec3f51b_rle_crop_3657114929_0.png.png imagette202845921738812780/1738812112_2871878_1335109440_835adfe45a20aeb9d38974c44cbfaef2_rle_crop_3657104988_0.png.png imagette202845921738812780/1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113231_0.png.png imagette202845921738812780/1738812413_2877568_1335110425_a64ba90835f4c7cadc97d7312352ff6a_rle_crop_3657109359_0.png.png imagette202845921738812780/1738812234_2873510_1335110425_a64ba90835f4c7cadc97d7312352ff6a_rle_crop_3657109359_0.png.png imagette202845921738812780/1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113231_0.png.png imagette202845921738812780/1738812573_2879400_1335111098_46598e24e67880588e533c21bd0fb105_rle_crop_3657114216_0.png.png imagette202845921738812780/1738812573_2879400_1335111095_6a38c39b5dd5bcbc033101d61ce7cf6d_rle_crop_3657114234_0.png.png imagette202845921738812780/1738812573_2879400_1335111091_024b66a9edd7f3beb124800f56796f81_rle_crop_3657114876_0.png.png imagette202845921738812780/1738812093_2871521_1335110068_8538256ec8f43371054f5d9fb8cdfa51_rle_crop_3657103254_0.png.png imagette202845921738812780/1738812093_2871521_1335110068_8538256ec8f43371054f5d9fb8cdfa51_rle_crop_3657103251_0.png.png imagette202845921738812780/1738812592_2879622_1335111100_e2754d61edfeaeb417e3294793b60368_rle_crop_3657114848_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dc26e231fac834da493741991af49ddd_18891393.png imagette202845921738812780 20284593 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=20284593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335111923: '1738812393_2877371_1335110764_85e95905f2a340a86d6f79405ab29927_rle_crop_3657112642_0.png', 1335112808: '1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113274_0.png', 1335112807: '1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113244_0.png', 1335112742: '1738812573_2879400_1335111088_b203467d7c36b8a2fa37dd065ec3f51b_rle_crop_3657114941_0.png', 1335112741: '1738812573_2879400_1335111088_b203467d7c36b8a2fa37dd065ec3f51b_rle_crop_3657114930_0.png', 1335112740: '1738812573_2879400_1335111098_46598e24e67880588e533c21bd0fb105_rle_crop_3657114220_0.png', 1335112739: '1738812573_2879400_1335111906_9300e0a713ab11873cfefff50e05da99_rle_crop_3657114205_0.png', 1335112738: '1738812573_2879400_1335111906_9300e0a713ab11873cfefff50e05da99_rle_crop_3657114211_0.png', 1335112275: '1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113274_0.png', 1335112274: '1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113244_0.png', 1335112181: '1738812452_2878091_1335110998_4d9e693489795eb9fa73926e9f8ec7fb_rle_crop_3657111558_0.png', 1335112180: '1738812452_2878091_1335111010_f05337f9d7c05161fd9f3bec7b1e963d_rle_crop_3657111541_0.png', 1335112155: '1738812413_2877568_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109616_0.png', 1335112154: '1738812413_2877568_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109617_0.png', 1335112153: '1738812413_2877568_1335110329_beed95fbe7ddeb628c5f7283a7ef0a59_rle_crop_3657109603_0.png', 1335111924: '1738812393_2877371_1335110682_ffa01b3bf1fa45e4fc625a0c8cd9bf59_rle_crop_3657112793_0.png', 1335109459: '1738811853_2860383_1335109125_affe73144d32b7282e9ed6347fa10888_rle_crop_3657094003_0.png', 1335111922: '1738812393_2877371_1335110801_4b6c88977fa1e309856ccc50e8ecba9d_rle_crop_3657112623_0.png', 1335111062: '1738812234_2873510_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109616_0.png', 1335111061: '1738812234_2873510_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109617_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c584ce0c89a61a6987aec55f27ca9537_74105844.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b45a9ddfffb7d64cfaf70a9ec34e5e9_10852405.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/27a1235ca9311dd7eab11caef8e26af6_64455521.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9ccd30271710cc8f50b929ac2f164c15_11460142.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f06abfe1fbd2601e22e23570db5d3fe0_90525948.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/fc4a86818c177012aedf47c27ba5e5cc_62753888.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/7950065639cd93874fb1ccf1ede02d02_86936444.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/6b60fa2814f01c0e547885e37c321b01_48602633.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b45a9ddfffb7d64cfaf70a9ec34e5e9_83055332.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/27a1235ca9311dd7eab11caef8e26af6_87021431.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c2c47d32367dfd1957a8cf5eb6cae3c3_76507694.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4f3e4d41816e01690fe032db646584ad_96760169.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/37408bf461398e36fb684ca2e18c7bc1_38274996.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e188566d43a8934011862ee20fcc3acc_63640321.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/19e35476e13f50e880914f80ff59d1eb_49011129.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/6e4b19c14dbfa26bcfe530ff5551b200_53775956.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c636c699a44ece3915542526a6272436_33662297.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/42ff0badb2166c461ba4e8194385e61e_89964189.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/37408bf461398e36fb684ca2e18c7bc1_4376903.png change filename to text .imagette202845931738812781/ imagette202845931738812781/1738812573_2879400_1335111906_9300e0a713ab11873cfefff50e05da99_rle_crop_3657114211_0.png.png imagette202845931738812781/1738812452_2878091_1335110998_4d9e693489795eb9fa73926e9f8ec7fb_rle_crop_3657111558_0.png.png imagette202845931738812781/1738812234_2873510_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109617_0.png.png imagette202845931738812781/1738812393_2877371_1335110764_85e95905f2a340a86d6f79405ab29927_rle_crop_3657112642_0.png.png imagette202845931738812781/1738811853_2860383_1335109125_affe73144d32b7282e9ed6347fa10888_rle_crop_3657094003_0.png.png imagette202845931738812781/1738812573_2879400_1335111098_46598e24e67880588e533c21bd0fb105_rle_crop_3657114220_0.png.png imagette202845931738812781/1738812592_2879622_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113244_0.png.png imagette202845931738812781/1738812413_2877568_1335110329_beed95fbe7ddeb628c5f7283a7ef0a59_rle_crop_3657109603_0.png.png imagette202845931738812781/1738812413_2877568_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109617_0.png.png imagette202845931738812781/1738812592_2879622_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113274_0.png.png imagette202845931738812781/1738812573_2879400_1335111906_9300e0a713ab11873cfefff50e05da99_rle_crop_3657114205_0.png.png imagette202845931738812781/1738812473_2878292_1335111053_ddb527d54faa5eb6546fe6f324e6366b_rle_crop_3657113244_0.png.png imagette202845931738812781/1738812573_2879400_1335111088_b203467d7c36b8a2fa37dd065ec3f51b_rle_crop_3657114930_0.png.png imagette202845931738812781/1738812473_2878292_1335111049_04567303c28a0f07b492d0d589f675ad_rle_crop_3657113274_0.png.png imagette202845931738812781/1738812393_2877371_1335110682_ffa01b3bf1fa45e4fc625a0c8cd9bf59_rle_crop_3657112793_0.png.png imagette202845931738812781/1738812413_2877568_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109616_0.png.png imagette202845931738812781/1738812452_2878091_1335111010_f05337f9d7c05161fd9f3bec7b1e963d_rle_crop_3657111541_0.png.png imagette202845931738812781/1738812234_2873510_1335110327_d18bc639e19f63706e6443a648ff994b_rle_crop_3657109616_0.png.png imagette202845931738812781/1738812573_2879400_1335111088_b203467d7c36b8a2fa37dd065ec3f51b_rle_crop_3657114941_0.png.png imagette202845931738812781/1738812393_2877371_1335110801_4b6c88977fa1e309856ccc50e8ecba9d_rle_crop_3657112623_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e188566d43a8934011862ee20fcc3acc_63874231.png imagette202845931738812781 20284597 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=20284597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335110288: '1738811952_2864188_1335109386_681176f42541d80237dd1106af8f3ce5_rle_crop_3657095059_0.png', 1335110290: '1738811952_2864188_1335109386_681176f42541d80237dd1106af8f3ce5_rle_crop_3657095065_0.png', 1335110765: '1738812112_2871878_1335110077_6bdf66b6d91d74f0fecc22487eb2116d_rle_crop_3657104106_0.png', 1335112691: '1738812553_2879234_1335111708_353009c83e35057df4b2772631c90140_rle_crop_3657113889_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/8eb7d49e8840274547158e4ad4eb910d_56771109.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2b850812c9d893adf1b361f7a96796e9_92487857.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/8b749783f277abdc50725592c16ea972_93327193.png change filename to text .imagette202845971738812782/ imagette202845971738812782/1738812553_2879234_1335111708_353009c83e35057df4b2772631c90140_rle_crop_3657113889_0.png.png imagette202845971738812782/1738812112_2871878_1335110077_6bdf66b6d91d74f0fecc22487eb2116d_rle_crop_3657104106_0.png.png imagette202845971738812782/1738811952_2864188_1335109386_681176f42541d80237dd1106af8f3ce5_rle_crop_3657095065_0.png.png imagette202845971738812782/1738811952_2864188_1335109386_681176f42541d80237dd1106af8f3ce5_rle_crop_3657095059_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/adaf9f76bf13bdf600407bd67d8afcbb_97245549.png imagette202845971738812782 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20284556 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20284622,20284623,20284624,20284625,20284626,20284627,20284628,20284629,20284630,20284631,20284632,20284633?tags=mal_croppe,kraft,flou,papier,metal,cartonnette,Carton_gris,Teint_Dans_La_Masse,autre_refus,environnement,plastique,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1335112737] : ('0.05806768104778496',) no score found for photo 1335112737 apple ('0.05806768104778496',) We are sending mail with results at report@fotonower.com args[1335112690] : ('0.05806768104778496',) no score found for photo 1335112690 apple ('0.05806768104778496',) We are sending mail with results at report@fotonower.com args[1335112686] : ('0.05806768104778496',) no score found for photo 1335112686 apple ('0.05806768104778496',) We are sending mail with results at report@fotonower.com args[1335112672] : ('0.05806768104778496',) no score found for photo 1335112672 apple ('0.05806768104778496',) We are sending mail with results at report@fotonower.com args[1335112670] : ('0.05806768104778496',) no score found for photo 1335112670 apple ('0.05806768104778496',) We are sending mail with results at report@fotonower.com refus_total : 0.05806768104778496 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=20284556 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_P20284556_06-02-2025_04_32_58.pdf results_Auto_P20284556_06-02-2025_04_32_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20284556_06-02-2025_04_32_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20284556','results_Auto_P20284556_06-02-2025_04_32_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20284556_06-02-2025_04_32_58.pdf','pdf','','0.22','0.05806768104778496') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20284556]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] map_info['map_portfolio_photo'] : {20284556: [1335112737, 1335112690, 1335112686, 1335112672, 1335112670, 1335112665, 1335112278, 1335112272, 1335112270, 1335112156, 1335112152, 1335112149, 1335112135, 1335112091, 1335112055, 1335111906, 1335111849, 1335111777, 1335111708, 1335111100, 1335111098, 1335111095, 1335111092, 1335111091, 1335111088, 1335111055, 1335111053, 1335111049, 1335111046, 1335111043, 1335111020, 1335111013, 1335111010, 1335110998, 1335110842, 1335110801, 1335110764, 1335110745, 1335110682, 1335110425, 1335110422, 1335110369, 1335110362, 1335110335, 1335110333, 1335110331, 1335110329, 1335110327, 1335110283, 1335110077, 1335110075, 1335110072, 1335110070, 1335110068, 1335110066, 1335109449, 1335109447, 1335109444, 1335109442, 1335109440, 1335109438, 1335109388, 1335109386, 1335109346, 1335109125, 1335109123, 1335109121]} final : False mtd_id 4302 list_pids : [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] 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, '2557853') ('4302', '20284556', '1335112737', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112690', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112686', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112672', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112670', None, None, None, None, None, '2557853') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '20284556', '1335112737', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112690', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112686', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112672', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112670', None, None, None, None, None, '2557853')] time used for this insertion : 0.015067577362060547 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.542326927185059 time spend to save output : 0.015246391296386719 total time spend for step 4 : 5.557573318481445 step5:split_time_score Thu Feb 6 04:33:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20284556'] 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 : [('20284556',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20284556) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335112737: {'path': 'temp/1738812778_2105391_1335112737_77bd97ebff30ad8ea5d95ad87ea99eaf.jpg', 'extension': 'jpg'}, 1335112670: {'path': 'temp/1738812778_2105391_1335112670_b28c7c95776def76b19944a60f1179da.jpg', 'extension': 'jpg'}, 1335112672: {'path': 'temp/1738812778_2105391_1335112672_d652acd972b5c12183ed65e10ea3daa8.jpg', 'extension': 'jpg'}, 1335112686: {'path': 'temp/1738812778_2105391_1335112686_1d9f4713a89fd60c12b783827b044032.jpg', 'extension': 'jpg'}, 1335112690: {'path': 'temp/1738812778_2105391_1335112690_9663342f0f6f9af7e718a71d299586aa.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 = 20284556; (('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 = 20284556 group by h (('04', 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=20284556 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 (20284556) 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 (20284556) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06022025 20284556 Nombre de photos uploadées : 67 / 23040 (0%) 06022025 20284556 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 06022025 20284556 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1335109125, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/affe73144d32b7282e9ed6347fa10888.jpg', 'username': None, 'uploaded_at': 1738811768, 'text': 'image_06022025_04_15_14_10142.jpg'}, {'photo_id': 1335109123, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2594a388389950da3e828cf293e51139.jpg', 'username': None, 'uploaded_at': 1738811768, 'text': 'image_06022025_04_15_23_9124.jpg'}, {'photo_id': 1335109121, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/606dd19fbab6efc05f474a1130661a3f.jpg', 'username': None, 'uploaded_at': 1738811768, 'text': 'image_06022025_04_15_33_10139.jpg'}, {'photo_id': 1335109388, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ebd55c5badf4e5a9da0f65d6385ae89d.jpg', 'username': None, 'uploaded_at': 1738811827, 'text': 'image_06022025_04_15_43_10143.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029315948486328125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20284556, '2025-02-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1581747,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029018402099609375 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= 1581747 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1581747, 'dashboard_run_id': 1589588, 'mtr_portfolio_id': 20283028, 'dashboard_result_id': 8728410, '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_P20283028_06-02-2025_04_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283046, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1589588, 'mtr_portfolio_id': 20283606, 'dashboard_result_id': 8728411, '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_P20283606_06-02-2025_04_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283677, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1589588, 'mtr_portfolio_id': 20284556, 'dashboard_result_id': 8728412, '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_P20284556_06-02-2025_04_30_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20284586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20284587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20284588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20284589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20284590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20284591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20284592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20284593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20284594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20284595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20284596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20284597, '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 = 20283028 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': 2557731, 'mtr_portfolio_id': 20283028, 'created_at': datetime.datetime(2025, 2, 6, 4, 3, 30), 'result': '0.034869800985590435', 'result_long': None, 'result_double': None}] Qualite : 0.034869800985590435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20283028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283028_06-02-2025_04_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20283028 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_P20283028_06-02-2025_04_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283046, 'pht': 3726}}" where mtr_portfolio_id = 20283028 and dashboard_run_id = 1589588 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`=20283028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8728410, 0.034869800985590435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283028_06-02-2025_04_03_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283046, '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 = 20283606 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': 2557776, 'mtr_portfolio_id': 20283606, 'created_at': datetime.datetime(2025, 2, 6, 4, 17), 'result': '0.040992556765897484', 'result_long': None, 'result_double': None}] Qualite : 0.040992556765897484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20283606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283606_06-02-2025_04_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20283606 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_P20283606_06-02-2025_04_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283677, 'pht': 3726}}" where mtr_portfolio_id = 20283606 and dashboard_run_id = 1589588 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`=20283606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8728411, 0.040992556765897484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283606_06-02-2025_04_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283677, '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 = 20284556 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': 2557853, 'mtr_portfolio_id': 20284556, 'created_at': datetime.datetime(2025, 2, 6, 4, 32, 57), 'result': '0.05806768104778496', 'result_long': None, 'result_double': None}] Qualite : 0.05806768104778496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20284556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20284556_06-02-2025_04_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20284556 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_P20284556_06-02-2025_04_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20284586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20284587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20284588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20284589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20284590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20284591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20284592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20284593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20284594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20284595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20284596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20284597, 'pht': 3726}}" where mtr_portfolio_id = 20284556 and dashboard_run_id = 1589588 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`=20284556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8728412, 0.05806768104778496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20284556_06-02-2025_04_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20284586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20284587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20284588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20284589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20284590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20284591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20284592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20284593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20284594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20284595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20284596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20284597, '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 (20283028,20283606,20284556) result : ((1335104081,), (1335104090,), (1335104091,), (1335104166,), (1335104436,), (1335104437,), (1335104438,), (1335104509,), (1335104571,), (1335104572,), (1335104574,), (1335104576,), (1335104595,), (1335104597,), (1335104601,), (1335104605,), (1335104612,), (1335104646,), (1335104648,), (1335104653,), (1335104655,), (1335104692,), (1335104693,), (1335104695,), (1335104697,), (1335104699,), (1335104724,), (1335104725,), (1335104728,), (1335104730,), (1335104731,), (1335104733,), (1335104734,), (1335104736,), (1335104737,), (1335104738,), (1335104739,), (1335104740,), (1335104745,), (1335104773,), (1335104844,), (1335105073,), (1335105079,), (1335105083,), (1335105107,), (1335105157,), (1335105158,), (1335105264,), (1335105267,), (1335105269,), (1335105271,), (1335105273,), (1335105377,), (1335105379,), (1335105400,), (1335105507,), (1335105516,), (1335105524,), (1335105530,), (1335105534,), (1335105542,), (1335105588,), (1335105579,), (1335105581,), (1335105584,), (1335105585,), (1335105667,), (1335105818,), (1335105912,), (1335106065,), (1335106235,), (1335106303,), (1335106487,), (1335106652,), (1335106667,), (1335106829,), (1335106832,), (1335106834,), (1335106836,), (1335106840,), (1335106942,), (1335106944,), (1335106946,), (1335106947,), (1335106950,), (1335106968,), (1335106972,), (1335106975,), (1335106983,), (1335107043,), (1335107045,), (1335107047,), (1335107050,), (1335107053,), (1335107056,), (1335107155,), (1335107158,), (1335107160,), (1335107162,), (1335107601,), (1335107603,), (1335107605,), (1335107662,), (1335107723,), (1335107906,), (1335107953,), (1335108172,), (1335108692,), (1335108854,), (1335109127,), (1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06022025': {'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([20284556]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] map_info['map_portfolio_photo'] : {20284556: [1335112737, 1335112690, 1335112686, 1335112672, 1335112670, 1335112665, 1335112278, 1335112272, 1335112270, 1335112156, 1335112152, 1335112149, 1335112135, 1335112091, 1335112055, 1335111906, 1335111849, 1335111777, 1335111708, 1335111100, 1335111098, 1335111095, 1335111092, 1335111091, 1335111088, 1335111055, 1335111053, 1335111049, 1335111046, 1335111043, 1335111020, 1335111013, 1335111010, 1335110998, 1335110842, 1335110801, 1335110764, 1335110745, 1335110682, 1335110425, 1335110422, 1335110369, 1335110362, 1335110335, 1335110333, 1335110331, 1335110329, 1335110327, 1335110283, 1335110077, 1335110075, 1335110072, 1335110070, 1335110068, 1335110066, 1335109449, 1335109447, 1335109444, 1335109442, 1335109440, 1335109438, 1335109388, 1335109386, 1335109346, 1335109125, 1335109123, 1335109121]} final : True mtd_id 4302 list_pids : [1335112737, 1335112690, 1335112686, 1335112672, 1335112670] Looping around the photos to save general results len do output : 1 /20284556Didn'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, '2557853') ('4302', '20284556', '1335112737', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112690', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112686', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112672', None, None, None, None, None, '2557853') ('4302', None, None, None, None, None, None, None, '2557853') ('4302', '20284556', '1335112670', None, None, None, None, None, '2557853') 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', None, '20284556', 'None', None, None, None, None, '2557853'), ('4302', '20284556', '1335112737', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112690', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112686', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112672', None, None, None, None, None, '2557853'), ('4302', '20284556', '1335112670', None, None, None, None, None, '2557853')] time used for this insertion : 0.02023172378540039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3055400848388672 time spend to save output : 0.020425081253051758 total time spend for step 5 : 0.32596516609191895 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 (2557853) 2.02user 2.59system 0:08.54elapsed 54%CPU (0avgtext+0avgdata 158884maxresident)k 8592inputs+12152outputs (17major+63988minor)pagefaults 0swaps