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