also allow accessing floats
This commit is contained in:
parent
1ae4e23db1
commit
986160e667
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue