[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:
25
ARCHIVE_legacy_scripts/check_matrix.py
Normal file
25
ARCHIVE_legacy_scripts/check_matrix.py
Normal file
@@ -0,0 +1,25 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Add the company-explorer directory to the Python path
|
||||
sys.path.append(os.path.abspath(os.path.join(os.getcwd(), 'company-explorer')))
|
||||
|
||||
from backend.database import SessionLocal, MarketingMatrix, Industry, Persona
|
||||
import json
|
||||
|
||||
db = SessionLocal()
|
||||
try:
|
||||
count = db.query(MarketingMatrix).count()
|
||||
print(f"MarketingMatrix count: {count}")
|
||||
|
||||
if count > 0:
|
||||
first = db.query(MarketingMatrix).first()
|
||||
print(f"First entry: ID={first.id}, Industry={first.industry_id}, Persona={first.persona_id}")
|
||||
else:
|
||||
print("MarketingMatrix is empty.")
|
||||
# Check if we have industries and personas
|
||||
ind_count = db.query(Industry).count()
|
||||
pers_count = db.query(Persona).count()
|
||||
print(f"Industries: {ind_count}, Personas: {pers_count}")
|
||||
finally:
|
||||
db.close()
|
||||
Reference in New Issue
Block a user