From 58c35d349e258a825a4812b9b862229dba8c168b Mon Sep 17 00:00:00 2001 From: insert Date: Mon, 23 Jun 2025 06:55:43 -0400 Subject: [PATCH] chore: fetch season 2 information --- cogs/team.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/team.py b/cogs/team.py index f2db317..9152f51 100644 --- a/cogs/team.py +++ b/cogs/team.py @@ -216,7 +216,7 @@ class TeamView(nextcord.ui.View): embed = ogmsg[0] teamid = embed.footer.text data = requests.get(f"https://mmolb.com/api/team/{teamid}").json() - history = requests.get(f"https://freecashe.ws/api/games?team={teamid}&season=1").json()["items"] + history = requests.get(f"https://freecashe.ws/api/games?team={teamid}&season=2").json()["items"] color = tuple(int(data["Color"][i:i+2], 16) for i in (0, 2, 4)) embed = nextcord.Embed(title=f"Last ten games for the {data["Location"]} {data["Name"]} {data["Emoji"]}", colour = nextcord.Color.from_rgb(color[0], color[1], color[2])) embed.set_footer(text=teamid) @@ -319,7 +319,7 @@ class team(commands.Cog): await interaction.response.defer() teamid = teams_dict[team] data = requests.get(f"https://mmolb.com/api/team/{teamid}").json() - history = requests.get(f"https://freecashe.ws/api/games?team={teamid}&season=1").json()["items"] + history = requests.get(f"https://freecashe.ws/api/games?team={teamid}&season=2").json()["items"] color = tuple(int(data["Color"][i:i+2], 16) for i in (0, 2, 4)) embed = nextcord.Embed(title=f"Last ten games for the {data["Location"]} {data["Name"]} {data["Emoji"]}", colour = nextcord.Color.from_rgb(color[0], color[1], color[2])) embed.set_footer(text=teamid)