From 2eec7818f6659f4f0678c326f2fc3edf13daad02 Mon Sep 17 00:00:00 2001 From: Yohanna Lisnichuk Date: Tue, 7 Dec 2021 15:37:22 -0300 Subject: [PATCH] Update kingfisher_scrapy/extensions/database_store.py Co-authored-by: James McKinney <26463+jpmckinney@users.noreply.github.com> --- kingfisher_scrapy/extensions/database_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kingfisher_scrapy/extensions/database_store.py b/kingfisher_scrapy/extensions/database_store.py index 18e037d0..636e69a6 100644 --- a/kingfisher_scrapy/extensions/database_store.py +++ b/kingfisher_scrapy/extensions/database_store.py @@ -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)