diff --git a/src/context/service/database/OpticalConfig.py b/src/context/service/database/OpticalConfig.py index c0236a0fe3ce5c4fdec59097c8fc5f58081365a0..ebe751ce6d1f3fd4b7b43c2ddfff0c2862c5f91c 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,