Fixed begins / ends time for TOs
This commit is contained in:
@@ -84,6 +84,14 @@ class TaskOrder(Base, mixins.TimestampsMixin):
|
||||
def is_unsigned(self):
|
||||
return self.status == Status.UNSIGNED
|
||||
|
||||
@property
|
||||
def has_begun(self):
|
||||
return Clock.today() >= self.start_date
|
||||
|
||||
@property
|
||||
def has_ended(self):
|
||||
return Clock.today() >= self.end_date
|
||||
|
||||
@property
|
||||
def is_completed(self):
|
||||
return all([self.pdf, self.number, len(self.clins)])
|
||||
|
Reference in New Issue
Block a user