replace dict(list-comp) with dict comp

This commit is contained in:
A_D committed 2020-07-31 15:47:23 +02:00
1 parent 539580e38d
commit 820b29f7dd
1 file changed
+1 -1
+1 -1
View File
@@ -696,7 +696,7 @@ def journal_entry(cmdr: str, is_beta: bool, system: str, station: str, entry: Di
# Stored modules
if event_name == 'StoredModules':
items = dict([(x['StorageSlot'], x) for x in entry['Items']]) # Impose an order
items = {mod['StorageSlot']: mod for mod in entry['Items']} # Impose an order
modules = []
for slot in sorted(items):
item = items[slot]