1
0
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:
A_D 2020-07-22 14:56:11 +02:00 committed by Athanasius
parent d9658f2cf9
commit ecfed2b558

View File

@ -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