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' )