From 576023837b0bca179a2ae4fefcd7a42fd889079a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 26 Feb 2022 20:23:04 +0200 Subject: [PATCH] user --- files/routes/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 14dc51f5c..6377e53e7 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -85,7 +85,7 @@ def merge(v, id1, id2): g.db.add(user2) g.db.commit() cache.clear() - return f"Success! moved @{user2.username} to @{user1.username}" + return redirect(user1.url) @app.get('/admin/merge_all/') @@ -138,7 +138,7 @@ def merge_all(v, id): g.db.add(user) g.db.commit() cache.clear() - return f"Success! moved all alts to @{user.username}" + return redirect(user.url) @@ -1143,7 +1143,7 @@ def ban_user(user_id, v): if request.values.get("alts"): for x in user.alts: if x.admin_level: break - user.ban(admin=v, reason=passed_reason, days=days) + x.ban(admin=v, reason=passed_reason, days=days) if days: if reason: text = f"Your account has been banned for **{days}** days for the following reason:\n\n> {reason}"