mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +03:00
Clean up "not Fleet Carriers" gameversion check
1. No need for the () on the if. 2. Log when we force is_beta = True from this.
This commit is contained in:
parent
c722a1cada
commit
83f8f4f547
@ -385,7 +385,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
self.is_beta = any(v in entry['gameversion'].lower() for v in ('alpha', 'beta'))
|
||||
|
||||
# TODO: This is an extra paranoia check, because we don't yet know what will (not) be in the Odyssey alpha string.
|
||||
if ('Fleet Carriers Update' not in entry['gameversion']):
|
||||
if 'Fleet Carriers Update' not in entry['gameversion']:
|
||||
logger.warning(f'Forcing is_beta to True due to gameversion: {entry["gameversion"]}')
|
||||
self.is_beta = True
|
||||
|
||||
self.cmdr = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user