mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 09:14:27 +01:00
Fix test_get_property to ignore series_sort when lang is not eng
This commit is contained in:
parent
568faa1952
commit
e54625a320
1 changed files with 5 additions and 0 deletions
|
|
@ -51,6 +51,11 @@ def get_values(db):
|
|||
if label in {'tags', 'formats'}:
|
||||
# Order is random in the old db for these
|
||||
ans[label] = tuple(set(x.split(',')) if x else x for x in ans[label])
|
||||
if label == 'series_sort':
|
||||
# The old db code did not take book language into account
|
||||
# when generating series_sort values (the first book has
|
||||
# lang=deu)
|
||||
ans[label] = ans[label][1:]
|
||||
return ans
|
||||
|
||||
old = self.init_old()
|
||||
|
|
|
|||
Loading…
Reference in a new issue