mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-22 05:27:25 +00:00
make needs rename not show up in unmoderated names
This commit is contained in:
parent
e44872e523
commit
b8bd7c6cba
@ -260,7 +260,7 @@ def get(status):
|
|||||||
if status == "approved":
|
if status == "approved":
|
||||||
query = db.session.query().select_from(CharacterInfo).join(Account).filter((CharacterInfo.pending_name == "") & (CharacterInfo.needs_rename == False))
|
query = db.session.query().select_from(CharacterInfo).join(Account).filter((CharacterInfo.pending_name == "") & (CharacterInfo.needs_rename == False))
|
||||||
elif status == "unapproved":
|
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:
|
else:
|
||||||
query = db.session.query().select_from(CharacterInfo).join(Account)
|
query = db.session.query().select_from(CharacterInfo).join(Account)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user