|
|
@ -228,7 +228,8 @@ def alter(partID):
|
|
|
|
r = db_engine.execute(s, partno=request.form['partno'],
|
|
|
|
r = db_engine.execute(s, partno=request.form['partno'],
|
|
|
|
description=request.form['description'],
|
|
|
|
description=request.form['description'],
|
|
|
|
datasheet=datasheet_filename,
|
|
|
|
datasheet=datasheet_filename,
|
|
|
|
location_id=request.form['location_id'])
|
|
|
|
location_id=request.form['location_id'],
|
|
|
|
|
|
|
|
id=partID)
|
|
|
|
return '{"status":"ok"}'
|
|
|
|
return '{"status":"ok"}'
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/parts/delete/<partID>')
|
|
|
|
@app.route('/parts/delete/<partID>')
|
|
|
|