Skip to content

Commit

Permalink
fix client_id
Browse files Browse the repository at this point in the history
  • Loading branch information
william57m committed Nov 6, 2014
1 parent 29560c2 commit df2760f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webserver/controllers/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def create():
# Create menu
# TODO: generate order number !
order = Order(number=1, date=date, client_id=current_user.id, state_id=state.id)
#db.session.flush()

# Create line order
if 'dishes' not in datas:
Expand All @@ -142,7 +141,7 @@ def create():
except:
return make_response(gettext(u"dish_id doit être un identifiant."), 400)

order.lines_order.append(LineOrder(dish_id=dish_id, quantity=quantity))
#order.lines_order.append(LineOrder(dish_id=dish_id, quantity=quantity))


# Add menu
Expand Down

0 comments on commit df2760f

Please sign in to comment.