Convert value of key filter to integer
This commit is contained in:
parent
5d1cb85a36
commit
31babfa378
1 changed files with 2 additions and 2 deletions
|
@ -991,7 +991,7 @@ async def scan_json(self, jid_bare, db_file, url):
|
||||||
"{} {} {}"
|
"{} {} {}"
|
||||||
).format(
|
).format(
|
||||||
title, summary, pathname)
|
title, summary, pathname)
|
||||||
if self.settings['default']['filter']:
|
if int(self.settings['default']['filter']):
|
||||||
print('Filter is now processing data.')
|
print('Filter is now processing data.')
|
||||||
allow_list = config.is_include_keyword(db_file,
|
allow_list = config.is_include_keyword(db_file,
|
||||||
"allow", string)
|
"allow", string)
|
||||||
|
@ -1279,7 +1279,7 @@ async def scan(self, jid_bare, db_file, url):
|
||||||
"{} {} {}"
|
"{} {} {}"
|
||||||
).format(
|
).format(
|
||||||
title, summary, pathname)
|
title, summary, pathname)
|
||||||
if self.settings['default']['filter']:
|
if int(self.settings['default']['filter']):
|
||||||
print('Filter is now processing data.')
|
print('Filter is now processing data.')
|
||||||
allow_list = config.is_include_keyword(db_file,
|
allow_list = config.is_include_keyword(db_file,
|
||||||
"allow", string)
|
"allow", string)
|
||||||
|
|
Loading…
Reference in a new issue