- 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.
21 lines
424 B
Python
21 lines
424 B
Python
|
|
import sqlite3
|
|
|
|
def fix_tech_id():
|
|
db_path = '/app/companies_v3_fixed_2.db'
|
|
conn = sqlite3.connect(db_path)
|
|
cursor = conn.cursor()
|
|
|
|
cursor.execute("""
|
|
UPDATE industries
|
|
SET secondary_category_id = 9
|
|
WHERE name = 'Tech - Data Center'
|
|
""")
|
|
print("Updated Tech - Data Center Secondary ID to 9")
|
|
|
|
conn.commit()
|
|
conn.close()
|
|
|
|
if __name__ == "__main__":
|
|
fix_tech_id()
|