forked from Trygve/otime
Sjekk om løperen har en klasse
This commit is contained in:
parent
b62661c339
commit
052a06741f
6
cli.py
6
cli.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user