mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 20:44:43 +01:00
Fix coloring when using date fields in conditions.
This commit is contained in:
parent
efb5dd33c7
commit
ac85376b2f
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ def date_condition(self, col, action, val):
|
|||
'lt': ('1', '', ''),
|
||||
'gt': ('', '', '1')
|
||||
}[action]
|
||||
return "cmp(format_date(raw_field('%s'), 'yyyy-MM-dd'), %s, '%s', '%s', '%s')" % (col,
|
||||
return "strcmp(format_date(raw_field('%s'), 'yyyy-MM-dd'), '%s', '%s', '%s', '%s')" % (col,
|
||||
val, lt, eq, gt)
|
||||
|
||||
def multiple_condition(self, col, action, val, sep):
|
||||
|
|
|
|||
Loading…
Reference in a new issue