Permalink
Browse files

Need to keep the other memberships the same…

  • Loading branch information...
tmtmtmtm committed Sep 12, 2015
1 parent 4e1cc7d commit 11f3f0c168eeb47c8ee17ea53f016f491c44a4c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 scraper.rb
View
@@ -106,7 +106,7 @@ def scrape_person(i)
term_mems = memberships_from(mems)
combine(term: term_mems, party: group_mems).each do |t|
data = person.merge(t)
# data[:party] = data[:party].sub('Parliamentary Group of ','').sub('Independent Members of Parliament', 'Independent')
data[:party] = data[:party].sub('Parliamentary Group of ','').sub('Independent Members of Parliament', 'Independent')
data[:term] = data[:term][/^(\d+)/, 1] rescue binding.pry
ScraperWiki.save_sqlite([:id, :term, :party, :start_date], data)
end

0 comments on commit 11f3f0c

Please sign in to comment.