1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

Fixed broken suitMods field

This commit is contained in:
A_D 2021-06-02 12:32:32 +02:00
parent 571db43257
commit 2a68b81170
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -587,7 +587,7 @@ def journal_entry( # noqa: C901, CCR001
else: # we dont know one way or another. Given we were told it IS a taxi, assume its a shuttle.
to_send['isTaxiShuttle'] = True
if entry.get('MarketID') is not None:
if 'MarketID' in entry:
to_send['marketID'] = entry['MarketID']
# TODO: we _can_ include a Body name here, but I'm not entirely sure how best to go about doing that
@ -663,7 +663,7 @@ def journal_entry( # noqa: C901, CCR001
'shipGameID': state['ShipID'],
}
if entry.get('StarPos') is not None:
if 'StarPos' in entry:
to_send['starsystemCoords'] = entry['StarPos']
new_add_event(
@ -1110,7 +1110,7 @@ def journal_entry( # noqa: C901, CCR001
'loadoutName': entry['LoadoutName'],
'suitGameID': entry['SuitID'],
'suitType': entry['SuitName'],
'suitMods': [{'blueprintName': mod} for mod in entry['SuitMods']],
'suitMods': entry['SuitMods'],
'suitLoadout': [
{
'slotName': x['SlotName'],