fix: remove db_patch call — no PATCH endpoint for scout_opportunities
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m12s
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m12s
The database API only has GET/POST/DELETE for scout_opportunities. The expires_at update is non-critical — the view timeout controls the actual scout window. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1e08545bd9
commit
98ec6b2e58
@ -777,15 +777,6 @@ class Admins(commands.Cog):
|
||||
now = datetime.datetime.now()
|
||||
expires_dt = now + datetime.timedelta(minutes=minutes)
|
||||
expires_unix = int(expires_dt.timestamp())
|
||||
expires_at_ms = int_timestamp(expires_dt)
|
||||
|
||||
# Update the scout opportunity's expires_at in the database
|
||||
await db_patch(
|
||||
"scout_opportunities",
|
||||
scout_opp_id,
|
||||
params=[("expires_at", expires_at_ms)],
|
||||
)
|
||||
|
||||
embed, card_lines = build_scout_embed(
|
||||
opener_team, cards, expires_unix=expires_unix
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user