Spaces:
Build error
Build error
Update app.py
Browse files60 unmodified lines616263646465666725 unmodified lines93949596979899100101102989910010110310410510610760 unmodified lines if commits: latest_commit = commits[0] branch_data["updated"] = latest_commit.createdAt branch_data["commit_url"] = f"{server_url}/streams/{stream_id}/commits/{latest_commit.id}" branch_data["commit_url"] = f"{server_url}streams/{stream_id}/commits/{latest_commit.id}" branch_data["commit_message"] = latest_commit.message branch_data["author"] = latest_commit.authorName #except Exception as e:25 unmodified lines "Content-Type": "application/json" }
# Extract all branch names for the "depends-on" options branch_names = [branch['Name'] for branch in branch_data] # Update the "depends-on" multi-select options to match branch names update_select_options(database_id, headers, branch_names) try:
# Extract all branch names for the "depends-on" options branch_names = [branch['Name'] for branch in branch_data] # Update the "depends-on" multi-select options to match branch names update_select_options(database_id, headers, branch_names)
# Fetch existing data from Notion database response = requests.post(f"{base_url}/databases/{database_id}/query", headers=headers) response.raise_for_status()app.py+7-5