mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-11 04:42:23 +03:00
CAPI: Remove 'safeties' preventing Legacy CAPI queries
This commit is contained in:
parent
088da2e5f0
commit
ccdc187efa
@ -1013,11 +1013,6 @@ class AppWindow(object):
|
|||||||
self.status['text'] = _('CAPI query aborted: GameVersion unknown')
|
self.status['text'] = _('CAPI query aborted: GameVersion unknown')
|
||||||
return
|
return
|
||||||
|
|
||||||
if not monitor.is_live_galaxy():
|
|
||||||
logger.warning("Dropping CAPI request because this is the Legacy galaxy, which is not yet supported")
|
|
||||||
self.status['text'] = 'CAPI for Legacy not yet supported'
|
|
||||||
return
|
|
||||||
|
|
||||||
if not monitor.system:
|
if not monitor.system:
|
||||||
logger.trace_if('capi.worker', 'Aborting Query: Current star system unknown')
|
logger.trace_if('capi.worker', 'Aborting Query: Current star system unknown')
|
||||||
# LANG: CAPI queries aborted because current star system name unknown
|
# LANG: CAPI queries aborted because current star system name unknown
|
||||||
|
@ -760,10 +760,6 @@ class Session(object):
|
|||||||
:return: The resulting CAPI data, of type CAPIData.
|
:return: The resulting CAPI data, of type CAPIData.
|
||||||
"""
|
"""
|
||||||
capi_data: CAPIData
|
capi_data: CAPIData
|
||||||
if capi_host == SERVER_LEGACY:
|
|
||||||
logger.warning("Dropping CAPI request because this is the Legacy galaxy")
|
|
||||||
return capi_data
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.trace_if('capi.worker', 'Sending HTTP request...')
|
logger.trace_if('capi.worker', 'Sending HTTP request...')
|
||||||
if conf_module.capi_pretend_down:
|
if conf_module.capi_pretend_down:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user