
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from app.models import get_db
from app.routers.lab import get_conversions, get_lab_kpi

db = next(get_db())

print("--- VERIFY LAB LOGIC v3 ---")
# Check Conversions
res = get_conversions(db)
print(f"Total Conversions: {len(res)}")
if len(res) > 0:
    print("Example Conversion:")
    print(res[0])

# Check KPI
kpi = get_lab_kpi(db=db)
print("\nKPI:")
print(kpi)

print("--- END ---")
