Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub authored and wh1te909 committed May 16, 2024
1 parent a2b5830 commit 212ba70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/tacticalrmm/alerts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ def site(self) -> "Site":
def client(self) -> "Client":
return self.agent.client

@property
@property
def get_result(self):
if self.alert_type == AlertType.CHECK:
return self.assigned_check.checkresults.get(agent=self.agent)
elif self.alert_type == AlertType.TASK:
return self.assigned_task.taskresults.get(agent=self.agent)
return self.assigned_task.taskresults.get(agent=self.agent)
else:
return None

def resolve(self) -> None:
self.resolved = True
self.resolved_on = djangotime.now()
Expand Down

0 comments on commit 212ba70

Please sign in to comment.