mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 16:01:15 -05:00
13 lines
298 B
Python
13 lines
298 B
Python
import csv
|
|
|
|
|
|
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['to'].replace(' ', ''))
|
|
return numbers
|