Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,6 +122,8 @@ def sync_to_notion(token, database_id, branch_data):
|
|
| 122 |
}
|
| 123 |
|
| 124 |
# Process each branch and update or create Notion rows
|
|
|
|
|
|
|
| 125 |
for branch in branch_data:
|
| 126 |
# Find the corresponding page in Notion
|
| 127 |
page_id = None
|
|
@@ -140,7 +142,7 @@ def sync_to_notion(token, database_id, branch_data):
|
|
| 140 |
if existing_depends_on:
|
| 141 |
for dep_name in existing_depends_on:
|
| 142 |
if dep_name in latest_updates and latest_updates[dep_name] > latest_update:
|
| 143 |
-
if "isConnected" not in
|
| 144 |
# exclude commits where isConnected was used
|
| 145 |
outdated = True
|
| 146 |
break
|
|
|
|
| 122 |
}
|
| 123 |
|
| 124 |
# Process each branch and update or create Notion rows
|
| 125 |
+
print("branchKeys", branch_data.keys())
|
| 126 |
+
print("branchData", branch_data)
|
| 127 |
for branch in branch_data:
|
| 128 |
# Find the corresponding page in Notion
|
| 129 |
page_id = None
|
|
|
|
| 142 |
if existing_depends_on:
|
| 143 |
for dep_name in existing_depends_on:
|
| 144 |
if dep_name in latest_updates and latest_updates[dep_name] > latest_update:
|
| 145 |
+
if "isConnected" not in branch_data[dep_name]["commit_message"]:
|
| 146 |
# exclude commits where isConnected was used
|
| 147 |
outdated = True
|
| 148 |
break
|