Change all flush calls to commit calls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user