1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

EDDN: Use MutableMapping when needing to update a Mapping, not Dict

This commit is contained in:
Athanasius 2021-09-27 14:51:10 +01:00
parent e1d547460b
commit 84ef77197d
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -847,7 +847,7 @@ Msg:\n{msg}'''
return None
def export_journal_navroute(
self, cmdr: str, is_beta: bool, entry: Dict[str, Any]
self, cmdr: str, is_beta: bool, entry: MutableMapping[str, Any]
) -> Optional[str]:
"""
Send a NavRoute to EDDN on the correct schema.
@ -1140,7 +1140,7 @@ def journal_entry( # noqa: C901, CCR001
return this.eddn.export_journal_scanbarycentre(cmdr, is_beta, entry)
if entry['event'].lower() == 'navroute':
return this.eddn.export_journal_navroute(cmdr, is_beta, dict(entry))
return this.eddn.export_journal_navroute(cmdr, is_beta, entry)
# Send journal schema events to EDDN, but not when on a crew
if (config.get_int('output') & config.OUT_SYS_EDDN and not state['Captain'] and