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:
parent
32cba245cd
commit
c47552d678
@ -1166,7 +1166,10 @@ class AppWindow:
|
|||||||
self.status['text'] = _('CAPI query aborted: GameVersion unknown')
|
self.status['text'] = _('CAPI query aborted: GameVersion unknown')
|
||||||
return
|
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
|
# LANG: Status - Attempting to retrieve data from Frontier CAPI
|
||||||
self.status['text'] = _('Fetching data...')
|
self.status['text'] = _('Fetching data...')
|
||||||
@ -1274,7 +1277,7 @@ class AppWindow:
|
|||||||
f"{monitor.state['SystemName']!r}")
|
f"{monitor.state['SystemName']!r}")
|
||||||
raise companion.ServerLagging()
|
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']:
|
if monitor.state['OnFoot'] and monitor.state['StationName']:
|
||||||
logger.warning(f"({capi_response.capi_data['lastStarport']['name']!r} != "
|
logger.warning(f"({capi_response.capi_data['lastStarport']['name']!r} != "
|
||||||
f"{monitor.state['StationName']!r}) AND "
|
f"{monitor.state['StationName']!r}) AND "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user