From 5bf02c4892c2de325bd4d0115b29ea1005c18fc3 Mon Sep 17 00:00:00 2001 From: assar Date: Fri, 9 Jun 2017 23:32:29 +0200 Subject: [PATCH] Yes, bad request is solved --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 3256716..c18cd6d 100644 --- a/server.py +++ b/server.py @@ -75,7 +75,7 @@ def alter(partID): datasheet_filename = secure_filename(datasheet_file.filename) datasheet_file.save('/srv/datasheets/' + datasheet_filename) else: - datasheet_filename = '' + datasheet_filename = None r = db_engine.execute(s, block=request.form['block'], type=request.form['type'], partno=request.form['partno'],