Skip to content

Commit

Permalink
fix: correct variable name api_key -> data_api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Sep 11, 2024
1 parent 0b47338 commit e3f910f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/corpora/jewishmigration/jewishmigration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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')
Expand Down

0 comments on commit e3f910f

Please sign in to comment.