From d9446e63f13185f8e340776a5a1573458b9a9638 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Sun, 15 Dec 2024 20:56:01 +0200 Subject: [PATCH] Further fixes (missing parameters and imports); Thank you. roughnecks. --- slixfeed/syndication.py | 2 +- slixfeed/version.py | 4 ++-- slixfeed/xmpp/chat.py | 2 +- slixfeed/xmpp/commands.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/slixfeed/syndication.py b/slixfeed/syndication.py index 92c6e0f..b582e60 100644 --- a/slixfeed/syndication.py +++ b/slixfeed/syndication.py @@ -31,7 +31,7 @@ from slixfeed.config import Config import slixfeed.fetch as fetch from slixfeed.log import Logger,Message import slixfeed.sqlite as sqlite -from slixfeed.utilities import DateAndTime, Html, MD, String, Url, Utilities +from slixfeed.utilities import Database, DateAndTime, Html, MD, String, Url, Utilities from slixmpp.xmlstream import ET import sys from urllib.parse import urlsplit diff --git a/slixfeed/version.py b/slixfeed/version.py index e73b3b7..08567f1 100644 --- a/slixfeed/version.py +++ b/slixfeed/version.py @@ -1,2 +1,2 @@ -__version__ = '0.1.106' -__version_info__ = (0, 1, 106) +__version__ = '0.1.107' +__version_info__ = (0, 1, 107) diff --git a/slixfeed/xmpp/chat.py b/slixfeed/xmpp/chat.py index a7cedd0..3665323 100644 --- a/slixfeed/xmpp/chat.py +++ b/slixfeed/xmpp/chat.py @@ -314,7 +314,7 @@ class XmppChat: 'Try: md or opml') case _ if command_lowercase.startswith('feeds'): query = command[6:] - result, number = XmppCommands.list_feeds(db_file, query) + result, number = XmppCommands.list_feeds(self.dir_config, db_file, query) if number: if query: first_line = f'Subscriptions containing "{query}":\n\n```\n' diff --git a/slixfeed/xmpp/commands.py b/slixfeed/xmpp/commands.py index 78ac601..d639c36 100644 --- a/slixfeed/xmpp/commands.py +++ b/slixfeed/xmpp/commands.py @@ -514,7 +514,7 @@ class XmppCommands: return message - def list_feeds(db_file, query=None): + def list_feeds(dir_config, db_file, query=None): if query: feeds = sqlite.search_feeds(db_file, query) else: @@ -528,7 +528,7 @@ class XmppCommands: elif query: message = f"No feeds were found for: {query}" else: - url = Utilities.pick_a_feed() + url = Utilities.pick_a_feed(dir_config) message = ('List of subscriptions is empty. ' 'To add a feed, send a URL.\n' 'Featured news: *{}*\n{}'