mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
fix reports
This commit is contained in:
@@ -477,6 +477,11 @@ def get_phone_number_from_s3(service_id, job_id, job_row_number):
|
|||||||
current_app.logger.debug("HAVE TO REEXTRACT PHONES!")
|
current_app.logger.debug("HAVE TO REEXTRACT PHONES!")
|
||||||
phones = extract_phones(job, service_id, job_id)
|
phones = extract_phones(job, service_id, job_id)
|
||||||
set_job_cache(f"{job_id}_phones", phones)
|
set_job_cache(f"{job_id}_phones", phones)
|
||||||
|
print(f"SETTING PHONES TO {phones}")
|
||||||
|
else:
|
||||||
|
phones = phones[
|
||||||
|
0
|
||||||
|
] # we only want the phone numbers not the cache expiration time
|
||||||
|
|
||||||
# If we can find the quick dictionary, use it
|
# If we can find the quick dictionary, use it
|
||||||
phone_to_return = phones[job_row_number]
|
phone_to_return = phones[job_row_number]
|
||||||
|
|||||||
Reference in New Issue
Block a user