From 36f423c4930668702d667e68bf933f02128cc567 Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Mon, 15 Jul 2024 06:35:17 -0400 Subject: [PATCH] formatting --- brewtils/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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