Fix path and arguments.

This commit is contained in:
Alexis Lahouze 2016-01-13 14:14:52 +01:00
parent 5864d4700d
commit 1bff86b31c

View File

@ -148,7 +148,6 @@ api.add_resource(AccountResource, '/account/<int:id>')
range_parser = reqparse.RequestParser() 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('begin', type=lambda a: dateutil.parser.parse(a))
range_parser.add_argument('end', 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() return Operation.get_ohlc_per_day_for_range(id, **data).all()
api.add_resource(CategoryResource, "/account/<int:id>/categories") api.add_resource(CategoryResource, "/account/<int:id>/category")
api.add_resource(OHLCResource, "/account/<int:id>/solds") api.add_resource(OHLCResource, "/account/<int:id>/ohlc")