diff --git a/brewtils/models.py b/brewtils/models.py index 302e5adb..c48f33b2 100644 --- a/brewtils/models.py +++ b/brewtils/models.py @@ -455,10 +455,12 @@ def __init__(self, heartbeat=None, history=None): def set_status_heartbeat(self, status, max_history=None): self.heartbeat = datetime.utcnow() - self.history.append(StatusHistory(status=copy.deepcopy(status), heartbeat=self.heartbeat)) + self.history.append( + StatusHistory(status=copy.deepcopy(status), heartbeat=self.heartbeat) + ) if max_history and max_history > 0 and len(self.history) > max_history: - self.history = self.history[(max_history * -1):] + self.history = self.history[(max_history * -1) :] def __str__(self): return self.heartbeat