Merge pull request 'fix: remove db_patch call — no PATCH endpoint for scout_opportunities' (#78) from fix/scout-reward-week into main
All checks were successful
Build Docker Image / build (push) Successful in 48s

Reviewed-on: #78
This commit is contained in:
cal 2026-03-09 15:58:02 +00:00
commit 4faa893cd0

View File

@ -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
)