forked from rDrama/rDrama
1
0
Fork 0

dedup emoji tags

master
Aevann 2024-02-01 19:34:22 +02:00
parent 01cfaba4a0
commit f57949f8cc
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def delete_unnecessary_tags(tags, name):
new_tags = []
for tag in tags.split(' '):
if tag not in name:
if tag not in name and tag not in new_tags:
new_tags.append(tag)
if not new_tags: abort(400, "Invalid tags!")