Skip to content

Commit

Permalink
Release 0.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jul 18, 2024
2 parents 442f09d + 41ccd14 commit 48db3d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion api/tacticalrmm/agents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ def save(self, *args, **kwargs):
orig = Agent.objects.get(pk=self.pk)
mon_type_changed = self.monitoring_type != orig.monitoring_type
site_changed = self.site_id != orig.site_id
if mon_type_changed or site_changed:
policy_changed = self.policy != orig.policy
block_inherit = (
self.block_policy_inheritance != orig.block_policy_inheritance
)

if mon_type_changed or site_changed or policy_changed or block_inherit:
self._processing_set_alert_template = True
self.set_alert_template()
self._processing_set_alert_template = False
Expand Down
6 changes: 4 additions & 2 deletions api/tacticalrmm/alerts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ def handle_alert_resolve(
core = CoreSettings.objects.first()

# set variables
email_severities = None
text_severities = None
email_on_resolved = False
text_on_resolved = False
resolved_email_task = None
Expand Down Expand Up @@ -691,7 +693,7 @@ def handle_alert_resolve(
and not core.notify_on_warning_alerts
):
pass
elif alert.severity not in email_severities:
elif email_severities and alert.severity not in email_severities:
pass
else:
resolved_email_task.delay(pk=alert.pk)
Expand All @@ -706,7 +708,7 @@ def handle_alert_resolve(
and not core.notify_on_warning_alerts
):
pass
elif alert.severity not in text_severities:
elif text_severities and alert.severity not in text_severities:
pass
else:
resolved_text_task.delay(pk=alert.pk)
Expand Down
2 changes: 1 addition & 1 deletion api/tacticalrmm/tacticalrmm/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
AUTH_USER_MODEL = "accounts.User"

# latest release
TRMM_VERSION = "0.19.0"
TRMM_VERSION = "0.19.1"

# https://github.com/amidaware/tacticalrmm-web
WEB_VERSION = "0.101.47"
Expand Down

0 comments on commit 48db3d3

Please sign in to comment.