diff --git a/app/luclient.py b/app/luclient.py index d544ce9..25262e3 100644 --- a/app/luclient.py +++ b/app/luclient.py @@ -268,9 +268,13 @@ def register_luclient_jinja_helpers(app): 'select description from Objects where id = ?', [lot_id], one=True - )[0] + ) if desc in ("", None): desc = None + else: + desc = desc[0] + if desc in ("", None): + desc = None if desc: desc = desc.replace('"', "“") return desc