Skip to content

Commit

Permalink
feat(compliance): fix compliance names for cis
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrooot committed Apr 2, 2024
1 parent a1da948 commit 308711e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/pages/compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ def load_csv_files(csv_files):

unique_results = set(results)
results = list(unique_results)

# Check if there is any CIS report in the list and divide it in level 1 and level 2
new_results = []
old_results = results.copy()
for compliance_name in results:
if "CIS_" in compliance_name:
results.remove(compliance_name)
old_results.remove(compliance_name)
new_results.append(compliance_name + " - Level_1")
new_results.append(compliance_name + " - Level_2")

results = results + new_results
results = old_results + new_results
results.sort()
# Handle the case where there are no CSV files
try:
Expand Down

0 comments on commit 308711e

Please sign in to comment.