Skip to content

Commit

Permalink
[ENHANCEMENT] Updated the data in a way that the count will be possible
Browse files Browse the repository at this point in the history
* Updated the data in a way that the count will be possible for SW socket
  • Loading branch information
waldirio authored Jan 26, 2024
1 parent 699596e commit e67348c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,9 @@ def csv_report_swatch(json_obj):
stage_lst.append("Not available")

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

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

try:
# stage_lst.append(sw_entries["sockets"])
stage_lst.append(sw_entries["measurements"])
# using the int to remove the decimal value and to keep
# this output as integer
stage_lst.append(int(sw_entries["measurements"][0]))
except KeyError:
stage_lst.append("Not in sw - check")

Expand Down

0 comments on commit e67348c

Please sign in to comment.