Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -182,9 +182,9 @@ async def exe(websocket,connected):
|
|
182 |
print(event)
|
183 |
|
184 |
try:
|
185 |
-
if "command"
|
186 |
-
await execute_command(websocket, event["project_name"], event["command"], connected)
|
187 |
-
elif
|
188 |
|
189 |
await wirte_file(websocket, event["project_name"], event["path"], event["content"], connected)
|
190 |
elif "create" in event:
|
|
|
182 |
print(event)
|
183 |
|
184 |
try:
|
185 |
+
if event["command"]["type"]=="shell":
|
186 |
+
await execute_command(websocket, event["project_name"], event["command"]["command"], connected)
|
187 |
+
elif "write" in event:
|
188 |
|
189 |
await wirte_file(websocket, event["project_name"], event["path"], event["content"], connected)
|
190 |
elif "create" in event:
|