]> git.openstreetmap.org Git - rails.git/blobdiff - script/statistics
The active flag is still an integer for some reason, not a boolean.
[rails.git] / script / statistics
index 62c7e93a966eddfd229dc6ae3c14b01d831729c2..7105d475d3297381a57276ae065e2c80cb48a219 100755 (executable)
@@ -15,7 +15,7 @@ puts "<body>"
 puts "<h2>OpenStreetMap stats report run at #{start_time.to_s}</h2>"
 
 begin
 puts "<h2>OpenStreetMap stats report run at #{start_time.to_s}</h2>"
 
 begin
-  user_count = User.count(:conditions => "active = true")
+  user_count = User.count(:conditions => "active = 1")
   tracepoint_count = Tracepoint.count()
   node_count = Node.count(:conditions => "visible = true")
   way_count = Way.count(:conditions => "visible = true")
   tracepoint_count = Tracepoint.count()
   node_count = Node.count(:conditions => "visible = true")
   way_count = Way.count(:conditions => "visible = true")