Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Feng-Gao committed Mar 11, 2019
1 parent 47483a7 commit 5b11192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -85,7 +85,7 @@

#package detail + resource detail as one record

scraperwiki.sqlite.save(unique_keys=['id'], data={
scraperwiki.sqlite.save(data={
"id":package_id,
"name": package_name,
"description": package_desc,
Expand All @@ -109,7 +109,7 @@

#in case there is no resource we then just write package details into csv
if package_resource_num == 0:
scraperwiki.sqlite.save(unique_keys=['id'], data={
scraperwiki.sqlite.save(data={
"id":package_id,
"name": package_name,
"description": package_desc,
Expand Down

0 comments on commit 5b11192

Please sign in to comment.