Commit 79e7ae44 by Anthony Woods

fix sql query in GetAdminStats. fixes #3883

parent 64fa9a63
...@@ -83,7 +83,7 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error { ...@@ -83,7 +83,7 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error {
FROM ` + dialect.Quote("playlist") + ` FROM ` + dialect.Quote("playlist") + `
) AS playlist_count, ) AS playlist_count,
( (
SELECT COUNT (DISTINCT ` + dialect.Quote("dashboard_id") + ` ) SELECT COUNT(DISTINCT ` + dialect.Quote("dashboard_id") + ` )
FROM ` + dialect.Quote("star") + ` FROM ` + dialect.Quote("star") + `
) AS starred_db_count, ) AS starred_db_count,
( (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment