Spaces:
Building
Building
Update api_executor.py
Browse files- api_executor.py +2 -2
api_executor.py
CHANGED
@@ -9,11 +9,11 @@ from utils import log
|
|
9 |
from config_provider import ConfigProvider, APIConfig
|
10 |
from session import Session
|
11 |
|
12 |
-
cfg = ConfigProvider.get()
|
13 |
-
|
14 |
_placeholder = re.compile(r"\{\{\s*([^\}]+?)\s*\}\}")
|
15 |
|
16 |
def _get_variable_value(session: Session, var_path: str) -> Any:
|
|
|
|
|
17 |
"""Get variable value with proper type from session"""
|
18 |
if var_path.startswith("variables."):
|
19 |
var_name = var_path.split(".", 1)[1]
|
|
|
9 |
from config_provider import ConfigProvider, APIConfig
|
10 |
from session import Session
|
11 |
|
|
|
|
|
12 |
_placeholder = re.compile(r"\{\{\s*([^\}]+?)\s*\}\}")
|
13 |
|
14 |
def _get_variable_value(session: Session, var_path: str) -> Any:
|
15 |
+
cfg = ConfigProvider.get()
|
16 |
+
|
17 |
"""Get variable value with proper type from session"""
|
18 |
if var_path.startswith("variables."):
|
19 |
var_name = var_path.split(".", 1)[1]
|