Refactors book ingest from openlibrary
it's very repetetive now but also works way better so who can say
This commit is contained in:
parent
94efe860b0
commit
26d9454ec3
2 changed files with 132 additions and 95 deletions
|
@ -352,6 +352,8 @@ def book_page(request, book_identifier, tab='friends'):
|
|||
|
||||
if isinstance(book, models.Work):
|
||||
book = book.default_edition
|
||||
if not book:
|
||||
return HttpResponseNotFound()
|
||||
|
||||
work = book.parent_work
|
||||
if not work:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue