From 6226519694970400eb98632369d042b0499ecabe Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Tue, 9 Feb 2021 20:42:27 -0500 Subject: [PATCH] Make percent complete end at 100% --- lightcards/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightcards/display.py b/lightcards/display.py index 46b5314..73b2a39 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -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 -- 2.39.2