mirror of
https://github.com/DISARMFoundation/DISARMframeworks.git
synced 2025-06-24 22:50:32 -04:00
Third time luck to add some spaces before the parent technique on the techniques page
This commit is contained in:
parent
bf2df6fc29
commit
f0ef04fde6
392 changed files with 393 additions and 393 deletions
|
@ -543,11 +543,11 @@ class Disarm:
|
|||
if "." in row['disarm_id']:
|
||||
parent_technique_id = row['disarm_id'].split(".")[0]
|
||||
parent_technique_name = self.df_techniques.loc[self.df_techniques['disarm_id'] == parent_technique_id, 'name'].values[0]
|
||||
parent_technique = " **Parent Technique:** " + parent_technique_id + ' ' + parent_technique_name
|
||||
parent_technique = "<br><br>**Parent Technique:** " + parent_technique_id + ' ' + parent_technique_name
|
||||
else:
|
||||
parent_technique = ''
|
||||
metatext = template.format(type = 'Technique', id=row['disarm_id'], name=row['name'],
|
||||
tactic=f"{row['tactic_id']} {tactic_name} {parent_technique}", summary=row['summary'],
|
||||
tactic=f"{row['tactic_id']} {tactic_name} {parent_technique}", summary=row['summary'],
|
||||
associatedtechniques=self.create_associated_techniques_string(row['disarm_id']),
|
||||
incidents=self.create_technique_incidents_string(row['disarm_id']),
|
||||
counters=self.create_technique_counters_string(row['disarm_id']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue