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()
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user