diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-04-10 10:58:25 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-04-10 09:00:05 +0000 |
commit | 2b26def35d33799dc1f01d345bbfd1c8b6d5f3a8 (patch) | |
tree | b04b073cc52c04a070f4d631ef525e7f891348d9 /resources/tools/presentation | |
parent | 6f898a1cf1fbc8c2f9d29d646bec422bb0fbe507 (diff) |
Fix: csv and txt tables
Change-Id: I24df334067cf71bc974ed8e583eb03f683877bde
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 23f4ea0471be0b103ab24fec5c253f1081ec0488)
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r-- | resources/tools/presentation/generator_CPTA.py | 12 |
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: |