diff --git a/src/context/service/database/OpticalConfig.py b/src/context/service/database/OpticalConfig.py
index ebe751ce6d1f3fd4b7b43c2ddfff0c2862c5f91c..ea4c456c1545f3749557512390f4de14419c0787 100644
--- a/src/context/service/database/OpticalConfig.py
+++ b/src/context/service/database/OpticalConfig.py
@@ -197,7 +197,7 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig):
                 stmt = stmt.returning(TransponderTypeModel.transponder_uuid)
                 transponder_id = session.execute(stmt).fetchone()
 
-            if (len(channels) > 0):
+            if len(channels) > 0:
                 stmt = insert(OpticalChannelModel).values(channels)
                 stmt = stmt.on_conflict_do_update(
                     index_elements=[OpticalChannelModel.channel_uuid],
@@ -223,7 +223,7 @@ 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)))
+            if len(channels) > 0:
                 stmt = insert(ChannelModel).values(channels)
                 stmt = stmt.on_conflict_do_update(
                     index_elements=[ChannelModel.channel_uuid],
@@ -243,7 +243,7 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig):
                 opticalChannel_id = session.execute(stmt).fetchone()
          
         if config_type == DeviceTypeEnum.OPEN_ROADM._value_:
-            if (len(roadms)>0):
+            if len(roadms) > 0:
                 stmt = insert(RoadmTypeModel).values(roadms)
                 stmt = stmt.on_conflict_do_update(
                     index_elements=[RoadmTypeModel.roadm_uuid],
@@ -254,7 +254,7 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig):
                 stmt = stmt.returning(RoadmTypeModel.roadm_uuid)
                 roadm_id = session.execute(stmt).fetchone() 
 
-            if len(interfaces) >0 :      
+            if len(interfaces) > 0:      
                 stmt = insert(ORInterfaceModel).values(interfaces)
                 stmt = stmt.on_conflict_do_update(
                     index_elements=[ORInterfaceModel.interface_uuid],