[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:
2026-03-07 14:08:42 +00:00
parent efcaa57cf0
commit ae2303b733
404 changed files with 24100 additions and 13301 deletions

View File

@@ -0,0 +1,38 @@
import os
import requests
import json
from dotenv import load_dotenv
load_dotenv()
# Check for API Key
NOTION_API_KEY = os.getenv("NOTION_API_KEY")
if not NOTION_API_KEY:
try:
with open("/app/n8n_api_Token_git.txt", "r") as f:
content = f.read()
if "secret_" in content:
NOTION_API_KEY = content.strip().split('\n')[0]
except:
pass
if not NOTION_API_KEY:
print("Error: NOTION_API_KEY not found.")
exit(1)
NOTION_DB_ID = "2ec88f4285448014ab38ea664b4c2b81"
headers = {"Authorization": f"Bearer {NOTION_API_KEY}", "Notion-Version": "2022-06-28", "Content-Type": "application/json"}
def list_db_properties():
url = f"https://api.notion.com/v1/databases/{NOTION_DB_ID}"
resp = requests.get(url, headers=headers)
if resp.status_code == 200:
props = resp.json().get("properties", {})
print("Database Properties:")
for name, data in props.items():
print(f"- {name} (Type: {data['type']})")
else:
print(f"Error getting DB: {resp.text}")
if __name__ == "__main__":
list_db_properties()