Fix buggy parser.
This commit is contained in:
parent
bb708e81b3
commit
919f5efc97
@ -14,7 +14,6 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
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'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user