Fixed water points bug

pull/8/head
Jake Funke 2018-03-11 15:51:11 -07:00
parent a74d257506
commit 3b802dc931
1 changed files with 1 additions and 0 deletions

View File

@ -251,6 +251,7 @@ class Plant(object):
self.watered_timestamp = latest_visitor_timestamp self.watered_timestamp = latest_visitor_timestamp
self.time_delta_watered = int(time.time()) - self.watered_timestamp self.time_delta_watered = int(time.time()) - self.watered_timestamp
if self.time_delta_watered <= (24 * 3600): if self.time_delta_watered <= (24 * 3600):
self.watered_24h = True
return True return True
else: else:
self.watered_24h = False self.watered_24h = False