remotes/1693045480750635534/spooky-22
Aevann1 2021-09-19 16:27:31 +02:00
parent 8f49860a04
commit ef5633ebee
1 changed files with 15 additions and 0 deletions

View File

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