fixed bug where users with live botany instances couldnt be watered
parent
e9b58bb61d
commit
e5261b79b1
|
@ -238,7 +238,7 @@ class Plant(object):
|
||||||
if element['user'] not in visitors_this_check:
|
if element['user'] not in visitors_this_check:
|
||||||
visitors_this_check.append(element['user'])
|
visitors_this_check.append(element['user'])
|
||||||
# prevent users from manually setting watered_time in the future
|
# prevent users from manually setting watered_time in the future
|
||||||
if element['timestamp'] < int(time.time()):
|
if element['timestamp'] <= int(time.time()):
|
||||||
guest_timestamps.append(element['timestamp'])
|
guest_timestamps.append(element['timestamp'])
|
||||||
try:
|
try:
|
||||||
self.update_visitor_db(visitors_this_check)
|
self.update_visitor_db(visitors_this_check)
|
||||||
|
|
Loading…
Reference in New Issue