Fix statistics script to reflect changes to user model

This commit is contained in:
Tom Hughes 2010-05-07 11:09:54 +01:00
parent 7774237a11
commit 68bb9b3b81

View file

@ -16,7 +16,7 @@ puts "<h2>OpenStreetMap stats report run at #{start_time.to_s}</h2>"
begin
ActiveRecord::Base.transaction do
user_count = User.count(:conditions => "active = 1")
user_count = User.count(:conditions => { :status => ["active", "confirmed", "suspended"] })
tracepoint_count = Tracepoint.count()
node_count = Node.count(:conditions => "visible = true")
way_count = Way.count(:conditions => "visible = true")