BinaryONe commited on
Commit
8141b54
·
1 Parent(s): 601d61f
Files changed (1) hide show
  1. WebSSH/AppHandler.py +2 -3
WebSSH/AppHandler.py CHANGED
@@ -17,8 +17,7 @@ class AppHandler(tornado.web.RequestHandler):
17
  self.write("Function One Called")
18
 
19
  def run_commands(self):
20
- print( self.body)
21
- data = json.loads(self.request.body)
22
  command = data.get("command")
23
  print(f"Command: {command}")
24
  if command:
@@ -32,7 +31,7 @@ class AppHandler(tornado.web.RequestHandler):
32
 
33
 
34
  def get_privatekey(self):
35
- data = json.loads(self.request.body)
36
  username = data.get("username")
37
  password = data.get("password")
38
 
 
17
  self.write("Function One Called")
18
 
19
  def run_commands(self):
20
+ data = json.loads(self.body)
 
21
  command = data.get("command")
22
  print(f"Command: {command}")
23
  if command:
 
31
 
32
 
33
  def get_privatekey(self):
34
+ data = json.loads(self.body)
35
  username = data.get("username")
36
  password = data.get("password")
37