mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix for mapfile format
This commit is contained in:
parent
7ef47038a8
commit
927c34ed01
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -106,7 +106,7 @@ task :compile_nginx_mapfiles => [:environment] do
|
||||||
end
|
end
|
||||||
|
|
||||||
File.open('./files/maps/sandboxed.txt', 'w') do |file|
|
File.open('./files/maps/sandboxed.txt', 'w') do |file|
|
||||||
usernames = DB["select username from sites where created_at > ? and (plan_type is null or plan_type='free')", 1.week.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username}\n"}
|
usernames = DB["select username from sites where created_at > ? and (plan_type is null or plan_type='free')", 1.week.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue