INNER CODE UNIT · Python
combine_tactics
infosecB/LOOBins · src/pyloobins/models.py:89
def combine_tactics(self) -> List[str]:
"""Returns a list of all tactics across all LOOBin example use cases"""
return list(
dict.fromkeys(
tactic
for euc in self.example_use_cases
if euc.tactics is not None
for tactic in euc.tactics
)
)
def combine_tags(self) -> List[str]:
"""Returns a list of all tags across all LOOBin example use cases"""
return list(
dict.fromkeys(
tag
for euc in self.example_use_cases
if euc.tags is not None