Skip to content

Commit

Permalink
Merge pull request #29 from NicoNet/patch-1
Browse files Browse the repository at this point in the history
Update app.py
  • Loading branch information
super3 committed Aug 14, 2015
2 parents e92c832 + 4f9a945 commit efff2aa
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 @@ -88,10 +88,10 @@ def online():
# that status of the farmers connected to the node
output = ""
current_time = datetime.datetime.utcnow()
text = "{0} | Last Seen: {1} | Height: {2}<br/>"

for farmer in online_farmers():
last_seen = secs_to_mins((current_time - farmer.last_seen).seconds)
text = "{0} | Last Seen: {1} | Height: {2}<br/>"
output += text.format(farmer.btc_addr, last_seen, farmer.height)

return output
Expand Down

0 comments on commit efff2aa

Please sign in to comment.