From: Bernard Blackham Date: Sun, 27 Jun 2004 18:56:47 +0000 (+0000) Subject: Add sensibility X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=550282ca9ca1d9401a194b561eb660e9244eda9e;p=zanchey%2Fdispense2.git Add sensibility --- diff --git a/sql-edition/servers/VendServer.py b/sql-edition/servers/VendServer.py index 68c09b3..b1274da 100755 --- a/sql-edition/servers/VendServer.py +++ b/sql-edition/servers/VendServer.py @@ -212,6 +212,7 @@ if __name__ == '__main__': if time_left < 5 and (last_timeout_refresh is None or last_timeout_refresh > time_left): mk.set_message('LOGOUT: '+str(int(time_left))) last_timeout_refresh = int(time_left) + cur_selection = '' if logout_timeout != None and logout_timeout - time() <= 0: logout_timeout = None @@ -224,7 +225,6 @@ if __name__ == '__main__': if len(cur_pin) == PIN_LENGTH and mk.done() and logout_timeout == None: # start autologout logout_timeout = time() + 15 - cur_selection = '' mk.update_display() @@ -313,7 +313,6 @@ if __name__ == '__main__': scroll_options(username, mk) continue else: - logout_timeout = 10 cur_selection += chr(key + ord('0')) #make_selection(cur_selection) # XXX this should move somewhere else: