From c1874759e242326827ccbdd1057a5d68d33b0589 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Sun, 11 Nov 2018 16:18:44 +0100 Subject: [PATCH] Fixed modify part not working --- parts/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parts/server.py b/parts/server.py index c0fc844..da10af1 100644 --- a/parts/server.py +++ b/parts/server.py @@ -228,7 +228,8 @@ def alter(partID): r = db_engine.execute(s, partno=request.form['partno'], description=request.form['description'], datasheet=datasheet_filename, - location_id=request.form['location_id']) + location_id=request.form['location_id'], + id=partID) return '{"status":"ok"}' @app.route('/parts/delete/')