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

inara: Wrap the <var> := <dict get> in () so <var> isn't a bool

Because, yes, 'is not' binds more tightly than ':='.
This commit is contained in:
Athanasius 2022-08-13 18:34:28 +01:00
parent 7b47dab543
commit 5fa9bcd48e
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -673,7 +673,7 @@ def journal_entry( # noqa: C901, CCR001
'starsystemBodyCoords': [entry['Latitude'], entry['Longitude']]
}
# Not present on, e.g. Ancient Ruins
if market_id := entry.get('MarketID') is not None:
if (market_id := entry.get('MarketID')) is not None:
to_send['marketID'] = market_id
new_add_event('setCommanderTravelLocation', entry['timestamp'], to_send)