This commit is contained in:
Edward Betts 2019-09-29 11:08:29 +01:00
parent 2df8958a1f
commit ad39d8d1d5

2
app.py
View file

@ -391,7 +391,7 @@ def item_page(item_id):
label = get_entity_label(entity) label = get_entity_label(entity)
other = get_other(item.entity) other = get_other(item.entity)
painting_item = PaintingItem.get(item_id) painting_item = PaintingItem.query.get(item_id)
if painting_item is None: if painting_item is None:
painting_item = PaintingItem(item_id=item_id, label=label, entity=entity) painting_item = PaintingItem(item_id=item_id, label=label, entity=entity)
database.session.add(painting_item) database.session.add(painting_item)