def team(self, **kwargs): """ Get a team from its Hattrick ID If not ht_id is defined, return the primary team of connected user. :key ht_id: Hattrick ID of the requested team, must be an int :rtype: ht_team.HTTeam """ return ht_team.HTTeam(chpp=self, **kwargs)
def team(self): return ht_team.HTTeam(chpp=self._chpp, ht_id=self.team_ht_id)
def home_team(self): return ht_team.HTTeam(chpp=self._chpp, ht_id=self.home_team_id)
def away_team(self): return ht_team.HTTeam(chpp=self._chpp, ht_id=self.away_team_id)
def teams(self): """Teams list of current user""" return [ ht_team.HTTeam(chpp=self._chpp, ht_id=team_ht_id) for team_ht_id in self._teams_ht_id ]