added usage of is_summary_report

This commit is contained in:
Khalim Conn-Kowlessar 2024-10-28 17:20:05 +00:00
parent 2a17831c72
commit 54b09e88e1

View file

@ -165,7 +165,7 @@ def detect_and_parse_report(pdf_path, pdf_file):
if is_energy_report(first_page_text):
# Treat this as an Energy Report
return extract_epr(pdf_path)
elif "summary" in pdf_file.lower():
elif "summary" in pdf_file.lower() or is_summary_report(first_page_text):
# Treat this as a Summary Report
return extract_summary_report(pdf_path)
elif is_condition_report(first_page_text):