Fix (hack at) pycrest to fix caching issue when getting another character.

This commit is contained in:
blitzmann
2015-10-23 01:21:51 -04:00
parent 6e04c64ffb
commit 953a70327a
3 changed files with 23 additions and 15 deletions

View File

@@ -258,9 +258,10 @@ class AuthedConnection(EVE):
return self._data
def whoami(self):
if 'whoami' not in self._cache:
self._cache['whoami'] = self.get("%s/verify" % self._oauth_endpoint)
return self._cache['whoami']
#if 'whoami' not in self._cache:
# print "Setting this whoami cache"
# self._cache['whoami'] = self.get("%s/verify" % self._oauth_endpoint)
return self.get("%s/verify" % self._oauth_endpoint)
def refresh(self):
res = self._authorize(params={"grant_type": "refresh_token", "refresh_token": self.refresh_token})