def get_user_scores(self,request):
     """Gets all User's scores"""
     user = User.query(User.name == request.user_name).get()
     if not user:
         raise endpoints.NotFoundException(
                 'A User with that name does not exist!')
     scores = Score.query(ndb.OR(Score.winner == user.key,
                                 Score.loser == user.key))
     return ScoreForms(items=[score.to_form() for score in scores])