Skip to content

Commit

Permalink
add usedforsecurity=False to column uid in etl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Sep 7, 2024
1 parent 20b8790 commit c35c7df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parsons/etl/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,8 @@ def unpack_nested_columns_as_rows(self, column, key="id", expand_original=False)
if "uid" not in self.columns:
orig.add_column(
"uid",
lambda row: hashlib.md5(str.encode("".join([str(x) for x in row]))).hexdigest(),
lambda row: hashlib.md5(str.encode("".join([str(x) for x in row])),
usedforsecurity=False).hexdigest(),
)
orig.move_column("uid", 0)

Expand All @@ -675,7 +676,8 @@ def unpack_nested_columns_as_rows(self, column, key="id", expand_original=False)
# Add unique id column by hashing all the other fields
melted_list.add_column(
"uid",
lambda row: hashlib.md5(str.encode("".join([str(x) for x in row]))).hexdigest(),
lambda row: hashlib.md5(str.encode("".join([str(x) for x in row])),
usedforsecurity=False).hexdigest(),
)
melted_list.move_column("uid", 0)
output = melted_list
Expand Down

0 comments on commit c35c7df

Please sign in to comment.