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:
blitzmann
2018-02-07 02:07:42 -05:00
parent eea8019593
commit e77dddc15b
4 changed files with 29 additions and 11 deletions

View File

@@ -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()
}