mirror of
https://github.com/Xevion/trivia.git
synced 2025-12-15 00:13:25 -06:00
cli empty team name fix
This commit is contained in:
4
cli.py
4
cli.py
@@ -71,6 +71,10 @@ def refreshScores() -> None:
|
|||||||
# Otherwise just add a space in front instead
|
# Otherwise just add a space in front instead
|
||||||
team['rank'] = " " + str(i + 1)
|
team['rank'] = " " + str(i + 1)
|
||||||
|
|
||||||
|
# Check for empty team name
|
||||||
|
if not team['name']:
|
||||||
|
team['name'] = f'Team {team["id"]}'
|
||||||
|
|
||||||
|
|
||||||
def main(screen) -> None:
|
def main(screen) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user