summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2019-09-13 15:36:33 +0530
committerprashantsinalkar2019-09-13 16:21:15 +0530
commit2d33025a4b4031cae9130e9f953ee298ba728c31 (patch)
tree9607b414d8d09058e738327cd4248c662e3d9709
parent33b135291c5d7865c94eace17eb762e9a5aec9e8 (diff)
downloadR_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.py1
-rw-r--r--instances.py1
-rw-r--r--website/static/website/js/cloud.js3
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");
}