diff options
| author | Johan Van Ryseghem | 2018-02-13 09:07:47 +0100 | 
|---|---|---|
| committer | GitHub | 2018-02-13 09:07:47 +0100 | 
| commit | 551c1117a4b9872c99508da71427f5a28fc31ddc (patch) | |
| tree | 0b620b21c0e7b7759955c6dfa6cf6ccf255fad3d /app/models/compliance_check_set.rb | |
| parent | 54414ddb8970ee6133817777290153a713834285 (diff) | |
| parent | 49c4c822d5e7f526ad7be9c0aa21c201653f24ea (diff) | |
| download | chouette-core-551c1117a4b9872c99508da71427f5a28fc31ddc.tar.bz2 | |
Merge pull request #289 from af83/5707_chouette_status
5707 chouette status
Diffstat (limited to 'app/models/compliance_check_set.rb')
| -rw-r--r-- | app/models/compliance_check_set.rb | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/app/models/compliance_check_set.rb b/app/models/compliance_check_set.rb index 3ea832048..289fc134f 100644 --- a/app/models/compliance_check_set.rb +++ b/app/models/compliance_check_set.rb @@ -19,6 +19,8 @@ class ComplianceCheckSet < ActiveRecord::Base      where('created_at BETWEEN :begin AND :end', begin: period_range.begin, end: period_range.end)    end +  scope :blocked, -> { where('created_at < ? AND status = ?', 4.hours.ago, 'running') } +    def self.finished_statuses      %w(successful failed warning aborted canceled)    end | 
