dota2wins: truncate win % to 2 decimals

In order to avoid filling i3pystatus with super long decimals, this
patch sets the dota2win module to use only 2 decimal places for it's win
percent.
This commit is contained in:
David Wahlstrom 2015-06-16 07:33:31 -07:00 committed by enkore
parent 29d6a5c63b
commit b2175b1931

View File

@ -96,7 +96,7 @@ class Dota2wins(IntervalModule):
"screenname": screenname,
"wins": wins,
"losses": losses,
"win_percent": win_percent,
"win_percent": "%.2f" % win_percent,
}
self.output = {