changeset 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 c7c52c0dc13a
children ca55e02a6fc8
files sat/memory/sqlite.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 ?")