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 authored May 2, 2023
1 parent 0b03e9f commit b944491
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 b944491

Please sign in to comment.