mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
Removed redundant json import
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import json
|
|
||||||
|
|
||||||
from flask import Blueprint, jsonify
|
from flask import Blueprint, jsonify
|
||||||
from flask import request
|
from flask import request
|
||||||
|
|
||||||
@@ -16,9 +14,7 @@ register_errors(letter_job)
|
|||||||
|
|
||||||
@letter_job.route('/send-letter-jobs', methods=['POST'])
|
@letter_job.route('/send-letter-jobs', methods=['POST'])
|
||||||
def send_letter_jobs():
|
def send_letter_jobs():
|
||||||
req_json = request.get_json()
|
job_ids = validate(request.get_json(), letter_job_ids)
|
||||||
job_ids = validate(req_json, letter_job_ids)
|
|
||||||
|
|
||||||
notify_celery.send_task(name="send-files-to-dvla", args=(job_ids['job_ids'],), queue="process-ftp")
|
notify_celery.send_task(name="send-files-to-dvla", args=(job_ids['job_ids'],), queue="process-ftp")
|
||||||
|
|
||||||
return jsonify(data={"response": "Task created to send files to DVLA"}), 200
|
return jsonify(data={"response": "Task created to send files to DVLA"}), 200
|
||||||
|
|||||||
Reference in New Issue
Block a user