fix missing game_files generation

This commit is contained in:
NoeBerdoz
2025-04-13 03:38:42 +02:00
parent f399b6dac4
commit 06c516b615
2 changed files with 11 additions and 2 deletions

5
app.py
View File

@ -8,6 +8,7 @@ from dto.requests import GameStartRequestDTO, GameDecisionRequestDTO
from dto.responses import GameStartResponseWithBotDecisionDTO, GameDecisionResponseWithBotDecisionDTO
from services.julius_baer_api_client import JuliusBaerApiClient
from services.advisor import Advisor
from utils.storage.game_files_manager import store_game_round_data
app = Flask(__name__)
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - [%(module)s] - %(message)s')
@ -32,6 +33,8 @@ def new_game():
bot_reason=bot_decision.reason,
)
store_game_round_data(bot_decision.answer, res_with_bot_decision, res.score, str(res.session_id), 'active')
return res_with_bot_decision.model_dump_json()
@ -57,6 +60,8 @@ def next_client():
bot_reason=bot_decision.reason,
)
store_game_round_data(bot_decision.answer, res_with_bot_decision, res.score, str(session_id), res.status)
return res_with_bot_decision.model_dump_json()