mirror of
https://github.com/Xevion/trivia.git
synced 2026-01-31 08:26:17 -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):
|
for i, team in enumerate(scores):
|
||||||
if i > 0 and scores[i - 1]['total'] == team['total']:
|
if i > 0 and scores[i - 1]['total'] == team['total']:
|
||||||
team['rank'] = scores[i - 1]['rank']
|
team['rank'] = scores[i - 1]['rank']
|
||||||
|
if not team['rank'].startswith('T'):
|
||||||
|
team['rank'] = 'T' + team['rank'].strip()
|
||||||
else:
|
else:
|
||||||
team['rank'] = i + 1
|
team['rank'] = " " + str(i + 1)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user