From 9ba35cb414cef8ba399ed07870bb587a238411dc Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 29 Sep 2019 13:17:36 +0100 Subject: [PATCH] Bug fix. --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 7f1e134..66adb61 100755 --- a/app.py +++ b/app.py @@ -147,8 +147,7 @@ def save(item_id): label = get_entity_label(painting_entity) painting_item = PaintingItem(item_id=item_id, label=label, entity=painting_entity) database.session.add(painting_item) - - database.session.add(item) + database.session.commit() for depicts_qid in depicts: depicts_id = int(depicts_qid[1:])