Skip to content

Commit

Permalink
Fix tick time not being sent in /event API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
aussig committed Dec 30, 2024
1 parent 7387d00 commit b3b5d69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* Highlight conflict states in the on-screen activity window: Elections in orange and wars in red.

### Bug Fixes:

* The tick time was not being sent in /event API calls.


## v4.2.0 - 2024-12-22

Expand Down
2 changes: 1 addition & 1 deletion bgstally/apimanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def _build_api_event(self, event:dict, activity:Activity, cmdr:str, mission:dict
# BGS-Tally specific global enhancements
event['cmdr'] = cmdr
event['tickid'] = activity.tick_id
event['ticktime']: activity.tick_time.strftime(DATETIME_FORMAT_JOURNAL)
event['ticktime'] = activity.tick_time.strftime(DATETIME_FORMAT_JOURNAL)

# Other global enhancements
if 'StationFaction' not in event: event['StationFaction'] = {'Name': self.bgstally.state.station_faction}
Expand Down

0 comments on commit b3b5d69

Please sign in to comment.