aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-07-30 21:24:46 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-07-30 21:24:46 -0700
commit3200e368ea315143e4c9574a4915a1c5542b1418 (patch)
tree831a8da143eb4318bd04df40c6298a13f7a210db
parent0dbb6a1f02d9bce67af16339288128ce04b97eaf (diff)
downloadchocula-3200e368ea315143e4c9574a4915a1c5542b1418.tar.gz
chocula-3200e368ea315143e4c9574a4915a1c5542b1418.zip
chocula: fix wikidata_qid inclusion
-rwxr-xr-xchocula.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/chocula.py b/chocula.py
index e54a017..4c50d55 100755
--- a/chocula.py
+++ b/chocula.py
@@ -809,7 +809,7 @@ class ChoculaDatabase():
extra = dict()
extra['start_year'] = row.get('start_year')
issnl, status = self.add_issn(
- 'gold_oa',
+ 'wikidata',
raw_issn=row['issn'],
name=row['title'],
identifier=wikidata_qid,
@@ -1151,10 +1151,11 @@ class ChoculaDatabase():
out['publisher_type'] = 'longtail'
out['is_longtail'] = True
- self.c.execute("INSERT OR REPLACE INTO journal (issnl, issne, issnp, fatcat_ident, name, publisher, country, lang, is_oa, is_longtail, is_active, publisher_type, has_dois, any_homepage, any_live_homepage, known_issnl, valid_issnl, release_count, ia_count, ia_frac, kbart_count, kbart_frac, preserved_count, preserved_frac) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
+ self.c.execute("INSERT OR REPLACE INTO journal (issnl, issne, issnp, wikidata_qid, fatcat_ident, name, publisher, country, lang, is_oa, is_longtail, is_active, publisher_type, has_dois, any_homepage, any_live_homepage, known_issnl, valid_issnl, release_count, ia_count, ia_frac, kbart_count, kbart_frac, preserved_count, preserved_frac) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
(issnl,
out.get('issne'),
out.get('issnp'),
+ out.get('wikidata_qid'),
out.get('fatcat_ident'),
out.get('name'),
out.get('publisher'),