Skip to content

Commit

Permalink
disable full pre-loads for yente
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jul 21, 2023
1 parent e17a47a commit 95e5f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomenklatura/enrich/yente.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def __init__(self, dataset: DS, cache: Cache, config: EnricherConfig):
if self._api_key is not None:
self.session.headers["Authorization"] = f"ApiKey {self._api_key}"

match_url = urljoin(self._api, f"match/{self._dataset}")
self.cache.preload(f"{match_url}%")
# match_url = urljoin(self._api, f"match/{self._dataset}")
# self.cache.preload(f"{match_url}%")

def make_url(self, entity: CE) -> str:
return urljoin(self._api, f"entities/{entity.id}")
Expand Down

0 comments on commit 95e5f22

Please sign in to comment.