fix tests

This commit is contained in:
sadnub 2024-05-30 00:26:53 -04:00 committed by wh1te909
parent 9bca0dfb3c
commit da87d452c2
1 changed files with 5 additions and 1 deletions

View File

@ -515,6 +515,8 @@ class Alert(models.Model):
"execution_time": 0,
"retcode": status,
}
else:
return
# command was successful
if isinstance(r, dict):
@ -685,6 +687,8 @@ class Alert(models.Model):
"execution_time": 0,
"retcode": status,
}
else:
return
# command was successful
if isinstance(r, dict):
@ -724,7 +728,7 @@ class Alert(models.Model):
value = get_db_value(string=f"{model}.{prop}", instance=self)
if value is not None:
temp_arg = temp_arg.replace(string, str(value))
temp_arg = temp_arg.replace(string, f"'{str(value)}'")
temp_args.append(temp_arg)