From 3e551d89d97566eb38b5fa4ef7dfeb1966192296 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 3 Mar 2020 15:20:04 +0000 Subject: [PATCH] Don't try to set label for new item during save. --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 494437c..5dd3749 100755 --- a/app.py +++ b/app.py @@ -134,8 +134,7 @@ def save(item_id): artwork_item = Item.query.get(item_id) if artwork_item is None: artwork_entity = mediawiki.get_entity_with_cache(f'Q{item_id}') - label = wikibase.get_entity_label(artwork_entity) - artwork_item = Item(item_id=item_id, label=label, entity=artwork_entity) + artwork_item = Item(item_id=item_id, entity=artwork_entity) database.session.add(artwork_item) database.session.commit()