Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ async def update_streams(request: Request):
|
|
72 |
event_data = payload["event"]["data"]
|
73 |
|
74 |
# Check if the event type is "commit_create"
|
75 |
-
if "type" in event_data and event_data["type"]
|
76 |
# Check if the stream name matches the specified list
|
77 |
if "stream" in event_data and event_data["stream"] in listendStreams:
|
78 |
# Check if the branch name matches the specified list
|
|
|
72 |
event_data = payload["event"]["data"]
|
73 |
|
74 |
# Check if the event type is "commit_create"
|
75 |
+
if "type" in event_data and event_data["type"] in ["commit_create", "commit_delete"]:
|
76 |
# Check if the stream name matches the specified list
|
77 |
if "stream" in event_data and event_data["stream"] in listendStreams:
|
78 |
# Check if the branch name matches the specified list
|