def addOrder(): tableId = request.form['tableId'] price = request.form['price'] quantity = request.form['quantity'] name = request.form['name'] print 'here' order = { 'price': price, 'quantity': quantity, 'name': name } confirmation = restaurant.addOrder(tableId, order) return jsonify({'confirmation': confirmation})
def addOrder(): tableId = request.form['tableId'] order = request.form['order'] confirmation = restaurant.addOrder(tableId, order) # Open the waiting for order channel return {'confirmation': confirmation}