Skip to content

Commit

Permalink
- Grammar fix
Browse files Browse the repository at this point in the history
- Removed unused function
  • Loading branch information
elipe17 committed Nov 1, 2023
1 parent df77436 commit 8da540e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion tdrs-backend/tdpservice/parsers/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def parse_datafile(datafile):
field_values = schema_defs.header.get_field_values_by_names(header_line,
{"encryption", "tribe_code", "state_fips"})

# Validate submission tribe code in submission accross program type and fips code
# Validate tribe code in submission across program type and fips code
tribe_is_valid, tribe_error = validators.validate_header_tribe_code(header['program_type'],
field_values["tribe_code"],
field_values["state_fips"],
Expand Down
8 changes: 0 additions & 8 deletions tdrs-backend/tdpservice/parsers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ def update_encrypted_fields(self, is_encrypted):
if type(field) == TransformField and "is_encrypted" in field.kwargs:
field.kwargs['is_encrypted'] = is_encrypted

def line_value_check(line, field, value, should_negate=False):
"""Determine if the field in the line is or is not equal to an expected value."""
parsed_val = field.parse_value(line)
if not should_negate:
return parsed_val == value
else:
return parsed_val != value and parsed_val is not None

def contains_encrypted_indicator(line, encryption_val):
"""Determine if line contains encryption indicator."""
if encryption_val is not None:
Expand Down

0 comments on commit 8da540e

Please sign in to comment.