Skip to content

Commit

Permalink
Merge pull request #32 from Storj/order-by
Browse files Browse the repository at this point in the history
Ordered the Farmers by Height. Fixes #31
  • Loading branch information
super3 committed Aug 13, 2015
2 parents 433679a + c7f3c8a commit 68ae2de
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 @@ -33,7 +33,7 @@ def online_farmers():
time_ago = current_time - datetime.timedelta(minutes=online_time)

# give us all farmers that have been around for the past online_time
return db.session.query(Farmer).filter(Farmer.last_seen > time_ago).all()
return db.session.query(Farmer).filter(Farmer.last_seen > time_ago).order_by(Farmer.height).all()


# Routes
Expand Down

0 comments on commit 68ae2de

Please sign in to comment.