示例#1
0
 def __init__(self, usernames):
     self.usernames = usernames
     self.users = {}
     for u in reversed(self.usernames):
         mp = ManagerParser(u, use_tid=u.isdigit())
         self.user_data, self.team_data = mp.read_manager_data()
         self.users[u] = self.user_data
示例#2
0
 def __init__(self, user, use_tid=False):
     mp = ManagerParser(user, use_tid)
     self.user_data, self.team_data = mp.read_manager_data()
     pp = PlayersParser(self.team_data['teamId'])
     self.seniors = pp.read_players_data()
     self.currency = pp.read_currency()
     if not self.currency:
         self.currency = "USD"
     # Fix error of series with bot teams.
     if not 'countryShortname' in self.user_data:
         self.user_data[u'countryShortname'] = pp.read_country().upper()
         self.team_data[u'teamName'] = pp.read_team_name()
     self.juniors = []
示例#3
0
 def __init__(self, user):
     mp = ManagerParser(user, use_tid=user.isdigit())
     self.user_data, self.team_data = mp.read_manager_data()
     ll = SeriesParser(self.team_data['seriesId'])
     self.standings = ll.read_series_data()