INNER CODE UNIT · Python
get_md_key
mitre-attack/attack-scripts · scripts/diff_stix.py:319
def get_md_key(self):
"""
Create string describing each type of difference (change, addition, etc). Used in get_markdown_string.
Includes minor changes if the DiffStix instance was instantiated with the minor_changes argument.
Includes deletions if the changes include deletions.
"""
have_deletions = False
for types in self.data.keys():
for domain in self.data[types].keys():
if "deletions" in self.data[types][domain].keys():
have_deletions = True
key = "#### Key\n\n"
key += (
"* New objects: " + statusDescriptions['additions'] + "\n"