mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix review rating
This commit is contained in:
parent
b1bd39c0fc
commit
1b1955f052
@ -213,7 +213,7 @@ class PackageReview(db.Model):
|
||||
return ret
|
||||
|
||||
def asWeight(self):
|
||||
return 2.0 * self.rating / 5.0 - 1
|
||||
return 2.0 * (self.rating - 1) / 4.0 - 1
|
||||
|
||||
def getEditURL(self):
|
||||
return self.package.getURL("packages.review")
|
||||
|
Loading…
Reference in New Issue
Block a user