From 888e5522839f6db36d6fe8bc489d75cadb9b558d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 22 Oct 2022 18:40:52 +0200 Subject: [PATCH] fix this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2937807?context=8#context --- 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 393db7281..c6fcdc867 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -843,7 +843,7 @@ def agendaposter(user_id, v): g.db.add(user) if days: - days_txt = str(days).rstrip('.0') + days_txt = str(days).split('.0')[0] note = f"for {days_txt} days" else: note = "permanently" @@ -1013,7 +1013,7 @@ def ban_user(user_id, v): duration = "permanently" if days: - days_txt = str(days).rstrip('.0') + days_txt = str(days).split('.0')[0] duration = f"for {days_txt} day" if days != 1: duration += "s" if reason: text = f"@{v.username} (Admin) has banned you for **{days_txt}** days for the following reason:\n\n> {reason}"