Skip to content

Commit

Permalink
viz: simplify code in BaseViz.query_obj
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Sep 17, 2017
1 parent d6ddccb commit 6c94e2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,11 @@ def query_obj(self):
extras = {
'where': form_data.get("where", ''),
'having': form_data.get("having", ''),
'having_druid': form_data.get('having_filters') \
if 'having_filters' in form_data else [],
'having_druid': form_data.get('having_filters', []),
'time_grain_sqla': form_data.get("time_grain_sqla", ''),
'druid_time_origin': form_data.get("druid_time_origin", ''),
}
filters = form_data['filters'] if 'filters' in form_data \
else []
filters = form_data.get('filters', [])
for col, vals in self.get_extra_filters().items():
if not (col and vals) or col.startswith('__'):
continue
Expand Down

0 comments on commit 6c94e2c

Please sign in to comment.