Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Migrate Sonar Scan job to GHA
[pti/o2.git]
/
o2ims
/
adapter
/
alarm_repository.py
diff --git
a/o2ims/adapter/alarm_repository.py
b/o2ims/adapter/alarm_repository.py
index
483c73c
..
ebfe816
100644
(file)
--- a/
o2ims/adapter/alarm_repository.py
+++ b/
o2ims/adapter/alarm_repository.py
@@
-47,7
+47,7
@@
class AlarmEventRecordSqlAlchemyRepository(AlarmEventRecordRepository):
return (count, result)
def _update(self, alarm_event_record: alarm_obj.AlarmEventRecord):
return (count, result)
def _update(self, alarm_event_record: alarm_obj.AlarmEventRecord):
- self.session.
add
(alarm_event_record)
+ self.session.
merge
(alarm_event_record)
def _delete(self, alarm_event_record_id):
self.session.query(alarm_obj.AlarmEventRecord).filter_by(
def _delete(self, alarm_event_record_id):
self.session.query(alarm_obj.AlarmEventRecord).filter_by(