Added aggregate ratings to app object

Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
This commit is contained in:
Domenico Iezzi 2017-09-18 19:29:16 +02:00
parent 83207aa799
commit 174c01b63d

View File

@ -32,6 +32,17 @@ def fromDocToDictionary(app):
} for f in app.details.appDetails.file], } for f in app.details.appDetails.file],
"unstable": app.details.appDetails.unstable, "unstable": app.details.appDetails.unstable,
"containsAds": app.details.appDetails.containsAds, "containsAds": app.details.appDetails.containsAds,
"aggregateRating": {
"type": app.aggregateRating.type,
"starRating": app.aggregateRating.starRating,
"ratingsCount": app.aggregateRating.ratingsCount,
"oneStarRatings": app.aggregateRating.oneStarRatings,
"twoStarRatings": app.aggregateRating.twoStarRatings,
"threeStarRatings": app.aggregateRating.threeStarRatings,
"fourStarRatings": app.aggregateRating.fourStarRatings,
"fiveStarRatings": app.aggregateRating.fiveStarRatings,
"commentCount": app.aggregateRating.commentCount
},
"dependencies": [{ "dependencies": [{
"packageName": d.packageName, "packageName": d.packageName,
"version": d.version "version": d.version