Skip to content

Commit

Permalink
Release 0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jan 13, 2022
2 parents bc99434 + 454aa6c commit 455bf53
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
49 changes: 26 additions & 23 deletions api/tacticalrmm/core/management/commands/post_update_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,32 @@ def handle(self, *args, **kwargs):

# convert autotask to the new format
for task in AutomatedTask.objects.all():
edited = False
try:
edited = False

# convert scheduled task_type
if task.task_type == "scheduled":
task.task_type = "daily"
task.run_time_date = make_aware(
dt.datetime.strptime(task.run_time_minute, "%H:%M")
)
task.daily_interval = 1
edited = True
# convert scheduled task_type
if task.task_type == "scheduled":
task.task_type = "daily"
task.run_time_date = make_aware(
dt.datetime.strptime(task.run_time_minute, "%H:%M")
)
task.daily_interval = 1
edited = True

# convert actions
if not task.actions:
task.actions = [
{
"type": "script",
"script": task.script.pk,
"script_args": task.script_args,
"timeout": task.timeout,
"name": task.script.name,
}
]
edited = True
# convert actions
if not task.actions:
task.actions = [
{
"type": "script",
"script": task.script.pk,
"script_args": task.script_args,
"timeout": task.timeout,
"name": task.script.name,
}
]
edited = True

if edited:
task.save()
if edited:
task.save()
except:
continue
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.11.1"
TRMM_VERSION = "0.11.2"

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

0 comments on commit 455bf53

Please sign in to comment.