|
|
|
@ -218,7 +218,6 @@ def alter(partID):
|
|
|
|
|
try:
|
|
|
|
|
datasheet_filename = request.form['datasheet-url']
|
|
|
|
|
except:
|
|
|
|
|
print('No docs provided')
|
|
|
|
|
datasheet_filename = None
|
|
|
|
|
r = db_engine.execute(s, partno=request.form['partno'],
|
|
|
|
|
description=request.form['description'],
|
|
|
|
@ -250,7 +249,6 @@ def alter(partID):
|
|
|
|
|
try:
|
|
|
|
|
datasheet_filename = request.form['datasheet-url']
|
|
|
|
|
except:
|
|
|
|
|
print('No docs provided')
|
|
|
|
|
datasheet_filename = l[0]['datasheet']
|
|
|
|
|
s += 'where id=:id returning id;'
|
|
|
|
|
s = text(s)
|
|
|
|
|