27 lines
967 B
Python
27 lines
967 B
Python
import os, sys, glob
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
|
|
from verify_chapter_risk_tables import verify_file
|
|
|
|
civil_files = sorted(glob.glob('resources/knowledge/original/원가계산/건설공사_표준품셈/02_토목부문/*.md'))
|
|
|
|
results = {}
|
|
for f in civil_files:
|
|
fname = os.path.basename(f)
|
|
if '제9장' in fname:
|
|
# We can test ch9 as well
|
|
pass
|
|
risk_cnt, findings = verify_file(f)
|
|
results[fname] = {
|
|
'risk_count': risk_cnt,
|
|
'findings': findings
|
|
}
|
|
|
|
print("\n========================================================")
|
|
print(" CIVIL DIVISION (02_토목부문) RISK TABLES SUMMARY")
|
|
print("========================================================")
|
|
for fname, res in results.items():
|
|
print(f"[{fname}] Risk Tables: {res['risk_count']} | Discrepancies/Findings: {len(res['findings'])}")
|
|
for fd in res['findings']:
|
|
print(f" - L{fd['line']} {fd['sec']} (Page {fd['page']}): {fd['detail']}")
|