コード例 #1
0
ファイル: api.py プロジェクト: Drew-Kimberly/fullstack
 def save_user(self, request):
     """Creates a new user profile if the sign in email does not exist in the system.
     Otherwise, updates the user profile's information if there is a change."""
     return UserHandler.do_user_profile(request)
コード例 #2
0
ファイル: api.py プロジェクト: Drew-Kimberly/fullstack
 def get_user(self, request):
     """Returns the current User profile."""
     return UserHandler.do_user_profile()
コード例 #3
0
ファイル: api.py プロジェクト: Drew-Kimberly/fullstack
 def get_user_rankings(self, request):
     """Returns a list of User Rankings, ordered by their total margin of victory."""
     return UserHandler.get_user_rankings(request)