Last sprint is first in the array

pull/6827/head
friflaj 15 years ago
parent 165d1ff97c
commit 84c21a6955
  1. 4
      lib/backlogs_project_patch.rb

@ -111,8 +111,8 @@ module Backlogs
score << (pph_variance > 10 ? l(:size_accuracy, {:pct => pph_variance}) : nil)
end
last_sprint = sprints[-1]
score << (last_sprint.effective_date < -7.days.from_now.to_date ? l(:project_dormant) : nil) if !active
last_sprint = sprints[0]
score << (last_sprint.effective_date < -14.days.from_now.to_date ? l(:project_dormant) : nil) if !active
score << (!last_sprint.has_wiki_page ? l(:sprint_notes_missing) : nil)
stats[:average_days_per_sprint] = days / sprints.length

Loading…
Cancel
Save