Last active
March 31, 2016 05:08
-
-
Save robert8138/5a6749cfec39a991a122 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@webapp.route('/dbdisplay') | |
def display(): | |
return render_template("dbdisplay.html", | |
events = Events.query.all()) | |
@webapp.route('/dbdisplay/<event_type>') | |
def display_by_event_type(event_type): | |
return render_template("dbdisplay.html", | |
events = (Events.query | |
.filter_by(event_type = event_type) | |
.all())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment