Merge pull request #1051 from bookwyrm-social/inventaire-edition

Sort edition list for better import results from inventaire
This commit is contained in:
Mouse Reeve 2021-05-05 08:40:30 -07:00 committed by GitHub
commit 8d875f73ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,8 +123,10 @@ class Connector(AbstractConnector):
def load_edition_data(self, work_uri):
"""get a list of editions for a work"""
url = "{:s}?action=reverse-claims&property=wdt:P629&value={:s}".format(
self.books_url, work_uri
url = (
"{:s}?action=reverse-claims&property=wdt:P629&value={:s}&sort=true".format(
self.books_url, work_uri
)
)
return get_data(url)