From 355f0bb575675d6ea6b0ed1bbd25d2bf682fce37 Mon Sep 17 00:00:00 2001 From: Carlos Holguera Date: Sat, 29 Jun 2024 09:21:24 +0100 Subject: [PATCH] fix script --- tools/populate_masvs_categories_md.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/populate_masvs_categories_md.py b/tools/populate_masvs_categories_md.py index 686084fa9..547459602 100644 --- a/tools/populate_masvs_categories_md.py +++ b/tools/populate_masvs_categories_md.py @@ -30,15 +30,14 @@ def yaml_to_md(input_dir, input_file, for_website): if group_id_in_file == group_id: with open(os.path.join(input_dir, file), "a") as f: - if for_website == False: - f.write('\n## Controls\n\n') - else: + f.write('\n## Controls\n\n') + if for_website == True: f.write('\n\n\n') f.write('| ID | Control |\n') f.write('|----|-----------|\n') for control in controls: if for_website == True: - control_id = f'[{control["id"]}](/MASVS/Controls/{control["id"]})' + control_id = f'[{control["id"]}](/MASVS/controls/{control["id"]})' else: control_id = control["id"]