From 715fecbb15a2304b79a43431e1ff95d13db1901e Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Dec 2022 00:45:01 +0200 Subject: [PATCH] more detailed toast on banning/chudding --- 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 cbdeb1897..aab475b06 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -963,7 +963,7 @@ def ban_user(user_id, v): comment.bannedfor = f'{duration} by @{v.username}' g.db.add(comment) - return {"message": f"@{user.username} has been banned!"} + return {"message": f"@{user.username} has been banned {duration}!"} @app.post("/agendaposter/") @@ -1033,7 +1033,7 @@ def agendaposter(user_id, v): comment.chuddedfor = f'{duration} by @{v.username}' g.db.add(comment) - return {"message": f"@{user.username} has been chudded!"} + return {"message": f"@{user.username} has been chudded {duration}!"} @app.post("/unban_user/")