Skip to content

Commit

Permalink
bugfix: now actually *use* DATA_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
tlossen committed Dec 16, 2009
1 parent 113d577 commit a5fe204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch_history.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def fetch(region)
['us-east-1', 'us-west-1', 'eu-west-1'].each do |region|
data = fetch(region)
data.keys.each do |type|
open("public/data/#{region}.#{type}.csv", 'w') do |file|
open("#{DATA_DIR}/#{region}.#{type}.csv", 'w') do |file|
data[type].each do |stamp, price|
file.puts "#{stamp.strftime('%Y-%m-%d %H:%M:%S')},#{price}"
end
Expand Down

0 comments on commit a5fe204

Please sign in to comment.