code commenting
@@ -414,6 +414,7 @@ class AutomatedTask(BaseAuditModel):
CORE = CoreSettings.objects.first()
+ #Format of Email sent when Task has email alert
if self.agent:
subject = f"{self.agent.client.name}, {self.agent.site.name}, {self.agent.hostname} - {self} Failed"
else:
@@ -427,11 +428,11 @@ class AutomatedTask(BaseAuditModel):
CORE.send_mail(subject, body, self.agent.alert_template)
def send_sms(self):
-
from core.models import CoreSettings
CORE = CoreSettings.objects.first()
+ #Format of SMS sent when Task has SMS alert
if self.agent:
subject = f"{self.agent.client.name}, {self.agent.site.name}, {self.agent.hostname} - {self} Failed"
else:
