[TPG] Used 'dispense snack:<ID>' instead of 'dispense give'
authorACC Murphy <wheel@ucc.asn.au>
Sun, 27 Jan 2013 08:41:45 +0000 (08:41 +0000)
committerACC Murphy <wheel@ucc.asn.au>
Sun, 27 Jan 2013 08:41:45 +0000 (08:41 +0000)
sql-edition/servers/VendServer.py

index 515a659..2259108 100755 (executable)
@@ -429,9 +429,9 @@ def make_selection(v, vstatus):
                        price, shortname, name = get_snack( '--' )
                dollarprice = "$%.2f" % ( price / 100.0 )
                v.display(vstatus.cur_selection+' - %s'%dollarprice)
-               exitcode = os.system('dispense -u "%s" give \>sales\:snack %d "%s"'%(vstatus.username, price, name)) >> 8
+#              exitcode = os.system('dispense -u "%s" give \>sales\:snack %d "%s"'%(vstatus.username, price, name)) >> 8
                # For some reason, this causes the machine and this code to desync
-#              exitcode = os.system('dispense -u "%s" snack:%s'%(vstatus.username, vstatus.cur_selection)) >> 8
+               exitcode = os.system('dispense -u "%s" snack:%s'%(vstatus.username, vstatus.cur_selection)) >> 8
                if (exitcode == 0):
                        # magic dispense syslog service
                        syslog.syslog(syslog.LOG_INFO | syslog.LOG_LOCAL4, "vended %s (slot %s) for %s" % (name, vstatus.cur_selection, vstatus.username))

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