Fix to logic error for wikipedia entries for authors with only one work.

(Re-applying, since this wasn't checked in the first time).

This shows Wikipedia entries when an author only has a single eBook in the catalog. The previous logic would hide Wikipedia entries, even if they existed, unless the author had > 1 eBooks.
gbnewby-patch-1
Greg Newby 2019-05-05 13:35:15 -04:00 committed by GitHub
parent 38e4d9a72f
commit ad27a07e25
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: