mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Correclty parse ordered collection json for editions
This commit is contained in:
parent
6bf9a7159b
commit
9238f4c74a
1 changed files with 2 additions and 2 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue