From 69a385bade2d6e5e35e45289ff25574b3f4b5fe3 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 14 Jan 2016 09:54:19 -0800 Subject: [PATCH] [hotfix] date casting --- panoramix/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panoramix/models.py b/panoramix/models.py index ea4efa2439b..cc214a1e975 100644 --- a/panoramix/models.py +++ b/panoramix/models.py @@ -463,8 +463,8 @@ class SqlaTable(Model, Queryable, AuditMixinNullable): qry = qry.group_by(*groupby_exprs) time_filter = [ - timestamp >= from_dttm, - timestamp <= to_dttm, + timestamp >= from_dttm.isoformat(), + timestamp <= to_dttm.isoformat(), ] inner_time_filter = copy(time_filter) if inner_from_dttm: