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":
|
if status=="all":
|
||||||
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)
|
||||||
elif status=="approved":
|
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":
|
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:
|
else:
|
||||||
raise Exception("Not a valid filter")
|
raise Exception("Not a valid filter")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user