@ -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)