dota2wins: fix win% reporting
Somehow I accidentially had 2 win_percent values being set in the cdict, one of which was a string that breaks when you try to round off the remainder.
This commit is contained in:
parent
4b38b78b1b
commit
453767e50e
@ -102,10 +102,8 @@ class Dota2wins(IntervalModule):
|
||||
"wins": wins,
|
||||
"losses": losses,
|
||||
"win_percent": win_percent,
|
||||
"win_percent": "%.2f" % win_percent,
|
||||
}
|
||||
|
||||
self.data = cdict
|
||||
self.output = {
|
||||
"full_text": self.format.format(**cdict),
|
||||
"color": color
|
||||
|
Loading…
Reference in New Issue
Block a user