From 29369dae1322efb9d74186ce7254f7133e8626d9 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 6 Apr 2021 15:50:53 -0400 Subject: [PATCH] fix visiting --- botany.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botany.py b/botany.py index 46e6538..5ba0e4a 100755 --- a/botany.py +++ b/botany.py @@ -237,7 +237,7 @@ class Plant(object): if element['user'] not in visitors_this_check: visitors_this_check.append(element['user']) # prevent users from manually setting watered_time in the future - if element['timestamp'] <= int(time.time() and element['timestamp'] >= self.watered_timestamp): + if element['timestamp'] <= int(time.time()) and element['timestamp'] >= self.watered_timestamp: guest_timestamps.append(element['timestamp']) try: self.update_visitor_db(visitors_this_check)