Skip to content

Commit

Permalink
Merge pull request #55 from littleskunk/patch-2
Browse files Browse the repository at this point in the history
removed second DB commits in set_height
  • Loading branch information
F483 committed Sep 12, 2015
2 parents c4080ce + a962242 commit 8c24e7c
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 @@ -156,9 +156,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 8c24e7c

Please sign in to comment.