mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-06 01:52:29 +03:00
replaced list comp with filter
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -726,8 +726,8 @@ def journal_entry(cmdr: str, is_beta: bool, system: str, station: str, entry: Di
|
||||
if this.storedmodules != modules:
|
||||
# Only send on change
|
||||
this.storedmodules = modules
|
||||
this.events = [x for x in this.events if x['eventName']
|
||||
!= 'setCommanderStorageModules'] # Remove any unsent
|
||||
# Remove any unsent
|
||||
this.events = list(filter(lambda e: e['eventName'] != 'setCommanderStorageModules', this.events))
|
||||
add_event('setCommanderStorageModules', entry['timestamp'], this.storedmodules)
|
||||
|
||||
# Missions
|
||||
|
||||
Reference in new issue
Block a user