Updated for pr comments

This commit is contained in:
Adam Shimali
2016-06-15 16:19:28 +01:00
parent b33312b855
commit c268401554
3 changed files with 7 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
from flask import (
Blueprint,
jsonify,
request,
current_app)
request
)
from app.dao.jobs_dao import (
dao_create_job,
@@ -43,7 +43,7 @@ def get_jobs_by_service(service_id):
try:
limit_days = int(request.args['limit_days'])
except ValueError as e:
errors = {'error': ['{} is not an integer'.format(request.args['limit_days'])]}
errors = {'limit_days': ['{} is not an integer'.format(request.args['limit_days'])]}
raise InvalidRequest(errors, status_code=400)
else:
limit_days = None