Beispiel #1
0
 def get_details(self):
     self.teams_list = []
     for u in self.usernames:
         t = Team(u, use_tid=u.isdigit())
         # Adds missing fields
         t.team_data['username'] = self.users[u]['username']
         t.team_data['teamCurrency'] = t.currency
         t.team_data['countryShortname'] = (self.users[u]
                                            ['countryShortname'].lower())
         self.teams_list.append(t)
Beispiel #2
0
 def get_details(self):
     self.teams_list = []
     for i in self.standings:
         t = Team(i['teamId'], use_tid=True)
         t.team_data['teamCurrency'] = t.currency
         self.teams_list.append(t)