From 02d4d05e101502d3fe6a0f331da0ab47d20c4295 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Mon, 15 Jun 2020 08:52:42 +0200
Subject: [PATCH] mr comment

---
 webservice/update_config.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/webservice/update_config.py b/webservice/update_config.py
index be00c979c..0d3cf58f1 100644
--- a/webservice/update_config.py
+++ b/webservice/update_config.py
@@ -64,12 +64,14 @@ bool_keys = []
 
 # Avoid erros when karabo_id not yet given through the command line.
 if karabo_id is not None:
+    # adding "no" bools to available options
     for det, val in available_options[karabo_id][0].items():
         if val['typ'] == bool:
             bool_keys.append(det)
 
     for b in bool_keys:
-        available_options[karabo_id][0]['no-{}'.format(b)] = {'typ': bool}
+        available_options[karabo_id][0]['no-{}'.format(det)] = {'typ': bool}
+
     for exposed_options in available_options[karabo_id]:
         for option, info in exposed_options.items():
             metavar = None
-- 
GitLab