Spaces:
Running
Running
admin
commited on
Commit
·
bda5f56
1
Parent(s):
de43d1a
fix v
Browse files- activate.py +5 -3
activate.py
CHANGED
@@ -17,10 +17,12 @@ def get_space_status(repo_id: str):
|
|
17 |
timeout=TIMEOUT,
|
18 |
).json()
|
19 |
|
20 |
-
if
|
21 |
-
|
|
|
|
|
22 |
|
23 |
-
return
|
24 |
|
25 |
|
26 |
def get_spaces(username: str):
|
|
|
17 |
timeout=TIMEOUT,
|
18 |
).json()
|
19 |
|
20 |
+
if response:
|
21 |
+
for repo in response:
|
22 |
+
if repo["id"] == repo_id:
|
23 |
+
return repo["runtime"]["stage"]
|
24 |
|
25 |
+
return "SLEEPING"
|
26 |
|
27 |
|
28 |
def get_spaces(username: str):
|