Merge pull request #1832 from mark9064/patch-1

Fix engagement
This commit is contained in:
TheFrenchGhosty 2021-03-05 01:00:42 +01:00 committed by GitHub
commit 790167e914
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?