Skip to content
Snippets Groups Projects
Commit 9fc650e8 authored by frekk's avatar frekk
Browse files

fix dispense get_item_price

parent 7665aac4
No related merge requests found
......@@ -18,8 +18,8 @@ def run_dispense(*args):
if DISPENSE_BIN is None:
return None
cmd = [DISPENSE_BIN] + args
log.info("run_dispense: " + cmd)
cmd = (DISPENSE_BIN, ) + args
log.info("run_dispense: " + str(cmd))
try:
# get a string containing the output of the program
res = subprocess.check_output(cmd, timeout=4, universal_newlines=True)
......@@ -48,4 +48,4 @@ def get_item_price(itemid):
return None
else:
# return the price as a number of cents
return int(float(s[0]) * 100)
return int(float(s[1]) * 100)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment