From 15e6a1de6637893b460d996a6b953ac9108412f2 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Fri, 14 Jun 2024 19:24:38 +0300 Subject: [PATCH] Fix command reset (Thank you to lorenzo, Mari0 and roughnecks). --- slixfeed/sqlite.py | 6 +++++- slixfeed/version.py | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/slixfeed/sqlite.py b/slixfeed/sqlite.py index 656a0a4..5fbb6fd 100644 --- a/slixfeed/sqlite.py +++ b/slixfeed/sqlite.py @@ -1373,6 +1373,9 @@ def get_entries(db_file, num): return result +# NOTE Only [0] [1] [4] are in use. +# See results = sqlite.get_entries_rejected(db_file, num) +# Module xmpp/client.py def get_entries_rejected(db_file, num): """ Extract information from rejected entries. @@ -1919,7 +1922,7 @@ async def mark_all_as_read(db_file): sql = ( """ - SELECT entries_properties.id, title, link, summary_text, feed_id, published + SELECT entries_properties.id FROM entries_properties INNER JOIN entries_state ON entries_properties.id = entries_state.entry_id WHERE entries_state.archived = 1 @@ -2664,6 +2667,7 @@ def get_tags_by_entry_id(db_file, entry_id): return result +# NOTE fetch only relevant/specific items def get_contents_by_entry_id(db_file, entry_id): function_name = sys._getframe().f_code.co_name logger.debug('{}: db_file: {} entry_id: {}' diff --git a/slixfeed/version.py b/slixfeed/version.py index 76cd89e..473ee71 100644 --- a/slixfeed/version.py +++ b/slixfeed/version.py @@ -1,2 +1,2 @@ -__version__ = '0.1.80' -__version_info__ = (0, 1, 80) +__version__ = '0.1.81' +__version_info__ = (0, 1, 81)