mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
add comment
This commit is contained in:
@@ -164,6 +164,12 @@ def read_s3_file(bucket_name, object_key, s3res):
|
|||||||
.read()
|
.read()
|
||||||
.decode("utf-8")
|
.decode("utf-8")
|
||||||
)
|
)
|
||||||
|
# TODO we probably don't need this phone number check anymore.
|
||||||
|
# Originally, there were csv uploads that were not valid
|
||||||
|
# for messaging sending. They may have been experimental, or
|
||||||
|
# they may have not been caught by validation. When we're sure
|
||||||
|
# all csv files have a phone number column, we can remove the if.
|
||||||
|
# We are essentially just making sure this object looks like a job.
|
||||||
if "phone number" in object.lower():
|
if "phone number" in object.lower():
|
||||||
set_job_cache(job_cache, job_id, object)
|
set_job_cache(job_cache, job_id, object)
|
||||||
set_job_cache(job_cache, f"{job_id}_phones", extract_phones(object))
|
set_job_cache(job_cache, f"{job_id}_phones", extract_phones(object))
|
||||||
|
|||||||
Reference in New Issue
Block a user