diff --git a/backend/corpora/jewishmigration/jewishmigration.py b/backend/corpora/jewishmigration/jewishmigration.py index e486d0dac..16b0ee00a 100644 --- a/backend/corpora/jewishmigration/jewishmigration.py +++ b/backend/corpora/jewishmigration/jewishmigration.py @@ -63,7 +63,7 @@ class JewishMigration(PeacePortal, JSONCorpusDefinition): def sources(self, start, end): if self.data_url: if self.data_api_key: - headers = {'Authorization': f'Token {self.api_key}'} + headers = {"Authorization": f"Token {self.data_api_key}"} response = requests.get(self.data_url, headers=headers) else: response = requests.get(self.data_url) @@ -77,7 +77,6 @@ def sources(self, start, end): for source in list_of_sources: yield source - def __init__(self): super().__init__() self._id.extractor = extract.JSON(key='source')