mirror of
https://github.com/Xevion/trivia.git
synced 2026-01-31 02:26:15 -06:00
added tie annotation with proper space justification
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user