Fix return of account income.
This commit is contained in:
parent
d59d3649f5
commit
82a08b133e
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user