Fixed ui and template mapping issue
This commit is contained in:
11
list_templates.py
Normal file
11
list_templates.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
templates = db.query(DocumentFormat).all()
|
||||
for t in templates:
|
||||
print(f"ID: {t.id}, Name: {t.name}, Source: {t.source_document_id}, Active: {t.is_active}")
|
||||
Reference in New Issue
Block a user