- 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.
25 lines
600 B
Python
25 lines
600 B
Python
import sqlite3
|
|
import json
|
|
|
|
DB_PATH = "/app/companies_v3_fixed_2.db"
|
|
conn = sqlite3.connect(DB_PATH)
|
|
cursor = conn.cursor()
|
|
|
|
query = """
|
|
SELECT i.name, p.name, m.subject, m.intro, m.social_proof
|
|
FROM marketing_matrix m
|
|
JOIN industries i ON m.industry_id = i.id
|
|
JOIN personas p ON m.persona_id = p.id
|
|
WHERE i.name = 'Healthcare - Hospital'
|
|
"""
|
|
|
|
cursor.execute(query)
|
|
rows = cursor.fetchall()
|
|
for row in rows:
|
|
print(f"Industry: {row[0]} | Persona: {row[1]}")
|
|
print(f" Subject: {row[2]}")
|
|
print(f" Intro: {row[3]}")
|
|
print(f" Social Proof: {row[4]}")
|
|
print("-" * 50)
|
|
conn.close()
|