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)
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)
def get_reviewer_list(): reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph() json_reviewers = json.dumps(dict_reviewers) return jsonify(dict_reviewers)
def get_reviewer_list(): reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph() json_reviewers = json.dumps(dict_reviewers) return jsonify(dict_reviewers)