From c2ea38ec686943697716e72b0607a1cfd3919330 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 17 Aug 2022 08:24:59 +0200 Subject: [PATCH] allow me to give more than 10 awards at a time --- files/routes/awards.py | 2 +- files/templates/admin/awards.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 0047c87154..f092027498 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -377,7 +377,7 @@ def admin_userawards_post(v): if value: - if int(value) > 10: abort(403) + if int(value) > 10 and v.id != AEVANN_ID: abort(403) if int(value): notify_awards[key] = int(value) diff --git a/files/templates/admin/awards.html b/files/templates/admin/awards.html index 20f740bd20..fe9c4bc2f9 100644 --- a/files/templates/admin/awards.html +++ b/files/templates/admin/awards.html @@ -53,7 +53,7 @@ {{a['title']}} - + {% endfor %}