Merge branch 'main' into ai/paper-dynasty-database-79
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m31s

This commit is contained in:
Claude 2026-03-23 03:54:12 +00:00
commit 791b991538

View File

@ -11,7 +11,7 @@ import logging
import discord
from api_calls import db_get, db_patch, db_post
from api_calls import db_get, db_post
from helpers.main import get_team_by_owner, get_card_embeds
from helpers.scouting import (
SCOUT_TOKEN_COST,
@ -340,9 +340,7 @@ class BuyScoutTokenView(discord.ui.View):
# Deduct currency
new_wallet = team["wallet"] - SCOUT_TOKEN_COST
try:
await db_patch(
"teams", object_id=team["id"], params=[("wallet", new_wallet)]
)
await db_post(f'teams/{team["id"]}/money/-{SCOUT_TOKEN_COST}')
except Exception as e:
logger.error(f"Failed to deduct scout token cost: {e}")
await interaction.response.edit_message(