mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-29 22:11:52 -05:00
Bump utils to bring in changes to RecipientCSV rows
Bumped utils to version 31.2.5, which changes when the rows of a RecipientCSV get created. Switched to using `.get_rows()` from RecipientCSV (a generator) instead of the `.rows` property (which builds a list of the rows in memory).
This commit is contained in:
@@ -109,7 +109,7 @@ def process_job(job_id, sender_id=None):
|
||||
s3.get_job_from_s3(str(service.id), str(job_id)),
|
||||
template_type=template.template_type,
|
||||
placeholders=template.placeholders
|
||||
).rows:
|
||||
).get_rows():
|
||||
process_row(row, template, job, service, sender_id=sender_id)
|
||||
|
||||
job_complete(job, start=start)
|
||||
@@ -609,7 +609,7 @@ def process_incomplete_job(job_id):
|
||||
s3.get_job_from_s3(str(job.service_id), str(job.id)),
|
||||
template_type=template.template_type,
|
||||
placeholders=template.placeholders
|
||||
).rows:
|
||||
).get_rows():
|
||||
if row.index > resume_from_row:
|
||||
process_row(row, template, job, job.service)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user