Skip to content

Commit

Permalink
Merge pull request #69 from littleskunk/patch-3
Browse files Browse the repository at this point in the history
online list order by height, id
  • Loading branch information
F483 committed Sep 15, 2015
2 parents 31b4583 + 645d7aa commit e930942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataserv/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def online_farmers():
# give us all farmers that have been around for the past online_time
q = db.session.query(Farmer)
q = q.filter(Farmer.last_seen > time_ago)
q = q.order_by(desc(Farmer.height))
q = q.order_by(desc(Farmer.height),Farmer.id)
return q.all()


Expand Down

0 comments on commit e930942

Please sign in to comment.