diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 18:12:23 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 18:12:23 -0700 |
commit | 485dd2cfd120c52bbc5cc7745e44176d1003b40d (patch) | |
tree | 966bf78a4bd3cc1f6c94efb8fc3054a8a441dab0 /python/sandcrawler/db.py | |
parent | 7087e7f65d8b81e29af44a43c1067bb2ec618c4e (diff) | |
download | sandcrawler-485dd2cfd120c52bbc5cc7745e44176d1003b40d.tar.gz sandcrawler-485dd2cfd120c52bbc5cc7745e44176d1003b40d.zip |
lint collection membership (last lint for now)
Diffstat (limited to 'python/sandcrawler/db.py')
-rw-r--r-- | python/sandcrawler/db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/db.py b/python/sandcrawler/db.py index 05fedc6..ee4d3bf 100644 --- a/python/sandcrawler/db.py +++ b/python/sandcrawler/db.py @@ -208,7 +208,7 @@ class SandcrawlerPostgresClient: # though (to save database space) dupe_fields = ('fatcat_release', 'grobid_version') for k in dupe_fields: - if not k in r: + if k not in r: r[k] = r['metadata'].get(k) r['metadata'].pop(k, None) r['metadata'] = json.dumps(r['metadata'], sort_keys=True) |