From 23c47535e9f14e5e37230412aa530f3654a82dd7 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 28 Jun 2016 16:08:51 -0600 Subject: [PATCH] Actually return the ofxaccount when queried by UUID I screwed this up in a refactor at some point --- vanth/platform/ofxaccount.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vanth/platform/ofxaccount.py b/vanth/platform/ofxaccount.py index c75db77..cefac0d 100644 --- a/vanth/platform/ofxaccount.py +++ b/vanth/platform/ofxaccount.py @@ -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()