fix: use nested opener_team object from scout_opportunity response
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m17s
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:
parent
5bed0f3164
commit
1e08545bd9
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user