Skip to content

Commit

Permalink
fix multilayer viz backend error (apache#5649)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyjd authored and mistercrunch committed Aug 17, 2018
1 parent 8a9a7da commit bf981f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit bf981f3

Please sign in to comment.