Skip to content

Commit

Permalink
Merge pull request #2065 from Sefaria/fix-topic-toggle-broken-when-la…
Browse files Browse the repository at this point in the history
…ng-is-french

Fix: Make bundle_many_texts API endpoint return source text even when translation_language_preference is not None
  • Loading branch information
nsantacruz authored Oct 15, 2024
2 parents 3b0b102 + 6d337ea commit 4c986cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sefaria/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def bundle_many_texts(refs, useTextFamily=False, as_sized_string=False, min_char
'url': oref.url()
}
else:
he_tc = model.TextChunk(oref, "he", actual_lang=translation_language_preference, vtitle=hebrew_version)
he_tc = model.TextChunk(oref, "he", vtitle=hebrew_version)
en_tc = model.TextChunk(oref, "en", actual_lang=translation_language_preference, vtitle=english_version)
if hebrew_version and he_tc.is_empty():
raise NoVersionFoundError(f"{oref.normal()} does not have the Hebrew version: {hebrew_version}")
Expand Down

0 comments on commit 4c986cc

Please sign in to comment.