Change all flush calls to commit calls

This commit is contained in:
cncfanatics
2010-09-06 10:48:24 +02:00
parent 41ffd048ac
commit e71004f703
2 changed files with 14 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ class Character():
def getCharacterList(self):
baseChars = [eos.types.Character.getAll0(), eos.types.Character.getAll5()]
# Flush incase all0 & all5 weren't in the db yet
eos.db.saveddata_session.flush()
eos.db.saveddata_session.commit()
return map(lambda c: (c.ID, c.name), eos.db.getCharacterList())
def getSkillGroups(self):
@@ -45,3 +45,6 @@ class Character():
for skill in marketGroup.items:
skills.append((skill.ID, skill.name))
return skills
def getDescription(self, itemID):
return eos.db.getItem(itemID).description