Tell the API which contact list a job’s come from

So that we can make enhancements to the UI in the future, for example
grouping jobs within their associated contact list.
This commit is contained in:
Chris Hill-Scott
2020-03-16 17:00:34 +00:00
parent 585fdd9076
commit fc58547be3
6 changed files with 60 additions and 5 deletions

View File

@@ -530,6 +530,7 @@ def send_from_contact_list(service_id, template_id, contact_list_id):
template_id=template_id,
upload_id=contact_list.copy_to_uploads(),
original_file_name=contact_list.original_file_name,
contact_list_id=contact_list.id,
))
@@ -742,7 +743,8 @@ def start_job(service_id, upload_id):
job_api_client.create_job(
upload_id,
service_id,
scheduled_for=request.form.get('scheduled_for', '')
scheduled_for=request.form.get('scheduled_for', ''),
contact_list_id=request.form.get('contact_list_id', ''),
)
session.pop('sender_id', None)