예제 #1
0
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)
예제 #2
0
파일: games.py 프로젝트: jinzhuw/football
 def visiting_fullname(self):
     return teams.fullname(self.visiting)
예제 #3
0
파일: games.py 프로젝트: jinzhuw/football
 def home_fullname(self):
     return teams.fullname(self.home)
예제 #4
0
파일: entries.py 프로젝트: jinzhuw/football
 def team_fullname(self):
     return teams.fullname(self.team)