Add support for ground school

This commit is contained in:
Ian Adam Naval 2019-04-01 20:48:03 -04:00
parent a5f616436c
commit 78abd79962

View File

@ -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):