mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Remove comments
This commit is contained in:
parent
168e33dedd
commit
ce0c38e6e8
1 changed files with 0 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue