From: Armaan Bhojwani Date: Mon, 1 Feb 2021 00:46:45 +0000 (-0500) Subject: Zfill percent done to 2 places X-Git-Tag: v0.4.0~6 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=7a044a81e105545fee0667d1e6326e90a2f943c2 Zfill percent done to 2 places --- 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():