1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-06 18:33:13 +03:00

eddn: Add header for CAPI outfitting and shipyard exports

This commit is contained in:
Athanasius 2022-11-22 17:40:33 +00:00
parent f6e2504216
commit f2dbfacf70
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -635,7 +635,7 @@ class EDDN:
self.send_message(data['commander']['name'], { self.send_message(data['commander']['name'], {
'$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, 'message': message,
'header': self.standard_header(game_version='CAPI-market', game_build='CAPI-market') 'header': self.standard_header(game_version='CAPI-market', game_build='CAPI-market'),
}) })
this.commodities = commodities this.commodities = commodities
@ -729,6 +729,7 @@ class EDDN:
('modules', outfitting), ('modules', outfitting),
('odyssey', this.odyssey), ('odyssey', this.odyssey),
]), ]),
'header': self.standard_header(game_version='CAPI-shipyard', game_build='CAPI-shipyard'),
}) })
this.outfitting = (horizons, outfitting) this.outfitting = (horizons, outfitting)
@ -773,6 +774,7 @@ class EDDN:
('ships', shipyard), ('ships', shipyard),
('odyssey', this.odyssey), ('odyssey', this.odyssey),
]), ]),
'header': self.standard_header(game_version='CAPI-shipyard', game_build='CAPI-shipyard'),
}) })
this.shipyard = (horizons, shipyard) this.shipyard = (horizons, shipyard)