From 34f95d155c56d3872084c05adeaa5901ec462396 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Sep 2022 05:13:12 +0200 Subject: [PATCH] fix 500 error --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 8b3e77557..e8c40bfdc 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -846,7 +846,7 @@ def agendaposter(user_id, v): days = request.values.get("days") if days: - expiry = int(time.time() + int(days)*60*60*24) + expiry = int(time.time() + float(days)*60*60*24) else: expiry = 1 user.agendaposter = expiry