Require a category

main
Bob Mottram 2022-07-05 17:25:31 +01:00
parent 2048670417
commit 972c29a9fa
1 changed files with 2 additions and 0 deletions

View File

@ -1027,6 +1027,8 @@ def detect_dogwhistles(content: str, dogwhistles: {}) -> {}:
result = {}
words = _get_simplified_content(content).split(' ')
for whistle, category in dogwhistles.items():
if not category:
continue
ending = False
starting = False