Update seed sample to create multiple task orders for each portfolio

This commit is contained in:
Patrick Smith
2019-01-15 11:16:40 -05:00
parent 1cd015a862
commit e41f01398c
2 changed files with 36 additions and 20 deletions

View File

@@ -42,6 +42,10 @@ def random_phone_number():
return "".join(random.choices(string.digits, k=10))
def random_task_order_number():
return "-".join([str(random.randint(100, 999)) for _ in range(4)])
def random_past_date(year_min=1, year_max=5):
return _random_date(year_min, year_max, operator.sub)