Add support for solo flights
This commit is contained in:
parent
78abd79962
commit
357f02daba
@ -24,9 +24,17 @@ class Reservation(object):
|
|||||||
title = "Ground School"
|
title = "Ground School"
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
@property
|
||||||
|
def lesson_suffix(self):
|
||||||
|
if self.instructor:
|
||||||
|
suffix = f"with {self.instructor}"
|
||||||
|
else:
|
||||||
|
suffix = "Solo"
|
||||||
|
return suffix
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def summary(self):
|
def summary(self):
|
||||||
return f"{self.lesson_title} with {self.instructor}"
|
return f"{self.lesson_title} {self.lesson_suffix}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def description(self):
|
def description(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user