Fix engagement

Engagement was calculated as 0-1 but displayed as a percentage
This commit is contained in:
mark9064 2021-02-28 11:59:46 +00:00 committed by GitHub
parent 489d0151ad
commit 9ae18b0b3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?