forked from MarseyWorld/MarseyWorld
sdf
parent
8f49860a04
commit
ef5633ebee
|
@ -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."}
|
||||
|
||||
|
|
Loading…
Reference in New Issue