]> git.openstreetmap.org Git - rails.git/commitdiff
The active flag is still an integer for some reason, not a boolean.
authorTom Hughes <tom@compton.nu>
Wed, 22 Apr 2009 13:34:12 +0000 (13:34 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 22 Apr 2009 13:34:12 +0000 (13:34 +0000)
Closes #1727.

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
-  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")