]> git.armaanb.net Git - lightcards.git/commitdiff
Zfill percent done to 3 places
authorArmaan Bhojwani <me@armaanb.net>
Sun, 14 Feb 2021 14:31:07 +0000 (09:31 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 14 Feb 2021 14:31:07 +0000 (09:31 -0500)
lightcards/display.py

index 35a6539bad16f50870ae220d6f045b4eef6ee8f9..b1e6022728fd0102d2b7a173983d4ed23cdcd797 100644 (file)
@@ -322,7 +322,7 @@ class Display:
         else:
             percent = str(
                 round(self.obj.index / (len(self.stack) - 1) * 100)
-            ).zfill(2)
+            ).zfill(3)
 
         # Print yellow if starred
         if self.current_card().starred: