Sjekk om løperen har en klasse

This commit is contained in:
Trygve 2022-03-13 17:31:32 +01:00
parent b62661c339
commit 052a06741f

6
cli.py
View File

@ -17,7 +17,11 @@ def print_runners(Runners):
table.add_column("Status", justify="right", style="blue")
for i in Runners:
table.add_row(i.fullname(), i.club ,str(i.card), i.o_class.name, i.status())
try:
o_class = i.o_class.name
except:
o_class = ''
table.add_row(i.fullname(), i.club ,str(i.card), o_class, i.status())
console = Console()
console.print(table)