Skip to content
Merged
5 changes: 5 additions & 0 deletions funidata_utils/data_scramblers/generic_sis_scramble.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def scramble(self, entity: dict, processed_keys: set) -> dict: # noqa: instance
_keys = set()
for key in entity_keys:
if key not in processed_keys:
# Used this during development to find which subtypes had missing keys, not sure if applicable to "any" entity
# if 'type' in entity:
# _keys.add(f'{entity["type"]}.{key}')
# else:
# _keys.add(key)
_keys.add(key)
entity.pop(key)

Expand Down
Loading
Loading