Merge pull request #11 from gutenbergtools/gbnewby-patch-1

Fix to logic error for wikipedia entries for authors with only one work.
forwarded-headers
eshellman 2019-05-06 09:20:17 -04:00 committed by GitHub
commit 64a1ce6e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class AuthorPage (SearchPage):
def fixup (self, os):
if (os.start_index == 1 and len (os.entries) > 1):
if (os.start_index == 1 and len (os.entries) > 0):
# browse-by-author page for maintainers
if 'is-catalog-maintainer' in cherrypy.request.cookie: