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:
parent
69ef3b7d39
commit
e530544ac5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user