From 986160e667165136d58e6d8f1de917d1b944b03d Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Tue, 5 Mar 2024 20:27:32 +0000 Subject: [PATCH] also allow accessing floats --- api/tacticalrmm/tacticalrmm/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tacticalrmm/tacticalrmm/utils.py b/api/tacticalrmm/tacticalrmm/utils.py index ff0ea063..c451c938 100644 --- a/api/tacticalrmm/tacticalrmm/utils.py +++ b/api/tacticalrmm/tacticalrmm/utils.py @@ -403,8 +403,8 @@ def replace_arg_db_values( elif value is True or value is False: return format_shell_bool(value, shell) - # for primary keys - elif isinstance(value, int): + # for primary keys and float fields (like boot_time) + elif isinstance(value, int) or isinstance(value, float): return str(value) elif isinstance(value, dict):