From 1bff86b31c308ae86c226e8eb4d0d899f2e142d6 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 13 Jan 2016 14:14:52 +0100 Subject: [PATCH] Fix path and arguments. --- accountant/api/views/accounts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/accountant/api/views/accounts.py b/accountant/api/views/accounts.py index 1aa8dd0..ce1240a 100644 --- a/accountant/api/views/accounts.py +++ b/accountant/api/views/accounts.py @@ -148,7 +148,6 @@ api.add_resource(AccountResource, '/account/') range_parser = reqparse.RequestParser() -range_parser.add_argument('account', type=int) range_parser.add_argument('begin', type=lambda a: dateutil.parser.parse(a)) range_parser.add_argument('end', type=lambda a: dateutil.parser.parse(a)) @@ -187,5 +186,5 @@ class OHLCResource(Resource): return Operation.get_ohlc_per_day_for_range(id, **data).all() -api.add_resource(CategoryResource, "/account//categories") -api.add_resource(OHLCResource, "/account//solds") +api.add_resource(CategoryResource, "/account//category") +api.add_resource(OHLCResource, "/account//ohlc")