Add downloads to package JSON
This commit is contained in:
parent
e931d6a88b
commit
ce034fddd4
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue