mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-05-31 23:59:38 +03:00
[#635] Properly Convert Message
Message should have been updated for the new format. It got missed here.
This commit is contained in:
parent
727b8e5413
commit
110f9efd07
@ -801,15 +801,15 @@ class EDDN:
|
|||||||
self.send_message(data['commander']['name'], {
|
self.send_message(data['commander']['name'], {
|
||||||
'$schemaRef': f'https://eddn.edcd.io/schemas/outfitting/2{"/test" if is_beta else ""}',
|
'$schemaRef': f'https://eddn.edcd.io/schemas/outfitting/2{"/test" if is_beta else ""}',
|
||||||
'message': {
|
'message': {
|
||||||
('timestamp', data['timestamp']),
|
'timestamp': data['timestamp'],
|
||||||
('systemName', data['lastSystem']['name']),
|
'systemName': data['lastSystem']['name'],
|
||||||
('stationName', data['lastStarport']['name']),
|
'stationName': data['lastStarport']['name'],
|
||||||
('marketId', data['lastStarport']['id']),
|
'marketId': data['lastStarport']['id'],
|
||||||
('horizons', horizons),
|
'horizons': horizons,
|
||||||
('modules', outfitting),
|
'modules': outfitting,
|
||||||
('odyssey', this.odyssey),
|
'odyssey': this.odyssey,
|
||||||
},
|
},
|
||||||
'header': self.standard_header(
|
'header': self.standard_header(
|
||||||
game_version=self.capi_gameversion_from_host_endpoint(
|
game_version=self.capi_gameversion_from_host_endpoint(
|
||||||
data.source_host, companion.Session.FRONTIER_CAPI_PATH_SHIPYARD
|
data.source_host, companion.Session.FRONTIER_CAPI_PATH_SHIPYARD
|
||||||
),
|
),
|
||||||
@ -863,13 +863,13 @@ class EDDN:
|
|||||||
self.send_message(data['commander']['name'], {
|
self.send_message(data['commander']['name'], {
|
||||||
'$schemaRef': f'https://eddn.edcd.io/schemas/shipyard/2{"/test" if is_beta else ""}',
|
'$schemaRef': f'https://eddn.edcd.io/schemas/shipyard/2{"/test" if is_beta else ""}',
|
||||||
'message': {
|
'message': {
|
||||||
('timestamp', data['timestamp']),
|
'timestamp': data['timestamp'],
|
||||||
('systemName', data['lastSystem']['name']),
|
'systemName': data['lastSystem']['name'],
|
||||||
('stationName', data['lastStarport']['name']),
|
'stationName': data['lastStarport']['name'],
|
||||||
('marketId', data['lastStarport']['id']),
|
'marketId': data['lastStarport']['id'],
|
||||||
('horizons', horizons),
|
'horizons': horizons,
|
||||||
('ships', shipyard),
|
'ships': shipyard,
|
||||||
('odyssey', this.odyssey),
|
'odyssey': this.odyssey,
|
||||||
},
|
},
|
||||||
'header': self.standard_header(
|
'header': self.standard_header(
|
||||||
game_version=self.capi_gameversion_from_host_endpoint(
|
game_version=self.capi_gameversion_from_host_endpoint(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user