From 82a08b133efe8713a9cb3e6e200ce6c7a2818541 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 25 May 2017 22:49:01 +0200 Subject: [PATCH] Fix return of account income. --- accountant/views/accounts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accountant/views/accounts.py b/accountant/views/accounts.py index 5a20b95..5714afb 100644 --- a/accountant/views/accounts.py +++ b/accountant/views/accounts.py @@ -300,9 +300,9 @@ class BalanceResource(Resource): data = range_parser.parse_args() - # Note: if we don't pass the code, the result is seen as a tuple and - # causes error on marshalling. - return account.income(**data), 200 + return row_as_dict( + account.income(**data) + ), 200 @ns.route("//category")