Fixed dashboard_tag query

This commit is contained in:
utkarshcmu 2016-01-27 17:41:23 -08:00
parent 6c4791b48d
commit 8bd07287f8

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,
(