Removed the rating from the download grid

It felt a bit weird to already have it in the grid layout

CURA-6013
This commit is contained in:
Jaime van Kessel 2018-12-07 17:28:42 +01:00
parent 50099ab753
commit e92bd01fb2
2 changed files with 67 additions and 47 deletions

View file

@ -105,7 +105,7 @@ class PackagesModel(ListModel):
"links": links_dict,
"website": package["website"] if "website" in package else None,
"login_required": "login-required" in package.get("tags", []),
"average_rating": package.get("rating", {}).get("average", 0),
"average_rating": float(package.get("rating", {}).get("average", 0)),
"num_ratings": package.get("rating", {}).get("count", 0),
"user_rating": package.get("rating", {}).get("user", 0)
})