Fix bug #102: saved API details not being displayed

This commit is contained in:
cncfanatics
2010-10-11 23:14:58 +02:00
parent 0b6d11c5c2
commit 0a07aba7ca
2 changed files with 13 additions and 2 deletions

View File

@@ -86,6 +86,10 @@ class Character():
eos.db.commit()
eos.db.remove(char)
def getApiDetails(self, charID):
char = eos.db.getCharacter(charID)
return (char.apiID or "", char.apiKey or "")
def charList(self, charID, userID, apiKey):
char = eos.db.getCharacter(charID)
char.apiID = userID