mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
exclude completed projects from blocked list
This commit is contained in:
parent
7873d2cff8
commit
6f8d9ec2ae
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ class Project < ActiveRecord::Base
|
|||
def blocked?
|
||||
## mutually exclusive for stalled and blocked
|
||||
return false if stalled?
|
||||
return false if completed?
|
||||
is_blocked = true
|
||||
todos.each do |t|
|
||||
is_blocked = false if (!t.completed? && !t.deferred? && !t.pending?)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue