Skip to content

Commit

Permalink
Fix get_passage_range in experimental NRSVUE Web Extractor incorrec…
Browse files Browse the repository at this point in the history
…tly capping passages to 100
  • Loading branch information
daniel-tran committed Feb 18, 2024
1 parent 300559b commit a836405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experimental/nrsvue_apocrypha_web_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ def get_passage_range(self, book, chapter_from, passage_from, chapter_to, passag
# the web request to stagger if this manages to be long enough.
capped_chapter_from = common.get_capped_integer(chapter_from,
max_value=self.__apocrypha_chapter_count_mappings[book_name])
capped_passage_from = common.get_capped_integer(passage_from)
capped_passage_from = common.get_capped_integer(passage_from, max_value=common.get_end_of_chapter())
capped_chapter_to = common.get_capped_integer(chapter_to,
max_value=self.__apocrypha_chapter_count_mappings[book_name])
capped_passage_to = common.get_capped_integer(passage_to)
capped_passage_to = common.get_capped_integer(passage_to, max_value=common.get_end_of_chapter())

output = []
chapter = capped_chapter_from
Expand Down

0 comments on commit a836405

Please sign in to comment.