From a36c1dc46fd2b2332848a04af781608d2581e2fa Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Thu, 1 Feb 2024 13:02:50 +0100
Subject: [PATCH] use same config object used in handle_dark_request

---
 webservice/webservice.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webservice/webservice.py b/webservice/webservice.py
index 0e53747df..2ce0f9d3e 100644
--- a/webservice/webservice.py
+++ b/webservice/webservice.py
@@ -1287,7 +1287,7 @@ class ActionsServer:
                 # Notebooks require one or three runs, depending on the
                 # detector type and operation mode.
                 triple = any(
-                    det in karabo_id for det in config['dark']['three-gain-detectors'])  # noqa
+                    det in karabo_id for det in self.config['dark']['three-gain-detectors'])  # noqa
 
                 # This fails silently if the hardcoded strings above are
                 # ever changed (triple = False) but the underlying notebook
-- 
GitLab