aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/presentation/generator_CPTA.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index bbf1a94598..4d52016db9 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -367,11 +367,17 @@ def _generate_all_charts(spec, input_data):
# builds_lst = [str(build) for build in range(builds[0], builds[-1] + 1)]
builds_lst = list()
- for build in range(builds[0], builds[-1] + 1):
- status = spec.input["builds"][job_name][build]["status"]
+ for build in spec.input["builds"][job_name]:
+ status = build["status"]
if status != "failed" and status != "not found":
- builds_lst.append(str(build))
+ builds_lst.append(str(build["build"]))
print(builds_lst)
+
+ # for build in range(builds[0], builds[-1] + 1):
+ # status = spec.input["builds"][job_name][build]["status"]
+ # if status != "failed" and status != "not found":
+ # builds_lst.append(str(build))
+
# Get "build ID": "date" dict:
build_dates = dict()
for build in builds_lst: