diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-03-05 01:09:40 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-03-05 01:09:40 -0800 |
commit | 5214a7397ee7f4f6e0624bc5ed2b8cb92b66c94f (patch) | |
tree | a271fbbea504305d538255e9d6635d80b1a810f4 /python/sandcrawler/persist.py | |
parent | 97ffdc17941b1272a8c7f05c0d1353cd28761280 (diff) | |
download | sandcrawler-5214a7397ee7f4f6e0624bc5ed2b8cb92b66c94f.tar.gz sandcrawler-5214a7397ee7f4f6e0624bc5ed2b8cb92b66c94f.zip |
fixes to ingest-request persist
Diffstat (limited to 'python/sandcrawler/persist.py')
-rw-r--r-- | python/sandcrawler/persist.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python/sandcrawler/persist.py b/python/sandcrawler/persist.py index 5960756..f5de44a 100644 --- a/python/sandcrawler/persist.py +++ b/python/sandcrawler/persist.py @@ -201,9 +201,7 @@ class PersistIngestFileResultWorker(SandcrawlerWorker): class PersistIngestRequestWorker(PersistIngestFileResultWorker): def __init__(self, db_url, **kwargs): - super().__init__() - self.db = SandcrawlerPostgresClient(db_url) - self.cur = self.db.conn.cursor() + super().__init__(db_url=db_url) def process(self, record): """ |