serJD commited on
Commit
086d986
·
verified ·
1 Parent(s): ae3601a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -173,6 +173,7 @@ async def update_streams(request: Request):
173
  print(payload)
174
  print("============= config ==============")
175
  print(config)
 
176
 
177
 
178
  payload = payload["payload"]
@@ -194,7 +195,7 @@ async def update_streams(request: Request):
194
  if event_name in valid_event_types:
195
  if streamName in config:
196
  if branchName in config[streamName]:
197
- print("thats the config", config, "branchName", branchName)
198
  stream_config = config[streamName][branchName]
199
  should_continue = True
200
  else:
@@ -206,6 +207,7 @@ async def update_streams(request: Request):
206
 
207
  # If the flag is True, continue running the main part of the code
208
  if should_continue:
 
209
  config_entry = config[streamName][branchName]
210
  STREAM_NAME = config_entry["STREAM_NAME"]
211
  STREAM_ID = config_entry["STREAM_ID"]
 
173
  print(payload)
174
  print("============= config ==============")
175
  print(config)
176
+ print("============= rest ==============")
177
 
178
 
179
  payload = payload["payload"]
 
195
  if event_name in valid_event_types:
196
  if streamName in config:
197
  if branchName in config[streamName]:
198
+ print("found branchName", branchName)
199
  stream_config = config[streamName][branchName]
200
  should_continue = True
201
  else:
 
207
 
208
  # If the flag is True, continue running the main part of the code
209
  if should_continue:
210
+ print("is continuing with branch name: ", branchName)
211
  config_entry = config[streamName][branchName]
212
  STREAM_NAME = config_entry["STREAM_NAME"]
213
  STREAM_ID = config_entry["STREAM_ID"]