Skip to content

Commit

Permalink
Merge pull request #469 from mitre-attack/develop
Browse files Browse the repository at this point in the history
Add condition to generate assets.json to search.py
  • Loading branch information
jondricek authored Oct 31, 2023
2 parents 09de0ae + 3d37930 commit 6ec0a1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def generate_index():

if path.startswith("/mitigations/"):
file_type = "mitigations"
elif path.startswith("/assets/"):
file_type = "assets"
elif path.startswith("/matrices/"):
file_type = "matrices"
elif path.startswith("/groups/"):
Expand Down

0 comments on commit 6ec0a1b

Please sign in to comment.