From 87504f2937aa99697d1626e9614a23ca9a08f288 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 15 Apr 2024 22:41:59 +0200 Subject: [PATCH] limit quantity to 7 for now --- files/routes/awards.py | 2 +- files/templates/modals/award.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index e313b85d3..8e6bc8615 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -181,7 +181,7 @@ def award_thing(v, thing_type, id): abort(403, f'Long posts are protected from the {award_title} award!') award_quantity = int(request.values.get("award_quantity", "1").strip()) - if award_quantity < 1 or award_quantity > 30: + if award_quantity < 1 or award_quantity > 7: award_quantity = 1 for x in range(award_quantity): diff --git a/files/templates/modals/award.html b/files/templates/modals/award.html index 3ef4c02a7..bb040d9aa 100644 --- a/files/templates/modals/award.html +++ b/files/templates/modals/award.html @@ -97,7 +97,7 @@ - +