]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Make percent complete end at 100%
[lightcards.git] / 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