Skip to content

Commit

Permalink
prevent duplicate privacy declaration custom field column headers (#3202
Browse files Browse the repository at this point in the history
)
  • Loading branch information
adamsachs committed May 3, 2023
1 parent 2112aa8 commit c9ab83d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/fides/core/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ def get_custom_field_headers(

for key in custom_keys:
key_string = f"system.{header_type}.{key}"
custom_columns[key_string] = key
keys.append(key_string)
output_list[0] = tuple(keys)
custom_field_headers.append(key_string)
if key_string not in keys: # if we havent't seen the key yet
custom_columns[key_string] = key
keys.append(key_string)
output_list[0] = tuple(keys)
custom_field_headers.append(key_string)

return output_list, custom_columns, custom_field_headers

Expand Down

0 comments on commit c9ab83d

Please sign in to comment.