Last active
December 9, 2018 09:03
-
-
Save jeffchiucp/2e6be05819f2e2f21c66a17651d28c28 to your computer and use it in GitHub Desktop.
get_arrangements.py
This file contains 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
# @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