From 2a836c10009f1df6e280dd5a2f13d0a23af8e30e Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 23 Mar 2018 17:08:28 +0000 Subject: [PATCH] Add dummy Package.getMainScreenshotURL() function --- app/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models.py b/app/models.py index 4b16b046..e685e8f2 100644 --- a/app/models.py +++ b/app/models.py @@ -152,6 +152,9 @@ class Package(db.Model): type=self.type.toName(), author=self.author.username, name=self.name) + def getMainScreenshotURL(self): + return "/static/screenshot.png" + def getDownloadRelease(self): for rel in self.releases: if rel.approved: