pull/22/head
Jake Funke 2018-08-27 21:01:46 +00:00
parent e5261b79b1
commit 6f7cddd5bb
1 changed files with 2 additions and 1 deletions

View File

@ -760,7 +760,8 @@ class CursedMenu(object):
def water_on_visit(self, guest_visitor_file): def water_on_visit(self, guest_visitor_file):
visitor_data = {} 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 os.path.isfile(guest_visitor_file):
if not os.access(guest_visitor_file, os.W_OK): if not os.access(guest_visitor_file, os.W_OK):
return False return False