1
0
Fork 1
mirror of https://github.com/bookwyrm-social/bookwyrm.git synced 2025-04-24 03:04:10 +00:00

Correclty parse ordered collection json for editions

This commit is contained in:
Mouse Reeve 2020-11-04 13:18:30 -08:00
parent 6bf9a7159b
commit 9238f4c74a

View file

@ -121,9 +121,9 @@ class Connector(AbstractConnector):
work = book.parent_work
# it may be that we actually want to request this url
editions_url = '%s/editions' % work.remote_id
editions_url = '%s/editions?page=true' % work.remote_id
edition_options = get_data(editions_url)
for edition_data in edition_options:
for edition_data in edition_options['orderedItems']:
with transaction.atomic():
edition = self.create_book(
edition_data['id'],