serJD commited on
Commit
f3a5171
·
verified ·
1 Parent(s): e7f2cf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -195,7 +195,16 @@ async def update_streams(request: Request):
195
 
196
  # If the flag is True, continue running the main part of the code
197
  if should_continue:
198
- locals().update(config[streamName][branchName])
 
 
 
 
 
 
 
 
 
199
 
200
  # main
201
  mainFunc(STREAM_ID, SOURCE_BRANCH, TARGET_BRANCH, UUID_COL, ATTR_METADATA, KPI_METADATA, DEFAULT_ATTRIBUTES)
 
195
 
196
  # If the flag is True, continue running the main part of the code
197
  if should_continue:
198
+ config_entry = config[streamName][branchName]
199
+
200
+ STREAM_NAME = config_entry["STREAM_NAME"]
201
+ STREAM_ID = config_entry["STREAM_ID"]
202
+ SOURCE_BRANCH = config_entry["SOURCE_BRANCH"]
203
+ TARGET_BRANCH = config_entry["TARGET_BRANCH"]
204
+ UUID_COL = config_entry["UUID_COL"]
205
+ ATTR_METADATA = config_entry["ATTR_METADATA"]
206
+ KPI_METADATA = config_entry["KPI_METADATA"]
207
+ DEFAULT_ATTRIBUTES = config_entry["DEFAULT_ATTRIBUTES"]
208
 
209
  # main
210
  mainFunc(STREAM_ID, SOURCE_BRANCH, TARGET_BRANCH, UUID_COL, ATTR_METADATA, KPI_METADATA, DEFAULT_ATTRIBUTES)