Skip to content

Commit

Permalink
Merge pull request #7398 from internetarchive/opds-pages
Browse files Browse the repository at this point in the history
opds: pages = book.pagination or book.number_of_pages
  • Loading branch information
mekarpeles authored Jan 12, 2023
2 parents c041082 + 3203d71 commit f2be923
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions openlibrary/plugins/openlibrary/opds.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,7 @@ def __init__(self, book):
authors = book.get_authors()
subjects = book.get_subjects()

if book.pagination:
pages = book.pagination
else:
pages = book.number_of_pages
pages = book.pagination or book.number_of_pages

# the collection and inlibrary check is coped from databarWork.html
collection = set()
Expand Down

0 comments on commit f2be923

Please sign in to comment.