From 8e4f4797b8c63d75fcb1feb30be00aabb4073ecf Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 26 Dec 2019 21:33:27 -0800 Subject: fix small errors found by pylint --- python/sandcrawler/db.py | 2 +- python/sandcrawler/minio.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/sandcrawler/db.py b/python/sandcrawler/db.py index 0054e07..e89edc7 100644 --- a/python/sandcrawler/db.py +++ b/python/sandcrawler/db.py @@ -59,7 +59,7 @@ class SandcrawlerPostgresClient: cdx (url, datetime, sha1hex, mimetype, warc_path, warc_csize, warc_offset) VALUES %s ON CONFLICT ON CONSTRAINT cdx_pkey DO - """.format(on_conflict) + """ if on_conflict.lower() == "nothing": sql += " NOTHING" else: diff --git a/python/sandcrawler/minio.py b/python/sandcrawler/minio.py index 39903e0..25518f4 100644 --- a/python/sandcrawler/minio.py +++ b/python/sandcrawler/minio.py @@ -1,6 +1,7 @@ import io import os +import hashlib import minio -- cgit v1.2.3