Skip to content

Commit

Permalink
Merge 52d5bf1 into 2d536e7
Browse files Browse the repository at this point in the history
  • Loading branch information
littleskunk committed Sep 11, 2015
2 parents 2d536e7 + 52d5bf1 commit 589ef7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataserv/Farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def audit(self):

def set_height(self, height):
"""Set the farmers advertised height."""
self.ping() # also serves as a valid ping
farmer = self.lookup()
farmer.height = height
farmer.last_seen = datetime.utcnow()
db.session.commit()
return self.height

Expand Down

0 comments on commit 589ef7e

Please sign in to comment.