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:
parent
29d6a5c63b
commit
b2175b1931
@ -96,7 +96,7 @@ class Dota2wins(IntervalModule):
|
|||||||
"screenname": screenname,
|
"screenname": screenname,
|
||||||
"wins": wins,
|
"wins": wins,
|
||||||
"losses": losses,
|
"losses": losses,
|
||||||
"win_percent": win_percent,
|
"win_percent": "%.2f" % win_percent,
|
||||||
}
|
}
|
||||||
|
|
||||||
self.output = {
|
self.output = {
|
||||||
|
Loading…
Reference in New Issue
Block a user