Add support for ground school
This commit is contained in:
parent
a5f616436c
commit
78abd79962
@ -16,9 +16,17 @@ class Reservation(object):
|
||||
comments: str
|
||||
raw: str
|
||||
|
||||
@property
|
||||
def lesson_title(self):
|
||||
if self.aircraft:
|
||||
title = f"Flying {self.aircraft}"
|
||||
else:
|
||||
title = "Ground School"
|
||||
return title
|
||||
|
||||
@property
|
||||
def summary(self):
|
||||
return f"Flying {self.aircraft} with {self.instructor}"
|
||||
return f"{self.lesson_title} with {self.instructor}"
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user