diff --git a/app/models.py b/app/models.py index 66aa0f42..71b5a258 100644 --- a/app/models.py +++ b/app/models.py @@ -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],