summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2020-02-26 11:28:48 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2020-02-26 11:28:48 +0800
commit21ff0bb6c3d9b782a18e2800a77c86157a530408 (patch)
treef3abed68d44645ad71ffcd0160788088baefb51c
parent72127e3d2d82971a90a6f200cf0bace0559694d8 (diff)
lkft/views.py: only display the latest describe for each branch
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--lkft/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lkft/views.py b/lkft/views.py
index 40ef2d6..4e02bbd 100644
--- a/lkft/views.py
+++ b/lkft/views.py
@@ -1125,7 +1125,12 @@ def list_kernel_changes(request):
kernelchanges = []
+ check_branches = []
for db_kernelchange in db_kernelchanges:
+ if db_kernelchange.branch in check_branches:
+ continue
+ else:
+ check_branches.append(db_kernelchange.branch)
kernelchange = {}
if db_kernelchange.reported and db_kernelchange.result == 'ALL_COMPLETED':
kernelchange['branch'] = db_kernelchange.branch