Spaces:
Runtime error
Runtime error
Commit
·
9f28d12
1
Parent(s):
4c250a7
protect changes
Browse files
backend/classes/galileo_platform.py
CHANGED
|
@@ -53,11 +53,15 @@ class GalileoPlatform:
|
|
| 53 |
stage_name=self.config.protect_stage_name,
|
| 54 |
)
|
| 55 |
if not protect_stage:
|
| 56 |
-
|
| 57 |
project_name=self.config.protect_project_name,
|
| 58 |
name=self.config.protect_stage_name,
|
| 59 |
stage_type=StageType.local
|
| 60 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
return protect_stage.id
|
| 62 |
|
| 63 |
def run_protect(self, input: str, output: str, logger: GalileoLogger | None = None) -> dict[Any, Any]:
|
|
|
|
| 53 |
stage_name=self.config.protect_stage_name,
|
| 54 |
)
|
| 55 |
if not protect_stage:
|
| 56 |
+
_ = create_protect_stage(
|
| 57 |
project_name=self.config.protect_project_name,
|
| 58 |
name=self.config.protect_stage_name,
|
| 59 |
stage_type=StageType.local
|
| 60 |
)
|
| 61 |
+
protect_stage = get_protect_stage(
|
| 62 |
+
project_name=self.config.protect_project_name,
|
| 63 |
+
stage_name=self.config.protect_stage_name,
|
| 64 |
+
)
|
| 65 |
return protect_stage.id
|
| 66 |
|
| 67 |
def run_protect(self, input: str, output: str, logger: GalileoLogger | None = None) -> dict[Any, Any]:
|