mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Slight optimization of previous PR: use existing variable instead of subscripting.
This commit is contained in:
parent
84974a9167
commit
7091048e4b
@ -104,7 +104,7 @@ def create_tag_class(category, fm):
|
|||||||
dt == 'text')
|
dt == 'text')
|
||||||
) and tweaks['categories_use_field_for_author_name'] == 'author_sort'
|
) and tweaks['categories_use_field_for_author_name'] == 'author_sort'
|
||||||
) or (
|
) or (
|
||||||
cat['datatype'] == 'series' and
|
dt == 'series' and
|
||||||
tweaks['categories_use_field_for_series_name'] == 'series_sort'
|
tweaks['categories_use_field_for_series_name'] == 'series_sort'
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user