More work on getting fittings form a character via ESI. It's starting to be come a pain working with this client with having to background it until it initializes. Thinking about rolling my own, considering we only need a few calls and not a whole package.
This commit is contained in:
@@ -35,7 +35,7 @@ class SsoCharacter(object):
|
||||
|
||||
@reconstructor
|
||||
def init(self):
|
||||
pass
|
||||
self.esi_client = None
|
||||
|
||||
def get_sso_data(self):
|
||||
""" Little "helper" function to get formated data for esipy security
|
||||
@@ -44,7 +44,7 @@ class SsoCharacter(object):
|
||||
'access_token': self.accessToken,
|
||||
'refresh_token': self.refreshToken,
|
||||
'expires_in': (
|
||||
self.accessTokenExpires - datetime.utcnow()
|
||||
self.accessTokenExpires - datetime.datetime.utcnow()
|
||||
).total_seconds()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user