diff --git a/atst/models/task_order.py b/atst/models/task_order.py index bd53b219..c8e9948d 100644 --- a/atst/models/task_order.py +++ b/atst/models/task_order.py @@ -67,7 +67,9 @@ class TaskOrder(Base, mixins.TimestampsMixin): def status(self): # TODO: fix task order -- implement correctly using CLINs # Faked for display purposes - return random.choice(list(Status.__members__.values())) + possible_statuses = list(Status.__members__.values()) + index = self.time_created.microsecond % len(possible_statuses) + return possible_statuses[index] @property def start_date(self):