Actually return the ofxaccount when queried by UUID

I screwed this up in a refactor at some point
This commit is contained in:
Eli Ribble 2016-06-28 16:08:51 -06:00
parent ccdd03b04b
commit 23c47535e9
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ def _execute_and_convert(query):
def by_uuid(account_uuid):
query = _select().where(vanth.tables.OFXAccount.c.uuid == account_uuid)
return _execute_and_convert(query)
account = _execute_and_convert(query)
return account[0] if account else None
def by_user(user_id):
query = _select()