From 54e3a7eeab368e9f3edfdbabda402100e1cfb384 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 18 Dec 2022 19:01:06 +0200 Subject: [PATCH] fix 500 error --- 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 113fa4d2d..19bd7bdd5 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -527,7 +527,7 @@ def badge_grant_get(v): def badge_grant_post(v): badges = admin_badges_grantable_list(v) - user = get_user(request.values.get("username").strip(), graceful=True) + user = get_user(request.values.get("username"), graceful=True) if not user: return render_template("admin/badge_admin.html", v=v, badge_types=badges, grant=True, error="User not found.") @@ -577,7 +577,7 @@ def badge_grant_post(v): def badge_remove_post(v): badges = admin_badges_grantable_list(v) - user = get_user(request.values.get("username").strip(), graceful=True) + user = get_user(request.values.get("username"), graceful=True) if not user: return render_template("admin/badge_admin.html", v=v, badge_types=badges, grant=False, error="User not found.")