Skip to content

Instantly share code, notes, and snippets.

@jeffchiucp
Last active December 9, 2018 09:03
Show Gist options
  • Save jeffchiucp/2e6be05819f2e2f21c66a17651d28c28 to your computer and use it in GitHub Desktop.
Save jeffchiucp/2e6be05819f2e2f21c66a17651d28c28 to your computer and use it in GitHub Desktop.
get_arrangements.py
# @logged_in_required():
@app.route('/arrangement', method=['GET'])
def arrangements():
"""
return all relevant arrangement belong to specific user
"""
user = get_current_user # define user using google api and return google_id as user
arrangements = get_arrangements(user) # define all arrangements that is associable with user_id belonged to google_id
return get_arrangement_titles_and_id(arrangements) # strip out the title and id of those arrangements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment