Skip to content

Commit

Permalink
Release 0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Dec 7, 2020
2 parents 9b7ac58 + 3e00631 commit f073ddc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions api/tacticalrmm/agents/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ def send_agent_update_task(pks, version):
if agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).exists():
continue
action = agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).last()
if pyver.parse(action.details["version"]) < pyver.parse(
settings.LATEST_AGENT_VER
):
action.delete()
else:
continue

PendingAction.objects.create(
agent=agent,
Expand Down Expand Up @@ -122,7 +130,15 @@ def auto_self_agent_update_task():
if agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).exists():
continue
action = agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).last()
if pyver.parse(action.details["version"]) < pyver.parse(
settings.LATEST_AGENT_VER
):
action.delete()
else:
continue

PendingAction.objects.create(
agent=agent,
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 @@ -15,7 +15,7 @@
AUTH_USER_MODEL = "accounts.User"

# latest release
TRMM_VERSION = "0.2.6"
TRMM_VERSION = "0.2.7"

# bump this version everytime vue code is changed
# to alert user they need to manually refresh their browser
Expand Down

0 comments on commit f073ddc

Please sign in to comment.