summaryrefslogtreecommitdiff
path: root/tornado_main.py
diff options
context:
space:
mode:
authorprashantsinalkar2019-07-04 18:03:07 +0530
committerprashantsinalkar2019-07-04 18:03:07 +0530
commit776974c8d33e7b2489acdafa206567e6ffb8ee3f (patch)
tree65c95ce7a27926636042050ed36426339994c926 /tornado_main.py
parent2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f (diff)
downloadR_on_Cloud_Web_Interface-776974c8d33e7b2489acdafa206567e6ffb8ee3f.tar.gz
R_on_Cloud_Web_Interface-776974c8d33e7b2489acdafa206567e6ffb8ee3f.tar.bz2
R_on_Cloud_Web_Interface-776974c8d33e7b2489acdafa206567e6ffb8ee3f.zip
fixed decode issue
Diffstat (limited to 'tornado_main.py')
-rw-r--r--tornado_main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tornado_main.py b/tornado_main.py
index 388592e..9d2b493 100644
--- a/tornado_main.py
+++ b/tornado_main.py
@@ -120,7 +120,7 @@ class ExecutionHandler(tornado.web.RequestHandler):
def post(self):
global request_count
request_count += 1
- session_id = str(self.request.arguments['session_id'][0])
+ session_id = self.request.arguments['session_id'][0].decode('UTF-8')
code = self.request.arguments['code'][0]
code = code.decode('UTF-8')
data = yield executor.submit(execute_code, code, session_id,)