Update: GTM Architect v2.6.2 (Edit Specs, Report Fix) & Company Explorer v0.4 (Export, Timestamps)

This commit is contained in:
2026-01-09 09:15:16 +00:00
parent 84fc0b91b0
commit 1f34534474
10 changed files with 617 additions and 111 deletions

View File

@@ -49,6 +49,20 @@ def create_project(name):
if conn:
conn.close()
def update_project_name(project_id, new_name):
"""Updates the name of an existing project."""
conn = get_db_connection()
try:
conn.execute(
'UPDATE gtm_projects SET name = ?, updated_at = CURRENT_TIMESTAMP WHERE id = ?',
(new_name, project_id)
)
conn.commit()
return {"id": project_id, "name": new_name, "status": "updated"}
finally:
if conn:
conn.close()
def save_gtm_result(project_id, phase, result):
"""Saves or updates the result of a specific phase for a given project."""
conn = get_db_connection()