From b8bd7c6cba8ec5499ea7a26cf725f66d572087eb Mon Sep 17 00:00:00 2001 From: aronwk-aaron Date: Mon, 19 Dec 2022 09:58:26 -0600 Subject: [PATCH] make needs rename not show up in unmoderated names --- app/characters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/characters.py b/app/characters.py index 50ca25f..c63e2a5 100644 --- a/app/characters.py +++ b/app/characters.py @@ -260,7 +260,7 @@ def get(status): if status == "approved": query = db.session.query().select_from(CharacterInfo).join(Account).filter((CharacterInfo.pending_name == "") & (CharacterInfo.needs_rename == False)) elif status == "unapproved": - query = db.session.query().select_from(CharacterInfo).join(Account).filter((CharacterInfo.pending_name != "") | (CharacterInfo.needs_rename == True)) + query = db.session.query().select_from(CharacterInfo).join(Account).filter((CharacterInfo.pending_name != "") & (CharacterInfo.needs_rename == False)) else: query = db.session.query().select_from(CharacterInfo).join(Account)