aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/db.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2019-12-26 21:33:27 -0800
committerBryan Newbold <bnewbold@archive.org>2020-01-02 18:12:58 -0800
commit8e4f4797b8c63d75fcb1feb30be00aabb4073ecf (patch)
treed3c462bacc38d85890c401b2e2e5b4c2494b0c3f /python/sandcrawler/db.py
parentd4f40c4401e479f6db366ea104687938b9d2345e (diff)
downloadsandcrawler-8e4f4797b8c63d75fcb1feb30be00aabb4073ecf.tar.gz
sandcrawler-8e4f4797b8c63d75fcb1feb30be00aabb4073ecf.zip
fix small errors found by pylint
Diffstat (limited to 'python/sandcrawler/db.py')
-rw-r--r--python/sandcrawler/db.py2
1 files changed, 1 insertions, 1 deletions
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: