[2ff88f42] Feat: Verticals-Update (Transkript 2) & Dev-Toolbox Establishment
- Aktualisierung der Pains/Gains für Energy, Retail und Tech in der lokalen DB. - Ergänzung von Secondary Products für Energy & Tech. - Aufbau eines permanenten Werkzeugkastens unter /app/devtools/ für DB- & Notion-Tasks. - Verifikation der manuellen Notion-Änderungen mittels neuer Maintenance-Skripte.
This commit is contained in:
29
devtools/db_utils/read_vertical_data.py
Normal file
29
devtools/db_utils/read_vertical_data.py
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
import sqlite3
|
||||
|
||||
def read_verticals():
|
||||
conn = sqlite3.connect('/app/companies_v3_fixed_2.db')
|
||||
cursor = conn.cursor()
|
||||
|
||||
verticals = [
|
||||
"Energy - Grid & Utilities",
|
||||
"Retail - Non-Food",
|
||||
"Tech - Data Center",
|
||||
"Healthcare - Hospital"
|
||||
]
|
||||
|
||||
for v_name in verticals:
|
||||
cursor.execute("SELECT name, pains, gains, primary_category_id, secondary_category_id, ops_focus_secondary FROM industries WHERE name = ?", (v_name,))
|
||||
row = cursor.fetchone()
|
||||
if row:
|
||||
print(f"--- {row[0]} ---")
|
||||
print(f"Primary ID: {row[3]}, Secondary ID: {row[4]}, Ops Focus Secondary: {row[5]}")
|
||||
print(f"PAINS:\n{row[1]}")
|
||||
print(f"GAINS:\n{row[2]}\n")
|
||||
else:
|
||||
print(f"Vertical '{v_name}' not found.")
|
||||
|
||||
conn.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
read_verticals()
|
||||
Reference in New Issue
Block a user