mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix parentheses problem exposed by the db tests
This commit is contained in:
parent
bb11deca05
commit
7eb859147c
@ -97,11 +97,12 @@ def create_tag_class(category, fm):
|
||||
'identifiers'} and dt != 'composite'
|
||||
|
||||
if (
|
||||
( category == 'authors' or
|
||||
(
|
||||
( category == 'authors' or
|
||||
(cat['display'].get('is_names', False) and
|
||||
cat['is_custom'] and cat['is_multiple'] and
|
||||
dt == 'text') and
|
||||
tweaks['categories_use_field_for_author_name'] == 'author_sort'
|
||||
dt == 'text')
|
||||
) and tweaks['categories_use_field_for_author_name'] == 'author_sort'
|
||||
) or (
|
||||
cat['datatype'] == 'series' and
|
||||
tweaks['categories_use_field_for_series_name'] == 'series_sort'
|
||||
|
Loading…
x
Reference in New Issue
Block a user