Skip to content

Commit e67348c

Browse files
authored
[ENHANCEMENT] Updated the data in a way that the count will be possible
* Updated the data in a way that the count will be possible for SW socket
1 parent 699596e commit e67348c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

report/report.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,9 @@ def csv_report_swatch(json_obj):
679679
stage_lst.append("Not available")
680680

681681
try:
682-
# stage_lst.append(sw_entries["sockets"])
683-
stage_lst.append(entries["measurements"])
682+
# using the int to remove the decimal value and to keep
683+
# this output as integer
684+
stage_lst.append(int(entries["measurements"][0]))
684685
except KeyError:
685686
stage_lst.append("Not in sw - check")
686687

@@ -1007,8 +1008,9 @@ def csv_match_report(match_obj):
10071008
stage_lst.append("Not in sw")
10081009

10091010
try:
1010-
# stage_lst.append(sw_entries["sockets"])
1011-
stage_lst.append(sw_entries["measurements"])
1011+
# using the int to remove the decimal value and to keep
1012+
# this output as integer
1013+
stage_lst.append(int(sw_entries["measurements"][0]))
10121014
except KeyError:
10131015
stage_lst.append("Not in sw - check")
10141016

0 commit comments

Comments
 (0)