aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/utils/bootimport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/utils/bootimport.py b/app/utils/bootimport.py
index 0437ebd..7c1cd38 100644
--- a/app/utils/bootimport.py
+++ b/app/utils/bootimport.py
@@ -346,11 +346,11 @@ def _update_boot_doc_from_json(boot_doc, boot_json, json_pop_f):
:type json_pop_f: function
"""
seconds = float(json_pop_f(models.BOOT_TIME_KEY, 0.0))
- if seconds < 0:
+ if seconds < 0.0:
seconds = 0.0
try:
- if seconds == 0:
+ if seconds == 0.0:
boot_doc.time = datetime.datetime(
1970, 1, 1, hour=0, minute=0, second=0)
else: