Exemple #1
0
    def __init__(self, game):
        home_team_dto = TeamDTO.get_dto(game.home_team)
        away_team_dto = TeamDTO.get_dto(game.away_team)
        game_rules_dto = GameRulesDTO.get_dto(game.rules)

        Game.__init__(self, game.year, game.day, home_team_dto, away_team_dto,
                      game.home_score, game.away_score, game.complete,
                      game.processed, game_rules_dto, game.oid)
Exemple #2
0
    def __init__(self,
                 competition,
                 sub_competition,
                 day,
                 home_team,
                 away_team,
                 home_score,
                 away_score,
                 complete,
                 game_processed,
                 rules,
                 oid=None):
        self.sub_competition = sub_competition
        self.competition = competition

        Game.__init__(self, competition.year, day, home_team, away_team,
                      home_score, away_score, complete, game_processed, rules,
                      oid)