Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 11, 2018
1 parent eeddaf1 commit 67ebf7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/connectors/sqla/models.py
Expand Up @@ -193,7 +193,7 @@ def get_metrics(self):
metric_type='count_distinct',
expression='COUNT(DISTINCT {})'.format(quoted),
))
return {m.metric_name: m for m in metrics}
return {m.metric_name: m for m in metrics}


class SqlMetric(Model, BaseMetric):
Expand Down Expand Up @@ -747,7 +747,7 @@ def fetch_metadata(self):
self.columns.append(dbcol)
if not any_date_col and dbcol.is_time:
any_date_col = col.name
metrics += col.get_metrics.values()
metrics += dbcol.get_metrics().values()

metrics.append(M(
metric_name='count',
Expand Down

0 comments on commit 67ebf7e

Please sign in to comment.