refactor: [30388f42] Strukturiere Root-Skripte thematisch neu
- Organisiert eine Vielzahl von Skripten aus dem Root-Verzeichnis in thematische Unterordner, um die Übersichtlichkeit zu verbessern und die Migration vorzubereiten. - Verschiebt SuperOffice-bezogene Test- und Hilfsskripte in . - Verschiebt Notion-bezogene Synchronisations- und Import-Skripte in . - Archiviert eindeutig veraltete und ungenutzte Skripte in . - Die zentralen Helfer und bleiben im Root, da sie von mehreren Tools als Abhängigkeit genutzt werden.
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