fix: use nested opener_team object from scout_opportunity response
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m17s

The API returns opener_team as a full nested object, not an ID.
No need to fetch it separately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-09 10:47:42 -05:00
parent 5bed0f3164
commit 1e08545bd9

View File

@ -755,8 +755,8 @@ class Admins(commands.Cog):
)
return
# Fetch opener team
opener_team = await db_get(f"teams/{scout_opp['opener_team']}")
# Get opener team (API returns it as a nested object)
opener_team = scout_opp.get("opener_team")
if not opener_team:
await interaction.followup.send(
"Could not fetch opener team.", ephemeral=True