bug in pattern matching

This commit is contained in:
b3yond 2018-09-24 21:11:28 +02:00
parent d61d5750bb
commit b35e885ae2

View file

@ -62,7 +62,7 @@ class User(object):
(self.uid, )) (self.uid, ))
patterns = db.cur.fetchone()[0] patterns = db.cur.fetchone()[0]
for pattern in patterns.splitlines(): for pattern in patterns.splitlines():
if pattern in report.text.lower(): if pattern.lower() in report.text.lower():
break break
else: else:
# no pattern matched # no pattern matched