[2ff88f42] Full End-to-End integration: Webhooks, Auto-Enrichment, Notion-Sync, UI updates and new Connector Architecture

This commit is contained in:
2026-02-19 16:05:52 +00:00
parent 0142f763f0
commit 138bb4acae
24 changed files with 1107 additions and 203 deletions

View File

@@ -72,6 +72,10 @@ def extract_select(prop):
if not prop or "select" not in prop or not prop["select"]: return ""
return prop["select"]["name"]
def extract_number(prop):
if not prop or "number" not in prop: return None
return prop["number"]
def sync():
logger.info("--- Starting Enhanced Sync ---")
@@ -131,6 +135,16 @@ def sync():
ind.pains = extract_rich_text(props.get("Pains"))
ind.gains = extract_rich_text(props.get("Gains"))
# Metrics & Scraper Config (NEW)
ind.metric_type = extract_select(props.get("Metric Type"))
ind.min_requirement = extract_number(props.get("Min. Requirement"))
ind.whale_threshold = extract_number(props.get("Whale Threshold"))
ind.proxy_factor = extract_number(props.get("Proxy Factor"))
ind.scraper_search_term = extract_rich_text(props.get("Scraper Search Term"))
ind.scraper_keywords = extract_rich_text(props.get("Scraper Keywords"))
ind.standardization_logic = extract_rich_text(props.get("Standardization Logic"))
# Status / Priority
prio = extract_select(props.get("Priorität"))
if not prio: prio = extract_select(props.get("Freigegeben"))