Template mapping and detect issue fixed

This commit is contained in:
2026-07-14 13:59:00 +05:30
parent 460a1c5c51
commit 360022820d
10 changed files with 264 additions and 40 deletions

13
print_fp.py Normal file
View File

@@ -0,0 +1,13 @@
import sys
import os
sys.path.append(os.path.join(os.getcwd(), 'docengine'))
from app.core.database import SessionLocal
from app.models.template import DocumentFormat
db = SessionLocal()
t = db.query(DocumentFormat).filter(DocumentFormat.is_active == True).first()
if t:
print(f"Template Name: {t.name}, Fingerprint is None: {t.fingerprint is None}")
else:
print("No active templates.")