From 088778969d75b26080d4f019c76b3b92d8244675 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 6 Apr 2026 15:28:10 +0200 Subject: [PATCH] Better error handling on series display in basic view --- cps/basic.py | 1 - cps/templates/basic_detail.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cps/basic.py b/cps/basic.py index b01210109..fdf453a04 100644 --- a/cps/basic.py +++ b/cps/basic.py @@ -19,7 +19,6 @@ # along with this program. If not, see . -from cps.pagination import Pagination from flask import Blueprint from flask_babel import gettext as _ from flask_babel import get_locale diff --git a/cps/templates/basic_detail.html b/cps/templates/basic_detail.html index dc8242536..c5a77c952 100644 --- a/cps/templates/basic_detail.html +++ b/cps/templates/basic_detail.html @@ -31,7 +31,7 @@

Details

{% if entry.series|length > 0 %} -

{{ _("Book %(index)s of %(range)s", index=entry.series_index | formatfloat(2), range=(entry.series[0].name)|safe) }}

+

{{ _("Book %(index)s of %(range)s", index=entry.series_index|formatfloat(2), range=entry.series[0].name|e) }}

{% endif %} {% if entry.languages|length > 0 %}