From 23b3bfd96778b943f18003d5d90d6aaa3bba8fb3 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 20 Aug 2019 19:12:40 +0200 Subject: [PATCH] Additional fix #1016 --- cps/services/__init__.py | 2 +- cps/templates/config_edit.html | 2 +- cps/web.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cps/services/__init__.py b/cps/services/__init__.py index f77342bb..d468d0b7 100644 --- a/cps/services/__init__.py +++ b/cps/services/__init__.py @@ -27,7 +27,7 @@ log = logger.create() try: from . import goodreads_support except ImportError as err: log.debug("cannot import goodreads, showing authors-metadata will not work: %s", err) - goodreads = None + goodreads_support = None try: from . import simpleldap as ldap diff --git a/cps/templates/config_edit.html b/cps/templates/config_edit.html index 4a5b154d..dd406d39 100644 --- a/cps/templates/config_edit.html +++ b/cps/templates/config_edit.html @@ -172,7 +172,7 @@ {% if feature_support['goodreads'] %}
- + {{_('Obtain an API Key')}}
diff --git a/cps/web.py b/cps/web.py index 17f67cea..82a79623 100644 --- a/cps/web.py +++ b/cps/web.py @@ -565,9 +565,9 @@ def render_author_books(page, author_id, order): author_info = None other_books = [] - if services.goodreads and config.config_use_goodreads: - author_info = services.goodreads.get_author_info(author_name) - other_books = services.goodreads.get_other_books(author_info, entries) + if services.goodreads_support and config.config_use_goodreads: + author_info = services.goodreads_support.get_author_info(author_name) + other_books = services.goodreads_support.get_other_books(author_info, entries) return render_title_template('author.html', entries=entries, pagination=pagination, id=author_id, title=_(u"Author: %(name)s", name=author_name), author=author_info,