sdf
This commit is contained in:
parent
8618fcf02b
commit
582e76790e
1 changed files with 15 additions and 0 deletions
|
@ -64,6 +64,14 @@ def club_allow(v, username):
|
||||||
x.club_banned = False
|
x.club_banned = False
|
||||||
g.db.add(x)
|
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()
|
g.db.commit()
|
||||||
return {"message": f"@{username} has been allowed into the country club!"}
|
return {"message": f"@{username} has been allowed into the country club!"}
|
||||||
|
|
||||||
|
@ -85,6 +93,13 @@ def club_ban(v, username):
|
||||||
u.club_allowed = False
|
u.club_allowed = False
|
||||||
g.db.add(x)
|
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()
|
g.db.commit()
|
||||||
return {"message": f"@{username} has been kicked from the country club. Deserved."}
|
return {"message": f"@{username} has been kicked from the country club. Deserved."}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue