Skip to content

Commit

Permalink
Can't use 'group' as a CSV field, ruby doesn't like it?
Browse files Browse the repository at this point in the history
  • Loading branch information
technicallynotdeaf committed Sep 22, 2016
1 parent 9c00567 commit 90aa192
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,10 @@ def scrape_person(mp_name, url, which_party)
end_date: '',
reason_left: 'still_in_office',
party: which_party,
group: which_party,
}

puts data.to_s

data[:image] = URI.join(url, data[:image]).to_s unless data[:image].to_s.empty?

ScraperWiki.save_sqlite([:member_count], data)

end
Expand Down

0 comments on commit 90aa192

Please sign in to comment.