Skip to content

Commit

Permalink
Implemented has_retention_indices function
Browse files Browse the repository at this point in the history
  • Loading branch information
wverastegui committed Jan 5, 2024
1 parent 4492dfe commit ebf46c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RIAssigner/data/Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def get_possible_ri_keys(cls) -> List[str]:
List[str]: List of supported retention index keys.
"""
return cls._ri_possible_keys.copy()

@classmethod
def has_retention_indices(dict_obj, _rt_possible_keys):
return any(key in dict_obj for key in _rt_possible_keys)

def __init__(self, filename: str, filetype: str, rt_unit: str):
self._filename = filename
Expand Down

0 comments on commit ebf46c6

Please sign in to comment.