diff options
author | prashantsinalkar | 2019-09-13 15:36:33 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-09-13 16:21:15 +0530 |
commit | 2d33025a4b4031cae9130e9f953ee298ba728c31 (patch) | |
tree | 9607b414d8d09058e738327cd4248c662e3d9709 | |
parent | 33b135291c5d7865c94eace17eb762e9a5aec9e8 (diff) | |
download | R_on_Cloud_Web_Interface-2d33025a4b4031cae9130e9f953ee298ba728c31.tar.gz R_on_Cloud_Web_Interface-2d33025a4b4031cae9130e9f953ee298ba728c31.tar.bz2 R_on_Cloud_Web_Interface-2d33025a4b4031cae9130e9f953ee298ba728c31.zip |
fixed and cleaned code
-rw-r--r-- | R_on_Cloud/settings.py | 1 | ||||
-rw-r--r-- | instances.py | 1 | ||||
-rw-r--r-- | website/static/website/js/cloud.js | 3 |
3 files changed, 2 insertions, 3 deletions
diff --git a/R_on_Cloud/settings.py b/R_on_Cloud/settings.py index 6d62adc..82a82e3 100644 --- a/R_on_Cloud/settings.py +++ b/R_on_Cloud/settings.py @@ -145,3 +145,4 @@ STATIC_ROOT = os.path.join(BASE_DIR, "static/") SESSION_EXPIRE_AT_BROWSER_CLOSE = True + diff --git a/instances.py b/instances.py index c57d164..5996541 100644 --- a/instances.py +++ b/instances.py @@ -46,7 +46,6 @@ def execute_code(code, session_id, R_file_id): jsondata = json.dumps(body) jsondataasbytes = jsondata.encode('utf-8') req.add_header('Content-Length', len(jsondataasbytes)) - print(jsondataasbytes) result = urllib.request.urlopen(req, jsondataasbytes) result = result.read().decode("utf8") output = json.loads(result)["output"] diff --git a/website/static/website/js/cloud.js b/website/static/website/js/cloud.js index 056cac3..6c874fa 100644 --- a/website/static/website/js/cloud.js +++ b/website/static/website/js/cloud.js @@ -547,8 +547,7 @@ $(document.body).ready(function() { $("#review").hide(); } $("#example_views_count").text(data.exmple); - editor.setValue("clear; // Remove clear, clc from code if you want to access existing stored variable from the memory" + - "\n" + "\n" + data.code); + editor.setValue(data.code); initial_code = editor.getValue(); ajax_loader("clear"); } |