From 922428cab760ba324619eb64dd2a89bfe352d15c Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 6 Apr 2021 18:51:43 -0700 Subject: [PATCH] Fixes error in reverse path --- bookwyrm/connectors/inventaire.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/connectors/inventaire.py b/bookwyrm/connectors/inventaire.py index 465268b2..594fe810 100644 --- a/bookwyrm/connectors/inventaire.py +++ b/bookwyrm/connectors/inventaire.py @@ -98,7 +98,7 @@ class Connector(AbstractConnector): def load_edition_data(self, work_uri): """ get a list of editions for a work """ - url = "{:s}?action=reverse-claims&property=P629&value={:s}".format( + url = "{:s}?action=reverse-claims&property=wdt:P629&value={:s}".format( self.books_url, work_uri ) return get_data(url) @@ -119,7 +119,7 @@ class Connector(AbstractConnector): return self.get_book_data(self.get_remote_id(uri)) def get_authors_from_data(self, data): - authors = data.get("wdt:P50") + authors = data.get("wdt:P50", []) for author in authors: yield self.get_or_create_author(self.get_remote_id(author))