Fixes from testrun

This commit is contained in:
Ozzie Isaacs
2026-05-17 10:21:19 +02:00
parent 6cbba6d170
commit 69f8767be5
4 changed files with 213 additions and 2009 deletions
+1 -1
View File
@@ -1126,7 +1126,7 @@ class CalibreDB:
.filter(self.common_filters())
.count())
if no_lang_count:
tags.append([Category(_("None"), None, "none"), no_lang_count])
tags.append([Category(_("None"), "None", "none"), no_lang_count])
return sorted(tags, key=lambda x: x[0].name.lower(), reverse=reverse_order)
else:
if not languages:
+1 -1
View File
@@ -711,7 +711,7 @@ def render_language_books(page, name, order):
lang_name = _("None")
except KeyError:
abort(404)
if name == "none":
if name.lower() == "none":
entries, random, pagination = calibre_db.fill_indexpage(page, 0,
db.Books,
db.Languages.lang_code == None,