mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 23:37:14 +03:00
Merge pull request #2158 from HullSeals/enhancement/2157/send-station-docking-data
[#2157] Add Station and Docking Data When Known LGTM
This commit is contained in:
commit
6efd618fe4
@ -920,18 +920,24 @@ class EDDN:
|
|||||||
# none and that really does need to be recorded over EDDN so that
|
# none and that really does need to be recorded over EDDN so that
|
||||||
# tools can update in a timely manner.
|
# tools can update in a timely manner.
|
||||||
if this.commodities != commodities:
|
if this.commodities != commodities:
|
||||||
self.send_message(cmdr, {
|
message: dict[str, Any] = { # Yes, this is a broad type hint.
|
||||||
'$schemaRef': f'https://eddn.edcd.io/schemas/commodity/3{"/test" if is_beta else ""}',
|
'$schemaRef': f'https://eddn.edcd.io/schemas/commodity/3{"/test" if is_beta else ""}',
|
||||||
'message': {
|
'message': {
|
||||||
('timestamp', entry['timestamp']),
|
'timestamp': entry['timestamp'],
|
||||||
('systemName', entry['StarSystem']),
|
'systemName': entry['StarSystem'],
|
||||||
('stationName', entry['StationName']),
|
'stationName': entry['StationName'],
|
||||||
('marketId', entry['MarketID']),
|
'marketId': entry['MarketID'],
|
||||||
('commodities', commodities),
|
'commodities': commodities,
|
||||||
('horizons', this.horizons),
|
'horizons': this.horizons,
|
||||||
('odyssey', this.odyssey),
|
'odyssey': this.odyssey,
|
||||||
},
|
'stationType': entry['StationType'],
|
||||||
})
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if entry.get('CarrierDockingAccess'):
|
||||||
|
message['message']['carrierDockingAccess'] = entry['CarrierDockingAccess']
|
||||||
|
|
||||||
|
self.send_message(cmdr, message)
|
||||||
|
|
||||||
this.commodities = commodities
|
this.commodities = commodities
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user