Fix coloring when using date fields in conditions.

This commit is contained in:
Charles Haley 2011-10-09 09:17:35 +02:00
parent efb5dd33c7
commit ac85376b2f

View File

@ -133,7 +133,7 @@ class Rule(object): # {{{
'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):