Skip to content

Commit

Permalink
Merge branch 'hotfix/3.6.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
aussig committed Apr 7, 2024
2 parents cdbf144 + 10039a4 commit 80cf035
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## v3.6.1 - 2024-04-07

### Bug Fixes:

* For some CMDRS, TW system and station data was omitted for some systems.


## v3.6.0 - 2024-03-23

### New Features:
Expand Down
9 changes: 0 additions & 9 deletions bgstally/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,15 +1244,8 @@ def _generate_tw_system_text(self, system: dict, discord: bool):
# Force plain text if we are not posting to Discord
fp:bool = not discord

# system_tw_enabled defaults to True. Set to False if any faction is disabled in the system
system_tw_enabled:bool = True

# Faction-specific tally
for faction in system['Factions'].values():
if faction['Enabled'] != CheckStates.STATE_ON:
system_tw_enabled = False
continue

for station_name in faction.get('TWStations', {}):
faction_station = faction['TWStations'][station_name]
if faction_station['enabled'] != CheckStates.STATE_ON: continue
Expand Down Expand Up @@ -1285,8 +1278,6 @@ def _generate_tw_system_text(self, system: dict, discord: bool):
system_station['reactivate'] += faction_station['reactivate']
system_station['mission_count_total'] += faction_station['reactivate']

if not system_tw_enabled : return ""

# System-specific tally
kills:int = sum(system['TWKills'].values())
sandr:int = sum(int(d['delivered']) for d in system['TWSandR'].values())
Expand Down
2 changes: 1 addition & 1 deletion load.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from bgstally.debug import Debug

PLUGIN_NAME = "BGS-Tally"
PLUGIN_VERSION = semantic_version.Version.coerce("3.6.0")
PLUGIN_VERSION = semantic_version.Version.coerce("3.6.1")

# Initialise the main plugin class
this:BGSTally = BGSTally(PLUGIN_NAME, PLUGIN_VERSION)
Expand Down

0 comments on commit 80cf035

Please sign in to comment.