Skip to content

Commit

Permalink
missed two Captian and Role sets
Browse files Browse the repository at this point in the history
  • Loading branch information
A-UNDERSCORE-D committed Aug 6, 2021
1 parent dc7c745 commit 4724042
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
# Don't set Ship, ShipID etc since this will reflect Fighter or SRV if starting in those

# Cant use update() without the entire thing, do stuff manually here
self.state['Captain'] = None
self.state['Captain'] = ''
self.state['Credits'] = entry['Credits']
self.state['FID'] = entry.get('FID', '') # From 3.3
self.state['Horizons'] = entry['Horizons'] # From 3.0
Expand All @@ -562,7 +562,7 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
self.state['Rank'] = {}
self.state['Reputation'] = {}
self.state['Statistics'] = {}
self.state['Role'] = None
self.state['Role'] = ''
self.state['Taxi'] = False
self.state['Dropship'] = False
self.state['Body'] = ''
Expand Down Expand Up @@ -1509,8 +1509,8 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
self.state['Role'] = entry['Role']

elif event_type == 'quitacrew':
self.state['Captain'] = None
self.state['Role'] = None
self.state['Captain'] = ''
self.state['Role'] = ''
self.planet = None
self.system = None
self.station = None
Expand Down

0 comments on commit 4724042

Please sign in to comment.