Qty 1 when is not float

This commit is contained in:
resteve 2014-10-09 09:09:42 +02:00
parent 40ff80614b
commit 9a55ecedcd
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ def add(lang):
try:
qty = float(data.get('value'))
except:
return jsonify(result=False)
qty = 1
try:
values[int(product[1])] = qty
except: