Ramesh-vani commited on
Commit
4070523
·
verified ·
1 Parent(s): 463f791

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -182,9 +182,9 @@ async def exe(websocket,connected):
182
  print(event)
183
 
184
  try:
185
- if "command" in event:
186
- await execute_command(websocket, event["project_name"], event["command"], connected)
187
- elif event["write"]:
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: