Fixed the value of total_story_points in the sample data command to show the doomline more frequently

remotes/origin/enhancement/email-actions
David Barragán Merino 2013-12-06 12:26:03 +01:00
parent df4a5b7b6c
commit 40f7754c31
1 changed files with 6 additions and 1 deletions

View File

@ -124,9 +124,14 @@ class Command(BaseCommand):
start_date = end_date
# created unassociated uss.
for y in range(self.sd.int(8,15)):
for y in range(self.sd.int(8,20)):
us = self.create_us(project, None, computable_project_roles)
# Set a value to total_story_points to show the deadline in the backlog
defined_points = sum(project.defined_points.values())
project.total_story_points = int(defined_points * self.sd.int(5,10) / 10)
project.save()
# create bugs.
for y in range(self.sd.int(15,25)):
bug = self.create_bug(project)