Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed May 14, 2018
1 parent 7dd0ac9 commit 3d35544
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ def process_metrics(self):
val = [val]
for o in val:
self.metric_dict[self.get_metric_label(o)] = o
self.all_metrics = self.metric_dict.values()
self.metric_labels = self.metric_dict.keys()

# Cast to list needed to return serializable object in py3
self.all_metrics = list(self.metric_dict.values())
self.metric_labels = list(self.metric_dict.keys())

def get_metric_label(self, metric):
if isinstance(metric, string_types):
Expand Down

0 comments on commit 3d35544

Please sign in to comment.