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

Fix verse range request when verses are in mixed order #10

Open
rkazakov opened this issue Apr 16, 2016 · 0 comments
Open

Fix verse range request when verses are in mixed order #10

rkazakov opened this issue Apr 16, 2016 · 0 comments
Assignees
Labels

Comments

@rkazakov
Copy link
Member

rkazakov commented Apr 16, 2016

Fix verse range request when verses are in mixed order. This is a really strange bug!

Run this request once:
http://localhost:4000/api/v1/Matt3:5-2
Response: verse 2

Run request again:
http://localhost:4000/api/v1/Matt3:5-2
Response: verse 5

I think the correct response in this case should be verse 5. So the logic is:
When the verse range is incorrect (first verse is bigger then the second) ignore the second and return just the first verse. So in the case about should be verse 5 only.

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

No branches or pull requests

2 participants