Merge "mongo: remove _id in inserted alarm changes"
This commit is contained in:
commit
34db7d95c8
@ -212,7 +212,7 @@ class Connection(base.Connection):
|
||||
def record_alarm_change(self, alarm_change):
|
||||
"""Record alarm change event.
|
||||
"""
|
||||
self.db.alarm_history.insert(alarm_change)
|
||||
self.db.alarm_history.insert(alarm_change.copy())
|
||||
|
||||
def get_samples(self, sample_filter, limit=None):
|
||||
"""Return an iterable of model.Sample instances.
|
||||
|
Loading…
Reference in New Issue
Block a user