aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-22 13:55:15 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-22 13:55:15 -0700
commit0b731c90c6b860d06c81c0082518e5b03bd82f04 (patch)
tree31cded975ac1d1ace9fa1e13fc94162714ab7bd0
parentac23020646a571bd3ed63e0c86f76f900f6c8c74 (diff)
downloadchocula-0b731c90c6b860d06c81c0082518e5b03bd82f04.tar.gz
chocula-0b731c90c6b860d06c81c0082518e5b03bd82f04.zip
norwegian: fixes from bugs flake8 helped find
-rw-r--r--chocula/directories/norwegian.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/chocula/directories/norwegian.py b/chocula/directories/norwegian.py
index 2425318..63313c3 100644
--- a/chocula/directories/norwegian.py
+++ b/chocula/directories/norwegian.py
@@ -60,6 +60,8 @@ class NorwegianLoader(DirectoryLoader):
directory_slug=self.source_slug,
issnp=row["Print ISSN"],
issne=row["Online ISSN"],
+ custom_id=clean_str(row["NSD tidsskrift_id"]),
+ publisher=clean_str(row["Publisher"]),
country=parse_country(row["Country of publication"]),
name=clean_str(row.get("International title")),
langs=[l for l in [parse_lang(row["Language"])] if l],
@@ -72,9 +74,6 @@ class NorwegianLoader(DirectoryLoader):
if row["Original title"] != row["International title"]:
info.original_name = clean_str(row["Original title"])
- identifier = (row["NSD tidsskrift_id"],)
- publisher = (row["Publisher"],)
-
url = HomepageUrl.from_url(row["URL"])
if url:
info.homepage_urls.append(url)