aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/input_data_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-07-31 14:18:18 +0200
committerTibor Frank <tifrank@cisco.com>2019-07-31 14:18:18 +0200
commit43564923e4615cb8d147b0bc213ca83313c0599c (patch)
tree02b30ec1478d61d8a67b6e980657bae1958a2770 /resources/tools/presentation/input_data_parser.py
parentcafb31a9cb66cd4cbd9fe28bfd0ab2b83fec1e5d (diff)
Trending: Reduce input data
Change-Id: I6760f39e9438d1af97217f2fc28b933226b9cb2d Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/input_data_parser.py')
-rw-r--r--resources/tools/presentation/input_data_parser.py7
1 files changed, 4 insertions, 3 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.")