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