From a571ab3e69ce61569ef18558c2ffbfef6f1b373a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 17 Aug 2022 08:26:07 +0200 Subject: [PATCH] limit my awards number to 100 --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index f09202749..80c58bdd9 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 and v.id != AEVANN_ID: abort(403) + if int(value) > 100 or (int(value) > 10 and v.id != AEVANN_ID): abort(403) if int(value): notify_awards[key] = int(value)