]> git.armaanb.net Git - lightcards.git/commitdiff
Zfill percent done to 2 places
authorArmaan Bhojwani <me@armaanb.net>
Mon, 1 Feb 2021 00:46:45 +0000 (19:46 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 1 Feb 2021 00:46:45 +0000 (19:46 -0500)
lightcards/display.py

index 39e67ef9e40b643e25a76cfdf43534ce84651ec8..ca6744adaa033a71c0da4194eee2deeb47226376 100644 (file)
@@ -35,7 +35,7 @@ class Display():
             percent = "100"
         else:
             percent = str(round(self.obj.getIdx() /
-                                len(self.stack) * 100)).zfill(3)
+                                len(self.stack) * 100)).zfill(2)
 
         # Print yellow if starred
         if self.stack[self.obj.getIdx()].getStar():