]> source.dussan.org Git - sonarqube.git/commitdiff
remove libraries from timemachine calendar
authorsimonbrandhof <simon.brandhof@gmail.com>
Tue, 4 Jan 2011 12:51:03 +0000 (12:51 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Tue, 4 Jan 2011 12:51:03 +0000 (12:51 +0000)
sonar-server/src/main/webapp/WEB-INF/app/models/project.rb

index de2a7aa9beceb8d9307f1e45d52481edf1c37ec4..d4762df86ad68e78ff036d038a0cf84d01fb6757 100644 (file)
@@ -22,7 +22,7 @@ class Project < ActiveRecord::Base
   include Resourceable
   
   has_many :snapshots
-  has_many :processed_snapshots, :class_name => 'Snapshot', :conditions => "status='#{Snapshot::STATUS_PROCESSED}'", :order => 'created_at asc'
+  has_many :processed_snapshots, :class_name => 'Snapshot', :conditions => "status='#{Snapshot::STATUS_PROCESSED}' AND qualifier<>'LIB'", :order => 'created_at asc'
   has_many :events, :foreign_key => 'resource_id', :order => 'event_date DESC'
   has_many :project_links, :dependent => :delete_all, :order => 'link_type'
   belongs_to :profile, :class_name => 'Profile', :foreign_key => 'profile_id'