[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:
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