File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -120,24 +120,21 @@ def writeObjects(
120
120
"techniqueID" : tid ,
121
121
"score" : data ["score" ],
122
122
"metadata" : [
123
+ {"name" : "Detection" , "value" : name , "divider" : False }
124
+ for name in data ["file_paths" ]
125
+ ]
126
+ + [
123
127
{
124
- "name" : "Detections" ,
125
- "value" : "\n " .join (
126
- [f"• { name } " for name in data ["file_paths" ]]
127
- ),
128
- },
129
- {"divider" : True },
130
- {
131
- "name" : "Links" ,
132
- "value" : "\n " .join (
133
- [
134
- f"• [{ link ['label' ]} ]({ link ['url' ]} )"
135
- for link in data ["links" ]
136
- ]
137
- ),
138
- },
128
+ "name" : "Link" ,
129
+ "value" : f"[View Detection]({ link ['url' ]} )" ,
130
+ "divider" : False ,
131
+ }
132
+ for link in data ["links" ]
133
+ ],
134
+ "links" : [
135
+ {"label" : link ["label" ], "url" : link ["url" ]}
136
+ for link in data ["links" ]
139
137
],
140
- "links" : data ["links" ],
141
138
}
142
139
for tid , data in techniques .items ()
143
140
],
You can’t perform that action at this time.
0 commit comments