mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Renamed the header of the CSV to 'to' from 'number' to allow for email jobs
- added new columns to Job and Notification to capture the start/end dates accurately
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import csv
|
||||
|
||||
|
||||
def get_mobile_numbers_from_csv(file_data):
|
||||
def get_recipient_from_csv(file_data):
|
||||
numbers = []
|
||||
reader = csv.DictReader(
|
||||
file_data.splitlines(),
|
||||
lineterminator='\n',
|
||||
quoting=csv.QUOTE_NONE)
|
||||
for i, row in enumerate(reader):
|
||||
numbers.append(row['phone'].replace(' ', ''))
|
||||
numbers.append(row['to'].replace(' ', ''))
|
||||
return numbers
|
||||
|
||||
Reference in New Issue
Block a user