Skip to content

Commit

Permalink
Use email as ID
Browse files Browse the repository at this point in the history
  • Loading branch information
mashedkeyboard committed May 5, 2023
1 parent 15ee389 commit ad0d275
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.rb
Expand Up @@ -39,6 +39,7 @@ def parse_csv(csv_data)
end

data = {
id: member[:email_address], # no other unique reference given
name: member[:name],
party: member[:party],
area_id: area_id,
Expand All @@ -64,7 +65,7 @@ def parse_csv(csv_data)
# data[:start_date], data[:end_date] = last_term if last_term.first > '2016-05-01'
# end

ScraperWiki.save_sqlite([:email, :term, :party], data)
ScraperWiki.save_sqlite([:id, :term, :party], data)
end
end

Expand Down

0 comments on commit ad0d275

Please sign in to comment.