From 273ea6b9c0f90db65583de387d3a1c9825caf2dd Mon Sep 17 00:00:00 2001
From: Bjarke Madsen <bjarke@nordu.net>
Date: Wed, 5 Feb 2025 15:55:10 +0100
Subject: [PATCH] Fix security controls import

---
 compendium_v2/publishers/year/map_2023.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/compendium_v2/publishers/year/map_2023.py b/compendium_v2/publishers/year/map_2023.py
index 44a959b5..46d8fc66 100644
--- a/compendium_v2/publishers/year/map_2023.py
+++ b/compendium_v2/publishers/year/map_2023.py
@@ -305,9 +305,9 @@ def map_security_controls(nren: NREN, year: int, answers: Dict[str, Any]):
     if security_controls:
         if "other" in security_controls:
             security_controls.remove("other")
-        comment = answers.get("security_controls-Comment", "").strip()
-        if comment:
-            security_controls.append(comment)
+            comment = answers.get("security_controls-Comment", "").strip()
+            if comment:
+                security_controls.append(comment)
         return {
             'nren_id': nren.id,
             'year': year,
-- 
GitLab