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

This reverts commit 1402ceec63.
This commit is contained in:
blitzmann
2015-09-13 16:57:22 -04:00
parent 045031e8ae
commit 9ae5cfbab2

View File

@@ -226,6 +226,7 @@ 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.save(char)
return char.ID
@@ -290,12 +291,12 @@ class Character(object):
sheet = auth.character(charID).CharacterSheet()
dbChar.apiUpdateCharSheet(sheet.skills)
self.saveCharacter(dbChar.ID)
eos.db.commit()
def apiUpdateCharSheet(self, charID, skills):
char = eos.db.getCharacter(charID)
char.apiUpdateCharSheet(skills)
self.saveCharacter(char.ID)
eos.db.commit()
def changeLevel(self, charID, skillID, level):
char = eos.db.getCharacter(charID)