diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-03-01 21:03:57 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-03-01 21:03:57 -0600 |
| commit | daf8e5b8b6baa075508fe39a940afec44e4f5a71 (patch) | |
| tree | 8385c7b3453fce91312e7c6f6d54e2cdaae205be /src | |
| parent | 25bd27ef951614ca8504bb33ae062b7d33bbbd22 (diff) | |
| download | invidious-daf8e5b8b6baa075508fe39a940afec44e4f5a71.tar.gz invidious-daf8e5b8b6baa075508fe39a940afec44e4f5a71.tar.bz2 invidious-daf8e5b8b6baa075508fe39a940afec44e4f5a71.zip | |
Remove array from usage statistics
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 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" => { |
