From: Armaan Bhojwani Date: Wed, 10 Feb 2021 01:42:27 +0000 (-0500) Subject: Make percent complete end at 100% X-Git-Tag: v0.6.0~25 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=6226519694970400eb98632369d042b0499ecabe Make percent complete end at 100% --- 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