--- a/candolint/handlers.py Tue Jul 05 17:45:29 2016 +0800
+++ b/candolint/handlers.py Tue Jul 05 20:42:35 2016 +0800
check = get_or_404(Check, project=project, ordinal=check_num)
lines = json_decode(check.lines)
- self.set_header('Content-Type', 'text/plain; charset=utf-8')
- self.write(line['text'])
+ self.get_raw(project, check, lines)
- self.render('check.html', project=project, check=check, lines=lines)
+ self.get_html(project, check, lines)
+ def get_raw(self, project, check, lines):
+ self.set_header('Content-Type', 'text/plain; charset=utf-8')
+ self.write(line['text'])
+ def get_html(self, project, check, lines):
+ self.render('check.html', project=project, check=check, lines=lines)
class StatusHandler(BaseHandler):