superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] branch john-bodley--fix-migration-fb13d49b72f9 updated: Update fb13d49b72f9_better_filters.py
Date Wed, 27 Mar 2019 19:27:21 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch john-bodley--fix-migration-fb13d49b72f9
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/john-bodley--fix-migration-fb13d49b72f9 by
this push:
     new ea9402c  Update fb13d49b72f9_better_filters.py
ea9402c is described below

commit ea9402cb00275f62f1a9653de8163829f4e82b64
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Wed Mar 27 12:27:14 2019 -0700

    Update fb13d49b72f9_better_filters.py
---
 superset/migrations/versions/fb13d49b72f9_better_filters.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/migrations/versions/fb13d49b72f9_better_filters.py b/superset/migrations/versions/fb13d49b72f9_better_filters.py
index 123a708..9ea7880 100644
--- a/superset/migrations/versions/fb13d49b72f9_better_filters.py
+++ b/superset/migrations/versions/fb13d49b72f9_better_filters.py
@@ -94,7 +94,7 @@ def downgrade():
             flts = params.get('filter_configs')
             if not flts:
                 continue
-            params['metric'] = [flts[0].get('metric')]
+            params['metric'] = flts[0].get('metric')
             params['groupby'] = [o.get('column') for o in flts]
             slc.params = json.dumps(params, sort_keys=True)
         except Exception as e:


Mime
View raw message