From 7a044a81e105545fee0667d1e6326e90a2f943c2 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 31 Jan 2021 19:46:45 -0500 Subject: [PATCH] Zfill percent done to 2 places --- lightcards/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightcards/display.py b/lightcards/display.py index 39e67ef..ca6744a 100644 --- 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) * 100)).zfill(3) + len(self.stack) * 100)).zfill(2) # Print yellow if starred if self.stack[self.obj.getIdx()].getStar(): -- 2.39.2