Skip to content
Permalink
Browse files

Merge pull request #2480 from cdrini/hotfix/subjects-504-error

Revert "Fixes Publishers page displaying only 2 pages of works (#2471)"
  • Loading branch information...
mekarpeles committed Oct 9, 2019
2 parents 4f8a941 + 14f14dc commit e387dd9a053eea1d5061447c7e4aefd94d4f6bc6
Showing with 0 additions and 9 deletions.
  1. +0 −9 openlibrary/plugins/worksearch/subjects.py
@@ -326,15 +326,6 @@ def get_subject(self, key, details=False, offset=0, limit=12, sort='first_publis
subject[meta.key].pop(i)
break

# Fetch more works until offset is > than work_count.
# This ensures that we render the correct ammount of works.
if offset < subject.work_count:
rest_subject = get_subject(
key, details=details, offset=limit + offset, sort=sort,
limit=limit, **filters)
if len(rest_subject.works) > 0:
subject.works.extend(rest_subject.works)

return subject

def get_meta(self, key):

0 comments on commit e387dd9

Please sign in to comment.
You can’t perform that action at this time.