Commit a2dfa2b1 authored by frekk's avatar frekk
Browse files

fix get_membership_choices

parent 7dfa6f54
......@@ -69,8 +69,12 @@ def get_membership_choices(is_renew=None, get_prices=True):
# so this option is only displayed on the renewal form
continue
else:
price = get_item_price(val['dispense'])
if (get_prices and price is not None):
if get_prices:
price = get_item_price(val['dispense'])
else:
price = None
if price is not None:
desc = "%s ($%1.2f)" % (val['desc'], price / 100.0)
choices += [(key, desc)]
else:
......
Supports Markdown
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