Skip to content
Snippets Groups Projects
Commit e563e4fe authored by Sindre Hiis-Hauge's avatar Sindre Hiis-Hauge
Browse files

Updated put_orders_available

parent 39d96516
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,6 @@ def post_new_product():
if request.method == 'POST':
data = request.get_json()
number=data['number']
store_name=data['store_name']
address=data['address']
pickup_date=data['pickup_date']
......@@ -167,8 +166,8 @@ def post_new_product():
cur=mysql.connection.cursor()
sql= "INSERT INTO `shipment`(`number`, `store_name`, ` address`, `pickup_date`, `state,order_no`, `transport_company`, `driver_id`) VALUES (%s,%s, %s, %s,%s,%s,%s,%s)"
args=[number, store_name, address, pickup_date, state, order_no, transport_company, driver_id]
sql= "INSERT INTO `shipment`(`store_name`, ` address`, `pickup_date`, `state,order_no`, `transport_company`, `driver_id`) VALUES (%s, %s, %s, %s, %s, %s, %s)"
args=[store_name, address, pickup_date, state, order_no, transport_company, driver_id]
post_new_shipment= cur.execute(sql,args)
mysql.connection.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment