From c32da45a16e34f3c99a01acf8255a60583a08249 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sun, 3 Apr 2022 15:47:42 -0500 Subject: [PATCH] actually fix it --- app/accounts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/accounts.py b/app/accounts.py index 308be19..d8a76b3 100644 --- a/app/accounts.py +++ b/app/accounts.py @@ -62,7 +62,7 @@ def edit_gm_level(id): def lock(id): account = Account.query.filter(Account.id == id).first() account.locked = not account.locked - account.active = not account.locked + account.active = account.locked account.save() if account.locked: log_audit(f"Locked ({account.id}){account.username}") @@ -79,7 +79,7 @@ def lock(id): def ban(id): account = Account.query.filter(Account.id == id).first() account.banned = not account.banned - account.active = not account.banned + account.active = account.banned account.save() if account.banned: log_audit(f"Banned ({account.id}){account.username}")