mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
First implementation of advanced stats
This commit is contained in:
parent
dc01d795f3
commit
51140856c5
3 changed files with 362 additions and 0 deletions
|
@ -131,3 +131,11 @@ if ENV['RACK_ENV'] != 'development'
|
|||
# Sass::Plugin.options[:never_update] = true
|
||||
Sass::Plugin.options[:full_exception] = false
|
||||
end
|
||||
|
||||
require 'csv'
|
||||
|
||||
$country_codes = {}
|
||||
|
||||
CSV.foreach("./files/country_codes.csv") do |row|
|
||||
$country_codes[row.last] = row.first
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue