Skip to content

Commit

Permalink
Assume uniqueness by name/term
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Parkes committed May 27, 2015
1 parent f4f891a commit 60924df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@

data.append(member)


##########################################################################################
# Actually saving the data is down here to help me add and remove it repeatedly with Git #
##########################################################################################

import scraperwiki
scraperwiki.sqlite.save(unique_keys=['name'], data=data)
scraperwiki.sqlite.save(unique_keys=['name', 'term_id'], data=data)
scraperwiki.sqlite.save(unique_keys=['id'], data=legislatures_data, table_name='terms')

0 comments on commit 60924df

Please sign in to comment.