Ejemplo n.º 1
0
 def load_week_data(self, year, week_number):
     data = WeekData()
     data.week = self.__get_week_in_database(year, week_number)
     data.games = self.__get_week_games_in_database_indexed_by_game_number(
         year, week_number)
     data.games_id = self.__get_week_games_in_database_indexed_by_id(
         year, week_number)
     data.picks = self.__get_week_picks_in_database(data.week)
     data.player_picks = self.__get_player_week_picks_in_database(
         data.picks)
     data.players = self.load_players(year)
     data.teams = self.load_teams()
     return data
Ejemplo n.º 2
0
 def load_week_data(self, year, week_number):
     data = WeekData()
     data.week = self.__get_week_in_database(year, week_number)
     data.games = self.__get_week_games_in_database_indexed_by_game_number(year, week_number)
     data.games_id = self.__get_week_games_in_database_indexed_by_id(year, week_number)
     data.picks = self.__get_week_picks_in_database(data.week)
     data.player_picks = self.__get_player_week_picks_in_database(data.picks)
     data.players = self.load_players(year)
     data.teams = self.load_teams()
     return data
Ejemplo n.º 3
0
 def __get_week_state(self, year, week_number):
     week_data = WeekData()
     week_data.games = self.__get_week_games_in_database_indexed_by_game_number(year, week_number)
     calc = CalculateResults(week_data)
     return calc.get_summary_state_of_all_games()
Ejemplo n.º 4
0
 def __get_week_state(self, year, week_number):
     week_data = WeekData()
     week_data.games = self.__get_week_games_in_database_indexed_by_game_number(
         year, week_number)
     calc = CalculateResults(week_data)
     return calc.get_summary_state_of_all_games()