Revision 1454:02a05da0bedc

View differences:

extra/soundsoftware/get-statistics.rb
6 6
# ./script/rails runner -e production extra/soundsoftware/get-statistics.rb
7 7
#
8 8

  
9
projectStats =  {:all => Project.active.all.count, :private => Project.active.find(:all, :conditions => {:is_public => false}).count}
9
projectStats =  {
10
        :all => Project.active.all.count,
11
        :private => Project.active.find(:all, :conditions => {:is_public => false}).count,
12
        :top_level => Project.active.find(:all, :conditions => {:parent_id => nil}).count,
13
        :top_level_and_private => Project.active.find(:all, :conditions => {:is_public => false, :parent_id => nil}).count
14
      }
10 15

  
11 16
userStats = {:all => User.active.all.count}
12 17

  

Also available in: Unified diff