mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-06 02:35:12 +01:00
Fix regression that caused title_sort to stop working
This commit is contained in:
parent
67ebd98cf1
commit
61ba29ab61
1 changed files with 2 additions and 1 deletions
|
|
@ -38,7 +38,8 @@ class SafeFormat(TemplateFormatter):
|
|||
|
||||
def get_value(self, key, args, kwargs):
|
||||
try:
|
||||
key = field_metadata.search_term_to_field_key(key.lower())
|
||||
if key != 'title_sort':
|
||||
key = field_metadata.search_term_to_field_key(key.lower())
|
||||
b = self.book.get_user_metadata(key, False)
|
||||
if b and b['datatype'] == 'int' and self.book.get(key, 0) == 0:
|
||||
v = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue