def get_game_history(self, request): """Return the guess history of given game.""" game = get_by_urlsafe(request.urlsafe_game_key, Game) if not game: raise endpoints.NotFoundException('Game not found!') histories = History.get_game_history(game) return HistoryForms(items=[h.to_form() for h in histories])