Merge pull request #1268 from bookwyrm-social/inventaire-works

Fixes loading editions from inventaire
This commit is contained in:
Mouse Reeve 2021-08-08 17:24:34 -06:00 committed by GitHub
commit 710f834e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ class Connector(AbstractConnector):
# flatten the data so that images, uri, and claims are on the same level # flatten the data so that images, uri, and claims are on the same level
return { return {
**data.get("claims", {}), **data.get("claims", {}),
**{k: data.get(k) for k in ["uri", "image", "labels", "sitelinks"]}, **{k: data.get(k) for k in ["uri", "image", "labels", "sitelinks", "type"]},
} }
def search(self, query, min_confidence=None): # pylint: disable=arguments-differ def search(self, query, min_confidence=None): # pylint: disable=arguments-differ