Browse Source

Use user_rating instead of user

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

CURA-6013
Jaime van Kessel 6 years ago
parent
commit
30057e2fcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/Toolbox/src/PackagesModel.py

+ 1 - 1
plugins/Toolbox/src/PackagesModel.py

@@ -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.