示例#1
0
 def _execute(self, sp_controller, date_converter, as_key):
     from agilo.scrum.contingent import ContingentController
     ideal_capacity = self._calculate_capacity()
     get_contingent_total = ContingentController.GetSprintContingentTotalsCommand(
         sp_controller.env, sprint=self.sprint)
     contingent = ContingentController(
         sp_controller.env).process_command(get_contingent_total)
     net_capacity = ideal_capacity - contingent.amount
     return net_capacity
示例#2
0
 def _get_contingent_totals_for_sprint(self, sprint):
     cmd = ContingentController.GetSprintContingentTotalsCommand(self.env, sprint=sprint)
     return ContingentController(self.env).process_command(cmd)