Skip to content

Instantly share code, notes, and snippets.

@Porter97
Last active March 3, 2020 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/62147da9115af2818b089e161df40cf7 to your computer and use it in GitHub Desktop.
Save Porter97/62147da9115af2818b089e161df40cf7 to your computer and use it in GitHub Desktop.
#...
@main.route('/user/<username>')
def user(username):
user = User.query.filter_by(username=username).first_or_404()
token = user.stream_user_token()
return render_template('user.html', user=user, token=token)
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment