Skip to content
Snippets Groups Projects
Commit 6145e18d authored by Oliwer Mattsson's avatar Oliwer Mattsson :headphones:
Browse files

get_technique_stats uppdaterad.

parent 5d49a431
No related branches found
No related tags found
No related merge requests found
......@@ -78,17 +78,17 @@ def get_technique_stats(data):
technique_list = get_techniques(data)
technique_stats = {}
current_techniques = []
for project in data:
for technique in technique_list:
for technique in technique_list:
for project in data:
if technique in project['techniques_used']:
buffer = [{'id' : project['project_id'], 'name' : project['project_name']}]
technique_stats.update({technique : buffer})
pprint.pp(technique_stats)
current_techniques.append({'id' : project['project_id'], 'name' : project['project_name']})
technique_stats.update({technique : current_techniques.copy()})
current_techniques.clear()
return technique_stats
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment