From ad39d8d1d500cdd59ecb543602a2705d8e5e073a Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 29 Sep 2019 11:08:29 +0100 Subject: [PATCH] bug fix --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 02edb6a..3aedab0 100755 --- a/app.py +++ b/app.py @@ -391,7 +391,7 @@ def item_page(item_id): label = get_entity_label(entity) other = get_other(item.entity) - painting_item = PaintingItem.get(item_id) + painting_item = PaintingItem.query.get(item_id) if painting_item is None: painting_item = PaintingItem(item_id=item_id, label=label, entity=entity) database.session.add(painting_item)