mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-10-12 18:18:01 +00:00
add reporter id to bug reports
fix moderation status filters
This commit is contained in:
@@ -199,11 +199,11 @@ def get(status="all"):
|
||||
elif status == "approved":
|
||||
query = db.session.query().select_from(Property).join(
|
||||
CharacterInfo, CharacterInfo.id == Property.owner_id
|
||||
).join(Account).filter(Property.mod_approved is True).filter(Property.privacy_option == 2)
|
||||
).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 is False).filter(Property.privacy_option == 2)
|
||||
).join(Account).filter(Property.mod_approved == False).filter(Property.privacy_option == 2)
|
||||
else:
|
||||
raise Exception("Not a valid filter")
|
||||
|
||||
|
Reference in New Issue
Block a user