Add sensibility
authorBernard Blackham <[email protected]>
Sun, 27 Jun 2004 18:56:47 +0000 (18:56 +0000)
committerBernard Blackham <[email protected]>
Sun, 27 Jun 2004 18:56:47 +0000 (18:56 +0000)
sql-edition/servers/VendServer.py

index 68c09b3..b1274da 100755 (executable)
@@ -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:

UCC git Repository :: git.ucc.asn.au