1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-10 12:22:27 +03:00

Renamed variable for clarity

This commit is contained in:
A_D 2020-07-24 12:27:47 +02:00 committed by Athanasius
parent 0e000de90a
commit c6d8b4eab8

10
EDMC.py
View File

@ -250,13 +250,13 @@ def main():
# Retry for shipyard # Retry for shipyard
sleep(SERVER_RETRY) 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 # might have undocked while we were waiting for retry in which case station data is unreliable
if data2['commander'].get('docked') and \ if new_data['commander'].get('docked') and \
deep_get(data2, 'lastSystem', 'name') == monitor.system and \ deep_get(new_data, 'lastSystem', 'name') == monitor.system and \
deep_get(data2, 'lastStarport', 'name') == monitor.station: deep_get(new_data, 'lastStarport', 'name') == monitor.station:
data = data2 data = new_data
if args.s: if args.s:
if deep_get(data, 'lastStarport', 'ships', 'shipyard_list'): if deep_get(data, 'lastStarport', 'ships', 'shipyard_list'):