Merge pull request #3872 from utkarshcmu/stats

Fixed dashboard_tag query
This commit is contained in:
Torkel Ödegaard
2016-01-28 08:15:16 -05:00

View File

@@ -71,7 +71,7 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error {
FROM ` + dialect.Quote("dashboard_snapshot") + `
) AS db_snapshot_count,
(
SELECT COUNT(*)
SELECT COUNT( DISTINCT ( ` + dialect.Quote("term") + ` ))
FROM ` + dialect.Quote("dashboard_tag") + `
) AS db_tag_count,
(