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."}