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:
parent
7b47dab543
commit
5fa9bcd48e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user