Invidious is an alternative front-end to YouTube
Remove array from usage statistics
Omar Rothdaf8e5b8b6ba
diff --git a/src/invidious.cr b/src/invidious.crindex 70c62dbc..20bb703b 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -136,12 +136,10 @@ if config.statistics_enabled},"openRegistrations" => config.registration_enabled,"usage" => {- {- "users" => {- "total" => PG_DB.query_one("SELECT count(*) FROM users", as: Int64),- "activeHalfyear" => PG_DB.query_one("SELECT count(*) FROM users WHERE CURRENT_TIMESTAMP - updated < '6 months'", as: Int64),- "activeMonth" => PG_DB.query_one("SELECT count(*) FROM users WHERE CURRENT_TIMESTAMP - updated < '1 month'", as: Int64),- },+ "users" => {+ "total" => PG_DB.query_one("SELECT count(*) FROM users", as: Int64),+ "activeHalfyear" => PG_DB.query_one("SELECT count(*) FROM users WHERE CURRENT_TIMESTAMP - updated < '6 months'", as: Int64),+ "activeMonth" => PG_DB.query_one("SELECT count(*) FROM users WHERE CURRENT_TIMESTAMP - updated < '1 month'", as: Int64),},},"metadata" => {