From 59a174dc6fadcbdd3452e8ff2650b87b94773ff7 Mon Sep 17 00:00:00 2001 From: assar Date: Tue, 6 Jun 2017 18:23:28 +0000 Subject: [PATCH] Little fix --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index fc4ab54..24f782c 100644 --- a/server.py +++ b/server.py @@ -89,7 +89,7 @@ def alter(partID): datasheet_file.save('/srv/datasheets/' + filename) # TODO: Remove old datasheet else: - datasheet_filename = l['datasheet'] + datasheet_filename = l[0]['datasheet'] s += 'where id=:id;' s = text(s)