From 453767e50ec07b9e5454f40e723f7b2c406239a8 Mon Sep 17 00:00:00 2001 From: David Wahlstrom Date: Wed, 31 Aug 2016 07:57:29 -0700 Subject: [PATCH] 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. --- i3pystatus/dota2wins.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/i3pystatus/dota2wins.py b/i3pystatus/dota2wins.py index 2c50520..9c4a75d 100644 --- a/i3pystatus/dota2wins.py +++ b/i3pystatus/dota2wins.py @@ -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