fix acount banning

This commit is contained in:
Aaron Kimbre 2022-04-08 23:13:33 -05:00
parent 33d24745e1
commit 6f4b2ef574

View File

@ -80,9 +80,6 @@ def lock(id):
@gm_level(3) @gm_level(3)
def ban(id): def ban(id):
account = Account.query.filter(Account.id == id).first() account = Account.query.filter(Account.id == id).first()
account.banned = not account.banned
account.active = account.banned
if not account.banned: if not account.banned:
account.banned = True account.banned = True
account.active = False account.active = False