Use metric name instead of metric in filter box (#7106)

This commit is contained in:
michellethomas
2019-03-25 09:57:39 -07:00
committed by GitHub
parent b3c4bd95ef
commit 003364e74e

View File

@@ -1825,7 +1825,10 @@ class FilterBoxViz(BaseViz):
metric = flt.get('metric')
df = self.dataframes.get(col)
if metric:
df = df.sort_values(metric, ascending=flt.get('asc'))
df = df.sort_values(
utils.get_metric_name(metric),
ascending=flt.get('asc'),
)
d[col] = [{
'id': row[0],
'text': row[0],