PEP-257 changes

This commit is contained in:
Andrew Shumway
2024-03-27 10:32:40 -06:00
parent 6599c284cc
commit d3b895ddc6
4 changed files with 9 additions and 27 deletions
+1 -4
View File
@@ -166,10 +166,7 @@ def get_jobs_by_service(service_id):
@job_blueprint.route("", methods=["POST"])
def create_job(service_id):
"""
Entry point from UI for one-off messages
as well as CSV uploads.
"""
"""Entry point from UI for one-off messages as well as CSV uploads."""
service = dao_fetch_service_by_id(service_id)
if not service.active:
raise InvalidRequest("Create job is not allowed: service is inactive ", 403)