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:
committed by
Katon Minhas
parent
780dac2ec1
commit
e096d03fba
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user