aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-09-02 10:37:57 -0700
committerBryan Newbold <bnewbold@archive.org>2020-09-02 10:37:57 -0700
commit71a836c41bcbd856cbedfa22033684b7579c5d06 (patch)
tree857f5d02fb51c6681a85809a246d269e4bb8af9a
parent6bd5d499352ad195a5d91a8344ed57394708ea0a (diff)
downloadchocula-71a836c41bcbd856cbedfa22033684b7579c5d06.tar.gz
chocula-71a836c41bcbd856cbedfa22033684b7579c5d06.zip
do not create hathitrust-only journal rows
-rw-r--r--chocula/database.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chocula/database.py b/chocula/database.py
index c432b76..3e8db57 100644
--- a/chocula/database.py
+++ b/chocula/database.py
@@ -434,7 +434,8 @@ class ChoculaDatabase:
counts: Counter = Counter()
cur = self.db.cursor()
self.db.row_factory = sqlite3.Row
- index_issnls = list(cur.execute("SELECT DISTINCT issnl FROM directory"))
+ # don't include new journals if they are *only* in hathitrust KBART
+ index_issnls = list(cur.execute("SELECT DISTINCT issnl FROM directory WHERE slug != 'hathitrust'"))
fatcat_issnls = list(
cur.execute(
"SELECT DISTINCT issnl FROM fatcat_container WHERE issnl IS NOT null"