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/906967dad7514f3e2e5f0f88e81bf91d to your computer and use it in GitHub Desktop.
Save Porter97/906967dad7514f3e2e5f0f88e81bf91d to your computer and use it in GitHub Desktop.
#...
@main.route('/collection/<int:id>', methods=['GET'])
@login_required
def get_collection(id):
collection = Collection.query.get_or_404(id)
token = collection.author.stream_user_token()
return render_template('collection.html', collection=collection, token=token)
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment