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:
David Wahlstrom 2016-08-31 07:57:29 -07:00
parent 4b38b78b1b
commit 453767e50e

View File

@ -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