1
0

Fix filtering only using last filter

This commit is contained in:
2018-08-09 20:59:04 +01:00
parent 52f32fca2f
commit f30b33241a

8
bot.py
View File

@@ -272,14 +272,18 @@ def ls_tasks(arguments, chat_id):
# filter checking
for j in filters:
filter_pass = j in str(task)
if j not in str(task):
filter_pass = False
break
# needs continue statement after each filter list
if not filter_pass:
continue
for j in nfilters:
filter_pass = j not in str(task)
if j in str(task):
filter_pass = False
break
if not filter_pass:
continue