bug fix
This commit is contained in:
parent
2df8958a1f
commit
ad39d8d1d5
2
app.py
2
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)
|
||||
|
|
Loading…
Reference in a new issue