mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 05:14:32 +01:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
ca8f302d52
1 changed files with 2 additions and 1 deletions
|
|
@ -265,7 +265,8 @@ def __call__(self, query, field_iter, location, datatype, candidates, is_many=Fa
|
|||
cast = lambda x: 0 if x is None else int(x)
|
||||
adjust = lambda x: x // 2
|
||||
else:
|
||||
cast = float if dt in ('float', 'composite', 'half-rating') else int
|
||||
# Datatype is empty if the source is a tempate. Assume float
|
||||
cast = float if dt in ('float', 'composite', 'half-rating', '') else int
|
||||
|
||||
mult = 1.0
|
||||
if len(query) > 1:
|
||||
|
|
|
|||
Loading…
Reference in a new issue