From f57949f8cc9bbb165a917bca70391c913056dea7 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 1 Feb 2024 19:34:22 +0200 Subject: [PATCH] dedup emoji tags --- files/routes/asset_submissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 1c7dc9e9c..4b2d462d0 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -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!")