|
|
@ -75,7 +75,7 @@ def alter(partID):
|
|
|
|
datasheet_filename = secure_filename(datasheet_file.filename)
|
|
|
|
datasheet_filename = secure_filename(datasheet_file.filename)
|
|
|
|
datasheet_file.save('/srv/datasheets/' + datasheet_filename)
|
|
|
|
datasheet_file.save('/srv/datasheets/' + datasheet_filename)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
datasheet_filename = ''
|
|
|
|
datasheet_filename = None
|
|
|
|
r = db_engine.execute(s, block=request.form['block'],
|
|
|
|
r = db_engine.execute(s, block=request.form['block'],
|
|
|
|
type=request.form['type'],
|
|
|
|
type=request.form['type'],
|
|
|
|
partno=request.form['partno'],
|
|
|
|
partno=request.form['partno'],
|
|
|
|