app module

Run the single-page web application with Flask.

app.add_entry()[source]

View that processes a POST request with new album input.

Returns

Redirect to index page if successful, else error page

app.favicon()[source]

Show pitchfork favicon in browser.

app.index()[source]

Main view that lists songs in the database.

Creates view into index page that uses data queried from Albums database and inserts it into the app/templates/index.html template.

Returns

Rendered HTML template for the SPA

app.predict_rating()[source]

Predict the rating for an input album given a POST form of input data.

Returns

Redirect to index page

app.search()[source]

Search for songs in the database.

Returns

Rendered HTML template of SPA with songs filtered