Remove comments

This commit is contained in:
Eugene Burmakin 2025-05-18 11:19:01 +02:00
parent 168e33dedd
commit ce0c38e6e8

View file

@ -40,7 +40,6 @@ module ApplicationHelper
data[:cities].flatten!.uniq!
data[:countries].flatten!.uniq!
# Group cities by country
grouped_by_country = {}
stats.select { _1.year == year }.each do |stat|
stat.toponyms.flatten.each do |toponym|
@ -58,10 +57,8 @@ module ApplicationHelper
end
end
# Deduplicate cities for each country
grouped_by_country.transform_values!(&:uniq)
# Return data for the template to use
{
countries_count: data[:countries].count,
cities_count: data[:cities].count,