Remove commented code
This commit is contained in:
parent
48adab4201
commit
1e67eb8281
@ -9,30 +9,6 @@ restaurants = []
|
||||
|
||||
csv = CSV.open("data/#{Date.today.to_s}-all.csv", 'w')
|
||||
|
||||
# restaurants = CSV.read("data/#{Date.today.to_s}.csv", headers: true)
|
||||
# restaurants_map = {}
|
||||
|
||||
# restaurants.each do |row|
|
||||
# begin
|
||||
# url = URI.parse(row['url'])
|
||||
# rescue URI::InvalidURIError
|
||||
# url = URI.parse(CGI.escape(row['url']))
|
||||
# end
|
||||
# id = row['url'].split('/').last
|
||||
# restaurants_map[url.path.strip] = {
|
||||
# 'url': url,
|
||||
# 'title': row['title'],
|
||||
# 'location':row['location'],
|
||||
# 'address':row['address']
|
||||
# }
|
||||
# end
|
||||
|
||||
# def join_props(h, key, data)
|
||||
# data.keys.each do |k|
|
||||
# h["#{key}.#{k}"] = data[k]
|
||||
# end
|
||||
# end
|
||||
|
||||
first = true
|
||||
Dir.glob('html/restaurants/*.html') do |file|
|
||||
# puts file
|
||||
|
Loading…
Reference in New Issue
Block a user