From ef5633ebee19eeda43fda32bfcfa17446b10ce20 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Sep 2021 16:27:31 +0200 Subject: [PATCH] sdf --- files/routes/admin.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index ad812e2e4..3e280f36a 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -64,6 +64,14 @@ def club_allow(v, username): x.club_banned = False g.db.add(x) + + ma=ModAction( + kind="club_allow", + user_id=v.id, + target_user_id=user.id, + ) + g.db.add(ma) + g.db.commit() return {"message": f"@{username} has been allowed into the country club!"} @@ -85,6 +93,13 @@ def club_ban(v, username): u.club_allowed = False g.db.add(x) + ma=ModAction( + kind="club_ban", + user_id=v.id, + target_user_id=user.id, + ) + g.db.add(ma) + g.db.commit() return {"message": f"@{username} has been kicked from the country club. Deserved."}