Avoid lone hashes

This commit is contained in:
bashrc committed 2020-10-16 20:52:27 +01:00
1 parent a60491585e
commit a5d21852bb
1 file changed
+3 -2
+3 -2
View File
@@ -66,8 +66,9 @@ def getNewswireTags(text: str) -> []:
tags = []
for wrd in words:
if wrd.startswith('#'):
if wrd not in tags:
tags.append(wrd)
if len(wrd) > 1:
if wrd not in tags:
tags.append(wrd)
return tags