[boardgames] Add raw data to scrobbles
All checks were successful
build & deploy / test (push) Successful in 1m45s
build & deploy / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-05-12 12:11:07 -04:00
parent a5510d7294
commit e707c94b70
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class BoardGameLogData(BaseLogData, LongPlayLogData):
board: Optional[str] = None
rounds: Optional[int] = None
details: Optional[str] = None
raw_data: Optional[dict] = None
_excluded_fields = {
"lichess_id",

View File

@ -528,6 +528,7 @@ def email_scrobble_board_game(
stop_timestamp = timestamp + timedelta(seconds=duration_seconds)
logger.info(f"Creating scrobble for {base_game} at {timestamp}")
log_data["raw_data"] = bgstat_data
scrobble_dict = {
"user_id": user_id,
"timestamp": timestamp,