aboutsummaryrefslogtreecommitdiff
path: root/node_simple.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_simple.js')
-rw-r--r--node_simple.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/node_simple.js b/node_simple.js
index 7f616f7..26e8811 100644
--- a/node_simple.js
+++ b/node_simple.js
@@ -82,8 +82,6 @@ var uri = 'mongodb://general:assignment4@ds057862.mlab.com:57862/solutions_repo'
//****************************FUNCTIONS************************************************|
-
-
/*
* This function creates and adds a user to users table.
* IFF both the email and the user_name are not in the database already.
@@ -215,7 +213,6 @@ exports.find_user = function (email, callbackUser, callback) {
})
};
-
// this function returns an array where is element contains info for a particular question
// such as the question number (_id), number of solutions (count), and number of comments
// (comments). [ {_id,count,comments}, {} ...]
@@ -262,7 +259,6 @@ exports.get_exam_info_by_ID = function (exam_id, callback) {
};
-
/*
* This function will add a comment to the solutions table
* Params: sol_id - id of the solution to which to add the comment
@@ -294,8 +290,6 @@ exports.add_comment = function (sol_id, fields) {
})
};
-
-
// get all solutions given an exam_id and the question number
exports.get_all_solutions = function (exam_id, q_num, callback) {
mongoFactory.getConnection(uri)
@@ -365,8 +359,6 @@ exports.add_solution = function (fields) {
};
-
-
/*
* This function will retrieve all exams in the database given the course code ...
* ... ordered by the year of the exam.
@@ -495,7 +487,6 @@ exports.add_exam = function (fields, questions_array, serverCallback) {
});
};
-
/*
* This function will return TRUE if the provided exam info already exists in the database
* OR FALSE if it does not exist in the database.
@@ -549,7 +540,6 @@ exports.find_exam = function (fields, serverCallback, callback) {
});
};
-
/*
* This function will add a course to the database UNLESS the course already exists.
* If the course table is empty, this will create one and then add the data.
@@ -593,7 +583,6 @@ exports.add_course = function (course_code, title) {
});
};
-
/*
* This function will return TRUE if the provided course info already exists in the database
* OR FALSE if it does not exist in the database.
@@ -634,7 +623,6 @@ exports.find_course = function (course_code, callback) {
});
};
-
/*
* This function will remove the exam from the database given the combination of (course_code+ year + term + type)
* Params: fields - an array of format ["course_code", year, "term", "type"]
@@ -679,7 +667,6 @@ exports.remove_exam = function (fields) {
});
};
-
//get_exam_byID("578a44ff71ed097fc3079d6e");
exports.get_exam_byID = function (id) {