mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Add count of rows in csv file as a notification count.
This commit is contained in:
@@ -20,14 +20,15 @@ class JobApiClient(BaseAPIClient):
|
||||
else:
|
||||
return self.get(url='/service/{}/job'.format(service_id))
|
||||
|
||||
def create_job(self, job_id, service_id, template_id, original_file_name):
|
||||
def create_job(self, job_id, service_id, template_id, original_file_name, notification_count):
|
||||
data = {
|
||||
"id": job_id,
|
||||
"service": service_id,
|
||||
"template": template_id,
|
||||
"original_file_name": original_file_name,
|
||||
"bucket_name": "service-{}-notify".format(service_id),
|
||||
"file_name": "{}.csv".format(job_id)
|
||||
"file_name": "{}.csv".format(job_id),
|
||||
"notification_count": notification_count
|
||||
}
|
||||
|
||||
resp = self.post(url='/service/{}/job'.format(service_id), data=data)
|
||||
|
||||
Reference in New Issue
Block a user