allow jannies to add additional tags
parent
c3842b8bf8
commit
5da9c26664
|
@ -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}"])
|
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":
|
if tags and existing.tags != tags and tags != "none":
|
||||||
existing.tags = tags
|
existing.tags += f" {tags}"
|
||||||
g.db.add(existing)
|
g.db.add(existing)
|
||||||
elif not file:
|
elif not file:
|
||||||
return error("You need to actually update something!")
|
return error("You need to actually update something!")
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
{% if type == "Marsey" %}
|
{% if type == "Marsey" %}
|
||||||
<label class="mt-3" for="tags">Tags</label>
|
<label class="mt-3" for="tags">Tags</label>
|
||||||
<input autocomplete="off" type="text" id="name" class="form-control" name="tags" maxlength="200" placeholder="Leave empty to keep current tags" {% if tags %}value="{{tags}}"{% endif %}>
|
<input autocomplete="off" type="text" id="name" class="form-control" name="tags" maxlength="200" placeholder="Enter additional tags" {% if tags %}value="{{tags}}"{% endif %}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="footer mt-4">
|
<div class="footer mt-4">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
Loading…
Reference in New Issue