Fix return of account income.

This commit is contained in:
Alexis Lahouze 2017-05-25 22:49:01 +02:00
parent d59d3649f5
commit 82a08b133e
1 changed files with 3 additions and 3 deletions

View File

@ -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("/<int:account_id>/category")