Commit e67348c 1 parent 699596e commit e67348c Copy full SHA for e67348c
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -679,8 +679,9 @@ def csv_report_swatch(json_obj):
679
679
stage_lst .append ("Not available" )
680
680
681
681
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 ]))
684
685
except KeyError :
685
686
stage_lst .append ("Not in sw - check" )
686
687
@@ -1007,8 +1008,9 @@ def csv_match_report(match_obj):
1007
1008
stage_lst .append ("Not in sw" )
1008
1009
1009
1010
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 ]))
1012
1014
except KeyError :
1013
1015
stage_lst .append ("Not in sw - check" )
1014
1016
You can’t perform that action at this time.
0 commit comments