bug in pattern matching
This commit is contained in:
parent
d61d5750bb
commit
b35e885ae2
2
user.py
2
user.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue