From 79add9f0b12c3998c1522540fcfec1da458d38e8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 May 2020 19:59:41 -0700 Subject: update code to work with new config structure --- chocula/directories/entrez.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chocula/directories/entrez.py') diff --git a/chocula/directories/entrez.py b/chocula/directories/entrez.py index 821fb1d..b30f04d 100644 --- a/chocula/directories/entrez.py +++ b/chocula/directories/entrez.py @@ -23,7 +23,7 @@ class EntrezLoader(DirectoryLoader): source_slug = "entrez" def open_file(self) -> Iterable: - return csv.DictReader(open(self.config.ENTREZ_FILE)) + return csv.DictReader(open(self.config.entrez_simple.filepath)) def parse_record(self, record) -> Optional[DirectoryInfo]: if not (record.get('ISSN (Online)') or record.get('ISSN (Print)')): -- cgit v1.2.3