aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-03-03 09:43:28 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-03-03 09:43:28 +0100
commitaf834d4e47f68712ffa8c87f4ecf80d918fabdfd (patch)
treeeebf9e4f1af8474a54bc893307267a939a8b65d9
parent2507ba3e4b9c83e9fa345dfd73f7d7f60689794b (diff)
downloadkernel-ci-backend-master.tar.gz
Fix if clause.HEADmaster
Change-Id: Icab4b09041fc8ec608b9e8c7a21de9575ebc2203
-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: