def get_team_counts(week): picks = {} no_pick = 0 total = 0 for s in TeamStats.gql("WHERE week = :1", week): if s.team == -1: no_pick = s.count else: picks[teams.fullname(s.team)] = s.count total += s.count return (no_pick, picks, total)
def visiting_fullname(self): return teams.fullname(self.visiting)
def home_fullname(self): return teams.fullname(self.home)
def team_fullname(self): return teams.fullname(self.team)