From 78a83ff1216a8ce449daae8c8ce09c5de952d26f Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Thu, 30 May 2024 19:50:58 +0300 Subject: [PATCH] Remove unnecessary code related to MUC-PM --- slixfeed/action.py | 2 -- slixfeed/task.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/slixfeed/action.py b/slixfeed/action.py index ad3c119..e549650 100644 --- a/slixfeed/action.py +++ b/slixfeed/action.py @@ -202,7 +202,6 @@ async def xmpp_send_status_message(self, jid): async def xmpp_pubsub_send_selected_entry(self, jid_bare, jid_file, node_id, entry_id): function_name = sys._getframe().f_code.co_name logger.debug('{}: jid_bare: {} jid_file: {}'.format(function_name, jid_bare, jid_file)) - # jid_file = jid_bare.replace('/', '_') db_file = config.get_pathname_to_database(jid_file) report = {} if jid_bare == self.boundjid.bare: @@ -251,7 +250,6 @@ async def xmpp_pubsub_send_unread_items(self, jid_bare): """ function_name = sys._getframe().f_code.co_name logger.debug('{}: jid_bare: {}'.format(function_name, jid_bare)) - jid_file = jid_bare.replace('/', '_') db_file = config.get_pathname_to_database(jid_file) report = {} subscriptions = sqlite.get_active_feeds_url(db_file) diff --git a/slixfeed/task.py b/slixfeed/task.py index df8b542..76d0193 100644 --- a/slixfeed/task.py +++ b/slixfeed/task.py @@ -165,7 +165,6 @@ async def start_tasks_xmpp_pubsub(self, jid_bare, tasks=None): async def task_publish(self, jid_bare): - jid_file = jid_bare.replace('/', '_') db_file = config.get_pathname_to_database(jid_file) if jid_bare not in self.settings: Config.add_settings_jid(self.settings, jid_bare, db_file) @@ -233,7 +232,6 @@ async def task_status_message(self, jid): async def task_message(self, jid_bare): - jid_file = jid_bare.replace('/', '_') db_file = config.get_pathname_to_database(jid_file) if jid_bare not in self.settings: Config.add_settings_jid(self.settings, jid_bare, db_file) @@ -293,7 +291,6 @@ def refresh_task(self, jid_bare, callback, key, val=None): """ logging.info('Refreshing task {} for JID {}'.format(callback, jid_bare)) if not val: - jid_file = jid_bare.replace('/', '_') db_file = config.get_pathname_to_database(jid_file) if jid_bare not in self.settings: Config.add_settings_jid(self.settings, jid_bare, db_file) @@ -345,7 +342,6 @@ async def check_updates(self, jid_bare): # print('Scanning for updates for JID {}'.format(jid_bare)) logging.info('Scanning for updates for JID {}'.format(jid_bare)) while True: - jid_file = jid_bare.replace('/', '_') db_file = config.get_pathname_to_database(jid_file) urls = sqlite.get_active_feeds_url(db_file) for url in urls: