notify-api-784 remove simulated numbers

This commit is contained in:
Kenneth Kehl
2024-02-01 10:48:59 -08:00
parent c6ef8a1259
commit a028be238b
3 changed files with 7 additions and 5 deletions

View File

@@ -122,7 +122,9 @@ def extract_phones(job):
current_app.logger.info(f"LENGTH OF ROW IS {len(row)}")
if phone_index >= len(row):
phones[job_row] = "Error: can't retrieve phone number"
current_app.logger.error("Corrupt csv file, missing columns job_id {job_id} service_id {service_id}")
current_app.logger.error(
"Corrupt csv file, missing columns job_id {job_id} service_id {service_id}"
)
else:
my_phone = row[phone_index]
my_phone = re.sub(r"[\+\s\(\)\-\.]*", "", my_phone)

View File

@@ -283,7 +283,8 @@ class Config(object):
"simulate-delivered-2@notifications.service.gov.uk",
"simulate-delivered-3@notifications.service.gov.uk",
)
SIMULATED_SMS_NUMBERS = ("+12028675000", "+12028675111", "+12028675222")
# 7755 is success, 7167 is failure
SIMULATED_SMS_NUMBERS = ("+14254147755", "+14254147167")
FREE_SMS_TIER_FRAGMENT_COUNT = 250000