More variety in fake TO statuses
This commit is contained in:
parent
c9674255d1
commit
2de8f64645
@ -67,7 +67,9 @@ class TaskOrder(Base, mixins.TimestampsMixin):
|
|||||||
def status(self):
|
def status(self):
|
||||||
# TODO: fix task order -- implement correctly using CLINs
|
# TODO: fix task order -- implement correctly using CLINs
|
||||||
# Faked for display purposes
|
# 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
|
@property
|
||||||
def start_date(self):
|
def start_date(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user