Skip to content

Commit

Permalink
Fix countryless leader died event (#179)
Browse files Browse the repository at this point in the history
* Fix processing leader_died event for leaders with no country

* Bump version to 6.5.2
  • Loading branch information
MichaelMakesGames authored Dec 19, 2024
1 parent 8d9d7ea commit b29d3e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/stellaris_dashboard/descriptor.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name="Stellaris Dashboard"
version="v6.5.1"
version="v6.5.2"
tags={
"Utilities"
"Gameplay"
Expand Down
2 changes: 1 addition & 1 deletion mod/stellaris_dashboard/interface/main_bottom.gui
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ guiTypes = {
pdx_tooltip = "STELLARIS_DASHBOARD_TOOLTIP"
pdx_tooltip_anchor_offset = { x= 0 y = @tt_offset_y }
pdx_tooltip_anchor_orientation = lower_left
web_link="http://127.0.0.1:28053/checkversion/v6.5.1"
web_link="http://127.0.0.1:28053/checkversion/v6.5.2"
}

iconType = {
Expand Down
2 changes: 1 addition & 1 deletion stellarisdashboard/dashboard_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

logger = logging.getLogger(__name__)

VERSION = "v6.5.1"
VERSION = "v6.5.2"


def parse_version(version: str):
Expand Down
2 changes: 1 addition & 1 deletion stellarisdashboard/parsing/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ def _check_known_leaders(self, db_active_leaders: Dict[int, datamodel.Leader]):
country = self._countries_by_ingame_id.get(leader_dict.get("country"))
self._update_leader_attributes(country=country, leader=leader, leader_dict=leader_dict)
if not leader.is_active:
country_data = leader.country.get_most_recent_data()
country_data = leader.country.get_most_recent_data() if leader.country is not None else None
self._session.add(
datamodel.HistoricalEvent(
event_type=datamodel.HistoricalEventType.leader_died,
Expand Down

0 comments on commit b29d3e4

Please sign in to comment.