-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaders.py
28 lines (21 loc) · 1.07 KB
/
leaders.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## leaders.py ##################################################################
## output for top teams each season ############################################
################################################################################
from sys import argv
from outputs import *
if(__name__ == "__main__"):
leagueId = argv[1]
## ie 'watMu'
levelId = argv[2]
## ie 'beginner'
## ids needed to open the proper folders and csv files contained within
seasons = getAllSeasons(leagueId, levelId)
## retrieve list of seasons from the manifest for this level
print "################################################################################"
print "Season Leaders #################################################################"
print "################################################################################\n"
for season in seasons:
print season.seasonId
print season.getTeamByPosition(1).getDescriptionString()
print "Top Playoff Bracket: ", season.topPlayoffBracket, " %i" % len(season.topPlayoffBracket), "\n"
season.printPlayoffBrackets()