mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Remove array from usage statistics
This commit is contained in:
		| @@ -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" => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth