From ad3ca4eb123baf4af16405018e9a055771e327fe Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 5 Aug 2022 20:49:44 +0200 Subject: [PATCH] increase max duration for chudding from 1 month to 1 year --- files/routes/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 0df86611c..09e6bf576 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -844,9 +844,9 @@ def agendaposter(user_id, v): user = get_account(user_id) days = request.values.get("days") - if not days: days = 30.0 + if not days: days = 365.0 days = float(days) - days = min(days, 30.0) + days = min(days, 365.0) expiry = int(time.time() + days*60*60*24)