Browse Source

Fix parametre

pull/3/head
Figg 10 months ago
parent
commit
6129fac74c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      million/analyze/wordFinder.py

+ 1
- 1
million/analyze/wordFinder.py View File

8
         re.search(rgx, msg.content) for rgx in regexs
8
         re.search(rgx, msg.content) for rgx in regexs
9
         )
9
         )
10
 
10
 
11
-def findWords(messages: List[Message], words: List[Message]) -> List[Message]:
11
+def findWords(messages: List[Message], words: List[str]) -> List[Message]:
12
     r_words = [r"\b"+word+r"\b" for word in words]
12
     r_words = [r"\b"+word+r"\b" for word in words]
13
     return filter(lambda m: _wordFilter(m, r_words), messages)
13
     return filter(lambda m: _wordFilter(m, r_words), messages)

Loading…
Cancel
Save