def api_issue(issue_id): res = json.dumps(issue_aggregated(issue_id=issue_id, session=session), sort_keys=True, indent=4) return Response(res, mimetype='application/json')
def show_issue(issue_id): data = issue_aggregated(issue_id=issue_id, session=session) return render_template('issue.html', data=data, helper=helper, ourl='issue/show/%d.html' % issue_id)