mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 02:07:06 +02:00
PlayerHistograms:get_results_list(): fix percentage fields 1/100
This commit is contained in:
1 parent
9f91ef85b6
commit
111c1801e6
1 file changed
+3
-3
@@ -1257,9 +1257,9 @@ class PlayerHistogram():
|
||||
res.append([self.name, "Allies", "Allies %", "Enemies", "Enemies %" ,"TOTAL", "TOTAL %"])
|
||||
for cat in self.results:
|
||||
stat = self.results[cat]
|
||||
res.append([ cat, stat['allies'], stat['allies%']*100,
|
||||
stat['enemies'], stat['enemies%']*100,
|
||||
stat['total'], stat['total%']*100 ])
|
||||
res.append([ cat, stat['allies'], stat['allies%'],
|
||||
stat['enemies'], stat['enemies%'],
|
||||
stat['total'], stat['total%'] ])
|
||||
return res
|
||||
else:
|
||||
bu.error('Results have not been calculated yet.')
|
||||
|
||||
Reference in new issue
Block a user