Loading src/context/service/database/OpticalConfig.py +2 −1 Original line number Diff line number Diff line Loading @@ -223,6 +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))) stmt = insert(ChannelModel).values(channels) stmt = stmt.on_conflict_do_update( index_elements=[ChannelModel.channel_uuid], Loading Loading
src/context/service/database/OpticalConfig.py +2 −1 Original line number Diff line number Diff line Loading @@ -223,6 +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))) stmt = insert(ChannelModel).values(channels) stmt = stmt.on_conflict_do_update( index_elements=[ChannelModel.channel_uuid], Loading