MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / setSsoCharacter

Method setSsoCharacter

service/character.py:374–381  ·  view source on GitHub ↗
(charID, ssoCharID)

Source from the content-addressed store, hash-verified

372
373 @staticmethod
374 def setSsoCharacter(charID, ssoCharID):
375 char = eos.db.getCharacter(charID)
376 if ssoCharID is not None:
377 sso = eos.db.getSsoCharacter(ssoCharID, config.getClientSecret())
378 char.setSsoCharacter(sso, config.getClientSecret())
379 else:
380 char.setSsoCharacter(None, config.getClientSecret())
381 eos.db.commit()
382
383 def apiFetch(self, charID, callback):
384 thread = UpdateAPIThread(charID, (self.apiFetchCallback, callback))

Callers 3

ssoLoginMethod · 0.45
ssoCharChangedMethod · 0.45
charChangedMethod · 0.45

Calls 2

getCharacterMethod · 0.80
getSsoCharacterMethod · 0.45

Tested by

no test coverage detected