Mercurial > libervia-backend
diff sat/memory/sqlite.py @ 2895:1a23547f95fd
memory (sqlite): cast timestamp_start filter to float instead of int
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 07 Apr 2019 20:57:13 +0200 |
parents | 28fe69b87ba4 |
children | 21cf8395616c |
line wrap: on
line diff
--- a/sat/memory/sqlite.py Sun Apr 07 20:55:27 2019 +0200 +++ b/sat/memory/sqlite.py Sun Apr 07 20:57:13 2019 +0200 @@ -594,7 +594,7 @@ if filters: if u'timestamp_start' in filters: query_parts.append(u"AND timestamp>= ?") - values.append(int(filters[u'timestamp_start'])) + values.append(float(filters[u'timestamp_start'])) if u'body' in filters: # TODO: use REGEXP (function to be defined) instead of GLOB: https://www.sqlite.org/lang_expr.html query_parts.append(u"AND message LIKE ?")