mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-28 16:37:24 +00:00
prop moderation filters are a bit more sane
This commit is contained in:
parent
7194a04c5d
commit
172bbe5b60
@ -131,9 +131,9 @@ def get(status="all"):
|
||||
if status=="all":
|
||||
query = db.session.query().select_from(Property).join(CharacterInfo, CharacterInfo.id==Property.owner_id).join(Account)
|
||||
elif status=="approved":
|
||||
query = db.session.query().select_from(Property).join(CharacterInfo, CharacterInfo.id==Property.owner_id).join(Account).filter(Property.mod_approved==True)
|
||||
query = db.session.query().select_from(Property).join(CharacterInfo, CharacterInfo.id==Property.owner_id).join(Account).filter(Property.mod_approved==True).filter(Property.privacy_option==2)
|
||||
elif status=="unapproved":
|
||||
query = db.session.query().select_from(Property).join(CharacterInfo, CharacterInfo.id==Property.owner_id).join(Account).filter(Property.mod_approved==False)
|
||||
query = db.session.query().select_from(Property).join(CharacterInfo, CharacterInfo.id==Property.owner_id).join(Account).filter(Property.mod_approved==False).filter(Property.privacy_option==2)
|
||||
else:
|
||||
raise Exception("Not a valid filter")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user