Skip to content

Instantly share code, notes, and snippets.

@robert8138
Created March 19, 2016 22:59
Show Gist options
  • Save robert8138/a4e1b53d5a408a1efe43 to your computer and use it in GitHub Desktop.
Save robert8138/a4e1b53d5a408a1efe43 to your computer and use it in GitHub Desktop.
@webapp.route('/events/all', methods=['GET'])
def show_all_events():
db = sqlite3.connect("dim_events.sqlite3")
cur = db.execute('select * from dim_events')
rows = cur.fetchall()
return render_template('events.html', rows = rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment