]> git.armaanb.net Git - lightcards.git/commitdiff
Make percent complete end at 100%
authorArmaan Bhojwani <me@armaanb.net>
Wed, 10 Feb 2021 01:42:27 +0000 (20:42 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 10 Feb 2021 01:42:27 +0000 (20:42 -0500)
lightcards/display.py

index 46b5314292e2ddd76d5e8776a1b6fbf51e457235..73b2a396e672871fc2aeeeabe600072ace6869d7 100644 (file)
@@ -68,7 +68,7 @@ class Display:
             percent = "100"
         else:
             percent = str(
-                round(self.obj.getIdx() / len(self.stack) * 100)
+                round(self.obj.getIdx() / (len(self.stack) - 1) * 100)
             ).zfill(2)
 
         # Print yellow if starred