mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
Modified dict comprehension to be more clear
This commit is contained in:
parent
d9658f2cf9
commit
ecfed2b558
@ -573,8 +573,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
engineers = self.state['Engineers']
|
||||
if 'Engineers' in entry: # Startup summary
|
||||
self.state['Engineers'] = {
|
||||
e['Engineer']: (e['Rank'], e.get('RankProgress', 0))
|
||||
if 'Rank' in e else e['Progress'] for e in entry['Engineers']
|
||||
e['Engineer']: ((e['Rank'], e.get('RankProgress', 0)) if 'Rank' in e else e['Progress'])
|
||||
for e in entry['Engineers']
|
||||
}
|
||||
|
||||
else: # Promotion
|
||||
|
Loading…
x
Reference in New Issue
Block a user