Use a better metric for determining keyword matches
This commit is contained in:
parent
ac798016ba
commit
ce8da87ea7
|
@ -313,7 +313,7 @@ class Helper(object):
|
||||||
totalNum += message.count(i)
|
totalNum += message.count(i)
|
||||||
message = message.replace(i, "{"+i+"}")
|
message = message.replace(i, "{"+i+"}")
|
||||||
uniqueNum += 1
|
uniqueNum += 1
|
||||||
if message == msg:
|
if totalNum == 0:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return [message, uniqueNum, totalNum]
|
return [message, uniqueNum, totalNum]
|
||||||
|
|
Loading…
Reference in New Issue