mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-25 15:07:18 +00:00
Don't include reject properties in unapprove items
This commit is contained in:
parent
8dd4a2c80e
commit
02bb6bb0aa
@ -201,7 +201,7 @@ def get(status="all"):
|
|||||||
elif status == "unapproved":
|
elif status == "unapproved":
|
||||||
query = db.session.query().select_from(Property).join(
|
query = db.session.query().select_from(Property).join(
|
||||||
CharacterInfo, CharacterInfo.id == Property.owner_id
|
CharacterInfo, CharacterInfo.id == Property.owner_id
|
||||||
).join(Account).filter(Property.mod_approved == False).filter(Property.privacy_option == 2)
|
).join(Account).filter(Property.mod_approved == False).filter(Property.privacy_option == 2).filter(Property.rejection_reason == "")
|
||||||
else:
|
else:
|
||||||
query = db.session.query().select_from(Property).join(CharacterInfo, CharacterInfo.id == Property.owner_id).join(Account)
|
query = db.session.query().select_from(Property).join(CharacterInfo, CharacterInfo.id == Property.owner_id).join(Account)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user