From 10e4ad635b2d4c6fbb17b039448d4a0dc71d06b7 Mon Sep 17 00:00:00 2001 From: joshrandall8478 <joshrandall8478@gmail.com> Date: Tue, 22 Oct 2024 21:30:41 -0400 Subject: [PATCH] Added visual subtraction points --- main.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e789a97..b576e3e 100644 --- a/main.py +++ b/main.py @@ -184,7 +184,7 @@ def boolResult(boolean): if boolean: return f'{Fore.green}Yes{Style.reset}' else: - return f'{Fore.red}No{Style.reset}' + return f'{Fore.red}No {Fore.deep_pink_3b}-%s {Style.reset}' % (latePenalty) @@ -218,14 +218,21 @@ def runScore(): def printRuns(): global pointsForRun + global defaults index = 0 for i in defaultLabels: print(i) print("====================") count = 1 + j = 0 # location of default run point in category for point in pointsForRun[index]: - print("Run " + str(count) + ": " + f'{Fore.yellow}' + str(point) + f'{Style.reset}') + if pointsForRun[index][j] < defaults[index][j]: + minusPointStr = " -" + str(defaults[index][j] - pointsForRun[index][j]) + else: + minusPointStr = "" + print("Run " + str(count) + ": " + f'{Fore.yellow}' + str(point) + f'{Fore.deep_pink_3b}' + minusPointStr + f'{Style.reset}') count = count + 1 + j = j + 1 index = index + 1 print() -- GitLab