Example #1
0
def combined_reviews():
    pitchfork_reviews = PitchforkReviews.get_all_reviews()
    metacritic_reviews = MetacriticReviews.get_all_reviews()
    return render_template('combined reviews.html',
                           title='Combined reviews',
                           pitchfork=pitchfork_reviews,
                           metacritic=metacritic_reviews)
Example #2
0
def combined_reviews():
    pitchfork_reviews = PitchforkReviews.get_all_reviews()
    metacritic_reviews = MetacriticReviews.get_all_reviews()
    return render_template('combined reviews.html',
                           title='Combined reviews',
                           pitchfork=pitchfork_reviews,
                           metacritic=metacritic_reviews)
Example #3
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)
Example #4
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)
Example #5
0
def pitchfork_search():
    form = PitchforkSearch()
    if form.validate_on_submit():
        reviews = PitchforkReviews.get_reviews_from_criteria(form)
        g.standalone = True  # use this to skip the header for all reviews in the template
        return render_template('pitchfork.html',
                               title='Search results',
                               reviews=reviews)
    return render_template('pitchfork search.html', title='Search', form=form)
Example #6
0
def pitchfork_search():
    form = PitchforkSearch()
    if form.validate_on_submit():
        reviews = PitchforkReviews.get_reviews_from_criteria(form)
        g.standalone = True  # use this to skip the header for all reviews in the template
        return render_template('pitchfork.html',
                               title='Search results',
                               reviews=reviews)
    return render_template('pitchfork search.html',
                           title='Search',
                           form=form)
Example #7
0
def pitchfork():
    reviews = PitchforkReviews.get_all_reviews()
    return render_template('pitchfork.html',
                           title='Pitchfork reviews',
                           reviews=reviews)
Example #8
0
def best_new_music():
    reviews = PitchforkReviews.get_best_new_music()
    return render_template('best new music.html',
                           title='Best New Music',
                           reviews=reviews)
Example #9
0
def get_reviewer_list():
    reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph()
    json_reviewers = json.dumps(dict_reviewers)
    return jsonify(dict_reviewers)
Example #10
0
def pitchfork():
    reviews = PitchforkReviews.get_all_reviews()
    return render_template('pitchfork.html',
                           title='Pitchfork reviews',
                           reviews=reviews)
Example #11
0
def best_new_music():
    reviews = PitchforkReviews.get_best_new_music()
    return render_template('best new music.html',
                           title='Best New Music',
                           reviews=reviews)
Example #12
0
def get_reviewer_list():
    reviewers, dict_reviewers = PitchforkReviews.get_reviewers_graph()
    json_reviewers = json.dumps(dict_reviewers)
    return jsonify(dict_reviewers)