Fix API stuff. This should theoretically work, but it's untested.

This commit is contained in:
blitzmann
2015-09-12 13:15:59 -04:00
parent 4663270067
commit 1402ceec63

View File

@@ -255,7 +255,6 @@ class Character(object):
return eos.db.getCharacter(charID).name
def new(self):
#@todo: seems setting skills on a new character doesn't trigger the dirty setting. Probably goes for character copy too
char = eos.types.Character("New Character")
eos.db.character_session.add(char)
# We can flush this single character to the DB to get an ID. It will be
@@ -326,12 +325,12 @@ class Character(object):
sheet = auth.character(charID).CharacterSheet()
dbChar.apiUpdateCharSheet(sheet.skills)
eos.db.commit()
self.saveCharacter(dbChar.ID)
def apiUpdateCharSheet(self, charID, skills):
char = eos.db.getCharacter(charID)
char.apiUpdateCharSheet(skills)
eos.db.commit()
self.saveCharacter(char.ID)
def changeLevel(self, charID, skillID, level):
char = eos.db.getCharacter(charID)