From 34da47bcd22e7e574e6f66afab5c50fe5dab49c0 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Sun, 12 May 2024 11:05:49 +0000 Subject: [PATCH] Fix error handling and correct variable for function check_entry_exist (Thank you mirux) --- slixfeed/sqlite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slixfeed/sqlite.py b/slixfeed/sqlite.py index 6699d7e..4833798 100644 --- a/slixfeed/sqlite.py +++ b/slixfeed/sqlite.py @@ -3067,7 +3067,7 @@ def check_entry_exist(db_file, feed_id, identifier=None, title=None, link=None, """ SELECT id FROM entries_properties - WHERE title = :title AND link = :link AND published = :published + WHERE title = :title AND link = :link AND published = :date """ ) par = { @@ -3079,8 +3079,8 @@ def check_entry_exist(db_file, feed_id, identifier=None, title=None, link=None, result = cur.execute(sql, par).fetchone() if result: exist = True except: - logger.error("source =", feed_id) - logger.error("published =", published) + logger.error("source =" + feed_id) + logger.error("published =" + published) else: sql = ( """