Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1488: Add data to the Report 1904
[csit.git]
/
resources
/
tools
/
presentation
/
generator_tables.py
diff --git
a/resources/tools/presentation/generator_tables.py
b/resources/tools/presentation/generator_tables.py
index
6f9925f
..
0646db3
100644
(file)
--- a/
resources/tools/presentation/generator_tables.py
+++ b/
resources/tools/presentation/generator_tables.py
@@
-161,6
+161,8
@@
def table_merged_details(table, input_data):
try:
col_data = str(data[test][column["data"].
split(" ")[1]]).replace('"', '""')
try:
col_data = str(data[test][column["data"].
split(" ")[1]]).replace('"', '""')
+ col_data = replace(col_data, "No Data",
+ "Not Captured ")
if column["data"].split(" ")[1] in ("conf-history",
"show-run"):
col_data = replace(col_data, " |br| ", "",
if column["data"].split(" ")[1] in ("conf-history",
"show-run"):
col_data = replace(col_data, " |br| ", "",
@@
-169,7
+171,7
@@
def table_merged_details(table, input_data):
format(col_data[:-5])
row_lst.append('"{0}"'.format(col_data))
except KeyError:
format(col_data[:-5])
row_lst.append('"{0}"'.format(col_data))
except KeyError:
- row_lst.append(
"No data"
)
+ row_lst.append(
'"Not captured"'
)
table_lst.append(row_lst)
# Write the data to file
table_lst.append(row_lst)
# Write the data to file