Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix save parser test, and fix error in parsing old saves #124

Merged
merged 1 commit into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stellarisdashboard/parsing/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,8 @@ def extract_data_from_gamestate(self, dependencies: Dict[str, Any]):
self._update_council_agenda(countries_by_id, rulers_by_id)

def _update_council_positions(self, countries_by_id, leaders_by_id):
if "council_positions" not in self._gamestate_dict:
return
for cp_id, council_position in sorted(
self._gamestate_dict["council_positions"]["council_positions"].items()
):
Expand Down
2 changes: 1 addition & 1 deletion test/parser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_real_save():
# Test a real save end to end
from stellarisdashboard import cli, config
from pathlib import Path

config.CONFIG.debug_mode = True
output_db = Path(
f"{config.CONFIG.base_output_path}/db/nexitronawareness_1329922464.db"
)
Expand Down
Loading