diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-07-31 14:18:18 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-07-31 14:18:18 +0200 |
commit | 43564923e4615cb8d147b0bc213ca83313c0599c (patch) | |
tree | 02b30ec1478d61d8a67b6e980657bae1958a2770 /resources/tools | |
parent | cafb31a9cb66cd4cbd9fe28bfd0ab2b83fec1e5d (diff) |
Trending: Reduce input data
Change-Id: I6760f39e9438d1af97217f2fc28b933226b9cb2d
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/presentation/input_data_parser.py | 7 | ||||
-rw-r--r-- | resources/tools/presentation/specification_CPTA.yaml | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py index 835609178c..762afc4180 100644 --- a/resources/tools/presentation/input_data_parser.py +++ b/resources/tools/presentation/input_data_parser.py @@ -1307,6 +1307,7 @@ class InputData(object): for build in builds: result = self._download_and_parse_build(job, build, repeat) + build_nr = result["build"]["build"] if result["data"]: data = result["data"] @@ -1321,12 +1322,12 @@ class InputData(object): if self._input_data.get(job, None) is None: self._input_data[job] = pd.Series() - self._input_data[job][str(build)] = build_data + self._input_data[job][str(build_nr)] = build_data self._cfg.set_input_file_name( - job, build, result["build"]["file-name"]) + job, build_nr, result["build"]["file-name"]) - self._cfg.set_input_state(job, build, result["state"]) + self._cfg.set_input_state(job, build_nr, result["state"]) logging.info("Done.") diff --git a/resources/tools/presentation/specification_CPTA.yaml b/resources/tools/presentation/specification_CPTA.yaml index f09f1b39a7..f4b647b87c 100644 --- a/resources/tools/presentation/specification_CPTA.yaml +++ b/resources/tools/presentation/specification_CPTA.yaml @@ -578,7 +578,7 @@ extract: "output.xml" # Number of days from now to the past. Only files generated in this # time period are used. - time-period: 90 + time-period: 60 builds: |