From 31babfa37812ed33586c8fc41df2c0981c78960d Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Thu, 7 Mar 2024 15:41:42 +0000 Subject: [PATCH] Convert value of key filter to integer --- slixfeed/action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixfeed/action.py b/slixfeed/action.py index 34bdf68..b05ec5f 100644 --- a/slixfeed/action.py +++ b/slixfeed/action.py @@ -991,7 +991,7 @@ async def scan_json(self, jid_bare, db_file, url): "{} {} {}" ).format( title, summary, pathname) - if self.settings['default']['filter']: + if int(self.settings['default']['filter']): print('Filter is now processing data.') allow_list = config.is_include_keyword(db_file, "allow", string) @@ -1279,7 +1279,7 @@ async def scan(self, jid_bare, db_file, url): "{} {} {}" ).format( title, summary, pathname) - if self.settings['default']['filter']: + if int(self.settings['default']['filter']): print('Filter is now processing data.') allow_list = config.is_include_keyword(db_file, "allow", string)