Skip to content

Commit

Permalink
fix(linker): revert linker API so it still uses v2 results for English.
Browse files Browse the repository at this point in the history
English v3 results are still not on par with v2.
  • Loading branch information
nsantacruz committed Jun 26, 2024
1 parent 4a8373b commit 08bbf82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sefaria/helper/linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def _add_webpage_hit_for_url(url):

@django_cache(cache_type="persistent")
def _make_find_refs_response_with_cache(request_text: _FindRefsText, options: _FindRefsTextOptions, meta_data: dict) -> dict:
response = _make_find_refs_response_linker_v3(request_text, options)
if request_text.lang == 'he':
response = _make_find_refs_response_linker_v3(request_text, options)
else:
response = _make_find_refs_response_linker_v2(request_text, options)

if meta_data:
_, webpage = WebPage.add_or_update_from_linker({
Expand Down

0 comments on commit 08bbf82

Please sign in to comment.