Don't include reject properties in unapprove items

This commit is contained in:
Aaron Kimbre 2022-04-10 18:32:13 -05:00
parent 8dd4a2c80e
commit 02bb6bb0aa

View File

@ -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)