superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: fix multilayer viz backend error (#5649)
Date Fri, 17 Aug 2018 06:52:42 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin 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 97acfc7  fix multilayer viz backend error (#5649)
97acfc7 is described below

commit 97acfc7f17e6ca3350250aee2500f4f1cadade97
Author: Junda Yang <youngyjd@gmail.com>
AuthorDate: Thu Aug 16 23:52:39 2018 -0700

    fix multilayer viz backend error (#5649)
---
 superset/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/utils.py b/superset/utils.py
index ca28a5a..b158308 100644
--- a/superset/utils.py
+++ b/superset/utils.py
@@ -958,7 +958,7 @@ def convert_legacy_filters_into_adhoc(fd):
                 fd['adhoc_filters'].append(to_adhoc(fd, 'SQL', clause))
 
             if filters in fd:
-                for filt in fd[filters]:
+                for filt in filter(lambda x: x is not None, fd[filters]):
                     fd['adhoc_filters'].append(to_adhoc(filt, 'SIMPLE', clause))
 
     for key in ('filters', 'having', 'having_filters', 'where'):


Mime
View raw message