forked from MarseyWorld/MarseyWorld
fart
parent
c897c73fbf
commit
7e1311195d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue