|
|
@ -233,8 +233,8 @@ def alter(partID):
|
|
|
|
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'],
|
|
|
|
notes=request.form['notes'])
|
|
|
|
notes=request.form['notes'],
|
|
|
|
user_id=session['uid']
|
|
|
|
user_id=session['uid'])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# Modify entry
|
|
|
|
# Modify entry
|
|
|
|
r = db_engine.execute(text('select * from parts where id=:id;'), id=partID)
|
|
|
|
r = db_engine.execute(text('select * from parts where id=:id;'), id=partID)
|
|
|
|