Skip to content

Commit 87acd9d

Browse files
author
Nick Shorter
committed
delete sport based divisions
1 parent 8f36945 commit 87acd9d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

matrix/sport/sportmatrix.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,7 @@ def __str__(self) -> str:
2222
return "SportMatrix"
2323
async def poll_api(self) -> SportFinal:
2424
return SportFinal(await self.api.run())
25-
26-
def baseball_divisions(self, standings: List[Dict]) -> Tuple[List[str], List[str]]:
27-
american_queue = deque(["American League"])
28-
national_queue = deque(["National League"])
29-
for team in standings:
30-
if team["league"] == "American League":
31-
american_queue.append(f"{team['position']}: {team['name']}")
32-
elif team["league"] == "National League":
33-
national_queue.append(f"{team['position']}: {team['name']}")
34-
return list(american_queue), list(national_queue)
35-
def basketball_divisions(self, standings: List[Dict]) -> Tuple[List[str], List[str]]:
36-
western_queue = deque(["Western Conference"])
37-
eastern_queue = deque(["Eastern Conference"])
38-
for team in standings:
39-
if team["league"] == "Western Conference":
40-
western_queue.append(f"{team['position']}: {team['name']}")
41-
elif team["league"] == "Eastern Conference":
42-
eastern_queue.append(f"{team['position']}: {team['name']}")
43-
return list(western_queue), list(eastern_queue)
25+
4426
def divisions(self, standings: List[Dict]) -> Tuple[List[str], List[str]]:
4527
leagues = {league['league']: [] for league in standings}
4628
for team in standings:

0 commit comments

Comments
 (0)