mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-20 03:02:40 +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:
1 parent
c722a1cada
commit
83f8f4f547
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user