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'
|
'identifiers'} and dt != 'composite'
|
||||||
|
|
||||||
if (
|
if (
|
||||||
( category == 'authors' or
|
(
|
||||||
|
( category == 'authors' or
|
||||||
(cat['display'].get('is_names', False) and
|
(cat['display'].get('is_names', False) and
|
||||||
cat['is_custom'] and cat['is_multiple'] and
|
cat['is_custom'] and cat['is_multiple'] and
|
||||||
dt == 'text') and
|
dt == 'text')
|
||||||
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
|
cat['datatype'] == '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