Skip to content
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

bulktext API Correct Handlings of 1/0 Booleans #2105

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

Conversation

saengel
Copy link
Contributor

@saengel saengel commented Nov 10, 2024

Description

We had recently corrected a bug throughout the API which incorrectly handled boolean parameters being passed as 0s or 1s. They were handled as strings, and therefore constantly evaluating as true and causing unexpected behavior, we made an effort to make sure they were all properly being passed as ints. This PR fixes one instance that was missed in that initial sweep - based on user feedback.

Code Changes

  1. sefaria/views.py - Cast the useTextFamily param results to an int.

Notes

  • Tested locally and works. When set to 1, the response includes the primary category of the text.

@saengel saengel self-assigned this Nov 10, 2024
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