[boardgames] Add raw data to scrobbles
This commit is contained in:
@ -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",
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user