Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog authored Jul 10, 2024
1 parent 3e28598 commit 3771ee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brewtils/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import copy
from datetime import datetime
from enum import Enum

Expand Down Expand Up @@ -454,7 +455,7 @@ def __init__(self, heartbeat=None, history=None):
def set_status_heartbeat(self, status):

self.heartbeat = datetime.utcnow()
self.history.append(StatusHistory(status=status, heartbeat=self.heartbeat))
self.history.append(StatusHistory(status=copy.deepcopy(status), heartbeat=self.heartbeat))

def __str__(self):
return self.heartbeat
Expand Down

0 comments on commit 3771ee4

Please sign in to comment.