Fixed water points bug
parent
a74d257506
commit
3b802dc931
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue