Merged in bugfix/effective_date (pull request #550)

Bugfix/effective_date to main

* fixed string page numbers issue


Approved-by: Katon Minhas
This commit is contained in:
VenkataKrishna Reddy Avula
2025-06-02 13:04:52 +00:00
committed by Katon Minhas
parent 780dac2ec1
commit e096d03fba
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ def extract_effective_date_pages(text_dict: dict, filename: str) -> dict:
if textract_pattern.search(page_text) or 'effective date:' in page_text.lower():
effective_date_pages[page_num] = page_text
# Always include the first page (page 1) as it often contains effective date.
elif page_num == 1:
elif page_num == 1 or page_num == "1" or page_num == "1.0":
effective_date_pages[page_num] = page_text
return effective_date_pages