Add downloads to package JSON

This commit is contained in:
rubenwardy 2020-08-02 17:10:47 +01:00
parent e931d6a88b
commit ce034fddd4
1 changed files with 2 additions and 1 deletions

View File

@ -630,7 +630,8 @@ class Package(db.Model):
"url": base_url + self.getDownloadURL(),
"release": release and release.id,
"score": round(self.score * 10) / 10
"score": round(self.score * 10) / 10,
"downloads": self.downloads
}
def getThumbnailURL(self, level=2):