superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grace...@apache.org
Subject [incubator-superset] branch master updated: Fix bug with sorting columns in group by using time shift (#4683)
Date Mon, 26 Mar 2018 17:55:46 GMT
This is an automated email from the ASF dual-hosted git repository.

graceguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 52b925f  Fix bug with sorting columns in group by using time shift (#4683)
52b925f is described below

commit 52b925fee80c0d46aeb444326ac499296d682396
Author: michellethomas <michelle.q.thomas@gmail.com>
AuthorDate: Mon Mar 26 10:55:43 2018 -0700

    Fix bug with sorting columns in group by using time shift (#4683)
---
 superset/viz.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/viz.py b/superset/viz.py
index 6f17ad7..fc87430 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -1149,7 +1149,7 @@ class NVD3TimeSeriesViz(NVD3Viz):
 
         if self._extra_chart_data:
             chart_data += self._extra_chart_data
-            chart_data = sorted(chart_data, key=lambda x: x['key'])
+            chart_data = sorted(chart_data, key=lambda x: tuple(x['key']))
 
         return chart_data
 

-- 
To stop receiving notification emails like this one, please contact
graceguo@apache.org.

Mime
View raw message