mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-04 17:41:18 +03:00
Renamed variable for clarity
This commit is contained in:
parent
0e000de90a
commit
c6d8b4eab8
10
EDMC.py
10
EDMC.py
@ -250,13 +250,13 @@ def main():
|
||||
|
||||
# Retry for shipyard
|
||||
sleep(SERVER_RETRY)
|
||||
data2 = companion.session.station()
|
||||
new_data = companion.session.station()
|
||||
# might have undocked while we were waiting for retry in which case station data is unreliable
|
||||
if data2['commander'].get('docked') and \
|
||||
deep_get(data2, 'lastSystem', 'name') == monitor.system and \
|
||||
deep_get(data2, 'lastStarport', 'name') == monitor.station:
|
||||
if new_data['commander'].get('docked') and \
|
||||
deep_get(new_data, 'lastSystem', 'name') == monitor.system and \
|
||||
deep_get(new_data, 'lastStarport', 'name') == monitor.station:
|
||||
|
||||
data = data2
|
||||
data = new_data
|
||||
|
||||
if args.s:
|
||||
if deep_get(data, 'lastStarport', 'ships', 'shipyard_list'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user