From cd3791f5f4b85581705117dcaff9f18bbe052336 Mon Sep 17 00:00:00 2001 From: mmonkey Date: Thu, 30 Sep 2021 01:43:31 -0500 Subject: [PATCH] Always use full-sized image for book edit and details pages --- cps/__init__.py | 3 +-- cps/admin.py | 2 +- cps/templates/book_edit.html | 4 ++-- cps/templates/detail.html | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cps/__init__.py b/cps/__init__.py index 838da5b4..af4a82e8 100644 --- a/cps/__init__.py +++ b/cps/__init__.py @@ -114,9 +114,8 @@ def create_app(): if os.environ.get('FLASK_DEBUG'): cache_buster.init_cache_busting(app) - cache_buster.init_cache_busting(app) - log.info('Starting Calibre Web...') + Principal(app) lm.init_app(app) app.secret_key = os.getenv('SECRET_KEY', config_sql.get_flask_session_key(ub.session)) diff --git a/cps/admin.py b/cps/admin.py index 62b3dbe0..4d168aa0 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -40,7 +40,7 @@ from sqlalchemy.orm.attributes import flag_modified from sqlalchemy.exc import IntegrityError, OperationalError, InvalidRequestError from sqlalchemy.sql.expression import func, or_, text -from . import constants, logger, helper, services, isoLanguages +from . import constants, logger, helper, services from . import db, calibre_db, ub, web_server, get_locale, config, updater_thread, babel, gdriveutils, schedule from .helper import check_valid_domain, send_test_mail, reset_password, generate_password_hash, check_email, \ valid_email, check_username diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html index b5f5df7a..12d3bd07 100644 --- a/cps/templates/book_edit.html +++ b/cps/templates/book_edit.html @@ -1,10 +1,10 @@ -{% import 'image.html' as image %} {% extends "layout.html" %} {% block body %} {% if book %}
- {{ image.book_cover(book) }} + +
{% if g.user.role_delete_books() %}
diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 7985691a..19cd079e 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -4,7 +4,8 @@
- {{ image.book_cover(entry) }} + +