--- a/candolint/handlers.py Sat Jul 01 00:27:05 2017 +0800
+++ b/candolint/handlers.py Sat Jul 22 12:35:06 2017 +0800
class StatusHandler(BaseHandler):
def get(self, domain, user, name):
project = get_project_or_404(domain, user, name)
.select(*Check.get_light_fields())
- .where(Check.project == project)
+ .where(Check.project == project))
+ branch = self.get_argument('branch', None)
+ checks = checks.join(Change).where(Change.branch == branch)
parts = [('#555', 30, 14.5, 'lint')]
if check is None or not check.success:
parts.append(('#777', 62, 30.5, 'unknown'))