X-Git-Url: https://git.ucc.asn.au/?p=uccvend-vendserver.git;a=blobdiff_plain;f=VendServer%2FVendServer.py;h=dd35cd418a3c6ca160cfbc4ca82b2c452b515942;hp=f642dc4528e1ae61eda5516d212a9b66185808c0;hb=d51a435a9b62496dd3388c6db2280c0bfb3a49eb;hpb=9d34b41fdab2ec8c3cc05a119ab8295dffc80f76 diff --git a/VendServer/VendServer.py b/VendServer/VendServer.py index f642dc4..dd35cd4 100755 --- a/VendServer/VendServer.py +++ b/VendServer/VendServer.py @@ -172,7 +172,7 @@ class VendServer(): def scroll_options(self, username, mk, welcome = False): # If the user has just logged in, show them their balance if welcome: - balance = dispense.getBalance() + balance = self.dispense.getBalance() msg = [(self.center('WELCOME'), False, TEXT_SPEED), (self.center(self.dispense.getUsername()), False, TEXT_SPEED), @@ -720,6 +720,7 @@ class VendServer(): return """ + """ if self.dispense.isDisabled(): logging.info('user '+self.vstatus.cur_user+' is disabled') self.vstatus.mk.set_messages( @@ -729,7 +730,7 @@ class VendServer(): self.reset_idler(3) return - + """ self.vstatus.cur_pin = '' self.vstatus.mk.set_message('PIN: ')