1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

Frontier Auth: Rename start() method to something more obvious

This commit is contained in:
Athanasius 2021-08-16 13:45:38 +01:00
parent 7339cc59ed
commit 81b5d015fd
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D
2 changed files with 5 additions and 5 deletions

View File

@ -754,7 +754,7 @@ class AppWindow(object):
journal_lock.update_lock(self.w)
# (Re-)install log monitoring
if not monitor.start(self.w):
if not monitor.start_frontier_auth(self.w):
# LANG: ED Journal file location appears to be in error
self.status['text'] = _('Error: Check E:D journal file location')
@ -1222,7 +1222,7 @@ class AppWindow(object):
logger.info('Monitor: Disable WinSparkle automatic update checks')
# Can't start dashboard monitoring
if not dashboard.start(self.w, monitor.started):
if not dashboard.start_frontier_auth(self.w, monitor.started):
logger.info("Can't start Status monitoring")
# Export loadout

View File

@ -516,7 +516,7 @@ class Session(object):
if access_token:
logger.debug('We have an access_token')
self.auth = None
self.start(access_token)
self.start_frontier_auth(access_token)
return True
else:
@ -536,7 +536,7 @@ class Session(object):
try:
logger.debug('Trying authorize with payload from handler')
self.start(self.auth.authorize(protocolhandler.lastpayload)) # type: ignore
self.start_frontier_auth(self.auth.authorize(protocolhandler.lastpayload)) # type: ignore
self.auth = None
except Exception:
@ -545,7 +545,7 @@ class Session(object):
self.auth = None
raise # Bad thing happened
def start(self, access_token: str) -> None:
def start_frontier_auth(self, access_token: str) -> None:
"""Start an oAuth2 session."""
logger.debug('Starting session')
self.session = requests.Session()