Don't consider neutral reviews to be positive

This commit is contained in:
rubenwardy
2023-04-15 20:06:24 +01:00
parent c9e8df7f5b
commit a97da15359
3 changed files with 4 additions and 4 deletions

View File

@@ -194,7 +194,7 @@ class PackageReview(db.Model):
def getAsDictionary(self, include_package=False):
pos, neg, _user = self.get_totals()
ret = {
"is_positive": self.rating >= 3,
"is_positive": self.rating > 3,
"rating": self.rating,
"user": {
"username": self.author.username,