Skip to content

Commit

Permalink
also allow accessing floats
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Mar 5, 2024
1 parent 1ae4e23 commit 986160e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/tacticalrmm/tacticalrmm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 986160e

Please sign in to comment.