Skip to content

Commit

Permalink
Merge pull request #227 from WycliffeAssociates/fix-for-missing-comme…
Browse files Browse the repository at this point in the history
…nted-verses

Fix for missing verses due to presence of a value in comment column
  • Loading branch information
linearcombination authored Oct 18, 2024
2 parents b8997b2 + 6654ed4 commit ba35932
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/document/stet/stet.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,17 @@ def generate_docx_document(
source_selected_usfm_book = source_selected_usfm_books[0]
for verse_ref in verse_ref_dto.verse_refs:
source_verse_text = lookup_verse_text(
source_selected_usfm_book, verse_ref_dto.chapter_num, verse_ref
source_selected_usfm_book,
verse_ref_dto.chapter_num,
verse_ref.strip(),
)
if target_selected_usfm_books:
target_selected_usfm_book = target_selected_usfm_books[0]
for verse_ref in verse_ref_dto.verse_refs:
target_verse_text = lookup_verse_text(
target_selected_usfm_book, verse_ref_dto.chapter_num, verse_ref
target_selected_usfm_book,
verse_ref_dto.chapter_num,
verse_ref.strip(),
)
word_entry.verses.append(
VerseEntry(
Expand Down

0 comments on commit ba35932

Please sign in to comment.