aboutsummaryrefslogtreecommitdiff
path: root/node_simple.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-25 05:40:57 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-25 05:40:57 +0000
commit5ae1a4bc73f34d3a8f83607b79fe20d4594238e6 (patch)
tree824776472687456292f71a98b96ff6fb2de85a5c /node_simple.js
parent3ca0e78b313a1bded021cbb8b2dad241d7cad049 (diff)
Populated profile page with comments
Diffstat (limited to 'node_simple.js')
-rw-r--r--node_simple.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_simple.js b/node_simple.js
index f8eb07d..e798bd2 100644
--- a/node_simple.js
+++ b/node_simple.js
@@ -370,6 +370,7 @@ exports.retrieve_userComments_history = function (username, callback) {
function doCall() {
callback(true, mylist);
+ console.log("IN NODE SIMPLE: " + mylist);
}
@@ -723,9 +724,10 @@ exports.get_exam_info_by_ID = function (exam_id, callback) {
* where <string> : err ? err_mssg : success_mssg
* */
exports.add_comment = function (sol_id, fields, serverCallback) {
+ var date = new Date();
var Data = {
text: fields[0],
- date: new Date(),
+ date: date.toString().slice(0, 24),
by: fields[1]
};