diff --git a/HISTORY.rst b/HISTORY.rst index fce12e1..3f9130e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,12 @@ History ======= +v0.16.1 (2022-01-13) + +* Adding UniqueID as new el3 field, in place of StudentID +* Removed logic for parsing phones numbers and text message opt in. + + v0.16.0 (2022-01-11) * Update ddtrace==0.57.0. diff --git a/aioradio/file_ingestion.py b/aioradio/file_ingestion.py index 6092f07..693884b 100644 --- a/aioradio/file_ingestion.py +++ b/aioradio/file_ingestion.py @@ -107,6 +107,7 @@ def __post_init__(self): } self.field_to_max_widths = { + "UniqueID": 20, "StudentID": 50, "LastName": 64, "FirstName": 64, @@ -136,9 +137,6 @@ def __post_init__(self): "StudentAthlete": 50, "CampusLocation": 50, "Email": 75, - "CellPhoneNumber": 10, - "TextMessageOptIn": 5, - "HomePhone": 10, "Ethnicity": 1, "FirstGenFlag": 1, "EFC": 20, @@ -852,9 +850,6 @@ def check_for_prospects(self, row: dict[str, Any]) -> bool: ############################### New EL3 field parsing functions ############################### ############################################################################################### # - # CELLPHONENUMBER - # TEXTMESSAGEOPTIN - # HOMEPHONE # ETHNICITY # FIRSTGENFLAG # EFC @@ -896,24 +891,6 @@ def check_generic_boolean(self, value: str) -> str: return value - def check_phone_number(self, value: str, field: str, row_idx: int) -> str: - """Check Cell/Home phone number logic. - - Args: - value (str): Cell/Home phone number value - field (str): Column header field value - row_idx (int): Row number in file - - Returns: - str: Cell/Home phone number value - """ - - if value != '': - value = ''.join(n for n in value if n.isdigit()) - value = self.check_width(value, field, row_idx) - - return value - def check_ethnicity(self, value: str) -> str: """Check Ethnicity is a federal category value. @@ -1009,18 +986,6 @@ def check_generic_boolean_efi(self, records: list[str]): for idx in range(len(records)): records[idx] = self.check_generic_boolean(records[idx]) - def check_phone_number_efi(self, records: list[str], field: str, row_idx: int): - """Check phone number logic. - - Args: - records (list[str]): List of a specific columns values - field (str): Column header field value - row_idx (int): Row number in file - """ - - for idx in range(len(records)): - records[idx] = self.check_phone_number(records[idx], field, row_idx + idx) - def check_ethnicity_efi(self, records: list[str]): """Check ethnicity logic. diff --git a/setup.py b/setup.py index 2673622..3ef06ac 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ long_description = fileobj.read() setup(name='aioradio', - version='0.16.0', + version='0.16.1', description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more', long_description=long_description, long_description_content_type="text/markdown",