From: Armaan Bhojwani Date: Sun, 31 Jan 2021 22:18:54 +0000 (-0500) Subject: Change how percent done is calculated X-Git-Tag: v0.4.0~12 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=e9d7229dd400196d57a54da5934a42e619a33975 Change how percent done is calculated Last card is no longer 100% --- diff --git a/lightcards/display.py b/lightcards/display.py index 7e09cdc..3f55a56 100755 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -35,7 +35,7 @@ class Display(): percent = "100" else: percent = str(round(self.obj.getIdx() / - (len(self.stack) - 1) * 100)).zfill(3) + len(self.stack) * 100)).zfill(3) # Print yellow if starred self.win.addstr(mlines - 1, 0, "[", curses.color_pair(1))