def get(self, title): issue = Issue.get_by_id(title) if not issue: helpers.make_not_found_exception('Issue %s not found' % title) if len(issue.summary) == 0: parser = Parser() parser.parse_issue_summary(issue) return flask.jsonify({ 'result': issue.summary, 'status': 'success', })
def get(self, title): issue = Issue.get_by_id(title) if not issue: helpers.make_not_found_exception('Issue %s not found' % title) return flask.redirect(issue.image)
def get(self, title): issue = Issue.get_by_id(title) if not issue: helpers.make_not_found_exception('Issue %s not found' % title) app.logger.info("issue found: %s" % title) return helpers.make_response(issue, model.Issue.FIELDS)