From 68dfb11155b549c8696757135292ba1299aab45c Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Tue, 24 Nov 2020 21:09:15 +0000 Subject: [PATCH] style fix --- api/tacticalrmm/agents/models.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/tacticalrmm/agents/models.py b/api/tacticalrmm/agents/models.py index 3bb50d62..4dac314f 100644 --- a/api/tacticalrmm/agents/models.py +++ b/api/tacticalrmm/agents/models.py @@ -149,11 +149,7 @@ class Agent(BaseAuditModel): @property def has_patches_pending(self): - - if self.winupdates.filter(action="approve").filter(installed=False).exists(): - return True - else: - return False + return self.winupdates.filter(action="approve").filter(installed=False).exists() @property def checks(self):