From f6e25042165789808fe76b7f89bddde7ef53f730 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 22 Nov 2022 17:37:15 +0000 Subject: [PATCH] eddn: Fix capi_fcmaterials gameversion/build & add to CAPI commodity * Erroneously used 'CAPI-commoodity' when it's 'CAPI-market' (name of the CAPI endpoint, not anything to do with EDDN schema names, and '-commodity' would also be wrong for that). * Set `header` for (CAPI) `export_commodities()`. --- plugins/eddn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 4204b226..2a129462 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -635,6 +635,7 @@ class EDDN: self.send_message(data['commander']['name'], { '$schemaRef': f'https://eddn.edcd.io/schemas/commodity/3{"/test" if is_beta else ""}', 'message': message, + 'header': self.standard_header(game_version='CAPI-market', game_build='CAPI-market') }) this.commodities = commodities @@ -1453,7 +1454,7 @@ class EDDN: msg = { '$schemaRef': f'https://eddn.edcd.io/schemas/fcmaterials_capi/1{"/test" if is_beta else ""}', 'message': entry, - 'header': self.standard_header(game_version='CAPI-commodity', game_build='CAPI-commodity'), + 'header': self.standard_header(game_version='CAPI-market', game_build='CAPI-market'), } this.eddn.send_message(data['commander']['name'], msg)