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 : 1392552 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 (2738437) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2738437) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210910 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2738437'] with mtr_portfolio_ids : ['22210910'] and first list_photo_ids : [] new path : /proc/1392552/ Name: python3 Umask: 0002 State: R (running) Tgid: 1392552 Ngid: 0 Pid: 1392552 PPid: 1392550 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1392552 NSpid: 1392552 NSpgid: 1388309 NSsid: 1388309 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98624 kB VmRSS: 98624 kB RssAnon: 59760 kB RssFile: 38864 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1392552', 'Ngid': '0', 'Pid': '1392552', 'PPid': '1392550', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1392552', 'NSpid': '1392552', 'NSpgid': '1388309', 'NSsid': '1388309', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98624 kB', 'VmRSS': '98624 kB', 'RssAnon': '59760 kB', 'RssFile': '38864 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '1392552', '1106932', '0', '1106932', '865680', '98624', b'', 'marlene', '2738437') 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 (22210910) 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 (2738437 ) ) 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 (22210910) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351069849, 'portfolio_id': 22210910}, {'photo_id': 1351069773, 'portfolio_id': 22210910}, {'photo_id': 1351069768, 'portfolio_id': 22210910}, {'photo_id': 1351069764, 'portfolio_id': 22210910}, {'photo_id': 1351069600, 'portfolio_id': 22210910}, {'photo_id': 1351069594, 'portfolio_id': 22210910}, {'photo_id': 1351069585, 'portfolio_id': 22210910}, {'photo_id': 1351069574, 'portfolio_id': 22210910}, {'photo_id': 1351069347, 'portfolio_id': 22210910}, {'photo_id': 1351069343, 'portfolio_id': 22210910}, {'photo_id': 1351069330, 'portfolio_id': 22210910}, {'photo_id': 1351069313, 'portfolio_id': 22210910}, {'photo_id': 1351069296, 'portfolio_id': 22210910}, {'photo_id': 1351069290, 'portfolio_id': 22210910}, {'photo_id': 1351068886, 'portfolio_id': 22210910}, {'photo_id': 1351068883, 'portfolio_id': 22210910}, {'photo_id': 1351068873, 'portfolio_id': 22210910}, {'photo_id': 1351068869, 'portfolio_id': 22210910}, {'photo_id': 1351068855, 'portfolio_id': 22210910}, {'photo_id': 1351068551, 'portfolio_id': 22210910}, {'photo_id': 1351068483, 'portfolio_id': 22210910}, {'photo_id': 1351068472, 'portfolio_id': 22210910}, {'photo_id': 1351068281, 'portfolio_id': 22210910}, {'photo_id': 1351068271, 'portfolio_id': 22210910}, {'photo_id': 1351068261, 'portfolio_id': 22210910}, {'photo_id': 1351068255, 'portfolio_id': 22210910}, {'photo_id': 1351067956, 'portfolio_id': 22210910}, {'photo_id': 1351067952, 'portfolio_id': 22210910}, {'photo_id': 1351067940, 'portfolio_id': 22210910}, {'photo_id': 1351067909, 'portfolio_id': 22210910}, {'photo_id': 1351067623, 'portfolio_id': 22210910}, {'photo_id': 1351067584, 'portfolio_id': 22210910}, {'photo_id': 1351067534, 'portfolio_id': 22210910}, {'photo_id': 1351067362, 'portfolio_id': 22210910}, {'photo_id': 1351067357, 'portfolio_id': 22210910}, {'photo_id': 1351067339, 'portfolio_id': 22210910}, {'photo_id': 1351067316, 'portfolio_id': 22210910}, {'photo_id': 1351067118, 'portfolio_id': 22210910}, {'photo_id': 1351067113, 'portfolio_id': 22210910}, {'photo_id': 1351067076, 'portfolio_id': 22210910}, {'photo_id': 1351066949, 'portfolio_id': 22210910}, {'photo_id': 1351066910, 'portfolio_id': 22210910}, {'photo_id': 1351066783, 'portfolio_id': 22210910}, {'photo_id': 1351066714, 'portfolio_id': 22210910}, {'photo_id': 1351066676, 'portfolio_id': 22210910}, {'photo_id': 1351066644, 'portfolio_id': 22210910}, {'photo_id': 1351066241, 'portfolio_id': 22210910}, {'photo_id': 1351066152, 'portfolio_id': 22210910}, {'photo_id': 1351066064, 'portfolio_id': 22210910}, {'photo_id': 1351065809, 'portfolio_id': 22210910}] map_portfolio_id_photo_id: {22210910: [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574, 1351069347, 1351069343, 1351069330, 1351069313, 1351069296, 1351069290, 1351068886, 1351068883, 1351068873, 1351068869, 1351068855, 1351068551, 1351068483, 1351068472, 1351068281, 1351068271, 1351068261, 1351068255, 1351067956, 1351067952, 1351067940, 1351067909, 1351067623, 1351067584, 1351067534, 1351067362, 1351067357, 1351067339, 1351067316, 1351067118, 1351067113, 1351067076, 1351066949, 1351066910, 1351066783, 1351066714, 1351066676, 1351066644, 1351066241, 1351066152, 1351066064, 1351065809]} ##### 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.01650524139404297 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 10 08:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22210910) 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 : 22210910 get user id for portfolio 22210910 get sub ptf for main ptf 22210910, type 3726 and hashtags ['plastique', 'flou', 'environnement', 'mal_croppe', 'kraft', 'Teint_Dans_La_Masse', 'Carton_brun', 'Carton_gris', 'autre_refus', 'cartonnette', 'metal', 'papier'] 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`=22210910 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','cartonnette','metal','papier')) 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`=22210910 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','cartonnette','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22210910, 'sub_port_id': 22210956, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683621, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'metal': {'main_port_id': 22210910, 'sub_port_id': 22210957, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683622, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 22210910, 'sub_port_id': 22210958, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683623, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'Carton_gris': {'main_port_id': 22210910, 'sub_port_id': 22210959, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683624, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'plastique': {'main_port_id': 22210910, 'sub_port_id': 22210960, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683625, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'papier': {'main_port_id': 22210910, 'sub_port_id': 22210961, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683626, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'mal_croppe': {'main_port_id': 22210910, 'sub_port_id': 22210962, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683627, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'Carton_brun': {'main_port_id': 22210910, 'sub_port_id': 22210963, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683628, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'cartonnette': {'main_port_id': 22210910, 'sub_port_id': 22210964, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683629, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'flou': {'main_port_id': 22210910, 'sub_port_id': 22210965, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683630, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'autre_refus': {'main_port_id': 22210910, 'sub_port_id': 22210966, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683631, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}, 'kraft': {'main_port_id': 22210910, 'sub_port_id': 22210967, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683632, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 33)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22210956 , 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=22210910 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 (22210956) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210957 , 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=22210910 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 (22210957) result : ((1351069899,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210958 , 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=22210910 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 (22210958) result : ((1351067937,), (1351067938,), (1351067939,), (1351068350,), (1351068893,), (1351069479,), (1351069480,), (1351069481,), (1351069482,), (1351069826,), (1351069827,), (1351069865,), (1351069867,), (1351069869,), (1351069871,), (1351069873,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210959 , 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=22210910 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 (22210959) result : ((1351067510,), (1351067755,), (1351068838,), (1351069483,), (1351069484,), (1351069830,), (1351069875,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210960 , 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=22210910 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 (22210960) result : ((1351067950,), (1351069895,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210961 , 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=22210910 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 (22210961) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210962 , 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=22210910 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 (22210962) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210963 , 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=22210910 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 (22210963) result : ((1351067525,), (1351067529,), (1351067947,), (1351067948,), (1351067949,), (1351068215,), (1351068321,), (1351068353,), (1351069487,), (1351069835,), (1351069836,), (1351069837,), (1351069838,), (1351069885,), (1351069886,), (1351069889,), (1351069891,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210964 , 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=22210910 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 (22210964) result : ((1351067516,), (1351067942,), (1351068208,), (1351068684,), (1351068896,), (1351069485,), (1351069832,), (1351069881,), (1351069882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210965 , 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=22210910 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 (22210965) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210966 , 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=22210910 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 (22210966) result : ((1351067504,), (1351068317,), (1351068351,), (1351068894,), (1351069828,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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 22210967 , 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=22210910 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 (22210967) result : ((1351068365,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210910) result : ((1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) 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 (1351069600) 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`=22210910 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','cartonnette','metal','papier')) 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`=22210910 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','cartonnette','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22210910, 'sub_port_id': 22210968, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683633, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'metal': {'main_port_id': 22210910, 'sub_port_id': 22210969, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683634, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 22210910, 'sub_port_id': 22210970, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683635, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'Carton_gris': {'main_port_id': 22210910, 'sub_port_id': 22210971, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683636, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'plastique': {'main_port_id': 22210910, 'sub_port_id': 22210972, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683637, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'papier': {'main_port_id': 22210910, 'sub_port_id': 22210973, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683638, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'mal_croppe': {'main_port_id': 22210910, 'sub_port_id': 22210974, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683639, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'Carton_brun': {'main_port_id': 22210910, 'sub_port_id': 22210975, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683640, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'cartonnette': {'main_port_id': 22210910, 'sub_port_id': 22210976, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683641, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'flou': {'main_port_id': 22210910, 'sub_port_id': 22210977, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683642, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'autre_refus': {'main_port_id': 22210910, 'sub_port_id': 22210978, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683643, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}, 'kraft': {'main_port_id': 22210910, 'sub_port_id': 22210979, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14683644, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 15), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 7, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210968,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210957 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210970,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210971,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210959 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210972,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210960 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210973,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210961 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210974,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210962 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210975,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210963 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210976,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210964 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210977,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210965 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22210979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22210967 lien utilise dans velours : https://www.fotonower.com/velours/22210968,22210969,22210970,22210971,22210972,22210973,22210974,22210975,22210976,22210977,22210978,22210979?tags=environnement,metal,Teint_Dans_La_Masse,Carton_gris,plastique,papier,mal_croppe,Carton_brun,cartonnette,flou,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22210910]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] map_info['map_portfolio_photo'] : {22210910: [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574, 1351069347, 1351069343, 1351069330, 1351069313, 1351069296, 1351069290, 1351068886, 1351068883, 1351068873, 1351068869, 1351068855, 1351068551, 1351068483, 1351068472, 1351068281, 1351068271, 1351068261, 1351068255, 1351067956, 1351067952, 1351067940, 1351067909, 1351067623, 1351067584, 1351067534, 1351067362, 1351067357, 1351067339, 1351067316, 1351067118, 1351067113, 1351067076, 1351066949, 1351066910, 1351066783, 1351066714, 1351066676, 1351066644, 1351066241, 1351066152, 1351066064, 1351065809]} final : False mtd_id 4302 list_pids : [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] Looping around the photos to save general results len do output : 1 /22210910. 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, '2738437') ('4302', '22210910', '1351069849', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069773', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069768', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069764', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069600', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069594', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069585', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069574', None, None, None, None, None, '2738437') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '22210910', "{'environnement': 22210956, 'metal': 22210957, 'Teint_Dans_La_Masse': 22210958, 'Carton_gris': 22210959, 'plastique': 22210960, 'papier': 22210961, 'mal_croppe': 22210962, 'Carton_brun': 22210963, 'cartonnette': 22210964, 'flou': 22210965, 'autre_refus': 22210966, 'kraft': 22210967}", None, None, None, None, '2738437'), ('4302', '22210910', '1351069849', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069773', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069768', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069764', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069600', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069594', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069585', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069574', None, None, None, None, None, '2738437')] time used for this insertion : 0.028824806213378906 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5740268230438232 time spend to save output : 0.029044389724731445 total time spend for step 1 : 0.6030712127685547 step2:final Thu Apr 10 08:17:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22210910) 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 22210910 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351066241,1351065809,1351066152,1351066064,1351066949,1351066910,1351066783,1351066714,1351066676,1351066644,1351067118,1351067113,1351067076,1351067362,1351067357,1351067339,1351067316,1351067623,1351067584,1351067534,1351067956,1351067952,1351067940,1351067909,1351068281,1351068271,1351068261,1351068255,1351068551,1351068483,1351068472,1351068886,1351068883,1351068873,1351068869,1351068855,1351069347,1351069343,1351069330,1351069313,1351069296,1351069290,1351069600,1351069594,1351069585,1351069574,1351069773,1351069768,1351069764,1351069849); 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([22210910]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} new output for save of step final : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] map_info['map_portfolio_photo'] : {22210910: [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574, 1351069347, 1351069343, 1351069330, 1351069313, 1351069296, 1351069290, 1351068886, 1351068883, 1351068873, 1351068869, 1351068855, 1351068551, 1351068483, 1351068472, 1351068281, 1351068271, 1351068261, 1351068255, 1351067956, 1351067952, 1351067940, 1351067909, 1351067623, 1351067584, 1351067534, 1351067362, 1351067357, 1351067339, 1351067316, 1351067118, 1351067113, 1351067076, 1351066949, 1351066910, 1351066783, 1351066714, 1351066676, 1351066644, 1351066241, 1351066152, 1351066064, 1351065809]} final : False mtd_id 4302 list_pids : [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] Looping around the photos to save general results len do output : 8 /1351069849.Didn't retrieve data . /1351069773.Didn't retrieve data . /1351069768.Didn't retrieve data . /1351069764.Didn't retrieve data . /1351069600.Didn't retrieve data . /1351069594.Didn't retrieve data . /1351069585.Didn't retrieve data . /1351069574.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, '2738437') ('4302', '22210910', '1351069849', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069773', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069768', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069764', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069600', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069594', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069585', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069574', None, None, None, None, None, '2738437') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '22210910', '1351069849', '0.034224277757149035', None, None, None, None, '2738437'), ('4302', '22210910', '1351069773', '0.034224277757149035', None, None, None, None, '2738437'), ('4302', '22210910', '1351069768', '0.034224277757149035', None, None, None, None, '2738437'), ('4302', '22210910', '1351069764', '0.034224277757149035', None, None, None, None, '2738437'), ('4302', '22210910', '1351069600', '0.034224277757149035', None, None, None, None, '2738437'), ('4302', '22210910', '1351069594', '0.034224277757149035', None, None, None, None, '2738437'), ('4302', '22210910', '1351069585', '0.034224277757149035', None, None, None, None, '2738437'), ('4302', '22210910', '1351069574', '0.034224277757149035', None, None, None, None, '2738437')] time used for this insertion : 0.016312837600708008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08503103256225586 time spend to save output : 0.017014265060424805 total time spend for step 2 : 0.10204529762268066 step3:velours_tree Thu Apr 10 08:17:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22210910: [{'environnement': 22210956, 'metal': 22210957, 'Teint_Dans_La_Masse': 22210958, 'Carton_gris': 22210959, 'plastique': 22210960, 'papier': 22210961, 'mal_croppe': 22210962, 'Carton_brun': 22210963, 'cartonnette': 22210964, 'flou': 22210965, 'autre_refus': 22210966, 'kraft': 22210967}]} input_args_next_step : {22210910: ()} output_args : {22210910: [{'environnement': 22210956, 'metal': 22210957, 'Teint_Dans_La_Masse': 22210958, 'Carton_gris': 22210959, 'plastique': 22210960, 'papier': 22210961, 'mal_croppe': 22210962, 'Carton_brun': 22210963, 'cartonnette': 22210964, 'flou': 22210965, 'autre_refus': 22210966, 'kraft': 22210967}]} args : 22210910 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 : ({'environnement': 22210956, 'metal': 22210957, 'Teint_Dans_La_Masse': 22210958, 'Carton_gris': 22210959, 'plastique': 22210960, 'papier': 22210961, 'mal_croppe': 22210962, 'Carton_brun': 22210963, 'cartonnette': 22210964, 'flou': 22210965, 'autre_refus': 22210966, 'kraft': 22210967},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22210910) 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([22210910]) 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.31963539123535156 time spend to save output : 5.412101745605469e-05 total time spend for step 3 : 0.3196895122528076 step4:send_mail_cod Thu Apr 10 08:17:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} input_args_next_step : {1351069849: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069849 depend.output_id : 0 input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069773 depend.output_id : 0 input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069768 depend.output_id : 0 input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069764 depend.output_id : 0 input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069600 depend.output_id : 0 input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069594 depend.output_id : 0 input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069585 depend.output_id : 0 input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ()} output_args : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',)} args : 1351069574 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 : {22210910: [{'environnement': 22210956, 'metal': 22210957, 'Teint_Dans_La_Masse': 22210958, 'Carton_gris': 22210959, 'plastique': 22210960, 'papier': 22210961, 'mal_croppe': 22210962, 'Carton_brun': 22210963, 'cartonnette': 22210964, 'flou': 22210965, 'autre_refus': 22210966, 'kraft': 22210967}]} input_args_next_step : {1351069849: ('0.034224277757149035',), 1351069773: ('0.034224277757149035',), 1351069768: ('0.034224277757149035',), 1351069764: ('0.034224277757149035',), 1351069600: ('0.034224277757149035',), 1351069594: ('0.034224277757149035',), 1351069585: ('0.034224277757149035',), 1351069574: ('0.034224277757149035',), 22210910: ()} output_args : {22210910: [{'environnement': 22210956, 'metal': 22210957, 'Teint_Dans_La_Masse': 22210958, 'Carton_gris': 22210959, 'plastique': 22210960, 'papier': 22210961, 'mal_croppe': 22210962, 'Carton_brun': 22210963, 'cartonnette': 22210964, 'flou': 22210965, 'autre_refus': 22210966, 'kraft': 22210967}]} args : 22210910 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 :9, first value : ('0.034224277757149035',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22210910) 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 (1351069849,1351069773,1351069768,1351069764,1351069600,1351069594,1351069585,1351069574) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351069574 begin to download photo : 1351069594 begin to download photo : 1351069764 begin to download photo : 1351069773 download finish for photo 1351069773 begin to download photo : 1351069849 download finish for photo 1351069764 begin to download photo : 1351069768 download finish for photo 1351069574 begin to download photo : 1351069585 download finish for photo 1351069594 begin to download photo : 1351069600 download finish for photo 1351069849 download finish for photo 1351069768 download finish for photo 1351069585 download finish for photo 1351069600 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 : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22210910_10-04-2025_08_17_01.pdf 22210957 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=22210957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351069899: '1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457873_0.png'} change filename to text .imagette222109571744265821/ imagette222109571744265821/1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457873_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b68df7b7508d047d6c93f6c30315e8d4_10144849.png imagette222109571744265821 22210960 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=22210960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351067950: '1744265253_3985004_1351066644_7493a0751eac0545bbe25daeee0c3405_rle_crop_3753451091_0.png', 1351069895: '1744265731_3995172_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457875_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/21c0593ed02e004e60809dc12152922d_57986501.png change filename to text .imagette222109601744265821/ imagette222109601744265821/1744265253_3985004_1351066644_7493a0751eac0545bbe25daeee0c3405_rle_crop_3753451091_0.png.png imagette222109601744265821/1744265731_3995172_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457875_0.png.png imagette222109621744265821/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6fc61a0126f98166758fdee1b8ac2ab6_8292707.png imagette222109601744265821 22210962 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=22210962 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222109621744265821 22210964 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=22210964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351067516: '1744265247_3905485_1351067113_a4bbfba194234a30fd704457af4b364b_rle_crop_3753449670_0.png', 1351067942: '1744265253_3985004_1351066783_1d3d88396ed5ba52e577e81276b271c9_rle_crop_3753450565_0.png', 1351068208: '1744265366_3908084_1351067534_a2bebc1626c36b46b30a8633c5c5b9e2_rle_crop_3753451790_0.png', 1351068684: '1744265488_3911391_1351067956_815be137ae8e54315215dcdf024ef11c_rle_crop_3753454074_0.png', 1351068896: '1744265491_3989972_1351067940_6f1dc5f25a180df3d89f236d21a2be37_rle_crop_3753454364_0.png', 1351069485: '1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455940_0.png', 1351069832: '1744265725_3914356_1351068869_64063b3f0f2b04433f7618f36ab44c3b_rle_crop_3753456427_0.png', 1351069881: '1744265731_3995172_1351069313_94693d9ea17b73c233560b6518f244b1_rle_crop_3753456689_0.png', 1351069882: '1744265731_3995172_1351069296_e046240639076e0789f5dbb18835cfac_rle_crop_3753457670_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/683b9c2c0058f323a49ae53254df6a29_41184162.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/748f624405e89da7d29db82b06b90c02_80095067.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1703257ada17f9b40b45932dcddebfe2_83421866.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4edad0851c75f99feccd38b067594679_62151223.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b98d9b44850bdf7578a3ab731803042e_91727132.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/57ebce43c1977f7dda6a40f609f26667_13021669.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/54904e1642add53c80de18723856a9dd_37661578.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d8194a019fde799fc4aa407176b662a0_52919054.png change filename to text .imagette222109641744265821/ imagette222109641744265821/1744265253_3985004_1351066783_1d3d88396ed5ba52e577e81276b271c9_rle_crop_3753450565_0.png.png imagette222109641744265821/1744265725_3914356_1351068869_64063b3f0f2b04433f7618f36ab44c3b_rle_crop_3753456427_0.png.png imagette222109641744265821/1744265488_3911391_1351067956_815be137ae8e54315215dcdf024ef11c_rle_crop_3753454074_0.png.png imagette222109641744265821/1744265491_3989972_1351067940_6f1dc5f25a180df3d89f236d21a2be37_rle_crop_3753454364_0.png.png imagette222109641744265821/1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455940_0.png.png imagette222109641744265821/1744265731_3995172_1351069296_e046240639076e0789f5dbb18835cfac_rle_crop_3753457670_0.png.png imagette222109641744265821/1744265366_3908084_1351067534_a2bebc1626c36b46b30a8633c5c5b9e2_rle_crop_3753451790_0.png.png imagette222109641744265821/1744265731_3995172_1351069313_94693d9ea17b73c233560b6518f244b1_rle_crop_3753456689_0.png.png imagette222109641744265821/1744265247_3905485_1351067113_a4bbfba194234a30fd704457af4b364b_rle_crop_3753449670_0.png.png imagette222109651744265821/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/af6e2561bd1c5c84e6ea14d17006595f_49853564.png imagette222109641744265821 22210965 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=22210965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222109651744265821 22210966 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=22210966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351067504: '1744265247_3905485_1351067076_98dc3b663580fb768503dc799e7b26fb_rle_crop_3753449726_0.png', 1351068317: '1744265394_3987832_1351067362_b90d673b1893aada242b8f7005dba48b_rle_crop_3753452246_0.png', 1351068351: '1744265374_3987486_1351067357_cb7a2795af1f2050e49ac6e70678e515_rle_crop_3753452275_0.png', 1351068894: '1744265491_3989972_1351067940_6f1dc5f25a180df3d89f236d21a2be37_rle_crop_3753454366_0.png', 1351069828: '1744265725_3914356_1351068855_fa0e4542560dfc8b06087a8ffc6b7631_rle_crop_3753456438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bee8d1f37f8fe41df36ac295ceb2051b_83766778.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/227d260de6343e9c2deab8e433091c99_77686754.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b378e3a47bf19d881474c31ab6d3e63d_68530931.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c69fedec9fc3dcac839c378f88ef12a4_17177309.png change filename to text .imagette222109661744265821/ imagette222109661744265821/1744265725_3914356_1351068855_fa0e4542560dfc8b06087a8ffc6b7631_rle_crop_3753456438_0.png.png imagette222109661744265821/1744265491_3989972_1351067940_6f1dc5f25a180df3d89f236d21a2be37_rle_crop_3753454366_0.png.png imagette222109661744265821/1744265374_3987486_1351067357_cb7a2795af1f2050e49ac6e70678e515_rle_crop_3753452275_0.png.png imagette222109661744265821/1744265247_3905485_1351067076_98dc3b663580fb768503dc799e7b26fb_rle_crop_3753449726_0.png.png imagette222109661744265821/1744265394_3987832_1351067362_b90d673b1893aada242b8f7005dba48b_rle_crop_3753452246_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5ec3a43c21cdded227132a5a1e10a9db_95818416.png imagette222109661744265821 22210967 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=22210967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351068365: '1744265374_3987486_1351067339_c6ffd541e6cf8035aaa46411870205b6_rle_crop_3753452306_0.png'} change filename to text .imagette222109671744265827/ imagette222109671744265827/1744265374_3987486_1351067339_c6ffd541e6cf8035aaa46411870205b6_rle_crop_3753452306_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d4f4f70ff894e647596831a8deb8cbad_31689465.png imagette222109671744265827 22210958 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=22210958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351067937: '1744265253_3985004_1351067118_e858d56491e7ccadfe1970083ca9449d_rle_crop_3753450467_0.png', 1351067938: '1744265253_3985004_1351066714_dc7024b23a50aaa1f06293b4e5e6590d_rle_crop_3753450671_0.png', 1351067939: '1744265253_3985004_1351066714_dc7024b23a50aaa1f06293b4e5e6590d_rle_crop_3753450679_0.png', 1351068350: '1744265374_3987486_1351067316_d3d15749e2191f67257526033681c7a5_rle_crop_3753452349_0.png', 1351068893: '1744265491_3989972_1351067909_f2ef262432fa2c9c621f59f1d837d084_rle_crop_3753455792_0.png', 1351069479: '1744265591_3992132_1351068483_81fd1694ee2a4aab34bc0b69da0c98ac_rle_crop_3753455923_0.png', 1351069480: '1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455950_0.png', 1351069481: '1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455942_0.png', 1351069482: '1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455947_0.png', 1351069826: '1744265725_3914356_1351068883_751b068e83bbc9e9983045bf7f70d16c_rle_crop_3753456407_0.png', 1351069827: '1744265725_3914356_1351068873_8780f863525648cd1675a3186ba63372_rle_crop_3753456413_0.png', 1351069865: '1744265713_3994613_1351069343_238da6b9aafc5b203bad8d1d32aa1d4b_rle_crop_3753456609_0.png', 1351069867: '1744265713_3994613_1351069330_2dc5827c454dc33464accbe37570db68_rle_crop_3753456626_0.png', 1351069869: '1744265713_3994613_1351069313_94693d9ea17b73c233560b6518f244b1_rle_crop_3753456693_0.png', 1351069871: '1744265713_3994613_1351069313_94693d9ea17b73c233560b6518f244b1_rle_crop_3753457677_0.png', 1351069873: '1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457876_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b1a113b5c360c6323a845d3c71838667_47824989.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c9efd07b6d717e29334cdda2502b133e_2179560.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3501757f5acf0b52c58dff3dea977a1f_34911661.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/40eeb07ca117f52cb2047297d27e09d5_27094562.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0d7aeefb75a523ba1a98a3cc3611c396_38555157.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f36b07e997e1d0d43fae3114554ea159_73415306.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c36459d7c02566e52f071f697cba5d47_64120503.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3b0ca7b20383ca4a202823d6367e9aa0_90320734.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ad220358436d38eefb53124c96f593e9_74693835.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6599e149b9d6ddbc5d431e96643ff0a0_5005577.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c385dd31747bc8043913d52cb6cf8e45_39393310.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9fcf0c3490c508e3b5f2cb6e560a244b_74437312.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/253395627aa051ba0b961c77718ede11_84334989.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3b38504e418e4f65c75f84750e4730e5_17422165.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fa18b6c8baf4f8ae49e992aafb334d5d_52601687.png change filename to text .imagette222109581744265827/ imagette222109581744265827/1744265253_3985004_1351066714_dc7024b23a50aaa1f06293b4e5e6590d_rle_crop_3753450671_0.png.png imagette222109581744265827/1744265713_3994613_1351069330_2dc5827c454dc33464accbe37570db68_rle_crop_3753456626_0.png.png imagette222109581744265827/1744265725_3914356_1351068883_751b068e83bbc9e9983045bf7f70d16c_rle_crop_3753456407_0.png.png imagette222109581744265827/1744265253_3985004_1351067118_e858d56491e7ccadfe1970083ca9449d_rle_crop_3753450467_0.png.png imagette222109581744265827/1744265491_3989972_1351067909_f2ef262432fa2c9c621f59f1d837d084_rle_crop_3753455792_0.png.png imagette222109581744265827/1744265713_3994613_1351069313_94693d9ea17b73c233560b6518f244b1_rle_crop_3753457677_0.png.png imagette222109581744265827/1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457876_0.png.png imagette222109581744265827/1744265725_3914356_1351068873_8780f863525648cd1675a3186ba63372_rle_crop_3753456413_0.png.png imagette222109581744265827/1744265591_3992132_1351068483_81fd1694ee2a4aab34bc0b69da0c98ac_rle_crop_3753455923_0.png.png imagette222109581744265827/1744265374_3987486_1351067316_d3d15749e2191f67257526033681c7a5_rle_crop_3753452349_0.png.png imagette222109581744265827/1744265713_3994613_1351069343_238da6b9aafc5b203bad8d1d32aa1d4b_rle_crop_3753456609_0.png.png imagette222109581744265827/1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455942_0.png.png imagette222109581744265827/1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455950_0.png.png imagette222109581744265827/1744265713_3994613_1351069313_94693d9ea17b73c233560b6518f244b1_rle_crop_3753456693_0.png.png imagette222109581744265827/1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455947_0.png.png imagette222109581744265827/1744265253_3985004_1351066714_dc7024b23a50aaa1f06293b4e5e6590d_rle_crop_3753450679_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7ffd028ca3fe41215f55e8c749d69866_78639922.png imagette222109581744265827 22210959 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=22210959 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351067510: '1744265247_3905485_1351067113_a4bbfba194234a30fd704457af4b364b_rle_crop_3753449679_0.png', 1351067755: '1744265272_3985268_1351066241_f75aeae5a891540d1d586e11a440d886_rle_crop_3753450511_0.png', 1351068838: '1744265472_3989468_1351068261_c2849d6c581f71374f732d8497d8d356_rle_crop_3753454234_0.png', 1351069483: '1744265591_3992132_1351068483_81fd1694ee2a4aab34bc0b69da0c98ac_rle_crop_3753455919_0.png', 1351069484: '1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455937_0.png', 1351069830: '1744265725_3914356_1351068855_fa0e4542560dfc8b06087a8ffc6b7631_rle_crop_3753456436_0.png', 1351069875: '1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457874_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3151f796b966f3917f0f536a69efc921_26605253.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ff99f1567122ba9698256b9ede469f96_94637337.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3e0ab3ccf47b67f24a43c70da2d32003_39083013.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e23c98c98f11595743f79608fd07cc5e_25163046.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d69fd6f92a51a8da2b2c9139de74502a_62977738.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/47337e5d92ffc2d79b3628aae923ebc0_4819913.png change filename to text .imagette222109591744265828/ imagette222109591744265828/1744265247_3905485_1351067113_a4bbfba194234a30fd704457af4b364b_rle_crop_3753449679_0.png.png imagette222109591744265828/1744265591_3992132_1351068472_fee9f4cfb770b29cb14f575ab415993d_rle_crop_3753455937_0.png.png imagette222109591744265828/1744265472_3989468_1351068261_c2849d6c581f71374f732d8497d8d356_rle_crop_3753454234_0.png.png imagette222109591744265828/1744265591_3992132_1351068483_81fd1694ee2a4aab34bc0b69da0c98ac_rle_crop_3753455919_0.png.png imagette222109591744265828/1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457874_0.png.png imagette222109591744265828/1744265272_3985268_1351066241_f75aeae5a891540d1d586e11a440d886_rle_crop_3753450511_0.png.png imagette222109591744265828/1744265725_3914356_1351068855_fa0e4542560dfc8b06087a8ffc6b7631_rle_crop_3753456436_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/44279787abd3cffabd73b6c9624918af_91004676.png imagette222109591744265828 22210963 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=22210963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351069487: '1744265591_3992132_1351068483_81fd1694ee2a4aab34bc0b69da0c98ac_rle_crop_3753455927_0.png', 1351069891: '1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457882_0.png', 1351069889: '1744265713_3994613_1351069296_e046240639076e0789f5dbb18835cfac_rle_crop_3753457673_0.png', 1351069886: '1744265713_3994613_1351069330_2dc5827c454dc33464accbe37570db68_rle_crop_3753456621_0.png', 1351069885: '1744265713_3994613_1351069343_238da6b9aafc5b203bad8d1d32aa1d4b_rle_crop_3753456611_0.png', 1351069838: '1744265725_3914356_1351068855_fa0e4542560dfc8b06087a8ffc6b7631_rle_crop_3753456440_0.png', 1351069837: '1744265725_3914356_1351068869_64063b3f0f2b04433f7618f36ab44c3b_rle_crop_3753456426_0.png', 1351069836: '1744265725_3914356_1351068883_751b068e83bbc9e9983045bf7f70d16c_rle_crop_3753456405_0.png', 1351069835: '1744265725_3914356_1351069347_75edddfc39fbb203862200683e73e3fa_rle_crop_3753456313_0.png', 1351067525: '1744265247_3905485_1351067113_a4bbfba194234a30fd704457af4b364b_rle_crop_3753449677_0.png', 1351068353: '1744265374_3987486_1351067357_cb7a2795af1f2050e49ac6e70678e515_rle_crop_3753452279_0.png', 1351068321: '1744265394_3987832_1351067362_b90d673b1893aada242b8f7005dba48b_rle_crop_3753452252_0.png', 1351068215: '1744265366_3908084_1351067534_a2bebc1626c36b46b30a8633c5c5b9e2_rle_crop_3753451785_0.png', 1351067949: '1744265253_3985004_1351066714_dc7024b23a50aaa1f06293b4e5e6590d_rle_crop_3753450675_0.png', 1351067948: '1744265253_3985004_1351066783_1d3d88396ed5ba52e577e81276b271c9_rle_crop_3753450561_0.png', 1351067947: '1744265253_3985004_1351067118_e858d56491e7ccadfe1970083ca9449d_rle_crop_3753450472_0.png', 1351067529: '1744265247_3905485_1351067076_98dc3b663580fb768503dc799e7b26fb_rle_crop_3753449724_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/cbd9bfdf8da39f108aabb5c6b3da21f3_5767846.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a593419d9047426c20e101267b211ac8_6114768.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a697b2cb7285b7a494012ac0d440676e_23312904.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/08f14b7e029546bf9dc67aa42ca40217_1507488.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b23102e57cb221c903c39fd6598d62f6_12060574.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6dc9b8c12ecd94c54f8250a83bb62c0f_17520003.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/eed5b009b41702e6c74662c51e60d2a9_88213245.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/cddc055208264e43761cf871df5df7a7_91062692.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d73b32749c1ca185116a346507bfdc2b_14974251.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4eda87b1ff54e97a948a0562b4cc112e_10893997.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9b9cc4f257f62230311d29c56b4e2497_68212059.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4c3f15ede1fb2d3d637c2335a0a284f3_99365624.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4175b7d87d7b777f103c3d6b7315a140_68900160.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8edc614f355d520a305542c1626e9ac6_11373809.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6ef650a33ec77b3f464c66fb82b7ab44_33398216.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e27c0c04db9fd53a4fc67b9cff3d21a5_77271317.png change filename to text .imagette222109631744265829/ imagette222109631744265829/1744265253_3985004_1351067118_e858d56491e7ccadfe1970083ca9449d_rle_crop_3753450472_0.png.png imagette222109631744265829/1744265374_3987486_1351067357_cb7a2795af1f2050e49ac6e70678e515_rle_crop_3753452279_0.png.png imagette222109631744265829/1744265366_3908084_1351067534_a2bebc1626c36b46b30a8633c5c5b9e2_rle_crop_3753451785_0.png.png imagette222109631744265829/1744265253_3985004_1351066714_dc7024b23a50aaa1f06293b4e5e6590d_rle_crop_3753450675_0.png.png imagette222109631744265829/1744265725_3914356_1351069347_75edddfc39fbb203862200683e73e3fa_rle_crop_3753456313_0.png.png imagette222109631744265829/1744265713_3994613_1351069290_cfbdf0b6316521492ecdaffec19094df_rle_crop_3753457882_0.png.png imagette222109631744265829/1744265713_3994613_1351069343_238da6b9aafc5b203bad8d1d32aa1d4b_rle_crop_3753456611_0.png.png imagette222109631744265829/1744265253_3985004_1351066783_1d3d88396ed5ba52e577e81276b271c9_rle_crop_3753450561_0.png.png imagette222109631744265829/1744265591_3992132_1351068483_81fd1694ee2a4aab34bc0b69da0c98ac_rle_crop_3753455927_0.png.png imagette222109631744265829/1744265713_3994613_1351069296_e046240639076e0789f5dbb18835cfac_rle_crop_3753457673_0.png.png imagette222109631744265829/1744265725_3914356_1351068855_fa0e4542560dfc8b06087a8ffc6b7631_rle_crop_3753456440_0.png.png imagette222109631744265829/1744265713_3994613_1351069330_2dc5827c454dc33464accbe37570db68_rle_crop_3753456621_0.png.png imagette222109631744265829/1744265394_3987832_1351067362_b90d673b1893aada242b8f7005dba48b_rle_crop_3753452252_0.png.png imagette222109631744265829/1744265725_3914356_1351068883_751b068e83bbc9e9983045bf7f70d16c_rle_crop_3753456405_0.png.png imagette222109631744265829/1744265725_3914356_1351068869_64063b3f0f2b04433f7618f36ab44c3b_rle_crop_3753456426_0.png.png imagette222109631744265829/1744265247_3905485_1351067076_98dc3b663580fb768503dc799e7b26fb_rle_crop_3753449724_0.png.png imagette222109631744265829/1744265247_3905485_1351067113_a4bbfba194234a30fd704457af4b364b_rle_crop_3753449677_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8661a38c51bcae59bc65d0484c595829_18041023.png imagette222109631744265829 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22210910 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22210968,22210969,22210970,22210971,22210972,22210973,22210974,22210975,22210976,22210977,22210978,22210979?tags=environnement,metal,Teint_Dans_La_Masse,Carton_gris,plastique,papier,mal_croppe,Carton_brun,cartonnette,flou,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1351069849] : ('0.034224277757149035',) no score found for photo 1351069849 We are sending mail with results at report@fotonower.com args[1351069773] : ('0.034224277757149035',) no score found for photo 1351069773 We are sending mail with results at report@fotonower.com args[1351069768] : ('0.034224277757149035',) no score found for photo 1351069768 We are sending mail with results at report@fotonower.com args[1351069764] : ('0.034224277757149035',) no score found for photo 1351069764 We are sending mail with results at report@fotonower.com args[1351069600] : ('0.034224277757149035',) no score found for photo 1351069600 We are sending mail with results at report@fotonower.com args[1351069594] : ('0.034224277757149035',) no score found for photo 1351069594 We are sending mail with results at report@fotonower.com args[1351069585] : ('0.034224277757149035',) no score found for photo 1351069585 We are sending mail with results at report@fotonower.com args[1351069574] : ('0.034224277757149035',) no score found for photo 1351069574 We are sending mail with results at report@fotonower.com refus_total : 0.034224277757149035 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=22210910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf results_Auto_P22210910_10-04-2025_08_17_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22210910','results_Auto_P22210910_10-04-2025_08_17_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf','pdf','','0.21','0.034224277757149035') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22210910]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] map_info['map_portfolio_photo'] : {22210910: [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574, 1351069347, 1351069343, 1351069330, 1351069313, 1351069296, 1351069290, 1351068886, 1351068883, 1351068873, 1351068869, 1351068855, 1351068551, 1351068483, 1351068472, 1351068281, 1351068271, 1351068261, 1351068255, 1351067956, 1351067952, 1351067940, 1351067909, 1351067623, 1351067584, 1351067534, 1351067362, 1351067357, 1351067339, 1351067316, 1351067118, 1351067113, 1351067076, 1351066949, 1351066910, 1351066783, 1351066714, 1351066676, 1351066644, 1351066241, 1351066152, 1351066064, 1351065809]} final : False mtd_id 4302 list_pids : [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] 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, '2738437') ('4302', '22210910', '1351069849', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069773', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069768', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069764', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069600', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069594', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069585', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069574', None, None, None, None, None, '2738437') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22210910', '1351069849', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069773', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069768', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069764', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069600', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069594', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069585', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069574', None, None, None, None, None, '2738437')] time used for this insertion : 0.37268686294555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.576478719711304 time spend to save output : 0.37291812896728516 total time spend for step 4 : 12.949396848678589 step5:split_time_score Thu Apr 10 08:17:13 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 : ['22210910'] 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 : [('22210910',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22210910) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351069773: {'path': 'temp/1744265820_1392552_1351069773_3f7a103f05c49765091443e5fe98f51b.jpg', 'extension': 'jpg'}, 1351069849: {'path': 'temp/1744265820_1392552_1351069849_788c3e7d38cab66b8309ee91ede3b317.jpg', 'extension': 'jpg'}, 1351069764: {'path': 'temp/1744265820_1392552_1351069764_6a0498d797045415f409d5f020ac2632.jpg', 'extension': 'jpg'}, 1351069768: {'path': 'temp/1744265820_1392552_1351069768_0e9a785dd084922c98fc466a70b6cad4.jpg', 'extension': 'jpg'}, 1351069574: {'path': 'temp/1744265820_1392552_1351069574_2ba50a1a704e4b6d7ea35a3687be9bde.jpg', 'extension': 'jpg'}, 1351069585: {'path': 'temp/1744265820_1392552_1351069585_dd38d5db2e6ed8cc6d2bdd9c2ee949d9.jpg', 'extension': 'jpg'}, 1351069594: {'path': 'temp/1744265820_1392552_1351069594_a14d9c371cf4e6647354bb336abc05c1.jpg', 'extension': 'jpg'}, 1351069600: {'path': 'temp/1744265820_1392552_1351069600_6ed363edeceabb345a7333f41000cee6.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 = 22210910; (('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 = 22210910 group by h (('08', 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=22210910 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 (22210910) 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 (22210910) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22210910 Nombre de photos uploadées : 50 / 23040 (0%) 10042025 22210910 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 10042025 22210910 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1351066241, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f75aeae5a891540d1d586e11a440d886.jpg', 'username': None, 'uploaded_at': 1744265058, 'text': 'image_10042025_08_03_03_10148.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351065809, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fc3f54249cbbd98296ffa85c9e5dd342.jpg', 'username': None, 'uploaded_at': 1744265043, 'text': 'image_10042025_08_03_13_10140.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351066152, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/065d4f42516ad0cc29a5fc44c9cb134c.jpg', 'username': None, 'uploaded_at': 1744265058, 'text': 'image_10042025_08_03_23_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351066064, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5e9569d3ad1b77c9eb25ebf00a1190d3.jpg', 'username': None, 'uploaded_at': 1744265058, 'text': 'image_10042025_08_03_44_10141.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025305747985839844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22210910, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03775906562805176 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= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737474, 'mtr_portfolio_id': 22209122, 'dashboard_result_id': 9979187, '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_P22209122_10-04-2025_07_48_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22209201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22209202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22209203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22209204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22209205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22209206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22209208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22209209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22209210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22209211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22209212, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737474, 'mtr_portfolio_id': 22210096, 'dashboard_result_id': 9979188, '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_P22210096_10-04-2025_08_06_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210171, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737474, 'mtr_portfolio_id': 22210910, 'dashboard_result_id': 9979189, '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_P22210910_10-04-2025_08_15_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210967, '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 = 22209122 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': 2738296, 'mtr_portfolio_id': 22209122, 'created_at': datetime.datetime(2025, 4, 10, 7, 48, 56), 'result': '0.050314690998255716', 'result_long': None, 'result_double': None}] Qualite : 0.050314690998255716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22209122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22209122_10-04-2025_07_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22209122 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_P22209122_10-04-2025_07_48_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22209201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22209202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22209203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22209204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22209205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22209206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22209208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22209209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22209210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22209211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22209212, 'pht': 3726}}" where mtr_portfolio_id = 22209122 and dashboard_run_id = 1737474 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`=22209122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9979187, 0.050314690998255716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22209122_10-04-2025_07_48_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22209201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22209202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22209203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22209204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22209205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22209206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22209208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22209209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22209210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22209211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22209212, '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 = 22210096 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': 2738358, 'mtr_portfolio_id': 22210096, 'created_at': datetime.datetime(2025, 4, 10, 8, 6, 57), 'result': '0.06542313303095922', 'result_long': None, 'result_double': None}] Qualite : 0.06542313303095922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22210096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210096_10-04-2025_08_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22210096 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_P22210096_10-04-2025_08_06_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210171, 'pht': 3726}}" where mtr_portfolio_id = 22210096 and dashboard_run_id = 1737474 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`=22210096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9979188, 0.06542313303095922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210096_10-04-2025_08_06_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210171, '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 = 22210910 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': 2738437, 'mtr_portfolio_id': 22210910, 'created_at': datetime.datetime(2025, 4, 10, 8, 17), 'result': '0.034224277757149035', 'result_long': None, 'result_double': None}] Qualite : 0.034224277757149035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22210910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22210910 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_P22210910_10-04-2025_08_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210967, 'pht': 3726}}" where mtr_portfolio_id = 22210910 and dashboard_run_id = 1737474 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`=22210910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9979189, 0.034224277757149035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210967, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22209122,22210096,22210910) result : ((1351058410,), (1351058419,), (1351058425,), (1351058440,), (1351058445,), (1351058509,), (1351058514,), (1351058516,), (1351058785,), (1351058800,), (1351058886,), (1351058890,), (1351058912,), (1351059190,), (1351059215,), (1351059241,), (1351059255,), (1351059260,), (1351059598,), (1351059623,), (1351059646,), (1351059648,), (1351059664,), (1351059671,), (1351059708,), (1351059712,), (1351059714,), (1351059716,), (1351059954,), (1351059965,), (1351059969,), (1351059983,), (1351060026,), (1351060050,), (1351060193,), (1351060196,), (1351060199,), (1351060343,), (1351060346,), (1351060352,), (1351060356,), (1351060360,), (1351060399,), (1351060402,), (1351060406,), (1351060408,), (1351060416,), (1351060422,), (1351060542,), (1351060981,), (1351061001,), (1351061025,), (1351061055,), (1351061122,), (1351061129,), (1351061133,), (1351061137,), (1351061140,), (1351061158,), (1351061267,), (1351061247,), (1351061256,), (1351061259,), (1351061263,), (1351061266,), (1351061301,), (1351061304,), (1351061339,), (1351061345,), (1351061557,), (1351061576,), (1351061586,), (1351061594,), (1351061634,), (1351061685,), (1351061911,), (1351061950,), (1351061991,), (1351062276,), (1351062295,), (1351062322,), (1351062337,), (1351062377,), (1351062392,), (1351062581,), (1351062645,), (1351062670,), (1351062704,), (1351062731,), (1351062752,), (1351062755,), (1351062758,), (1351062762,), (1351062767,), (1351062773,), (1351062843,), (1351062853,), (1351062858,), (1351062861,), (1351062938,), (1351062950,), (1351062971,), (1351062982,), (1351062986,), (1351063106,), (1351063114,), (1351063115,), (1351063117,), (1351063122,), (1351063171,), (1351063177,), (1351063203,), (1351063234,), (1351063253,), (1351063259,), (1351063407,), (1351063411,), (1351063436,), (1351063448,), (1351063450,), (1351063526,), (1351063529,), (1351063530,), (1351063533,), (1351063614,), (1351063618,), (1351063632,), (1351063711,), (1351063795,), (1351063842,), (1351064048,), (1351064112,), (1351064164,), (1351066309,), (1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'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([22210910]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] map_info['map_portfolio_photo'] : {22210910: [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574, 1351069347, 1351069343, 1351069330, 1351069313, 1351069296, 1351069290, 1351068886, 1351068883, 1351068873, 1351068869, 1351068855, 1351068551, 1351068483, 1351068472, 1351068281, 1351068271, 1351068261, 1351068255, 1351067956, 1351067952, 1351067940, 1351067909, 1351067623, 1351067584, 1351067534, 1351067362, 1351067357, 1351067339, 1351067316, 1351067118, 1351067113, 1351067076, 1351066949, 1351066910, 1351066783, 1351066714, 1351066676, 1351066644, 1351066241, 1351066152, 1351066064, 1351065809]} final : True mtd_id 4302 list_pids : [1351069849, 1351069773, 1351069768, 1351069764, 1351069600, 1351069594, 1351069585, 1351069574] Looping around the photos to save general results len do output : 1 /22210910Didn'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, '2738437') ('4302', '22210910', '1351069849', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069773', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069768', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069764', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069600', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069594', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069585', None, None, None, None, None, '2738437') ('4302', None, None, None, None, None, None, None, '2738437') ('4302', '22210910', '1351069574', None, None, None, None, None, '2738437') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '22210910', 'None', None, None, None, None, '2738437'), ('4302', '22210910', '1351069849', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069773', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069768', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069764', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069600', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069594', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069585', None, None, None, None, None, '2738437'), ('4302', '22210910', '1351069574', None, None, None, None, None, '2738437')] time used for this insertion : 0.025321483612060547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.32044339179992676 time spend to save output : 0.025533676147460938 total time spend for step 5 : 0.3459770679473877 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 (2738437) 2.04user 2.20system 0:18.51elapsed 22%CPU (0avgtext+0avgdata 159480maxresident)k 3208inputs+10832outputs (47major+63982minor)pagefaults 0swaps