You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/08/17 06:52:42 UTC

[incubator-superset] branch master updated: fix multilayer viz backend error (#5649)

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 <yo...@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'):