Fix capitalisation in API

This commit is contained in:
rubenwardy 2018-11-25 13:21:24 +00:00
parent 8ca3437689
commit e5b279d013

@ -393,7 +393,7 @@ class Package(db.Model):
"name": self.name,
"title": self.title,
"author": self.author.display_name,
"shortDesc": self.shortDesc,
"short_description": self.shortDesc,
"type": self.type.toName(),
"release": self.getDownloadRelease().id if self.getDownloadRelease() is not None else None,
"thumbnail": (base_url + tnurl) if tnurl is not None else None,
@ -406,17 +406,17 @@ class Package(db.Model):
"author": self.author.display_name,
"name": self.name,
"title": self.title,
"shortDesc": self.shortDesc,
"short_descriptionesc": self.shortDesc,
"desc": self.desc,
"type": self.type.toName(),
"createdAt": self.created_at,
"created_at": self.created_at,
"license": self.license.name,
"mediaLicense": self.media_license.name,
"media_license": self.media_license.name,
"repo": self.repo,
"website": self.website,
"issueTracker": self.issueTracker,
"issue_tracker": self.issueTracker,
"forums": self.forums,
"provides": [x.name for x in self.provides],