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 for missing verses due to presence of a value in comment column #227

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading