feat: capture rcon session gamestate fields

This commit is contained in:
devRaGonSa
2026-05-19 11:58:47 +02:00
parent 9baf20b569
commit e2aaafaca2
3 changed files with 31 additions and 12 deletions

View File

@@ -59,11 +59,8 @@ def list_rcon_historical_recent_activity(
"name": item.get("map_name"),
"pretty_name": normalize_map_name(item.get("map_pretty_name") or item.get("map_name")),
},
"result": {
"allied_score": None,
"axis_score": None,
"winner": None,
},
"result": _build_rcon_result(item.get("latest_payload")),
"gamestate": _build_rcon_gamestate(item.get("latest_payload")),
"player_count": int(round(float(item.get("average_players") or 0))),
"peak_players": item.get("peak_players"),
"sample_count": item.get("sample_count"),
@@ -100,6 +97,8 @@ def describe_rcon_historical_read_model() -> dict[str, object]:
"server_summary": "exact",
"recent_matches": "approximate",
"competitive_quality": "partial",
"result": "session-score",
"gamestate": "session",
"player_stats": "unavailable",
},
"limitations": [
@@ -155,11 +154,8 @@ def get_rcon_historical_match_detail(
"name": item.get("map_name"),
"pretty_name": normalize_map_name(item.get("map_pretty_name") or item.get("map_name")),
},
"result": {
"allied_score": None,
"axis_score": None,
"winner": None,
},
"result": _build_rcon_result(item.get("latest_payload")),
"gamestate": _build_rcon_gamestate(item.get("latest_payload")),
"player_count": int(round(float(item.get("average_players") or 0))),
"peak_players": item.get("peak_players"),
"sample_count": item.get("sample_count"),