Template mapping and detect issue fixed
This commit is contained in:
13
print_fp.py
Normal file
13
print_fp.py
Normal 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.")
|
||||
Reference in New Issue
Block a user