Skip to content

Commit

Permalink
Leave metrics empty if not specified (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu authored Jan 12, 2017
1 parent ff4020e commit 1dbfb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def query_obj(self):
"""Building a query object"""
form_data = self.form_data
groupby = form_data.get("groupby") or []
metrics = form_data.get("metrics") or ['count']
metrics = form_data.get("metrics") or []
extra_filters = self.get_extra_filters()
granularity = (
form_data.get("granularity") or form_data.get("granularity_sqla")
Expand Down

0 comments on commit 1dbfb99

Please sign in to comment.