Refactors book ingest from openlibrary
it's very repetetive now but also works way better so who can say
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user