From 110f9efd07f9b91ae5a0894af841a330855a1644 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Mon, 4 Mar 2024 18:37:00 -0500 Subject: [PATCH] [#635] Properly Convert Message Message should have been updated for the new format. It got missed here. --- plugins/eddn.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 55ab729b..522ce6cb 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -801,15 +801,15 @@ class EDDN: self.send_message(data['commander']['name'], { '$schemaRef': f'https://eddn.edcd.io/schemas/outfitting/2{"/test" if is_beta else ""}', 'message': { - ('timestamp', data['timestamp']), - ('systemName', data['lastSystem']['name']), - ('stationName', data['lastStarport']['name']), - ('marketId', data['lastStarport']['id']), - ('horizons', horizons), - ('modules', outfitting), - ('odyssey', this.odyssey), + 'timestamp': data['timestamp'], + 'systemName': data['lastSystem']['name'], + 'stationName': data['lastStarport']['name'], + 'marketId': data['lastStarport']['id'], + 'horizons': horizons, + 'modules': outfitting, + 'odyssey': this.odyssey, }, - 'header': self.standard_header( + 'header': self.standard_header( game_version=self.capi_gameversion_from_host_endpoint( data.source_host, companion.Session.FRONTIER_CAPI_PATH_SHIPYARD ), @@ -863,13 +863,13 @@ class EDDN: self.send_message(data['commander']['name'], { '$schemaRef': f'https://eddn.edcd.io/schemas/shipyard/2{"/test" if is_beta else ""}', 'message': { - ('timestamp', data['timestamp']), - ('systemName', data['lastSystem']['name']), - ('stationName', data['lastStarport']['name']), - ('marketId', data['lastStarport']['id']), - ('horizons', horizons), - ('ships', shipyard), - ('odyssey', this.odyssey), + 'timestamp': data['timestamp'], + 'systemName': data['lastSystem']['name'], + 'stationName': data['lastStarport']['name'], + 'marketId': data['lastStarport']['id'], + 'horizons': horizons, + 'ships': shipyard, + 'odyssey': this.odyssey, }, 'header': self.standard_header( game_version=self.capi_gameversion_from_host_endpoint(