[30388f42] Infrastructure Hardening: Repaired CE/Connector DB schema, fixed frontend styling build, implemented robust echo shield in worker v2.1.1, and integrated Lead Engine into gateway.
This commit is contained in:
22
company-explorer/backend/scripts/check_mappings.py
Normal file
22
company-explorer/backend/scripts/check_mappings.py
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Setup Environment
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), "../../"))
|
||||
|
||||
from backend.database import SessionLocal, JobRolePattern
|
||||
|
||||
def check_mappings():
|
||||
db = SessionLocal()
|
||||
count = db.query(JobRolePattern).count()
|
||||
print(f"Total JobRolePatterns: {count}")
|
||||
|
||||
examples = db.query(JobRolePattern).limit(5).all()
|
||||
for ex in examples:
|
||||
print(f" - {ex.pattern} -> {ex.role}")
|
||||
|
||||
db.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_mappings()
|
||||
Reference in New Issue
Block a user