diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2020-02-25 21:39:47 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2020-02-25 21:39:47 +0800 |
commit | 7625a6999756e7cda9aa761b08812db35fcfdd2c (patch) | |
tree | b833c209de2657720aaaceed55a2a358300d24c5 | |
parent | 404c571b2cbc35f9ae6ab0dd88e5028b8812bd86 (diff) |
lkft/views.py: fix the bug on getting build duration
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | lkft/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lkft/views.py b/lkft/views.py index 53e2025..89889c4 100644 --- a/lkft/views.py +++ b/lkft/views.py @@ -453,7 +453,7 @@ def get_project_info(project): project['last_build']['build_status'] == "JOBSCOMPLETED": last_ci_build = project.get('last_ci_build') last_build = project.get('last_build') - if last_ci_build.get('ci_build_last_start_timestamp'): + if last_ci_build.get('start_timestamp'): project['duration'] = last_build.get('last_fetched_timestamp') - last_ci_build.get('start_timestamp') logger.info("%s: finished to get information for project", project.get('name')) |