mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:31:57 +00:00 
			
		
		
		
	Fix engagement
Engagement was calculated as 0-1 but displayed as a percentage
This commit is contained in:
		@@ -764,7 +764,7 @@ struct Video
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def engagement : Float64
 | 
			
		||||
    ((likes + dislikes) / views).round(4)
 | 
			
		||||
    (((likes + dislikes) / views) * 100).round(4)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def reason : String?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user