From b38877e19361eb41f328642667d1f44170a7ed5d Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Tue, 13 Apr 2021 19:47:55 +0200 Subject: [PATCH] Document change --- cps/web.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/web.py b/cps/web.py index 01c04350..0eaacdb1 100644 --- a/cps/web.py +++ b/cps/web.py @@ -831,6 +831,8 @@ def author_list(): charlist = calibre_db.session.query(func.upper(func.substr(db.Authors.sort, 1, 1)).label('char')) \ .join(db.books_authors_link).join(db.Books).filter(calibre_db.common_filters()) \ .group_by(func.upper(func.substr(db.Authors.sort, 1, 1))).all() + # If not creating a copy, readonly databases can not display authornames with "|" in it as changing the name + # starts a change session autor_copy = copy.deepcopy(entries) for entry in autor_copy: entry.Authors.name = entry.Authors.name.replace('|', ',')