--- a/candolint/handlers.py Thu Aug 25 11:41:31 2016 +0800
+++ b/candolint/handlers.py Thu Aug 25 18:59:48 2016 +0800
class StatusHandler(BaseHandler):
def get(self, domain, user, name):
project = get_project_or_404(domain, user, name)
- check = get_or_404(Check, project=project)
+ .select(*Check.get_light_fields())
+ .where(Check.project == project)
parts = [('#555', 30, 14.5, 'lint')]
+ if check is None or not check.success:
parts.append(('#777', 62, 30.5, 'unknown'))
elif check.errors or check.warnings: