From 4f107fd648e3a2dcdcd3bc052424675c4bc7c207 Mon Sep 17 00:00:00 2001 From: oddluck <39967334+oddluck@users.noreply.github.com> Date: Sat, 22 Feb 2020 17:33:02 +0000 Subject: [PATCH] Jeopardy: pad time remaining --- Jeopardy/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jeopardy/plugin.py b/Jeopardy/plugin.py index 0f02c6e..b63da38 100644 --- a/Jeopardy/plugin.py +++ b/Jeopardy/plugin.py @@ -464,7 +464,8 @@ class Jeopardy(callbacks.Plugin): else: points = None if self.timeout > 0: - reply = self.hint_template.render(hint = self.currentHint, time = round(self.endTime - time.time()), points = points) + timeLeft = str(round(self.endTime - time.time())).zfill(len(str(self.timeout))) + reply = self.hint_template.render(hint = self.currentHint, time = timeLeft, points = points) if self.showHints or self.showTime: def event(): self.timedEvent()