From b9fb60a2836f01ef39e7936f55b0028b4e9ca762 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Wed, 30 Oct 2024 13:14:40 +0000
Subject: [PATCH] Check CI/CD for CRDB in OFC24

---
 src/context/service/database/OpticalConfig.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/context/service/database/OpticalConfig.py b/src/context/service/database/OpticalConfig.py
index c0236a0fe..ebe751ce6 100644
--- a/src/context/service/database/OpticalConfig.py
+++ b/src/context/service/database/OpticalConfig.py
@@ -223,9 +223,10 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig):
                 stmt = stmt.returning(RoadmTypeModel.roadm_uuid)
                 roadm_id = session.execute(stmt).fetchone()
 
+                LOGGER.warning('channels={:s}'.format(str(channels)))
                 stmt = insert(ChannelModel).values(channels)
                 stmt = stmt.on_conflict_do_update(
-                    index_elements=[ChannelModel.channel_uuid ],
+                    index_elements=[ChannelModel.channel_uuid],
                     set_=dict(
                         band_name           = stmt.excluded.band_name,
                         lower_frequency     = stmt.excluded.lower_frequency,
-- 
GitLab