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