Fix return of account income.

This commit is contained in:
Alexis Lahouze 2017-05-25 22:49:01 +02:00
parent d59d3649f5
commit 82a08b133e

View File

@ -300,9 +300,9 @@ class BalanceResource(Resource):
data = range_parser.parse_args() data = range_parser.parse_args()
# Note: if we don't pass the code, the result is seen as a tuple and return row_as_dict(
# causes error on marshalling. account.income(**data)
return account.income(**data), 200 ), 200
@ns.route("/<int:account_id>/category") @ns.route("/<int:account_id>/category")