mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
added usage of is_summary_report
This commit is contained in:
parent
2a17831c72
commit
54b09e88e1
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ def detect_and_parse_report(pdf_path, pdf_file):
|
||||||
if is_energy_report(first_page_text):
|
if is_energy_report(first_page_text):
|
||||||
# Treat this as an Energy Report
|
# Treat this as an Energy Report
|
||||||
return extract_epr(pdf_path)
|
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
|
# Treat this as a Summary Report
|
||||||
return extract_summary_report(pdf_path)
|
return extract_summary_report(pdf_path)
|
||||||
elif is_condition_report(first_page_text):
|
elif is_condition_report(first_page_text):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue