From 6f7cddd5bb7f0e14074754f1e80d7767ac711b47 Mon Sep 17 00:00:00 2001 From: Jake Funke Date: Mon, 27 Aug 2018 21:01:46 +0000 Subject: [PATCH] tweaks --- menu_screen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu_screen.py b/menu_screen.py index 233a1dc..75a1e5d 100644 --- a/menu_screen.py +++ b/menu_screen.py @@ -760,7 +760,8 @@ class CursedMenu(object): def water_on_visit(self, guest_visitor_file): visitor_data = {} - guest_data = {'user': getpass.getuser(), 'timestamp': int(time.time())} + # using -1 here so that old running instances can be watered + guest_data = {'user': getpass.getuser(), 'timestamp': int(time.time()) - 1} if os.path.isfile(guest_visitor_file): if not os.access(guest_visitor_file, os.W_OK): return False