Skip to content

Commit

Permalink
Update kingfisher_scrapy/extensions/database_store.py
Browse files Browse the repository at this point in the history
Co-authored-by: James McKinney <26463+jpmckinney@users.noreply.github.com>
  • Loading branch information
yolile and jpmckinney committed Dec 7, 2021
1 parent 1d3d210 commit 2eec781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/extensions/database_store.py
Expand Up @@ -107,7 +107,7 @@ def spider_closed(self, spider, reason):
with open(filename, 'w') as f:
writer = csv.writer(f)
for item in data:
writer.writerow([util.json_dumps(item, ensure_ascii=False).replace(r'/u0000', '')])
writer.writerow([util.json_dumps(item, ensure_ascii=False).replace(r'\u0000', '')])

spider.logger.info('Replacing the JSON data in the %s table', spider.name)
self.connection = psycopg2.connect(self.database_url)
Expand Down

0 comments on commit 2eec781

Please sign in to comment.