aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/input_data_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-07-31 14:03:40 +0200
committerTibor Frank <tifrank@cisco.com>2019-07-31 14:03:40 +0200
commitcafb31a9cb66cd4cbd9fe28bfd0ab2b83fec1e5d (patch)
tree60f2839140cb254692684b4c967ba155e76e35c7 /resources/tools/presentation/input_data_parser.py
parent20ff879c6dd74b94259998bd252118e8589789d2 (diff)
Trending: Reduce input data
Change-Id: I8dc4fb23c07b1ab9cc0ecad852cc594ec9922055 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.py21
1 files changed, 8 insertions, 13 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py
index e330b12221..835609178c 100644
--- a/resources/tools/presentation/input_data_parser.py
+++ b/resources/tools/presentation/input_data_parser.py
@@ -1262,11 +1262,11 @@ class InputData(object):
file_name = self._cfg.input["file-name"]
full_name = join(
self._cfg.environment["paths"]["DIR[WORKING,DATA]"],
- "{job}{sep}{build}{sep}{name}".
- format(job=job,
- sep=SEPARATOR,
- build=build["build"],
- name=file_name))
+ "{job}{sep}{build}{sep}{name}".format(
+ job=job,
+ sep=SEPARATOR,
+ build=build["build"],
+ name=file_name))
try:
remove(full_name)
logs.append(("INFO",
@@ -1308,11 +1308,6 @@ class InputData(object):
result = self._download_and_parse_build(job, build, repeat)
- job = result["job"]
- build_nr = result["build"]["build"]
-
- logging.info(" {job}-{build}".format(job=job,
- build=build_nr))
if result["data"]:
data = result["data"]
build_data = pd.Series({
@@ -1326,12 +1321,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_nr)] = build_data
+ self._input_data[job][str(build)] = build_data
self._cfg.set_input_file_name(
- job, build_nr, result["build"]["file-name"])
+ job, build, result["build"]["file-name"])
- self._cfg.set_input_state(job, build_nr, result["state"])
+ self._cfg.set_input_state(job, build, result["state"])
logging.info("Done.")