示例#1
0
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})
示例#2
0
def addOrder():
	tableId = request.form['tableId']
	order = request.form['order']
	confirmation = restaurant.addOrder(tableId, order)
	# Open the waiting for order channel
	return {'confirmation': confirmation}