Use user_rating instead of user

In the end it was implemented as user_rating (and not as user)

CURA-6013
This commit is contained in:
Jaime van Kessel 2018-12-11 13:49:45 +01:00
parent 4baf0d1bdb
commit 30057e2fcd

View file

@ -107,7 +107,7 @@ class PackagesModel(ListModel):
"login_required": "login-required" in package.get("tags", []),
"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)
"user_rating": package.get("rating", {}).get("user_rating", 0)
})
# Filter on all the key-word arguments.