mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-04 09:31:12 +03:00
hack to fix --force-localserver-auth
This commit is contained in:
parent
e07affe905
commit
30b2d481c4
@ -56,7 +56,6 @@ import killswitch
|
|||||||
from config import appversion, appversion_nobuild, config, copyright
|
from config import appversion, appversion_nobuild, config, copyright
|
||||||
# isort: on
|
# isort: on
|
||||||
|
|
||||||
from companion import CAPIData, index_possibly_sparse_list
|
|
||||||
from EDMCLogging import edmclogger, logger, logging
|
from EDMCLogging import edmclogger, logger, logging
|
||||||
from journal_lock import JournalLock, JournalLockResult
|
from journal_lock import JournalLock, JournalLockResult
|
||||||
|
|
||||||
@ -881,7 +880,7 @@ class AppWindow(object):
|
|||||||
|
|
||||||
self.cooldown()
|
self.cooldown()
|
||||||
|
|
||||||
def export_market_data(self, data: CAPIData) -> bool: # noqa: CCR001
|
def export_market_data(self, data: 'CAPIData') -> bool: # noqa: CCR001
|
||||||
"""
|
"""
|
||||||
Export CAPI market data.
|
Export CAPI market data.
|
||||||
|
|
||||||
@ -1900,6 +1899,10 @@ sys.path: {sys.path}'''
|
|||||||
logger.info("Dropping all fdev tokens as --forget-frontier-auth was passed")
|
logger.info("Dropping all fdev tokens as --forget-frontier-auth was passed")
|
||||||
companion.Auth.invalidate(None)
|
companion.Auth.invalidate(None)
|
||||||
|
|
||||||
|
# HACK: n/a | 2021-11-24: --force-localserver-auth does not work if companion is imported early -cont.
|
||||||
|
# HACK: n/a | 2021-11-24: as we modify config before this is used.
|
||||||
|
from companion import CAPIData, index_possibly_sparse_list
|
||||||
|
|
||||||
# TODO: unittests in place of these
|
# TODO: unittests in place of these
|
||||||
# logger.debug('Test from __main__')
|
# logger.debug('Test from __main__')
|
||||||
# test_logging()
|
# test_logging()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user