mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Remove array from usage statistics
This commit is contained in:
parent
25bd27ef95
commit
daf8e5b8b6
1 changed files with 4 additions and 6 deletions
|
@ -136,12 +136,10 @@ if config.statistics_enabled
|
||||||
},
|
},
|
||||||
"openRegistrations" => config.registration_enabled,
|
"openRegistrations" => config.registration_enabled,
|
||||||
"usage" => {
|
"usage" => {
|
||||||
{
|
"users" => {
|
||||||
"users" => {
|
"total" => PG_DB.query_one("SELECT count(*) FROM users", as: Int64),
|
||||||
"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),
|
||||||
"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),
|
||||||
"activeMonth" => PG_DB.query_one("SELECT count(*) FROM users WHERE CURRENT_TIMESTAMP - updated < '1 month'", as: Int64),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"metadata" => {
|
"metadata" => {
|
||||||
|
|
Loading…
Reference in a new issue