Skip to content

Commit

Permalink
fix empty metrics
Browse files Browse the repository at this point in the history
(cherry picked from commit 95bb175)
  • Loading branch information
timifasubaa authored and michellethomas committed Jun 14, 2018
1 parent 0434526 commit cb9d30d
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 @@ -555,7 +555,7 @@ def get_data(self, df):
m_name = '%' + m
df[m_name] = pd.Series(metric_percents[m], name=m_name)
# Remove metrics that are not in the main metrics list
metrics = fd.get('metrics', [])
metrics = fd.get('metrics') or []
metrics = [self.get_metric_label(m) for m in metrics]
for m in filter(
lambda m: m not in metrics and m in df.columns,
Expand Down

0 comments on commit cb9d30d

Please sign in to comment.