From 7091048e4b434fd9b83914667a808b3eb0903b20 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 6 Jul 2025 14:33:37 +0100 Subject: [PATCH] Slight optimization of previous PR: use existing variable instead of subscripting. --- src/calibre/db/categories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/categories.py b/src/calibre/db/categories.py index f2cc105810..279126dbbb 100644 --- a/src/calibre/db/categories.py +++ b/src/calibre/db/categories.py @@ -104,7 +104,7 @@ def create_tag_class(category, fm): dt == 'text') ) and tweaks['categories_use_field_for_author_name'] == 'author_sort' ) or ( - cat['datatype'] == 'series' and + dt == 'series' and tweaks['categories_use_field_for_series_name'] == 'series_sort' ) ):