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)
Beispiel #2
0
 def visiting_fullname(self):
     return teams.fullname(self.visiting)
Beispiel #3
0
 def home_fullname(self):
     return teams.fullname(self.home)
Beispiel #4
0
 def team_fullname(self):
     return teams.fullname(self.team)