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 : 841036 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 (2661368) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2661368) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332849 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2661368'] with mtr_portfolio_ids : ['21332849'] and first list_photo_ids : [] new path : /proc/841036/ Name: python3 Umask: 0002 State: R (running) Tgid: 841036 Ngid: 0 Pid: 841036 PPid: 841035 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 841036 NSpid: 841036 NSpgid: 837528 NSsid: 837528 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98496 kB VmRSS: 98496 kB RssAnon: 59756 kB RssFile: 38740 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '841036', 'Ngid': '0', 'Pid': '841036', 'PPid': '841035', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '841036', 'NSpid': '841036', 'NSpgid': '837528', 'NSsid': '837528', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98496 kB', 'VmRSS': '98496 kB', 'RssAnon': '59756 kB', 'RssFile': '38740 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '841036', '1106844', '0', '1106844', '865592', '98496', b'', 'marlene', '2661368') 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 (21332849) 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 (2661368 ) ) 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 (21332849) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343317201, 'portfolio_id': 21332849}, {'photo_id': 1343317193, 'portfolio_id': 21332849}, {'photo_id': 1343317181, 'portfolio_id': 21332849}, {'photo_id': 1343317170, 'portfolio_id': 21332849}, {'photo_id': 1343317081, 'portfolio_id': 21332849}, {'photo_id': 1343317076, 'portfolio_id': 21332849}, {'photo_id': 1343317071, 'portfolio_id': 21332849}, {'photo_id': 1343317065, 'portfolio_id': 21332849}, {'photo_id': 1343317058, 'portfolio_id': 21332849}, {'photo_id': 1343317043, 'portfolio_id': 21332849}, {'photo_id': 1343316856, 'portfolio_id': 21332849}, {'photo_id': 1343316842, 'portfolio_id': 21332849}, {'photo_id': 1343316831, 'portfolio_id': 21332849}, {'photo_id': 1343316790, 'portfolio_id': 21332849}, {'photo_id': 1343316600, 'portfolio_id': 21332849}, {'photo_id': 1343316595, 'portfolio_id': 21332849}, {'photo_id': 1343316589, 'portfolio_id': 21332849}, {'photo_id': 1343316538, 'portfolio_id': 21332849}, {'photo_id': 1343316534, 'portfolio_id': 21332849}, {'photo_id': 1343316492, 'portfolio_id': 21332849}, {'photo_id': 1343316340, 'portfolio_id': 21332849}, {'photo_id': 1343316318, 'portfolio_id': 21332849}, {'photo_id': 1343316310, 'portfolio_id': 21332849}, {'photo_id': 1343316279, 'portfolio_id': 21332849}, {'photo_id': 1343316266, 'portfolio_id': 21332849}, {'photo_id': 1343316240, 'portfolio_id': 21332849}, {'photo_id': 1343316230, 'portfolio_id': 21332849}, {'photo_id': 1343316223, 'portfolio_id': 21332849}, {'photo_id': 1343316215, 'portfolio_id': 21332849}, {'photo_id': 1343316186, 'portfolio_id': 21332849}, {'photo_id': 1343316168, 'portfolio_id': 21332849}, {'photo_id': 1343316160, 'portfolio_id': 21332849}, {'photo_id': 1343316153, 'portfolio_id': 21332849}, {'photo_id': 1343316129, 'portfolio_id': 21332849}, {'photo_id': 1343316126, 'portfolio_id': 21332849}, {'photo_id': 1343316123, 'portfolio_id': 21332849}, {'photo_id': 1343316121, 'portfolio_id': 21332849}, {'photo_id': 1343316119, 'portfolio_id': 21332849}, {'photo_id': 1343316116, 'portfolio_id': 21332849}, {'photo_id': 1343316065, 'portfolio_id': 21332849}, {'photo_id': 1343316060, 'portfolio_id': 21332849}, {'photo_id': 1343316055, 'portfolio_id': 21332849}, {'photo_id': 1343316052, 'portfolio_id': 21332849}, {'photo_id': 1343316050, 'portfolio_id': 21332849}, {'photo_id': 1343316048, 'portfolio_id': 21332849}, {'photo_id': 1343315980, 'portfolio_id': 21332849}, {'photo_id': 1343315975, 'portfolio_id': 21332849}, {'photo_id': 1343315931, 'portfolio_id': 21332849}, {'photo_id': 1343315927, 'portfolio_id': 21332849}, {'photo_id': 1343315920, 'portfolio_id': 21332849}] map_portfolio_id_photo_id: {21332849: [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043, 1343316856, 1343316842, 1343316831, 1343316790, 1343316600, 1343316595, 1343316589, 1343316538, 1343316534, 1343316492, 1343316340, 1343316318, 1343316310, 1343316279, 1343316266, 1343316240, 1343316230, 1343316223, 1343316215, 1343316186, 1343316168, 1343316160, 1343316153, 1343316129, 1343316126, 1343316123, 1343316121, 1343316119, 1343316116, 1343316065, 1343316060, 1343316055, 1343316052, 1343316050, 1343316048, 1343315980, 1343315975, 1343315931, 1343315927, 1343315920]} ##### 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.015071868896484375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 12 07:28:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21332849) 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 : 21332849 get user id for portfolio 21332849 get sub ptf for main ptf 21332849, type 3726 and hashtags ['autre_refus', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'Carton_brun', 'kraft', 'flou', 'mal_croppe', 'plastique', 'Carton_gris', 'cartonnette', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21332849 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','papier','Teint_Dans_La_Masse','Carton_brun','kraft','flou','mal_croppe','plastique','Carton_gris','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21332849 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','papier','Teint_Dans_La_Masse','Carton_brun','kraft','flou','mal_croppe','plastique','Carton_gris','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21332849, 'sub_port_id': 21332874, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914736, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'environnement': {'main_port_id': 21332849, 'sub_port_id': 21332875, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914737, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'mal_croppe': {'main_port_id': 21332849, 'sub_port_id': 21332876, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914738, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'flou': {'main_port_id': 21332849, 'sub_port_id': 21332877, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914739, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'Carton_gris': {'main_port_id': 21332849, 'sub_port_id': 21332878, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914740, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'cartonnette': {'main_port_id': 21332849, 'sub_port_id': 21332879, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914741, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'Carton_brun': {'main_port_id': 21332849, 'sub_port_id': 21332880, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914742, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'metal': {'main_port_id': 21332849, 'sub_port_id': 21332881, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914743, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'autre_refus': {'main_port_id': 21332849, 'sub_port_id': 21332882, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914744, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'plastique': {'main_port_id': 21332849, 'sub_port_id': 21332883, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914745, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21332849, 'sub_port_id': 21332884, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914746, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}, 'papier': {'main_port_id': 21332849, 'sub_port_id': 21332885, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914747, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21332874 , 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=21332849 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 (21332874) result : ((1343316904,), (1343317048,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332875 , 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=21332849 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 (21332875) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332876 , 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=21332849 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 (21332876) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332877 , 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=21332849 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 (21332877) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332878 , 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=21332849 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 (21332878) result : ((1343316292,), (1343316506,), (1343316901,), (1343317033,), (1343317034,), (1343317035,), (1343317037,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332879 , 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=21332849 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 (21332879) result : ((1343316294,), (1343316295,), (1343316490,), (1343316508,), (1343316902,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332880 , 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=21332849 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 (21332880) result : ((1343316297,), (1343316298,), (1343316514,), (1343316515,), (1343316516,), (1343316517,), (1343316518,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332881 , 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=21332849 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 (21332881) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332882 , 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=21332849 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 (21332882) result : ((1343316231,), (1343316232,), (1343316287,), (1343316288,), (1343316289,), (1343316290,), (1343316485,), (1343316486,), (1343316487,), (1343316496,), (1343316497,), (1343316498,), (1343316499,), (1343316500,), (1343316501,), (1343316502,), (1343316503,), (1343316889,), (1343316890,), (1343317026,), (1343317027,), (1343317028,), (1343317029,), (1343317030,), (1343317031,), (1343317342,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332883 , 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=21332849 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 (21332883) result : ((1343316903,), (1343317040,), (1343317041,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332884 , 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=21332849 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 (21332884) result : ((1343316286,), (1343316860,), (1343317008,), (1343317010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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 21332885 , 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=21332849 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 (21332885) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332849) result : ((1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) 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 (1343316600) 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`=21332849 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','papier','Teint_Dans_La_Masse','Carton_brun','kraft','flou','mal_croppe','plastique','Carton_gris','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21332849 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','papier','Teint_Dans_La_Masse','Carton_brun','kraft','flou','mal_croppe','plastique','Carton_gris','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21332849, 'sub_port_id': 21332886, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914748, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'environnement': {'main_port_id': 21332849, 'sub_port_id': 21332887, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914749, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'mal_croppe': {'main_port_id': 21332849, 'sub_port_id': 21332888, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914750, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'flou': {'main_port_id': 21332849, 'sub_port_id': 21332889, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914751, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'Carton_gris': {'main_port_id': 21332849, 'sub_port_id': 21332890, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914752, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'cartonnette': {'main_port_id': 21332849, 'sub_port_id': 21332891, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914753, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'Carton_brun': {'main_port_id': 21332849, 'sub_port_id': 21332892, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914754, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'metal': {'main_port_id': 21332849, 'sub_port_id': 21332893, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914755, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'autre_refus': {'main_port_id': 21332849, 'sub_port_id': 21332894, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914756, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'plastique': {'main_port_id': 21332849, 'sub_port_id': 21332895, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914757, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21332849, 'sub_port_id': 21332896, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914758, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}, 'papier': {'main_port_id': 21332849, 'sub_port_id': 21332897, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914759, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 22, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332876 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332889,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332877 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332890,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332878 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332891,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332879 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332892,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332880 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332893,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332881 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332894,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332882 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332895,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332883 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332896,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332884 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332897,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332885 lien utilise dans velours : https://www.fotonower.com/velours/21332886,21332887,21332888,21332889,21332890,21332891,21332892,21332893,21332894,21332895,21332896,21332897?tags=kraft,environnement,mal_croppe,flou,Carton_gris,cartonnette,Carton_brun,metal,autre_refus,plastique,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21332849]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] map_info['map_portfolio_photo'] : {21332849: [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043, 1343316856, 1343316842, 1343316831, 1343316790, 1343316600, 1343316595, 1343316589, 1343316538, 1343316534, 1343316492, 1343316340, 1343316318, 1343316310, 1343316279, 1343316266, 1343316240, 1343316230, 1343316223, 1343316215, 1343316186, 1343316168, 1343316160, 1343316153, 1343316129, 1343316126, 1343316123, 1343316121, 1343316119, 1343316116, 1343316065, 1343316060, 1343316055, 1343316052, 1343316050, 1343316048, 1343315980, 1343315975, 1343315931, 1343315927, 1343315920]} final : False mtd_id 4302 list_pids : [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] Looping around the photos to save general results len do output : 1 /21332849. 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, '2661368') ('4302', '21332849', '1343317201', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317193', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317181', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317170', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317081', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317076', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317071', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317065', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317058', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317043', None, None, None, None, None, '2661368') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21332849', "{'kraft': 21332874, 'environnement': 21332875, 'mal_croppe': 21332876, 'flou': 21332877, 'Carton_gris': 21332878, 'cartonnette': 21332879, 'Carton_brun': 21332880, 'metal': 21332881, 'autre_refus': 21332882, 'plastique': 21332883, 'Teint_Dans_La_Masse': 21332884, 'papier': 21332885}", None, None, None, None, '2661368'), ('4302', '21332849', '1343317201', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317193', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317181', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317170', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317081', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317076', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317071', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317065', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317058', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317043', None, None, None, None, None, '2661368')] time used for this insertion : 0.014472484588623047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4294240474700928 time spend to save output : 0.01484060287475586 total time spend for step 1 : 0.44426465034484863 step2:final Wed Mar 12 07:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21332849) 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 21332849 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343315931,1343315927,1343315920,1343315980,1343315975,1343316065,1343316060,1343316055,1343316052,1343316050,1343316048,1343316129,1343316126,1343316123,1343316121,1343316119,1343316116,1343316186,1343316168,1343316160,1343316153,1343316279,1343316266,1343316240,1343316230,1343316223,1343316215,1343316340,1343316318,1343316310,1343316538,1343316534,1343316600,1343316492,1343316595,1343316589,1343316856,1343316842,1343316831,1343316790,1343317081,1343317076,1343317071,1343317065,1343317058,1343317043,1343317201,1343317193,1343317181,1343317170); 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([21332849]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} new output for save of step final : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] map_info['map_portfolio_photo'] : {21332849: [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043, 1343316856, 1343316842, 1343316831, 1343316790, 1343316600, 1343316595, 1343316589, 1343316538, 1343316534, 1343316492, 1343316340, 1343316318, 1343316310, 1343316279, 1343316266, 1343316240, 1343316230, 1343316223, 1343316215, 1343316186, 1343316168, 1343316160, 1343316153, 1343316129, 1343316126, 1343316123, 1343316121, 1343316119, 1343316116, 1343316065, 1343316060, 1343316055, 1343316052, 1343316050, 1343316048, 1343315980, 1343315975, 1343315931, 1343315927, 1343315920]} final : False mtd_id 4302 list_pids : [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] Looping around the photos to save general results len do output : 10 /1343317201.Didn't retrieve data . /1343317193.Didn't retrieve data . /1343317181.Didn't retrieve data . /1343317170.Didn't retrieve data . /1343317081.Didn't retrieve data . /1343317076.Didn't retrieve data . /1343317071.Didn't retrieve data . /1343317065.Didn't retrieve data . /1343317058.Didn't retrieve data . /1343317043.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, '2661368') ('4302', '21332849', '1343317201', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317193', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317181', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317170', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317081', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317076', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317071', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317065', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317058', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317043', None, None, None, None, None, '2661368') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21332849', '1343317201', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317193', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317181', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317170', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317081', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317076', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317071', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317065', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317058', '0.07483462964358906', None, None, None, None, '2661368'), ('4302', '21332849', '1343317043', '0.07483462964358906', None, None, None, None, '2661368')] time used for this insertion : 0.013299942016601562 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09908246994018555 time spend to save output : 0.013828277587890625 total time spend for step 2 : 0.11291074752807617 step3:velours_tree Wed Mar 12 07:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21332849: [{'kraft': 21332874, 'environnement': 21332875, 'mal_croppe': 21332876, 'flou': 21332877, 'Carton_gris': 21332878, 'cartonnette': 21332879, 'Carton_brun': 21332880, 'metal': 21332881, 'autre_refus': 21332882, 'plastique': 21332883, 'Teint_Dans_La_Masse': 21332884, 'papier': 21332885}]} input_args_next_step : {21332849: ()} output_args : {21332849: [{'kraft': 21332874, 'environnement': 21332875, 'mal_croppe': 21332876, 'flou': 21332877, 'Carton_gris': 21332878, 'cartonnette': 21332879, 'Carton_brun': 21332880, 'metal': 21332881, 'autre_refus': 21332882, 'plastique': 21332883, 'Teint_Dans_La_Masse': 21332884, 'papier': 21332885}]} args : 21332849 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 : ({'kraft': 21332874, 'environnement': 21332875, 'mal_croppe': 21332876, 'flou': 21332877, 'Carton_gris': 21332878, 'cartonnette': 21332879, 'Carton_brun': 21332880, 'metal': 21332881, 'autre_refus': 21332882, 'plastique': 21332883, 'Teint_Dans_La_Masse': 21332884, 'papier': 21332885},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21332849) 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([21332849]) 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.3543984889984131 time spend to save output : 6.079673767089844e-05 total time spend for step 3 : 0.354459285736084 step4:send_mail_cod Wed Mar 12 07:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} input_args_next_step : {1343317201: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317201 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317193 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317181 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317170 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317081 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317076 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317071 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317065 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317058 depend.output_id : 0 input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ()} output_args : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',)} args : 1343317043 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 : {21332849: [{'kraft': 21332874, 'environnement': 21332875, 'mal_croppe': 21332876, 'flou': 21332877, 'Carton_gris': 21332878, 'cartonnette': 21332879, 'Carton_brun': 21332880, 'metal': 21332881, 'autre_refus': 21332882, 'plastique': 21332883, 'Teint_Dans_La_Masse': 21332884, 'papier': 21332885}]} input_args_next_step : {1343317201: ('0.07483462964358906',), 1343317193: ('0.07483462964358906',), 1343317181: ('0.07483462964358906',), 1343317170: ('0.07483462964358906',), 1343317081: ('0.07483462964358906',), 1343317076: ('0.07483462964358906',), 1343317071: ('0.07483462964358906',), 1343317065: ('0.07483462964358906',), 1343317058: ('0.07483462964358906',), 1343317043: ('0.07483462964358906',), 21332849: ()} output_args : {21332849: [{'kraft': 21332874, 'environnement': 21332875, 'mal_croppe': 21332876, 'flou': 21332877, 'Carton_gris': 21332878, 'cartonnette': 21332879, 'Carton_brun': 21332880, 'metal': 21332881, 'autre_refus': 21332882, 'plastique': 21332883, 'Teint_Dans_La_Masse': 21332884, 'papier': 21332885}]} args : 21332849 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.07483462964358906',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21332849) 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 (1343317201,1343317193,1343317181,1343317170,1343317081,1343317076,1343317071,1343317065,1343317058,1343317043) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343317043 begin to download photo : 1343317071 begin to download photo : 1343317170 begin to download photo : 1343317201 download finish for photo 1343317201 download finish for photo 1343317170 begin to download photo : 1343317181 download finish for photo 1343317043 begin to download photo : 1343317058 download finish for photo 1343317181 begin to download photo : 1343317193 download finish for photo 1343317058 begin to download photo : 1343317065 download finish for photo 1343317193 download finish for photo 1343317065 download finish for photo 1343317071 begin to download photo : 1343317076 download finish for photo 1343317076 begin to download photo : 1343317081 download finish for photo 1343317081 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21332849_12-03-2025_07_28_59.pdf 21332874 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=21332874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343316904: '1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156910_0.png', 1343317048: '1741760714_2303700_1343316223_5d2314e5c948618ab4ad4e5d5111f794_rle_crop_3707157436_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c44aa1a6031dde73dcf54d7d2b693a83_39678216.png change filename to text .imagette213328741741760939/ imagette213328741741760939/1741760714_2303700_1343316223_5d2314e5c948618ab4ad4e5d5111f794_rle_crop_3707157436_0.png.png imagette213328741741760939/1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156910_0.png.png imagette213328761741760939/ imagette213328771741760939/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7212e5786522009b7495ead5fa5f7b00_90719315.png imagette213328741741760939 21332876 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=21332876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213328761741760939 21332877 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=21332877 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213328771741760939 21332879 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=21332879 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343316294: '1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148872_0.png', 1343316295: '1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148867_0.png', 1343316490: '1741760573_2301304_1343316153_1e4c8dd95c54e3b8ad108e0040f22894_rle_crop_3707154165_0.png', 1343316508: '1741760551_2301034_1343316126_dc882c2acbe56e977761d5d8183d823e_rle_crop_3707153938_0.png', 1343316902: '1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156912_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4bce4c105c2c8860f36bfbc7699119b1_29540106.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/660d54ad9b5904bed7f5b76f8e882741_37127751.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1e6644d83bd7b467cdd8ebe806d877e2_4238896.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8d838c23a40dc02043bfd269dbc95ec2_16336890.png change filename to text .imagette213328791741760939/ imagette213328791741760939/1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148867_0.png.png imagette213328791741760939/1741760551_2301034_1343316126_dc882c2acbe56e977761d5d8183d823e_rle_crop_3707153938_0.png.png imagette213328791741760939/1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156912_0.png.png imagette213328791741760939/1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148872_0.png.png imagette213328791741760939/1741760573_2301304_1343316153_1e4c8dd95c54e3b8ad108e0040f22894_rle_crop_3707154165_0.png.png imagette213328811741760939/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d6002462b304e68979f4f6446515ca2f_10336759.png imagette213328791741760939 21332881 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=21332881 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213328811741760939 21332882 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=21332882 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343316500: '1741760551_2301034_1343316121_b531561b4e9c09d1cee8fd6ab61b1420_rle_crop_3707154051_0.png', 1343317342: '1741760907_3352666_1343316538_d6ce533911ad0df117f029e4fa1a85a0_rle_crop_3707159817_0.png', 1343317031: '1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157481_0.png', 1343317030: '1741760714_2303700_1343316223_5d2314e5c948618ab4ad4e5d5111f794_rle_crop_3707157442_0.png', 1343317029: '1741760714_2303700_1343316230_0ae56eed376dc90c2185bad9b75fd2a9_rle_crop_3707157236_0.png', 1343317028: '1741760714_2303700_1343316240_c3eb6b460b07da06215d93631871865b_rle_crop_3707157201_0.png', 1343317027: '1741760714_2303700_1343316240_c3eb6b460b07da06215d93631871865b_rle_crop_3707157194_0.png', 1343317026: '1741760714_2303700_1343316340_03b6932b1565f6c0b83e748f010b0bcd_rle_crop_3707157158_0.png', 1343316890: '1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156925_0.png', 1343316889: '1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156926_0.png', 1343316503: '1741760551_2301034_1343316116_3f5ce721f6c42bb19d1ec9e052c98913_rle_crop_3707154210_0.png', 1343316502: '1741760551_2301034_1343316119_23a582cc3b32cf93c79915f0aa57b574_rle_crop_3707154114_0.png', 1343316501: '1741760551_2301034_1343316121_b531561b4e9c09d1cee8fd6ab61b1420_rle_crop_3707154061_0.png', 1343316231: '1741760485_3343480_1343315975_5073dce632ecb0ab5d38f307948ebd21_rle_crop_3707149670_0.png', 1343316499: '1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153966_0.png', 1343316498: '1741760551_2301034_1343316126_dc882c2acbe56e977761d5d8183d823e_rle_crop_3707153943_0.png', 1343316497: '1741760551_2301034_1343316186_b6958a387cbf10c44a5f0a921d482b93_rle_crop_3707153932_0.png', 1343316496: '1741760551_2301034_1343316186_b6958a387cbf10c44a5f0a921d482b93_rle_crop_3707153924_0.png', 1343316487: '1741760573_2301304_1343316153_1e4c8dd95c54e3b8ad108e0040f22894_rle_crop_3707154169_0.png', 1343316486: '1741760573_2301304_1343316160_cce10ef239a6310e49750c8f0448af51_rle_crop_3707154103_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9725a65946b00b59e326545944287934_36828807.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c906cc09954ef99e0afb0564f3b86b57_18674770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/62aa18ae45e07e4665b18403a171ba6c_6745243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5d6976081f7fa66a26ab6b83ebc26f5b_8469236.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b45dffc48517ee2dfe66aa125aa17239_94972368.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b62c62c43187dd01ef4516fe6fbbe4e4_8515943.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/365423396219de64a56d67b1da3d3227_21708254.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e82e07f552a8f660264ab91593b29f0e_82655152.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d94cd29b0853104ced371f0bd28ddb6b_52015178.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a5bd7b97b3681f4f2702bec66f526419_61196365.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5ce2cd672075e5a4891424a7b8b0f90e_87337530.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/435ce81d951ea2f3bbccec196844f724_14213195.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7ed380ccc2b87bfc1395b73847bfbbf9_85203633.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/04808b356a0e9a7b2c1ced36895d7341_99464847.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/50ae12af610082ae11e96db2a7321100_35562034.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/82d5a1878de591a99481359847e5500b_66903203.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/052de7fe36397de402ab511a6642dc47_53419646.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4ae2e6f49cef91a87b37667bbd87736a_46330772.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7300e3bf4df86b527dfc200a8b2637f1_55720157.png change filename to text .imagette213328821741760939/ imagette213328821741760939/1741760551_2301034_1343316186_b6958a387cbf10c44a5f0a921d482b93_rle_crop_3707153932_0.png.png imagette213328821741760939/1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156925_0.png.png imagette213328821741760939/1741760551_2301034_1343316121_b531561b4e9c09d1cee8fd6ab61b1420_rle_crop_3707154051_0.png.png imagette213328821741760939/1741760714_2303700_1343316230_0ae56eed376dc90c2185bad9b75fd2a9_rle_crop_3707157236_0.png.png imagette213328821741760939/1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156926_0.png.png imagette213328821741760939/1741760485_3343480_1343315975_5073dce632ecb0ab5d38f307948ebd21_rle_crop_3707149670_0.png.png imagette213328821741760939/1741760551_2301034_1343316126_dc882c2acbe56e977761d5d8183d823e_rle_crop_3707153943_0.png.png imagette213328821741760939/1741760573_2301304_1343316160_cce10ef239a6310e49750c8f0448af51_rle_crop_3707154103_0.png.png imagette213328821741760939/1741760714_2303700_1343316240_c3eb6b460b07da06215d93631871865b_rle_crop_3707157201_0.png.png imagette213328821741760939/1741760551_2301034_1343316116_3f5ce721f6c42bb19d1ec9e052c98913_rle_crop_3707154210_0.png.png imagette213328821741760939/1741760551_2301034_1343316121_b531561b4e9c09d1cee8fd6ab61b1420_rle_crop_3707154061_0.png.png imagette213328821741760939/1741760714_2303700_1343316223_5d2314e5c948618ab4ad4e5d5111f794_rle_crop_3707157442_0.png.png imagette213328821741760939/1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157481_0.png.png imagette213328821741760939/1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153966_0.png.png imagette213328821741760939/1741760551_2301034_1343316186_b6958a387cbf10c44a5f0a921d482b93_rle_crop_3707153924_0.png.png imagette213328821741760939/1741760907_3352666_1343316538_d6ce533911ad0df117f029e4fa1a85a0_rle_crop_3707159817_0.png.png imagette213328821741760939/1741760714_2303700_1343316240_c3eb6b460b07da06215d93631871865b_rle_crop_3707157194_0.png.png imagette213328821741760939/1741760714_2303700_1343316340_03b6932b1565f6c0b83e748f010b0bcd_rle_crop_3707157158_0.png.png imagette213328821741760939/1741760551_2301034_1343316119_23a582cc3b32cf93c79915f0aa57b574_rle_crop_3707154114_0.png.png imagette213328821741760939/1741760573_2301304_1343316153_1e4c8dd95c54e3b8ad108e0040f22894_rle_crop_3707154169_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c7964828fa79c56dc564877f3d1a7d33_19685166.png imagette213328821741760939 21332883 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=21332883 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343316903: '1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156908_0.png', 1343317040: '1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157484_0.png', 1343317041: '1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157482_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/cffb5de0fdd494b1a298979bebfd8c56_46110415.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a9db97f2aefc618586e4da87b132ad1a_58269609.png change filename to text .imagette213328831741760940/ imagette213328831741760940/1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157482_0.png.png imagette213328831741760940/1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157484_0.png.png imagette213328831741760940/1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156908_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ade0dea50f2cb7a067b46fea929a4a93_20381237.png imagette213328831741760940 21332878 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=21332878 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343316292: '1741760491_2300294_1343315931_d4a7c0eaa306fcc63dd54b8042700340_rle_crop_3707148833_0.png', 1343316506: '1741760551_2301034_1343316119_23a582cc3b32cf93c79915f0aa57b574_rle_crop_3707154112_0.png', 1343316901: '1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156907_0.png', 1343317033: '1741760714_2303700_1343316340_03b6932b1565f6c0b83e748f010b0bcd_rle_crop_3707157162_0.png', 1343317034: '1741760714_2303700_1343316240_c3eb6b460b07da06215d93631871865b_rle_crop_3707157197_0.png', 1343317035: '1741760714_2303700_1343316223_5d2314e5c948618ab4ad4e5d5111f794_rle_crop_3707157434_0.png', 1343317037: '1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157476_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ae7dd27778193bfdc9f6b19d3b066a39_82276227.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d8f510d1bb20451a7e7ae945b970ccff_74953205.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3c102613c02e4954b4a8d11e37ef30b2_75688908.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/728a55c70406dabd0d4f7b732a264e4e_27906363.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3bef79e0073eb14caa23d3f2cf837fba_7397891.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e53e79488f8deb11dc2cd2c5e8cf93c5_10803809.png change filename to text .imagette213328781741760941/ imagette213328781741760941/1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156907_0.png.png imagette213328781741760941/1741760491_2300294_1343315931_d4a7c0eaa306fcc63dd54b8042700340_rle_crop_3707148833_0.png.png imagette213328781741760941/1741760551_2301034_1343316119_23a582cc3b32cf93c79915f0aa57b574_rle_crop_3707154112_0.png.png imagette213328781741760941/1741760714_2303700_1343316240_c3eb6b460b07da06215d93631871865b_rle_crop_3707157197_0.png.png imagette213328781741760941/1741760714_2303700_1343316223_5d2314e5c948618ab4ad4e5d5111f794_rle_crop_3707157434_0.png.png imagette213328781741760941/1741760714_2303700_1343316215_9d4491f7d31d2336257078eb461b3043_rle_crop_3707157476_0.png.png imagette213328781741760941/1741760714_2303700_1343316340_03b6932b1565f6c0b83e748f010b0bcd_rle_crop_3707157162_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/69f6486853b9c218cdc5e29e794e248b_15607230.png imagette213328781741760941 21332880 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=21332880 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343316297: '1741760491_2300294_1343315931_d4a7c0eaa306fcc63dd54b8042700340_rle_crop_3707148838_0.png', 1343316298: '1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148873_0.png', 1343316514: '1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153964_0.png', 1343316515: '1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153963_0.png', 1343316516: '1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153965_0.png', 1343316517: '1741760551_2301034_1343316121_b531561b4e9c09d1cee8fd6ab61b1420_rle_crop_3707154057_0.png', 1343316518: '1741760551_2301034_1343316116_3f5ce721f6c42bb19d1ec9e052c98913_rle_crop_3707154209_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2c3f3be6e3e7acceb8c9f12acc3f452c_88094759.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f0f9d41f3c9895bf4bb64b421d490438_25456796.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f2e8ded7d32f6056798776369b33c24d_55635274.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/bbc4baf9e3d3b44a2917b465e506fe55_92493666.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/674e76d5b17af76b75d69e546053646d_31574505.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/27923dfd6cb9a6a1501d80ef6e516837_39204228.png change filename to text .imagette213328801741760941/ imagette213328801741760941/1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153964_0.png.png imagette213328801741760941/1741760551_2301034_1343316121_b531561b4e9c09d1cee8fd6ab61b1420_rle_crop_3707154057_0.png.png imagette213328801741760941/1741760551_2301034_1343316116_3f5ce721f6c42bb19d1ec9e052c98913_rle_crop_3707154209_0.png.png imagette213328801741760941/1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153965_0.png.png imagette213328801741760941/1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148873_0.png.png imagette213328801741760941/1741760551_2301034_1343316123_f4a41e0643183b2e5c811a4914ff97f9_rle_crop_3707153963_0.png.png imagette213328801741760941/1741760491_2300294_1343315931_d4a7c0eaa306fcc63dd54b8042700340_rle_crop_3707148838_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/88652877a1cd5962456727813b36b552_96074710.png imagette213328801741760941 21332884 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=21332884 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343316286: '1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148870_0.png', 1343316860: '1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156916_0.png', 1343317008: '1741760714_2303700_1343316340_03b6932b1565f6c0b83e748f010b0bcd_rle_crop_3707157161_0.png', 1343317010: '1741760714_2303700_1343316230_0ae56eed376dc90c2185bad9b75fd2a9_rle_crop_3707157237_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2237ce082f564def56a7d2f3e22da492_73908363.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/6af8a43dfdeed8b486a4243397060891_52402701.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/fc4ed7f568d51e094f3dfaca801d73c7_40706327.png change filename to text .imagette213328841741760941/ imagette213328841741760941/1741760491_2300294_1343315927_5583c6888405d4bcf7b82057c036706d_rle_crop_3707148870_0.png.png imagette213328841741760941/1741760714_2303700_1343316340_03b6932b1565f6c0b83e748f010b0bcd_rle_crop_3707157161_0.png.png imagette213328841741760941/1741760714_2303700_1343316230_0ae56eed376dc90c2185bad9b75fd2a9_rle_crop_3707157237_0.png.png imagette213328841741760941/1741760701_2303519_1343316318_d2eb5bcbe3ef9dd27659d1a2303a9a84_rle_crop_3707156916_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0aed9c0ddefc9c4572b0fed9b6cce6b7_33003444.png imagette213328841741760941 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21332849 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21332886,21332887,21332888,21332889,21332890,21332891,21332892,21332893,21332894,21332895,21332896,21332897?tags=kraft,environnement,mal_croppe,flou,Carton_gris,cartonnette,Carton_brun,metal,autre_refus,plastique,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1343317201] : ('0.07483462964358906',) no score found for photo 1343317201 We are sending mail with results at report@fotonower.com args[1343317193] : ('0.07483462964358906',) no score found for photo 1343317193 We are sending mail with results at report@fotonower.com args[1343317181] : ('0.07483462964358906',) no score found for photo 1343317181 We are sending mail with results at report@fotonower.com args[1343317170] : ('0.07483462964358906',) no score found for photo 1343317170 We are sending mail with results at report@fotonower.com args[1343317081] : ('0.07483462964358906',) no score found for photo 1343317081 We are sending mail with results at report@fotonower.com args[1343317076] : ('0.07483462964358906',) no score found for photo 1343317076 We are sending mail with results at report@fotonower.com args[1343317071] : ('0.07483462964358906',) no score found for photo 1343317071 We are sending mail with results at report@fotonower.com args[1343317065] : ('0.07483462964358906',) no score found for photo 1343317065 We are sending mail with results at report@fotonower.com args[1343317058] : ('0.07483462964358906',) no score found for photo 1343317058 We are sending mail with results at report@fotonower.com args[1343317043] : ('0.07483462964358906',) no score found for photo 1343317043 We are sending mail with results at report@fotonower.com refus_total : 0.07483462964358906 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=21332849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21332849]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] map_info['map_portfolio_photo'] : {21332849: [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043, 1343316856, 1343316842, 1343316831, 1343316790, 1343316600, 1343316595, 1343316589, 1343316538, 1343316534, 1343316492, 1343316340, 1343316318, 1343316310, 1343316279, 1343316266, 1343316240, 1343316230, 1343316223, 1343316215, 1343316186, 1343316168, 1343316160, 1343316153, 1343316129, 1343316126, 1343316123, 1343316121, 1343316119, 1343316116, 1343316065, 1343316060, 1343316055, 1343316052, 1343316050, 1343316048, 1343315980, 1343315975, 1343315931, 1343315927, 1343315920]} final : False mtd_id 4302 list_pids : [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] 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, '2661368') ('4302', '21332849', '1343317201', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317193', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317181', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317170', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317081', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317076', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317071', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317065', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317058', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317043', None, None, None, None, None, '2661368') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21332849', '1343317201', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317193', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317181', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317170', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317081', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317076', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317071', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317065', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317058', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317043', None, None, None, None, None, '2661368')] time used for this insertion : 0.26302266120910645 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.686249732971191 time spend to save output : 0.26326537132263184 total time spend for step 4 : 4.949515104293823 step5:split_time_score Wed Mar 12 07:29:02 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 : ['21332849'] 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 : [('21332849',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21332849) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343317201: {'path': 'temp/1741760937_841036_1343317201_a8107060a044fb18ed075fc8fbdffc6c.jpg', 'extension': 'jpg'}, 1343317170: {'path': 'temp/1741760937_841036_1343317170_d7c0d7667502df6eb2ea716001336569.jpg', 'extension': 'jpg'}, 1343317181: {'path': 'temp/1741760937_841036_1343317181_ec3b910d10dd397974be08ea0c506fae.jpg', 'extension': 'jpg'}, 1343317193: {'path': 'temp/1741760937_841036_1343317193_ec06835a0ec2dd3553818b894ab7b60b.jpg', 'extension': 'jpg'}, 1343317043: {'path': 'temp/1741760937_841036_1343317043_b5ed5af43e434f26666a3dd5cf2311f3.jpg', 'extension': 'jpg'}, 1343317058: {'path': 'temp/1741760937_841036_1343317058_65d391783819112e6d5e5e26922053a5.jpg', 'extension': 'jpg'}, 1343317065: {'path': 'temp/1741760937_841036_1343317065_fa483f15c0f97a803b74f2118f55492b.jpg', 'extension': 'jpg'}, 1343317071: {'path': 'temp/1741760937_841036_1343317071_fa1adb117178915b91c8c658448fe6e6.jpg', 'extension': 'jpg'}, 1343317076: {'path': 'temp/1741760937_841036_1343317076_a977b2fa57fea1de24726ad0c92b03da.jpg', 'extension': 'jpg'}, 1343317081: {'path': 'temp/1741760937_841036_1343317081_ae89c0743ea56208ac1322e38dde4804.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 = 21332849; (('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 = 21332849 group by h (('07', 50),) 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=21332849 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 (21332849) 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 (21332849) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12032025 21332849 Nombre de photos uploadées : 50 / 23040 (0%) 12032025 21332849 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 12032025 21332849 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1343315931, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d4a7c0eaa306fcc63dd54b8042700340.jpg', 'username': None, 'uploaded_at': 1741760216, 'text': 'image_12032025_07_15_04_010152m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1343315927, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5583c6888405d4bcf7b82057c036706d.jpg', 'username': None, 'uploaded_at': 1741760216, 'text': 'image_12032025_07_15_25_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343315920, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/aabf8597fc7f1167103dcdc4e78c1c12.jpg', 'username': None, 'uploaded_at': 1741760216, 'text': 'image_12032025_07_15_44_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1343315980, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8c329c0833ffa15c826347b36b7e436d.jpg', 'username': None, 'uploaded_at': 1741760266, 'text': 'image_12032025_07_15_54_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.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002311229705810547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21332849, '2025-03-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1660967,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02175116539001465 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= 1660967 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1660967, 'dashboard_run_id': 1669400, 'mtr_portfolio_id': 21331343, 'dashboard_result_id': 9383406, '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_P21331343_12-03-2025_06_47_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21331363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331367, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1669400, 'mtr_portfolio_id': 21331770, 'dashboard_result_id': 9383407, '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_P21331770_12-03-2025_06_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21331812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331823, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1669400, 'mtr_portfolio_id': 21332333, 'dashboard_result_id': 9383408, '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_P21332333_12-03-2025_07_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332345, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1669400, 'mtr_portfolio_id': 21332849, 'dashboard_result_id': 9383409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332885, '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 = 21331343 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': 2661186, 'mtr_portfolio_id': 21331343, 'created_at': datetime.datetime(2025, 3, 12, 6, 47, 57), 'result': '0.08693420372638028', 'result_long': None, 'result_double': None}] Qualite : 0.08693420372638028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21331343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331343_12-03-2025_06_47_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21331343 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_P21331343_12-03-2025_06_47_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21331363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331367, 'pht': 3726}}" where mtr_portfolio_id = 21331343 and dashboard_run_id = 1669400 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`=21331343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9383406, 0.08693420372638028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331343_12-03-2025_06_47_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21331363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331367, '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 = 21331770 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': 2661221, 'mtr_portfolio_id': 21331770, 'created_at': datetime.datetime(2025, 3, 12, 6, 56, 58), 'result': '0.08122098901730798', 'result_long': None, 'result_double': None}] Qualite : 0.08122098901730798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21331770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331770_12-03-2025_06_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21331770 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_P21331770_12-03-2025_06_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21331812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331823, 'pht': 3726}}" where mtr_portfolio_id = 21331770 and dashboard_run_id = 1669400 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`=21331770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9383407, 0.08122098901730798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331770_12-03-2025_06_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21331812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331823, '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 = 21332333 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': 2661317, 'mtr_portfolio_id': 21332333, 'created_at': datetime.datetime(2025, 3, 12, 7, 10), 'result': '0.06672863734111766', 'result_long': None, 'result_double': None}] Qualite : 0.06672863734111766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21332333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21332333_12-03-2025_07_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21332333 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_P21332333_12-03-2025_07_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332345, 'pht': 3726}}" where mtr_portfolio_id = 21332333 and dashboard_run_id = 1669400 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`=21332333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9383408, 0.06672863734111766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21332333_12-03-2025_07_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332345, '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 = 21332849 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': 2661368, 'mtr_portfolio_id': 21332849, 'created_at': datetime.datetime(2025, 3, 12, 7, 28, 57), 'result': '0.07483462964358906', 'result_long': None, 'result_double': None}] Qualite : 0.07483462964358906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21332849 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21332849%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21332849 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332885, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21332849 and dashboard_run_id = 1669400 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`=21332849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9383409, 0.07483462964358906, "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332885, 'pht': 3726}, 'url_report': ''}") 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 (21331343,21331770,21332333,21332849) result : ((1343311553,), (1343311557,), (1343311561,), (1343311564,), (1343311589,), (1343311593,), (1343311597,), (1343311600,), (1343311603,), (1343311607,), (1343311642,), (1343311662,), (1343311668,), (1343311673,), (1343311741,), (1343311745,), (1343311750,), (1343311755,), (1343311759,), (1343311777,), (1343311781,), (1343311786,), (1343311789,), (1343311794,), (1343311818,), (1343311826,), (1343311830,), (1343311834,), (1343311864,), (1343311891,), (1343311898,), (1343311903,), (1343311906,), (1343312051,), (1343312058,), (1343312079,), (1343312082,), (1343312105,), (1343312111,), (1343312117,), (1343312149,), (1343312159,), (1343312172,), (1343312175,), (1343312217,), (1343312222,), (1343312227,), (1343312230,), (1343312258,), (1343312261,), (1343312264,), (1343312266,), (1343312275,), (1343312284,), (1343312310,), (1343312313,), (1343312317,), (1343312346,), (1343312350,), (1343312354,), (1343312359,), (1343312364,), (1343312367,), (1343312407,), (1343312409,), (1343312414,), (1343312417,), (1343312422,), (1343312479,), (1343312439,), (1343312446,), (1343312459,), (1343312476,), (1343312478,), (1343312521,), (1343312544,), (1343312550,), (1343312578,), (1343312584,), (1343312594,), (1343312604,), (1343312789,), (1343312796,), (1343312801,), (1343312828,), (1343312833,), (1343312837,), (1343312841,), (1343312867,), (1343312870,), (1343312876,), (1343312881,), (1343312928,), (1343312932,), (1343312938,), (1343312974,), (1343312978,), (1343312983,), (1343312988,), (1343313010,), (1343313019,), (1343313023,), (1343313029,), (1343313072,), (1343313076,), (1343313080,), (1343313084,), (1343313088,), (1343313108,), (1343313113,), (1343313118,), (1343313122,), (1343313248,), (1343313351,), (1343313354,), (1343313741,), (1343313761,), (1343313787,), (1343313789,), (1343313792,), (1343313912,), (1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,), (1343315764,), (1343315770,), (1343315786,), (1343315791,), (1343315794,), (1343315804,), (1343315816,), (1343315839,), (1343315846,), (1343315856,), (1343315863,), (1343315864,), (1343315870,), (1343315871,), (1343315875,), (1343315880,), (1343315883,), (1343315888,), (1343315890,), (1343315894,), (1343315899,), (1343315902,), (1343315938,), (1343315945,), (1343315951,), (1343315984,), (1343315986,), (1343315988,), (1343315991,), (1343316005,), (1343316014,), (1343316018,), (1343316027,), (1343316032,), (1343316037,), (1343316075,), (1343316080,), (1343316086,), (1343316091,), (1343316098,), (1343316105,), (1343316188,), (1343316192,), (1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12032025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21332849]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] map_info['map_portfolio_photo'] : {21332849: [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043, 1343316856, 1343316842, 1343316831, 1343316790, 1343316600, 1343316595, 1343316589, 1343316538, 1343316534, 1343316492, 1343316340, 1343316318, 1343316310, 1343316279, 1343316266, 1343316240, 1343316230, 1343316223, 1343316215, 1343316186, 1343316168, 1343316160, 1343316153, 1343316129, 1343316126, 1343316123, 1343316121, 1343316119, 1343316116, 1343316065, 1343316060, 1343316055, 1343316052, 1343316050, 1343316048, 1343315980, 1343315975, 1343315931, 1343315927, 1343315920]} final : True mtd_id 4302 list_pids : [1343317201, 1343317193, 1343317181, 1343317170, 1343317081, 1343317076, 1343317071, 1343317065, 1343317058, 1343317043] Looping around the photos to save general results len do output : 1 /21332849Didn'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, '2661368') ('4302', '21332849', '1343317201', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317193', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317181', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317170', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317081', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317076', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317071', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317065', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317058', None, None, None, None, None, '2661368') ('4302', None, None, None, None, None, None, None, '2661368') ('4302', '21332849', '1343317043', None, None, None, None, None, '2661368') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21332849', 'None', None, None, None, None, '2661368'), ('4302', '21332849', '1343317201', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317193', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317181', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317170', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317081', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317076', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317071', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317065', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317058', None, None, None, None, None, '2661368'), ('4302', '21332849', '1343317043', None, None, None, None, None, '2661368')] time used for this insertion : 0.013910531997680664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1668140888214111 time spend to save output : 0.014139652252197266 total time spend for step 5 : 1.1809537410736084 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 (2661368) 1.81user 2.26system 0:09.24elapsed 44%CPU (0avgtext+0avgdata 149976maxresident)k 5336inputs+11240outputs (106major+59928minor)pagefaults 0swaps