Convert value of key filter to integer

This commit is contained in:
Schimon Jehudah 2024-03-07 15:41:42 +00:00
parent 5d1cb85a36
commit 31babfa378

View file

@ -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)