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
All checks were successful
Build Docker Image / build (push) Successful in 48s
Reviewed-on: #78
This commit is contained in:
commit
4faa893cd0
@ -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