From 5da9c266642b4221abeeaa44f2c29b2c0926b3a4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 17 Feb 2023 19:06:22 +0200 Subject: [PATCH] allow jannies to add additional tags --- files/routes/asset_submissions.py | 2 +- files/templates/update_assets.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 73a2f1ac3..4c17c4600 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -392,7 +392,7 @@ def update_marsey(v): purge_files_in_cache([f"https://{SITE}/e/{name}.webp", f"https://{SITE}/assets/images/emojis/{name}.webp", f"https://{SITE}/asset_submissions/marseys/original/{name}.{format}"]) if tags and existing.tags != tags and tags != "none": - existing.tags = tags + existing.tags += f" {tags}" g.db.add(existing) elif not file: return error("You need to actually update something!") diff --git a/files/templates/update_assets.html b/files/templates/update_assets.html index 946e479e3..56aa746b1 100644 --- a/files/templates/update_assets.html +++ b/files/templates/update_assets.html @@ -28,7 +28,7 @@ {% if type == "Marsey" %} - + {% endif %}