summaryrefslogtreecommitdiff
path: root/tornado_main.py
diff options
context:
space:
mode:
authorprashantsinalkar2019-07-03 17:54:06 +0530
committerprashantsinalkar2019-07-03 17:54:06 +0530
commit2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f (patch)
tree0cb13a1a7b87a7037cd3485d666a30e059b28a9c /tornado_main.py
parent3e9b2c2a0eae3a614a3ea3e3ac8670f380cba04e (diff)
downloadR_on_Cloud_Web_Interface-2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f.tar.gz
R_on_Cloud_Web_Interface-2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f.tar.bz2
R_on_Cloud_Web_Interface-2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f.zip
added sessions for browser
Diffstat (limited to 'tornado_main.py')
-rw-r--r--tornado_main.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tornado_main.py b/tornado_main.py
index 5c7c143..388592e 100644
--- a/tornado_main.py
+++ b/tornado_main.py
@@ -120,12 +120,10 @@ class ExecutionHandler(tornado.web.RequestHandler):
def post(self):
global request_count
request_count += 1
-
- token = self.request.arguments['token'][0]
- token = token.decode('UTF-8')
+ session_id = str(self.request.arguments['session_id'][0])
code = self.request.arguments['code'][0]
code = code.decode('UTF-8')
- data = yield executor.submit(execute_code, code, token)
+ data = yield executor.submit(execute_code, code, session_id,)
self.write(data)
request_count -= 1