1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 00:07:14 +03:00

eddn: fcmaterials: Now working for the two separate schemas

This commit is contained in:
Athanasius 2022-09-02 17:27:16 +01:00
parent 69ef3b7d39
commit e530544ac5
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -1223,12 +1223,11 @@ class EDDN:
#######################################################################
# Augmentations
#######################################################################
# Mandatory data-source
entry['data-source'] = 'Journal'
# None
#######################################################################
msg = {
'$schemaRef': f'https://eddn.edcd.io/schemas/fcmaterials/1{"/test" if is_beta else ""}',
'$schemaRef': f'https://eddn.edcd.io/schemas/fcmaterials_journal/1{"/test" if is_beta else ""}',
'message': entry
}
@ -1277,7 +1276,6 @@ class EDDN:
entry = {
'timestamp': data['timestamp'],
'event': 'FCMaterials',
'data-source': 'CAPI', # Mandatory indication of data source
'horizons': horizons,
'odyssey': this.odyssey,
'MarketID': data['lastStarport']['id'],
@ -1287,7 +1285,7 @@ class EDDN:
#######################################################################
msg = {
'$schemaRef': f'https://eddn.edcd.io/schemas/fcmaterials/1{"/test" if is_beta else ""}',
'$schemaRef': f'https://eddn.edcd.io/schemas/fcmaterials_capi/1{"/test" if is_beta else ""}',
'message': entry
}