[openstreetmap/openstreetmap-website] Improve statistucs numbers (PR #5994)
Tom Hughes
notifications at github.com
Thu May 8 16:17:06 UTC 2025
@tomhughes commented on this pull request.
> @@ -23,11 +29,11 @@ begin
relation_count = Relation.where(:visible => true).count
puts "<table>"
- puts "<tr><td>Number of users</td><td>#{user_count}</td></tr>"
- puts "<tr><td>Number of uploaded GPS points</td><td>#{tracepoint_count}</td></tr>"
- puts "<tr><td>Number of nodes</td><td>#{node_count}</td></tr>"
- puts "<tr><td>Number of ways</td><td>#{way_count}</td></tr>"
- puts "<tr><td>Number of relations</td><td>#{relation_count}</td></tr>"
+ puts "<tr><td>Number of users</td><td>#{user_count.format()}</td></tr>"
+ puts "<tr><td>Number of uploaded GPS points</td><td>#{tracepoint_count.format()}</td></tr>"
+ puts "<tr><td>Number of nodes</td><td>#{node_count.format()}</td></tr>"
+ puts "<tr><td>Number of ways</td><td>#{way_count.format()}</td></tr>"
+ puts "<tr><td>Number of relations</td><td>#{relation_count.format()}</td></tr>"
I think that would be a very bad idea...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5994#discussion_r2080048351
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5994/review/2825693671 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250508/e254b0cd/attachment.htm>
More information about the rails-dev
mailing list