Only commit when needed

This commit is contained in:
cncfanatics
2010-09-09 15:52:17 +02:00
parent 1811a1e663
commit 1ec7fc8cbe

View File

@@ -55,7 +55,6 @@ class Character():
def getSkillLevel(self, charID, skillID):
skill = eos.db.getCharacter(charID).getSkill(skillID)
eos.db.commit()
return skill.level if skill.learned else "Not learned"
def rename(self, charID, newName):
@@ -79,6 +78,7 @@ class Character():
def delete(self, charID):
char = eos.db.getCharacter(charID)
eos.db.commit()
eos.db.remove(char)
def charList(self, charID, userID, apiKey):