Skip to content

Add from_tref class method to retrieve passages by tref #2365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yonadavGit
Copy link
Contributor

Description:

This PR introduces a from_tref class method to the PassageSet class, allowing retrieval of passages by their tref. It accepts a tref, creates a Ref object, and queries the collection for passages whose references contain the given tref.

Code Changes:

Added from_tref method to PassageSet in sefaria/model/passage.py.

Notes

Any additional notes go here

@yonadavGit yonadavGit requested a review from nsantacruz March 4, 2025 12:49
@coolify-sefaria
Copy link

The preview deployment is in progress. 🟡

Open Build Logs

Last updated at: 2025-03-04 12:50:02 CET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant