Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
mbb1982 committed Dec 10, 2014
1 parent 42db8ed commit 0809aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -22,7 +22,7 @@
value.split(/<br>/).each{|line|
if tokens = /^(.*) \((.*)\-(.*)\) - (.*)/.match(line.gsub(/<.*?>/,""))
former_name = {:name=>tokens[1],:from=>tokens[2],:to=>tokens[3],:operator=>tokens[4]}
ScraperWiki::save_sqlite(['name','from','to','operator'],former_name,"former_names")
ScraperWiki::save_sqlite(['name','from','to'],former_name,"former_names")
end
}
end
Expand Down

0 comments on commit 0809aaa

Please sign in to comment.