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

[2051] Revert Bool Check

This commit is contained in:
David Sangrey 2023-11-17 18:28:11 -05:00
parent 32cba245cd
commit c47552d678
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -1166,7 +1166,10 @@ class AppWindow:
self.status['text'] = _('CAPI query aborted: GameVersion unknown')
return
if not companion.session.retrying and time() >= self.capi_fleetcarrier_query_holdoff_time:
if not companion.session.retrying:
if time() < self.capi_fleetcarrier_query_holdoff_time: # Was invoked while in cooldown
logger.debug('CAPI fleetcarrier query aborted, too soon since last request')
return
# LANG: Status - Attempting to retrieve data from Frontier CAPI
self.status['text'] = _('Fetching data...')
@ -1274,7 +1277,7 @@ class AppWindow:
f"{monitor.state['SystemName']!r}")
raise companion.ServerLagging()
if capi_response.capi_data['lastStarport']['name'] != monitor.state['StationName']:
elif capi_response.capi_data['lastStarport']['name'] != monitor.state['StationName']:
if monitor.state['OnFoot'] and monitor.state['StationName']:
logger.warning(f"({capi_response.capi_data['lastStarport']['name']!r} != "
f"{monitor.state['StationName']!r}) AND "