Revert to the original
This commit is contained in:
parent
fbfe8f8d14
commit
622ba2b0e3
1 changed files with 1 additions and 6 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue