Beispiel #1
0
def index():
    # use d3.scale.quantile()
    # https://github.com/mbostock/d3/wiki/Quantitative-Scales#quantile
    reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph()
    json_reviewers = json.dumps(dict_reviewers)
    return render_template('index.html',
                           title='Home',
                           json_reviewers=json_reviewers,
                           reviewers=dict_reviewers)
Beispiel #2
0
def index():
    # use d3.scale.quantile()
    # https://github.com/mbostock/d3/wiki/Quantitative-Scales#quantile
    reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph()
    json_reviewers = json.dumps(dict_reviewers)
    return render_template('index.html',
                           title='Home',
                           json_reviewers=json_reviewers,
                           reviewers=dict_reviewers)
Beispiel #3
0
def get_reviewer_list():
    reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph()
    json_reviewers = json.dumps(dict_reviewers)
    return jsonify(dict_reviewers)
Beispiel #4
0
def get_reviewer_list():
    reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph()
    json_reviewers = json.dumps(dict_reviewers)
    return jsonify(dict_reviewers)