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