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 : 366441 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 (2715506) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2715506) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965950 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2715506'] with mtr_portfolio_ids : ['21965950'] and first list_photo_ids : [] new path : /proc/366441/ Name: python3 Umask: 0002 State: R (running) Tgid: 366441 Ngid: 0 Pid: 366441 PPid: 366440 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 366441 NSpid: 366441 NSpgid: 364292 NSsid: 364292 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97860 kB VmRSS: 97860 kB RssAnon: 59756 kB RssFile: 38104 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 46 nonvoluntary_ctxt_switches: 78 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '366441', 'Ngid': '0', 'Pid': '366441', 'PPid': '366440', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '366441', 'NSpid': '366441', 'NSpgid': '364292', 'NSsid': '364292', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97860 kB', 'VmRSS': '97860 kB', 'RssAnon': '59756 kB', 'RssFile': '38104 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '46', 'nonvoluntary_ctxt_switches': '78'} ('datou_batch_current', '366441', '1106928', '0', '1106928', '865676', '97860', b'', 'marlene', '2715506') 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 (21965950) 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 (2715506 ) ) 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 (21965950) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349462721, 'portfolio_id': 21965950}, {'photo_id': 1349462674, 'portfolio_id': 21965950}, {'photo_id': 1349462663, 'portfolio_id': 21965950}, {'photo_id': 1349462659, 'portfolio_id': 21965950}, {'photo_id': 1349462656, 'portfolio_id': 21965950}, {'photo_id': 1349462652, 'portfolio_id': 21965950}, {'photo_id': 1349462650, 'portfolio_id': 21965950}, {'photo_id': 1349462630, 'portfolio_id': 21965950}, {'photo_id': 1349462625, 'portfolio_id': 21965950}, {'photo_id': 1349462624, 'portfolio_id': 21965950}, {'photo_id': 1349462623, 'portfolio_id': 21965950}, {'photo_id': 1349462622, 'portfolio_id': 21965950}, {'photo_id': 1349462603, 'portfolio_id': 21965950}, {'photo_id': 1349462600, 'portfolio_id': 21965950}, {'photo_id': 1349462592, 'portfolio_id': 21965950}, {'photo_id': 1349462588, 'portfolio_id': 21965950}, {'photo_id': 1349462586, 'portfolio_id': 21965950}, {'photo_id': 1349462584, 'portfolio_id': 21965950}, {'photo_id': 1349462564, 'portfolio_id': 21965950}, {'photo_id': 1349462559, 'portfolio_id': 21965950}, {'photo_id': 1349462558, 'portfolio_id': 21965950}, {'photo_id': 1349462530, 'portfolio_id': 21965950}, {'photo_id': 1349462528, 'portfolio_id': 21965950}, {'photo_id': 1349462525, 'portfolio_id': 21965950}, {'photo_id': 1349462523, 'portfolio_id': 21965950}, {'photo_id': 1349462520, 'portfolio_id': 21965950}, {'photo_id': 1349462517, 'portfolio_id': 21965950}, {'photo_id': 1349462489, 'portfolio_id': 21965950}, {'photo_id': 1349462487, 'portfolio_id': 21965950}, {'photo_id': 1349462486, 'portfolio_id': 21965950}, {'photo_id': 1349462484, 'portfolio_id': 21965950}, {'photo_id': 1349462465, 'portfolio_id': 21965950}, {'photo_id': 1349462463, 'portfolio_id': 21965950}, {'photo_id': 1349462460, 'portfolio_id': 21965950}, {'photo_id': 1349462458, 'portfolio_id': 21965950}, {'photo_id': 1349462455, 'portfolio_id': 21965950}, {'photo_id': 1349462431, 'portfolio_id': 21965950}, {'photo_id': 1349462429, 'portfolio_id': 21965950}, {'photo_id': 1349462427, 'portfolio_id': 21965950}, {'photo_id': 1349462425, 'portfolio_id': 21965950}, {'photo_id': 1349462401, 'portfolio_id': 21965950}, {'photo_id': 1349462397, 'portfolio_id': 21965950}, {'photo_id': 1349462351, 'portfolio_id': 21965950}, {'photo_id': 1349462304, 'portfolio_id': 21965950}, {'photo_id': 1349462301, 'portfolio_id': 21965950}, {'photo_id': 1349462263, 'portfolio_id': 21965950}, {'photo_id': 1349462260, 'portfolio_id': 21965950}, {'photo_id': 1349462257, 'portfolio_id': 21965950}, {'photo_id': 1349462255, 'portfolio_id': 21965950}, {'photo_id': 1349462252, 'portfolio_id': 21965950}, {'photo_id': 1349462230, 'portfolio_id': 21965950}, {'photo_id': 1349462228, 'portfolio_id': 21965950}, {'photo_id': 1349462227, 'portfolio_id': 21965950}, {'photo_id': 1349462225, 'portfolio_id': 21965950}, {'photo_id': 1349462185, 'portfolio_id': 21965950}, {'photo_id': 1349462183, 'portfolio_id': 21965950}, {'photo_id': 1349462180, 'portfolio_id': 21965950}, {'photo_id': 1349462178, 'portfolio_id': 21965950}, {'photo_id': 1349462176, 'portfolio_id': 21965950}, {'photo_id': 1349462173, 'portfolio_id': 21965950}, {'photo_id': 1349462145, 'portfolio_id': 21965950}, {'photo_id': 1349462142, 'portfolio_id': 21965950}, {'photo_id': 1349462139, 'portfolio_id': 21965950}, {'photo_id': 1349462137, 'portfolio_id': 21965950}, {'photo_id': 1349462135, 'portfolio_id': 21965950}] map_portfolio_id_photo_id: {21965950: [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650, 1349462630, 1349462625, 1349462624, 1349462623, 1349462622, 1349462603, 1349462600, 1349462592, 1349462588, 1349462586, 1349462584, 1349462564, 1349462559, 1349462558, 1349462530, 1349462528, 1349462525, 1349462523, 1349462520, 1349462517, 1349462489, 1349462487, 1349462486, 1349462484, 1349462465, 1349462463, 1349462460, 1349462458, 1349462455, 1349462431, 1349462429, 1349462427, 1349462425, 1349462401, 1349462397, 1349462351, 1349462304, 1349462301, 1349462263, 1349462260, 1349462257, 1349462255, 1349462252, 1349462230, 1349462228, 1349462227, 1349462225, 1349462185, 1349462183, 1349462180, 1349462178, 1349462176, 1349462173, 1349462145, 1349462142, 1349462139, 1349462137, 1349462135]} ##### 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.017756223678588867 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 2 06:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21965950) 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 : 21965950 get user id for portfolio 21965950 get sub ptf for main ptf 21965950, type 3726 and hashtags ['cartonnette', 'kraft', 'Carton_gris', 'environnement', 'flou', 'autre_refus', 'mal_croppe', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse', 'metal', 'plastique'] 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`=21965950 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','Carton_gris','environnement','flou','autre_refus','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','metal','plastique')) 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`=21965950 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','Carton_gris','environnement','flou','autre_refus','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','metal','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21965950, 'sub_port_id': 21965953, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465843, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'mal_croppe': {'main_port_id': 21965950, 'sub_port_id': 21965954, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465844, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'Carton_gris': {'main_port_id': 21965950, 'sub_port_id': 21965955, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465845, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'papier': {'main_port_id': 21965950, 'sub_port_id': 21965956, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465846, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'autre_refus': {'main_port_id': 21965950, 'sub_port_id': 21965957, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465847, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21965950, 'sub_port_id': 21965958, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465848, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'metal': {'main_port_id': 21965950, 'sub_port_id': 21965959, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465849, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'flou': {'main_port_id': 21965950, 'sub_port_id': 21965960, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465850, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'cartonnette': {'main_port_id': 21965950, 'sub_port_id': 21965961, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465851, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'environnement': {'main_port_id': 21965950, 'sub_port_id': 21965962, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465852, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'kraft': {'main_port_id': 21965950, 'sub_port_id': 21965963, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465853, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}, 'Carton_brun': {'main_port_id': 21965950, 'sub_port_id': 21965964, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465854, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21965953 , 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=21965950 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 (21965953) result : ((1349462282,), (1349462283,), (1349462297,), (1349462298,), (1349462391,), (1349462398,), (1349462510,), (1349462511,), (1349462601,), (1349462684,), (1349462685,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965954 , 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=21965950 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 (21965954) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965955 , 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=21965950 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 (21965955) result : ((1349462276,), (1349462277,), (1349462291,), (1349462294,), (1349462295,), (1349462386,), (1349462388,), (1349462509,), (1349462593,), (1349462594,), (1349462595,), (1349462670,), (1349462671,), (1349462672,), (1349462732,), (1349462741,), (1349462753,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965956 , 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=21965950 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 (21965956) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965957 , 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=21965950 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 (21965957) result : ((1349462271,), (1349462272,), (1349462290,), (1349462385,), (1349462669,), (1349462730,), (1349462731,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965958 , 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=21965950 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 (21965958) result : ((1349462270,), (1349462289,), (1349462353,), (1349462380,), (1349462381,), (1349462382,), (1349462502,), (1349462503,), (1349462504,), (1349462505,), (1349462506,), (1349462507,), (1349462571,), (1349462578,), (1349462590,), (1349462591,), (1349462647,), (1349462664,), (1349462665,), (1349462666,), (1349462667,), (1349462668,), (1349462745,), (1349462746,), (1349462747,), (1349462748,), (1349462749,), (1349462750,), (1349462751,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965959 , 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=21965950 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 (21965959) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965960 , 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=21965950 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 (21965960) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965961 , 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=21965950 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 (21965961) result : ((1349462278,), (1349462354,), (1349462395,), (1349462597,), (1349462677,), (1349462733,), (1349462754,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965962 , 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=21965950 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 (21965962) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965963 , 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=21965950 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 (21965963) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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 21965964 , 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=21965950 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 (21965964) result : ((1349462279,), (1349462280,), (1349462389,), (1349462390,), (1349462396,), (1349462572,), (1349462598,), (1349462678,), (1349462679,), (1349462680,), (1349462683,), (1349462755,), (1349462756,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21965950) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) 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 (1349462600) 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`=21965950 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','Carton_gris','environnement','flou','autre_refus','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','metal','plastique')) 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`=21965950 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','Carton_gris','environnement','flou','autre_refus','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','metal','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21965950, 'sub_port_id': 21965965, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465855, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'mal_croppe': {'main_port_id': 21965950, 'sub_port_id': 21965966, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465856, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'Carton_gris': {'main_port_id': 21965950, 'sub_port_id': 21965967, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465857, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'papier': {'main_port_id': 21965950, 'sub_port_id': 21965968, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465858, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'autre_refus': {'main_port_id': 21965950, 'sub_port_id': 21965969, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465859, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21965950, 'sub_port_id': 21965970, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465860, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'metal': {'main_port_id': 21965950, 'sub_port_id': 21965971, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465861, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'flou': {'main_port_id': 21965950, 'sub_port_id': 21965972, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465862, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'cartonnette': {'main_port_id': 21965950, 'sub_port_id': 21965973, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465863, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'environnement': {'main_port_id': 21965950, 'sub_port_id': 21965974, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465864, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'kraft': {'main_port_id': 21965950, 'sub_port_id': 21965975, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465865, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}, 'Carton_brun': {'main_port_id': 21965950, 'sub_port_id': 21965976, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14465866, 'last_updated_at': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 6, 30, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 6, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965967,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965968,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965957 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965970,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965971,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965959 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965972,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965960 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965973,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965961 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965974,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965962 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965975,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965963 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21965976,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21965964 lien utilise dans velours : https://www.fotonower.com/velours/21965965,21965966,21965967,21965968,21965969,21965970,21965971,21965972,21965973,21965974,21965975,21965976?tags=plastique,mal_croppe,Carton_gris,papier,autre_refus,Teint_Dans_La_Masse,metal,flou,cartonnette,environnement,kraft,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21965950]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] map_info['map_portfolio_photo'] : {21965950: [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650, 1349462630, 1349462625, 1349462624, 1349462623, 1349462622, 1349462603, 1349462600, 1349462592, 1349462588, 1349462586, 1349462584, 1349462564, 1349462559, 1349462558, 1349462530, 1349462528, 1349462525, 1349462523, 1349462520, 1349462517, 1349462489, 1349462487, 1349462486, 1349462484, 1349462465, 1349462463, 1349462460, 1349462458, 1349462455, 1349462431, 1349462429, 1349462427, 1349462425, 1349462401, 1349462397, 1349462351, 1349462304, 1349462301, 1349462263, 1349462260, 1349462257, 1349462255, 1349462252, 1349462230, 1349462228, 1349462227, 1349462225, 1349462185, 1349462183, 1349462180, 1349462178, 1349462176, 1349462173, 1349462145, 1349462142, 1349462139, 1349462137, 1349462135]} final : False mtd_id 4302 list_pids : [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] Looping around the photos to save general results len do output : 1 /21965950. 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, '2715506') ('4302', '21965950', '1349462721', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462674', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462663', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462659', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462656', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462652', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462650', None, None, None, None, None, '2715506') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21965950', "{'plastique': 21965953, 'mal_croppe': 21965954, 'Carton_gris': 21965955, 'papier': 21965956, 'autre_refus': 21965957, 'Teint_Dans_La_Masse': 21965958, 'metal': 21965959, 'flou': 21965960, 'cartonnette': 21965961, 'environnement': 21965962, 'kraft': 21965963, 'Carton_brun': 21965964}", None, None, None, None, '2715506'), ('4302', '21965950', '1349462721', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462674', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462663', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462659', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462656', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462652', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462650', None, None, None, None, None, '2715506')] time used for this insertion : 0.013845443725585938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5490500926971436 time spend to save output : 0.014072179794311523 total time spend for step 1 : 0.5631222724914551 step2:final Wed Apr 2 06:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21965950) 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 21965950 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349462145,1349462142,1349462139,1349462137,1349462135,1349462185,1349462183,1349462180,1349462178,1349462176,1349462173,1349462230,1349462228,1349462227,1349462225,1349462263,1349462260,1349462257,1349462255,1349462252,1349462304,1349462301,1349462351,1349462401,1349462397,1349462431,1349462429,1349462427,1349462425,1349462465,1349462463,1349462460,1349462458,1349462455,1349462489,1349462487,1349462486,1349462484,1349462530,1349462528,1349462525,1349462523,1349462520,1349462517,1349462564,1349462559,1349462558,1349462603,1349462600,1349462592,1349462588,1349462586,1349462584,1349462630,1349462625,1349462624,1349462623,1349462622,1349462674,1349462663,1349462659,1349462656,1349462652,1349462650,1349462721); 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([21965950]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} new output for save of step final : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] map_info['map_portfolio_photo'] : {21965950: [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650, 1349462630, 1349462625, 1349462624, 1349462623, 1349462622, 1349462603, 1349462600, 1349462592, 1349462588, 1349462586, 1349462584, 1349462564, 1349462559, 1349462558, 1349462530, 1349462528, 1349462525, 1349462523, 1349462520, 1349462517, 1349462489, 1349462487, 1349462486, 1349462484, 1349462465, 1349462463, 1349462460, 1349462458, 1349462455, 1349462431, 1349462429, 1349462427, 1349462425, 1349462401, 1349462397, 1349462351, 1349462304, 1349462301, 1349462263, 1349462260, 1349462257, 1349462255, 1349462252, 1349462230, 1349462228, 1349462227, 1349462225, 1349462185, 1349462183, 1349462180, 1349462178, 1349462176, 1349462173, 1349462145, 1349462142, 1349462139, 1349462137, 1349462135]} final : False mtd_id 4302 list_pids : [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] Looping around the photos to save general results len do output : 7 /1349462721.Didn't retrieve data . /1349462674.Didn't retrieve data . /1349462663.Didn't retrieve data . /1349462659.Didn't retrieve data . /1349462656.Didn't retrieve data . /1349462652.Didn't retrieve data . /1349462650.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, '2715506') ('4302', '21965950', '1349462721', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462674', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462663', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462659', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462656', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462652', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462650', None, None, None, None, None, '2715506') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '21965950', '1349462721', '0.040222582913804414', None, None, None, None, '2715506'), ('4302', '21965950', '1349462674', '0.040222582913804414', None, None, None, None, '2715506'), ('4302', '21965950', '1349462663', '0.040222582913804414', None, None, None, None, '2715506'), ('4302', '21965950', '1349462659', '0.040222582913804414', None, None, None, None, '2715506'), ('4302', '21965950', '1349462656', '0.040222582913804414', None, None, None, None, '2715506'), ('4302', '21965950', '1349462652', '0.040222582913804414', None, None, None, None, '2715506'), ('4302', '21965950', '1349462650', '0.040222582913804414', None, None, None, None, '2715506')] time used for this insertion : 0.013801336288452148 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12492537498474121 time spend to save output : 0.014203548431396484 total time spend for step 2 : 0.1391289234161377 step3:velours_tree Wed Apr 2 06:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21965950: [{'plastique': 21965953, 'mal_croppe': 21965954, 'Carton_gris': 21965955, 'papier': 21965956, 'autre_refus': 21965957, 'Teint_Dans_La_Masse': 21965958, 'metal': 21965959, 'flou': 21965960, 'cartonnette': 21965961, 'environnement': 21965962, 'kraft': 21965963, 'Carton_brun': 21965964}]} input_args_next_step : {21965950: ()} output_args : {21965950: [{'plastique': 21965953, 'mal_croppe': 21965954, 'Carton_gris': 21965955, 'papier': 21965956, 'autre_refus': 21965957, 'Teint_Dans_La_Masse': 21965958, 'metal': 21965959, 'flou': 21965960, 'cartonnette': 21965961, 'environnement': 21965962, 'kraft': 21965963, 'Carton_brun': 21965964}]} args : 21965950 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 : ({'plastique': 21965953, 'mal_croppe': 21965954, 'Carton_gris': 21965955, 'papier': 21965956, 'autre_refus': 21965957, 'Teint_Dans_La_Masse': 21965958, 'metal': 21965959, 'flou': 21965960, 'cartonnette': 21965961, 'environnement': 21965962, 'kraft': 21965963, 'Carton_brun': 21965964},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21965950) 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([21965950]) 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.27170681953430176 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.2717552185058594 step4:send_mail_cod Wed Apr 2 06:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} input_args_next_step : {1349462721: ()} output_args : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} args : 1349462721 depend.output_id : 0 input_args_next_step : {1349462721: ('0.040222582913804414',), 1349462674: ()} output_args : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} args : 1349462674 depend.output_id : 0 input_args_next_step : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ()} output_args : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} args : 1349462663 depend.output_id : 0 input_args_next_step : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ()} output_args : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} args : 1349462659 depend.output_id : 0 input_args_next_step : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ()} output_args : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} args : 1349462656 depend.output_id : 0 input_args_next_step : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ()} output_args : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} args : 1349462652 depend.output_id : 0 input_args_next_step : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ()} output_args : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',)} args : 1349462650 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 : {21965950: [{'plastique': 21965953, 'mal_croppe': 21965954, 'Carton_gris': 21965955, 'papier': 21965956, 'autre_refus': 21965957, 'Teint_Dans_La_Masse': 21965958, 'metal': 21965959, 'flou': 21965960, 'cartonnette': 21965961, 'environnement': 21965962, 'kraft': 21965963, 'Carton_brun': 21965964}]} input_args_next_step : {1349462721: ('0.040222582913804414',), 1349462674: ('0.040222582913804414',), 1349462663: ('0.040222582913804414',), 1349462659: ('0.040222582913804414',), 1349462656: ('0.040222582913804414',), 1349462652: ('0.040222582913804414',), 1349462650: ('0.040222582913804414',), 21965950: ()} output_args : {21965950: [{'plastique': 21965953, 'mal_croppe': 21965954, 'Carton_gris': 21965955, 'papier': 21965956, 'autre_refus': 21965957, 'Teint_Dans_La_Masse': 21965958, 'metal': 21965959, 'flou': 21965960, 'cartonnette': 21965961, 'environnement': 21965962, 'kraft': 21965963, 'Carton_brun': 21965964}]} args : 21965950 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 :8, first value : ('0.040222582913804414',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21965950) 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 (1349462721,1349462674,1349462663,1349462659,1349462656,1349462652,1349462650) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349462650 begin to download photo : 1349462656 begin to download photo : 1349462663 begin to download photo : 1349462721 download finish for photo 1349462656 begin to download photo : 1349462659 download finish for photo 1349462650 begin to download photo : 1349462652 download finish for photo 1349462721 download finish for photo 1349462663 begin to download photo : 1349462674 download finish for photo 1349462652 download finish for photo 1349462659 download finish for photo 1349462674 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P21965950_02-04-2025_06_33_00.pdf 21965953 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=21965953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349462282: '1743567551_910793_1349462228_f335cffe1b16003c42b1c9ac54229f48_rle_crop_3743920401_0.png', 1349462283: '1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920423_0.png', 1349462297: '1743567566_3068662_1349462178_a5353684ae7c1921393ceb6b93db953b_rle_crop_3743920472_0.png', 1349462298: '1743567566_3068662_1349462176_13a8412fe832bdb1cbb76581ef4b7fb2_rle_crop_3743920482_0.png', 1349462391: '1743567672_911772_1349462260_cd579bc94ecda68df47f753b8e4b1387_rle_crop_3743920932_0.png', 1349462398: '1743567688_3072927_1349462185_00bd6c5cbeb5391ba8cf43ae70867edf_rle_crop_3743920984_0.png', 1349462510: '1743567902_913682_1349462429_4ea261ccd12facecdd4ca4b221c2674b_rle_crop_3743921148_0.png', 1349462511: '1743567902_913682_1349462425_682afd21e013f7682b07360d36179018_rle_crop_3743921168_0.png', 1349462601: '1743568052_914997_1349462458_d81f9f60aba4b1030cd742f495d5e9a4_rle_crop_3743921471_0.png', 1349462684: '1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921770_0.png', 1349462685: '1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921790_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/704acaece4ec8ebf58d17f95416adc1f_32118639.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fb8222372e4a1055d145f93f7287b6c6_84754313.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/774a7ea55d4d214356e442a488ed68da_95545960.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2bcba763264375ab3dd5085aeefe362f_31137866.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c021e0f66d38fee6f06ded832b1c326e_40617784.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f58bb4ccc0d6b45ffefef9868ca51419_80435485.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/aaaf764d24b8f3c74e085a6477c7e4cb_34066367.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6bc7094a2d9b6adddaecc3c20c0756b8_79244693.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8753ea8c85efbeddfd04aa4ccaeac960_93010269.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/25e9247a510270cd3319abce9f826bdf_87809647.png change filename to text .imagette219659531743568380/ imagette219659531743568380/1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920423_0.png.png imagette219659531743568380/1743567672_911772_1349462260_cd579bc94ecda68df47f753b8e4b1387_rle_crop_3743920932_0.png.png imagette219659531743568380/1743568052_914997_1349462458_d81f9f60aba4b1030cd742f495d5e9a4_rle_crop_3743921471_0.png.png imagette219659531743568380/1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921770_0.png.png imagette219659531743568380/1743567566_3068662_1349462176_13a8412fe832bdb1cbb76581ef4b7fb2_rle_crop_3743920482_0.png.png imagette219659531743568380/1743567551_910793_1349462228_f335cffe1b16003c42b1c9ac54229f48_rle_crop_3743920401_0.png.png imagette219659531743568380/1743567902_913682_1349462429_4ea261ccd12facecdd4ca4b221c2674b_rle_crop_3743921148_0.png.png imagette219659531743568380/1743567902_913682_1349462425_682afd21e013f7682b07360d36179018_rle_crop_3743921168_0.png.png imagette219659531743568380/1743567566_3068662_1349462178_a5353684ae7c1921393ceb6b93db953b_rle_crop_3743920472_0.png.png imagette219659531743568380/1743567688_3072927_1349462185_00bd6c5cbeb5391ba8cf43ae70867edf_rle_crop_3743920984_0.png.png imagette219659531743568380/1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921790_0.png.png imagette219659541743568380/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5ed593a4bfd5264c249aec6cb4a87988_73637647.png imagette219659531743568380 21965954 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=21965954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219659541743568380 21965957 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=21965957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349462271: '1743567551_910793_1349462228_f335cffe1b16003c42b1c9ac54229f48_rle_crop_3743920403_0.png', 1349462272: '1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920424_0.png', 1349462290: '1743567566_3068662_1349462176_13a8412fe832bdb1cbb76581ef4b7fb2_rle_crop_3743920479_0.png', 1349462385: '1743567672_911772_1349462304_35bddd1ff4658ae1cf2ffdb4767c255f_rle_crop_3743920911_0.png', 1349462669: '1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921780_0.png', 1349462730: '1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921886_0.png', 1349462731: '1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921888_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f9f2ae69fb3767c82450eca040664f89_12026925.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/17db7b5b4e9fc247a6b39dbc23995cac_1851188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/961d82d6037c02dce20a6cc768fb0e7f_5603955.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6ad32b54693a0ea09755fc20e6d40cfe_9845.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/80ee9aa442765ed5c174741584629b2c_79808253.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3b923123f42faf36ea4c7f72e76238af_7479602.png change filename to text .imagette219659571743568380/ imagette219659571743568380/1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921780_0.png.png imagette219659571743568380/1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921888_0.png.png imagette219659571743568380/1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920424_0.png.png imagette219659571743568380/1743567566_3068662_1349462176_13a8412fe832bdb1cbb76581ef4b7fb2_rle_crop_3743920479_0.png.png imagette219659571743568380/1743567672_911772_1349462304_35bddd1ff4658ae1cf2ffdb4767c255f_rle_crop_3743920911_0.png.png imagette219659571743568380/1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921886_0.png.png imagette219659571743568380/1743567551_910793_1349462228_f335cffe1b16003c42b1c9ac54229f48_rle_crop_3743920403_0.png.png imagette219659591743568381/ imagette219659601743568381/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/346fdae7022352b09c36d2ed6df67564_77583046.png imagette219659571743568380 21965959 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=21965959 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219659591743568381 21965960 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=21965960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219659601743568381 21965961 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=21965961 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349462278: '1743567551_910793_1349462228_f335cffe1b16003c42b1c9ac54229f48_rle_crop_3743920397_0.png', 1349462354: '1743567651_911529_1349462263_ab2c39181ff310dc5dccce718626cbf0_rle_crop_3743920632_0.png', 1349462395: '1743567688_3072927_1349462139_5426aa776b5cf6e1a869a3b2d55734bd_rle_crop_3743921001_0.png', 1349462597: '1743568052_914997_1349462458_d81f9f60aba4b1030cd742f495d5e9a4_rle_crop_3743921468_0.png', 1349462677: '1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921767_0.png', 1349462733: '1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921884_0.png', 1349462754: '1743568286_3083492_1349462592_ed9673ece05cc8f135a3fd6fe203422b_rle_crop_3743922180_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fcc40bc14e692f6ff29356baec24f3d8_74256492.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c27b7e95ea9c7b073a61876ac3a06a4d_56935496.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/43343a2f02435501cf481bfcc09e5f6f_89079001.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7ce6b4d70a5a490d1527e2a8a52f4f1f_75718167.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d8558ae9e3f6560d6d7d6abeae4664ad_73384841.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/76f283a9b9f0c9d77bd05326aa1942c0_56705018.png change filename to text .imagette219659611743568381/ imagette219659611743568381/1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921884_0.png.png imagette219659611743568381/1743567688_3072927_1349462139_5426aa776b5cf6e1a869a3b2d55734bd_rle_crop_3743921001_0.png.png imagette219659611743568381/1743567551_910793_1349462228_f335cffe1b16003c42b1c9ac54229f48_rle_crop_3743920397_0.png.png imagette219659611743568381/1743568052_914997_1349462458_d81f9f60aba4b1030cd742f495d5e9a4_rle_crop_3743921468_0.png.png imagette219659611743568381/1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921767_0.png.png imagette219659611743568381/1743568286_3083492_1349462592_ed9673ece05cc8f135a3fd6fe203422b_rle_crop_3743922180_0.png.png imagette219659611743568381/1743567651_911529_1349462263_ab2c39181ff310dc5dccce718626cbf0_rle_crop_3743920632_0.png.png imagette219659631743568381/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4b9e38ec68a5db9941ec473adb6e3c90_11912459.png imagette219659611743568381 21965963 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=21965963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219659631743568381 21965955 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=21965955 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349462593: '1743568052_914997_1349462489_96075315540f6fecfc6ee27e01b52f17_rle_crop_3743921424_0.png', 1349462753: '1743568286_3083492_1349462588_ee89edf1aed3208be601503e5390c7a4_rle_crop_3743922188_0.png', 1349462741: '1743568290_917196_1349462603_0952a68272aae4c6b818fe63dc255e84_rle_crop_3743922129_0.png', 1349462732: '1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921883_0.png', 1349462672: '1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921778_0.png', 1349462671: '1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921771_0.png', 1349462670: '1743568173_916011_1349462525_4bea44ebc690eff43908e3e2d52d8785_rle_crop_3743921755_0.png', 1349462595: '1743568052_914997_1349462458_d81f9f60aba4b1030cd742f495d5e9a4_rle_crop_3743921463_0.png', 1349462594: '1743568052_914997_1349462460_ae41d2c8d5456d62913913cfd5483c2f_rle_crop_3743921457_0.png', 1349462276: '1743567551_910793_1349462227_309aede5852a61714dcded5ddb9f508d_rle_crop_3743920417_0.png', 1349462509: '1743567902_913682_1349462429_4ea261ccd12facecdd4ca4b221c2674b_rle_crop_3743921146_0.png', 1349462388: '1743567672_911772_1349462260_cd579bc94ecda68df47f753b8e4b1387_rle_crop_3743920924_0.png', 1349462386: '1743567672_911772_1349462260_cd579bc94ecda68df47f753b8e4b1387_rle_crop_3743920922_0.png', 1349462295: '1743567566_3068662_1349462180_41b8817064a93a14717ef8b37381ddfc_rle_crop_3743920462_0.png', 1349462294: '1743567566_3068662_1349462183_63d5be56a18ab89c363aab7e196e4d01_rle_crop_3743920454_0.png', 1349462291: '1743567566_3068662_1349462183_63d5be56a18ab89c363aab7e196e4d01_rle_crop_3743920449_0.png', 1349462277: '1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920431_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/01cabb87da32a4c2e762093bf8dcf98e_6364707.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/64f0c22cc203207250b54cd91df78461_59636463.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a52cc3ff4f3b8233a75440323cfe1189_17889628.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a04dfbfca1f24c7b34321cb9ae4ffc58_8514723.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2954e4cd7ce965e2cc07b3a2f5df89bc_1569344.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/97b81d764da77b953c92bd53c5800015_93924980.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f30997de11e5380e8c138d9a2062fce2_67749257.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bae310f0f81ff2162927277199b7a517_27841461.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/192ed22e1351de27e68f634a2e4a35ee_80466010.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8756c6fcf31e593f4d7a13f9360f6458_73265114.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9e9f025b4cb76e43efa32fb545ad3829_50789891.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fcc19d796b4f5a3a7761dabe62848ed7_66415696.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/502be237171d63fe9c3cd2f34f2994eb_32805793.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ca32b9339bac7267962792d1c4c7d165_79638424.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/870610e5a6400b2699f852f4aecca881_27686044.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ac32106bcc123c54b53b99137bc3d740_19343377.png change filename to text .imagette219659551743568381/ imagette219659551743568381/1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921771_0.png.png imagette219659551743568381/1743567566_3068662_1349462183_63d5be56a18ab89c363aab7e196e4d01_rle_crop_3743920454_0.png.png imagette219659551743568381/1743567551_910793_1349462227_309aede5852a61714dcded5ddb9f508d_rle_crop_3743920417_0.png.png imagette219659551743568381/1743568286_3083492_1349462588_ee89edf1aed3208be601503e5390c7a4_rle_crop_3743922188_0.png.png imagette219659551743568381/1743568273_916969_1349462625_3a2e310fc410143d8a0dfa28213f2241_rle_crop_3743921883_0.png.png imagette219659551743568381/1743568052_914997_1349462458_d81f9f60aba4b1030cd742f495d5e9a4_rle_crop_3743921463_0.png.png imagette219659551743568381/1743568052_914997_1349462460_ae41d2c8d5456d62913913cfd5483c2f_rle_crop_3743921457_0.png.png imagette219659551743568381/1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920431_0.png.png imagette219659551743568381/1743568290_917196_1349462603_0952a68272aae4c6b818fe63dc255e84_rle_crop_3743922129_0.png.png imagette219659551743568381/1743567672_911772_1349462260_cd579bc94ecda68df47f753b8e4b1387_rle_crop_3743920922_0.png.png imagette219659551743568381/1743568052_914997_1349462489_96075315540f6fecfc6ee27e01b52f17_rle_crop_3743921424_0.png.png imagette219659551743568381/1743567566_3068662_1349462183_63d5be56a18ab89c363aab7e196e4d01_rle_crop_3743920449_0.png.png imagette219659551743568381/1743567566_3068662_1349462180_41b8817064a93a14717ef8b37381ddfc_rle_crop_3743920462_0.png.png imagette219659551743568381/1743568173_916011_1349462525_4bea44ebc690eff43908e3e2d52d8785_rle_crop_3743921755_0.png.png imagette219659551743568381/1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921778_0.png.png imagette219659551743568381/1743567902_913682_1349462429_4ea261ccd12facecdd4ca4b221c2674b_rle_crop_3743921146_0.png.png imagette219659551743568381/1743567672_911772_1349462260_cd579bc94ecda68df47f753b8e4b1387_rle_crop_3743920924_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/da7285652ec2cd1efe4556241ca8141c_96592394.png imagette219659551743568381 21965958 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=21965958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349462590: '1743568052_914997_1349462463_1e6259a48fd0749cdcdf588e565dd93e_rle_crop_3743921440_0.png', 1349462751: '1743568286_3083492_1349462586_36ca207c355e79097a044e85898e5363_rle_crop_3743922208_0.png', 1349462750: '1743568286_3083492_1349462588_ee89edf1aed3208be601503e5390c7a4_rle_crop_3743922194_0.png', 1349462749: '1743568286_3083492_1349462588_ee89edf1aed3208be601503e5390c7a4_rle_crop_3743922198_0.png', 1349462748: '1743568286_3083492_1349462600_8a3e70a72003840c2d8a532469d66cbd_rle_crop_3743922163_0.png', 1349462747: '1743568286_3083492_1349462630_bfa6fa21f11d762ab803e06a855661ae_rle_crop_3743922148_0.png', 1349462746: '1743568286_3083492_1349462630_bfa6fa21f11d762ab803e06a855661ae_rle_crop_3743922146_0.png', 1349462745: '1743568286_3083492_1349462630_bfa6fa21f11d762ab803e06a855661ae_rle_crop_3743922147_0.png', 1349462668: '1743568173_916011_1349462517_5964444d165dcd0e18bdd949b179f209_rle_crop_3743921803_0.png', 1349462667: '1743568173_916011_1349462517_5964444d165dcd0e18bdd949b179f209_rle_crop_3743921801_0.png', 1349462666: '1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921786_0.png', 1349462665: '1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921769_0.png', 1349462664: '1743568173_916011_1349462564_f40c1c1da8c68de0f45c5ceba31e08e6_rle_crop_3743921729_0.png', 1349462647: '1743568169_3080527_1349462530_acb34f84a605c49af47fd6408c4c2bb5_rle_crop_3743921538_0.png', 1349462591: '1743568052_914997_1349462463_1e6259a48fd0749cdcdf588e565dd93e_rle_crop_3743921444_0.png', 1349462270: '1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920428_0.png', 1349462578: '1743568048_3077750_1349462465_2a6210524f8f5a9dbad75457797d3b0f_rle_crop_3743921273_0.png', 1349462571: '1743568031_914763_1349462487_367aca92da86c503334a69caf1974c8e_rle_crop_3743921229_0.png', 1349462507: '1743567902_913682_1349462425_682afd21e013f7682b07360d36179018_rle_crop_3743921165_0.png', 1349462506: '1743567902_913682_1349462425_682afd21e013f7682b07360d36179018_rle_crop_3743921167_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1f7d9d880728593b78ecd7b62186fcbc_65314251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/39b134eb8290191fc2dbaf491277e272_67125600.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4865cbb234c1a91796ac404261d00015_76445979.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/efd96fbcc7947a797cc8c21d98f28e77_27342834.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/12da2b70ae59926e7e9a163d94033fd5_19927545.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dd020422170b8255836973f423098761_89420877.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/890ad1b4e2b5d69ad70604b3211aa595_21854162.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/eed664fee041cb493552ca730499d97c_71027831.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0a55c57fc253303b94a856002db6338e_17690234.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bcd08daa52fa3f63a6ae7b8d6edf1661_558526.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e16e17dfe385fcc2bba4f9f07dd63ddd_20091909.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/07a02663c1c0cce11f2612bf12cfb111_68042020.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a6789eec08eef7a5186f8efb997164e8_1365635.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e7404df5663e7c41f71a2fb6186ef91b_82409968.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/66ca9e4569738f3e439cf8aa4f5951f4_89160051.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f4d6786c23e3f4b91fb2342b58707c17_21243792.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/33ea88fe9dd9f394b6021f8a54322a26_20698487.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7fe77d53e360c901bffdbf6f7819a1b4_70016680.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7553777cd73816f65eafefaff499f1d5_16553447.png change filename to text .imagette219659581743568382/ imagette219659581743568382/1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920428_0.png.png imagette219659581743568382/1743568169_3080527_1349462530_acb34f84a605c49af47fd6408c4c2bb5_rle_crop_3743921538_0.png.png imagette219659581743568382/1743568052_914997_1349462463_1e6259a48fd0749cdcdf588e565dd93e_rle_crop_3743921440_0.png.png imagette219659581743568382/1743568173_916011_1349462517_5964444d165dcd0e18bdd949b179f209_rle_crop_3743921801_0.png.png imagette219659581743568382/1743568286_3083492_1349462588_ee89edf1aed3208be601503e5390c7a4_rle_crop_3743922198_0.png.png imagette219659581743568382/1743568173_916011_1349462564_f40c1c1da8c68de0f45c5ceba31e08e6_rle_crop_3743921729_0.png.png imagette219659581743568382/1743568286_3083492_1349462588_ee89edf1aed3208be601503e5390c7a4_rle_crop_3743922194_0.png.png imagette219659581743568382/1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921786_0.png.png imagette219659581743568382/1743567902_913682_1349462425_682afd21e013f7682b07360d36179018_rle_crop_3743921165_0.png.png imagette219659581743568382/1743568048_3077750_1349462465_2a6210524f8f5a9dbad75457797d3b0f_rle_crop_3743921273_0.png.png imagette219659581743568382/1743568286_3083492_1349462600_8a3e70a72003840c2d8a532469d66cbd_rle_crop_3743922163_0.png.png imagette219659581743568382/1743568173_916011_1349462517_5964444d165dcd0e18bdd949b179f209_rle_crop_3743921803_0.png.png imagette219659581743568382/1743568286_3083492_1349462630_bfa6fa21f11d762ab803e06a855661ae_rle_crop_3743922148_0.png.png imagette219659581743568382/1743567902_913682_1349462425_682afd21e013f7682b07360d36179018_rle_crop_3743921167_0.png.png imagette219659581743568382/1743568286_3083492_1349462630_bfa6fa21f11d762ab803e06a855661ae_rle_crop_3743922146_0.png.png imagette219659581743568382/1743568286_3083492_1349462630_bfa6fa21f11d762ab803e06a855661ae_rle_crop_3743922147_0.png.png imagette219659581743568382/1743568031_914763_1349462487_367aca92da86c503334a69caf1974c8e_rle_crop_3743921229_0.png.png imagette219659581743568382/1743568173_916011_1349462523_6b1a6a572114d2485006d254d75df595_rle_crop_3743921769_0.png.png imagette219659581743568382/1743568052_914997_1349462463_1e6259a48fd0749cdcdf588e565dd93e_rle_crop_3743921444_0.png.png imagette219659581743568382/1743568286_3083492_1349462586_36ca207c355e79097a044e85898e5363_rle_crop_3743922208_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bd2c648f0c3f0da12a43e3c611bd3ae7_63961393.png imagette219659581743568382 21965964 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=21965964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349462279: '1743567551_910793_1349462227_309aede5852a61714dcded5ddb9f508d_rle_crop_3743920415_0.png', 1349462280: '1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920426_0.png', 1349462389: '1743567672_911772_1349462304_35bddd1ff4658ae1cf2ffdb4767c255f_rle_crop_3743920914_0.png', 1349462390: '1743567672_911772_1349462255_8b837ea7da9ba078f9d8c1b8e369d436_rle_crop_3743920961_0.png', 1349462396: '1743567688_3072927_1349462137_989c8215ec40a5097c662a003be27381_rle_crop_3743921023_0.png', 1349462572: '1743568031_914763_1349462487_367aca92da86c503334a69caf1974c8e_rle_crop_3743921230_0.png', 1349462598: '1743568052_914997_1349462455_32bdebcce7384eea25959b763e1cbd8e_rle_crop_3743921481_0.png', 1349462678: '1743568173_916011_1349462564_f40c1c1da8c68de0f45c5ceba31e08e6_rle_crop_3743921727_0.png', 1349462679: '1743568173_916011_1349462528_e77e64721dc65eda922aa03de10eb822_rle_crop_3743921746_0.png', 1349462680: '1743568173_916011_1349462528_e77e64721dc65eda922aa03de10eb822_rle_crop_3743921739_0.png', 1349462683: '1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921783_0.png', 1349462755: '1743568286_3083492_1349462586_36ca207c355e79097a044e85898e5363_rle_crop_3743922215_0.png', 1349462756: '1743568286_3083492_1349462586_36ca207c355e79097a044e85898e5363_rle_crop_3743922209_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5718975fed44c969dcbde50e4b015c59_50508535.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2fc893f0d5ef4ef5100014cd05dfabec_95722458.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/59284db2e6b067b03b2a2800f25bd35f_86418049.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/83b5215487e3f40302dd3f83da72eb09_63635584.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/805de681613a5d3e7b6b347a22ba6643_91605672.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/25d4c6ba7cc53365a6e07f9a30a1fbdd_25167355.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/77e9737fbccbc8b70041c69eb5e4f913_76475888.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/27ef13fcc55d6f82e493d8d5ef158ad6_17014014.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f6cf38611adbe0d5465e8ea83c069890_86046548.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7356b7b669a43f8c7ae3ec4abec3067c_16160770.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fed807a8e8638f7584d6085460ee5917_40478053.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7914ff2aff3187140b4ea28af00849a2_86377696.png change filename to text .imagette219659641743568383/ imagette219659641743568383/1743568031_914763_1349462487_367aca92da86c503334a69caf1974c8e_rle_crop_3743921230_0.png.png imagette219659641743568383/1743567551_910793_1349462225_bc28fa36880b1b1cb8ce930c751bb036_rle_crop_3743920426_0.png.png imagette219659641743568383/1743567688_3072927_1349462137_989c8215ec40a5097c662a003be27381_rle_crop_3743921023_0.png.png imagette219659641743568383/1743567672_911772_1349462304_35bddd1ff4658ae1cf2ffdb4767c255f_rle_crop_3743920914_0.png.png imagette219659641743568383/1743567551_910793_1349462227_309aede5852a61714dcded5ddb9f508d_rle_crop_3743920415_0.png.png imagette219659641743568383/1743567672_911772_1349462255_8b837ea7da9ba078f9d8c1b8e369d436_rle_crop_3743920961_0.png.png imagette219659641743568383/1743568052_914997_1349462455_32bdebcce7384eea25959b763e1cbd8e_rle_crop_3743921481_0.png.png imagette219659641743568383/1743568173_916011_1349462528_e77e64721dc65eda922aa03de10eb822_rle_crop_3743921746_0.png.png imagette219659641743568383/1743568173_916011_1349462528_e77e64721dc65eda922aa03de10eb822_rle_crop_3743921739_0.png.png imagette219659641743568383/1743568173_916011_1349462564_f40c1c1da8c68de0f45c5ceba31e08e6_rle_crop_3743921727_0.png.png imagette219659641743568383/1743568286_3083492_1349462586_36ca207c355e79097a044e85898e5363_rle_crop_3743922209_0.png.png imagette219659641743568383/1743568173_916011_1349462520_31f3fbfd48e314dbf93a8d30e18d7557_rle_crop_3743921783_0.png.png imagette219659641743568383/1743568286_3083492_1349462586_36ca207c355e79097a044e85898e5363_rle_crop_3743922215_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c4e779eb4d06710e51e4b418ab907e25_10698016.png imagette219659641743568383 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21965950 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21965965,21965966,21965967,21965968,21965969,21965970,21965971,21965972,21965973,21965974,21965975,21965976?tags=plastique,mal_croppe,Carton_gris,papier,autre_refus,Teint_Dans_La_Masse,metal,flou,cartonnette,environnement,kraft,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1349462721] : ('0.040222582913804414',) no score found for photo 1349462721 We are sending mail with results at report@fotonower.com args[1349462674] : ('0.040222582913804414',) no score found for photo 1349462674 We are sending mail with results at report@fotonower.com args[1349462663] : ('0.040222582913804414',) no score found for photo 1349462663 We are sending mail with results at report@fotonower.com args[1349462659] : ('0.040222582913804414',) no score found for photo 1349462659 We are sending mail with results at report@fotonower.com args[1349462656] : ('0.040222582913804414',) no score found for photo 1349462656 We are sending mail with results at report@fotonower.com args[1349462652] : ('0.040222582913804414',) no score found for photo 1349462652 We are sending mail with results at report@fotonower.com args[1349462650] : ('0.040222582913804414',) no score found for photo 1349462650 We are sending mail with results at report@fotonower.com refus_total : 0.040222582913804414 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=21965950 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_P21965950_02-04-2025_06_33_00.pdf results_Auto_P21965950_02-04-2025_06_33_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21965950','results_Auto_P21965950_02-04-2025_06_33_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf','pdf','','0.26','0.040222582913804414') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21965950]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] map_info['map_portfolio_photo'] : {21965950: [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650, 1349462630, 1349462625, 1349462624, 1349462623, 1349462622, 1349462603, 1349462600, 1349462592, 1349462588, 1349462586, 1349462584, 1349462564, 1349462559, 1349462558, 1349462530, 1349462528, 1349462525, 1349462523, 1349462520, 1349462517, 1349462489, 1349462487, 1349462486, 1349462484, 1349462465, 1349462463, 1349462460, 1349462458, 1349462455, 1349462431, 1349462429, 1349462427, 1349462425, 1349462401, 1349462397, 1349462351, 1349462304, 1349462301, 1349462263, 1349462260, 1349462257, 1349462255, 1349462252, 1349462230, 1349462228, 1349462227, 1349462225, 1349462185, 1349462183, 1349462180, 1349462178, 1349462176, 1349462173, 1349462145, 1349462142, 1349462139, 1349462137, 1349462135]} final : False mtd_id 4302 list_pids : [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] 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, '2715506') ('4302', '21965950', '1349462721', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462674', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462663', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462659', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462656', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462652', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462650', None, None, None, None, None, '2715506') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21965950', '1349462721', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462674', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462663', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462659', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462656', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462652', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462650', None, None, None, None, None, '2715506')] time used for this insertion : 0.07782554626464844 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.6584601402282715 time spend to save output : 0.0780637264251709 total time spend for step 4 : 5.736523866653442 step5:split_time_score Wed Apr 2 06:33:05 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 : ['21965950'] 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 : [('21965950',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21965950) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349462721: {'path': 'temp/1743568380_366441_1349462721_684433d134472a7e91d95425c2d1004c.jpg', 'extension': 'jpg'}, 1349462650: {'path': 'temp/1743568380_366441_1349462650_e8a979ed0e76d66fd21d97c43fe02c6b.jpg', 'extension': 'jpg'}, 1349462652: {'path': 'temp/1743568380_366441_1349462652_789311f74ca0eb5a4895b50dc25a107a.jpg', 'extension': 'jpg'}, 1349462656: {'path': 'temp/1743568380_366441_1349462656_dd88d07afb9111be80ab5aa3c5c3b93b.jpg', 'extension': 'jpg'}, 1349462659: {'path': 'temp/1743568380_366441_1349462659_34c96ab6942b0ca3659b6639adf5b965.jpg', 'extension': 'jpg'}, 1349462663: {'path': 'temp/1743568380_366441_1349462663_ba79cc63041fffc3c6afaa41d41d8daa.jpg', 'extension': 'jpg'}, 1349462674: {'path': 'temp/1743568380_366441_1349462674_ad27909325869289cfc85aa49725f69f.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 = 21965950; (('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 = 21965950 group by h (('06', 65),) 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=21965950 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 (21965950) 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 (21965950) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21965950 Nombre de photos uploadées : 65 / 23040 (0%) 02042025 21965950 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 02042025 21965950 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1349462145, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9ca5aac6120e7d6a9be5c954b88c020b.jpg', 'username': None, 'uploaded_at': 1743567368, 'text': 'image_02042025_06_15_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349462142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a096d744c5f9c958f90d7fdb6adfa298.jpg', 'username': None, 'uploaded_at': 1743567368, 'text': 'image_02042025_06_15_14_010131m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349462139, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5426aa776b5cf6e1a869a3b2d55734bd.jpg', 'username': None, 'uploaded_at': 1743567368, 'text': 'image_02042025_06_15_24_010132m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349462137, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/989c8215ec40a5097c662a003be27381.jpg', 'username': None, 'uploaded_at': 1743567368, 'text': 'image_02042025_06_15_34_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029180049896240234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21965950, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02785205841064453 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717629, 'mtr_portfolio_id': 21965459, 'dashboard_result_id': 9802901, '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_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717629, 'mtr_portfolio_id': 21965950, 'dashboard_result_id': 9802902, '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_P21965950_02-04-2025_06_30_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, '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 = 21965459 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': 2715478, 'mtr_portfolio_id': 21965459, 'created_at': datetime.datetime(2025, 4, 2, 6, 18, 59), 'result': '0.03699761545588388', 'result_long': None, 'result_double': None}] Qualite : 0.03699761545588388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965459 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_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, 'pht': 3726}}" where mtr_portfolio_id = 21965459 and dashboard_run_id = 1717629 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`=21965459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9802901, 0.03699761545588388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, '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 = 21965950 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': 2715506, 'mtr_portfolio_id': 21965950, 'created_at': datetime.datetime(2025, 4, 2, 6, 32, 59), 'result': '0.040222582913804414', 'result_long': None, 'result_double': None}] Qualite : 0.040222582913804414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965950 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_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}" where mtr_portfolio_id = 21965950 and dashboard_run_id = 1717629 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`=21965950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9802902, 0.040222582913804414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, '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 (21965459,21965950) result : ((1349459755,), (1349459786,), (1349459808,), (1349459821,), (1349460035,), (1349460058,), (1349460107,), (1349460133,), (1349460502,), (1349460530,), (1349460556,), (1349460582,), (1349460612,), (1349460871,), (1349460899,), (1349460937,), (1349460966,), (1349460996,), (1349461022,), (1349461232,), (1349461255,), (1349461275,), (1349461299,), (1349461380,), (1349461382,), (1349461384,), (1349461386,), (1349461389,), (1349461391,), (1349461466,), (1349461485,), (1349461510,), (1349461538,), (1349461751,), (1349461756,), (1349461758,), (1349461772,), (1349461800,), (1349461811,), (1349461838,), (1349461839,), (1349461840,), (1349461841,), (1349461884,), (1349461887,), (1349461890,), (1349461892,), (1349461895,), (1349461897,), (1349461929,), (1349461931,), (1349461933,), (1349461937,), (1349461976,), (1349461979,), (1349461982,), (1349461985,), (1349461989,), (1349462008,), (1349462010,), (1349462012,), (1349462015,), (1349462021,), (1349462051,), (1349462054,), (1349462057,), (1349462059,), (1349462062,), (1349462065,), (1349462086,), (1349462089,), (1349462091,), (1349462093,), (1349462099,), (1349462149,), (1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21965950]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] map_info['map_portfolio_photo'] : {21965950: [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650, 1349462630, 1349462625, 1349462624, 1349462623, 1349462622, 1349462603, 1349462600, 1349462592, 1349462588, 1349462586, 1349462584, 1349462564, 1349462559, 1349462558, 1349462530, 1349462528, 1349462525, 1349462523, 1349462520, 1349462517, 1349462489, 1349462487, 1349462486, 1349462484, 1349462465, 1349462463, 1349462460, 1349462458, 1349462455, 1349462431, 1349462429, 1349462427, 1349462425, 1349462401, 1349462397, 1349462351, 1349462304, 1349462301, 1349462263, 1349462260, 1349462257, 1349462255, 1349462252, 1349462230, 1349462228, 1349462227, 1349462225, 1349462185, 1349462183, 1349462180, 1349462178, 1349462176, 1349462173, 1349462145, 1349462142, 1349462139, 1349462137, 1349462135]} final : True mtd_id 4302 list_pids : [1349462721, 1349462674, 1349462663, 1349462659, 1349462656, 1349462652, 1349462650] Looping around the photos to save general results len do output : 1 /21965950Didn'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, '2715506') ('4302', '21965950', '1349462721', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462674', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462663', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462659', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462656', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462652', None, None, None, None, None, '2715506') ('4302', None, None, None, None, None, None, None, '2715506') ('4302', '21965950', '1349462650', None, None, None, None, None, '2715506') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21965950', 'None', None, None, None, None, '2715506'), ('4302', '21965950', '1349462721', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462674', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462663', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462659', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462656', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462652', None, None, None, None, None, '2715506'), ('4302', '21965950', '1349462650', None, None, None, None, None, '2715506')] time used for this insertion : 0.06325078010559082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.26850414276123047 time spend to save output : 0.06346940994262695 total time spend for step 5 : 0.3319735527038574 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 (2715506) 2.02user 2.47system 0:10.79elapsed 41%CPU (0avgtext+0avgdata 159028maxresident)k 288inputs+13976outputs (2major+64103minor)pagefaults 0swaps