This commit is contained in:
NotSoToothless
2026-06-18 02:39:21 -07:00
committed by GitHub
parent 32e747212f
commit d490c1c8d5
4 changed files with 41 additions and 11 deletions
+2 -2
View File
@@ -164,10 +164,10 @@ async def _handle_game(game: Dict[str, Any]) -> None:
await insert_match(game)
await insert_player_games(game)
await upsert_tss_teams(game)
from BOT.match_logs import build_match_logs, upsert_match_logs
from BOT.match_logs import build_event_log, build_match_logs, upsert_match_logs
from BOT.storage import TSS_BATTLES_DB_PATH
chat_log, battle_log = build_match_logs(game)
await upsert_match_logs(TSS_BATTLES_DB_PATH, sid, chat_log, battle_log)
await upsert_match_logs(TSS_BATTLES_DB_PATH, sid, chat_log, battle_log, build_event_log(game))
log.info("Stored game %s in DB", sid)
except Exception as exc:
log.error("DB insert failed for %s: %s", sid, exc)