From 0b731c90c6b860d06c81c0082518e5b03bd82f04 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 22 Jun 2020 13:55:15 -0700 Subject: norwegian: fixes from bugs flake8 helped find --- chocula/directories/norwegian.py | 5 ++--- 1 file 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) -- cgit v1.2.3