From 45a49c7c85a16f66feb6abb46345b762d49fb159 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 20 Jun 2020 12:04:17 -0500 Subject: [PATCH] added tie annotation with proper space justification --- cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli.py b/cli.py index 93edecc..ba281df 100644 --- a/cli.py +++ b/cli.py @@ -56,8 +56,10 @@ def refreshScores() -> bool: for i, team in enumerate(scores): if i > 0 and scores[i - 1]['total'] == team['total']: team['rank'] = scores[i - 1]['rank'] + if not team['rank'].startswith('T'): + team['rank'] = 'T' + team['rank'].strip() else: - team['rank'] = i + 1 + team['rank'] = " " + str(i + 1) return True return False