master
Aevann1 2022-03-06 00:09:46 +02:00
parent c897c73fbf
commit 7e1311195d
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def privacy(v):
def marseys(v):
if SITE_NAME == 'Drama':
marseys = g.db.query(Marsey, User).join(User, User.id==Marsey.author_id)
sort = request.values.get(sort, "usage")
sort = request.values.get("sort", "usage")
if sort == "usage": marseys = marseys.order_by(Marsey.count.desc())
else: marseys = marseys.order_by(User.username)
else: