Revert to the original

This commit is contained in:
Miroslav Kovar 2019-10-19 20:11:24 +02:00 committed by Lex Berezhny
parent fbfe8f8d14
commit 622ba2b0e3

View file

@ -10,9 +10,4 @@ def normalize_tag(tag: str):
def clean_tags(tags: List[str]):
clean = []
for idx, tag in enumerate(tags):
norm_tag = normalize_tag(tag)
if norm_tag and norm_tag not in clean[:idx]:
clean.append(norm_tag)
return clean
return [tag for tag in set(normalize_tag(tag) for tag in tags) if tag]