From 919f5efc971c2a28d3fd44fe9a04e3dcd39f9eae Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 19 Jan 2016 08:40:46 +0100 Subject: [PATCH] Fix buggy parser. --- accountant/api/views/parsers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/accountant/api/views/parsers.py b/accountant/api/views/parsers.py index 0ddab64..1d4b31c 100644 --- a/accountant/api/views/parsers.py +++ b/accountant/api/views/parsers.py @@ -14,7 +14,6 @@ You should have received a copy of the GNU Affero General Public License along with Accountant. If not, see . """ -from copy import deepcopy import dateutil.parser from flask.ext.restful import reqparse @@ -53,5 +52,9 @@ account_id_parser.add_argument( # Parser for a date range and an account id. account_range_parser = range_parser.copy() account_range_parser.add_argument( - deepcopy(account_id_parser.args[0]) + 'account_id', + type=int, + required=True, + location='args', + help='Id of the account' )