mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:08:31 -06:00 
			
		
		
		
	Remove array from usage statistics
(preferences) fix word wrap
This commit is contained in:
		
							parent
							
								
									25bd27ef95
								
							
						
					
					
						commit
						d4833c4bc3
					
				@ -339,3 +339,7 @@ img.thumbnail {
 | 
			
		||||
  margin-top: 0.5em;
 | 
			
		||||
  margin-bottom: 0.5em;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pure-control-group label {
 | 
			
		||||
    width: 10.6em; /* Enlarged width for long words, is needed for RU translation. */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -136,14 +136,12 @@ 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),
 | 
			
		||||
          },
 | 
			
		||||
        },
 | 
			
		||||
        },
 | 
			
		||||
        "metadata" => {
 | 
			
		||||
          "updatedAt"              => Time.now.to_unix,
 | 
			
		||||
          "lastChannelRefreshedAt" => PG_DB.query_one?("SELECT updated FROM channels ORDER BY updated DESC LIMIT 1", as: Time).try &.to_unix || 0,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user