Remove commented code

This commit is contained in:
Nemo 2020-07-30 03:07:27 +05:30
parent 48adab4201
commit 1e67eb8281
1 changed files with 0 additions and 24 deletions

View File

@ -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