Added character saving.

Deleting characters is broken for now due to using wrong session, but I believe creating character works. Further tests needed
This commit is contained in:
blitzmann
2015-09-09 20:33:15 -04:00
parent 3521b3887d
commit ca34217f3b
7 changed files with 53 additions and 4 deletions

View File

@@ -148,7 +148,6 @@ def getCharacter(lookfor, eager=None):
else:
eager = processEager(eager)
character = character_session.query(Character).options(*eager).filter(Character.ID == lookfor).first()
print character
elif isinstance(lookfor, basestring):
eager = processEager(eager)
character = character_session.query(Character).options(*eager).filter(Character.name == lookfor).first()