Fix notion script + update lead-engine debug tools
This commit is contained in:
@@ -76,6 +76,7 @@ def get_status_options(db_id):
|
||||
status = props.get("Status", {}).get("status", {})
|
||||
return [opt["name"] for opt in status.get("options", [])]
|
||||
|
||||
def get_page_properties(page_id):
|
||||
res = request("GET", f"https://api.notion.com/v1/pages/{page_id}")
|
||||
return res.get("properties", {}) if res else {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user