aboutsummaryrefslogtreecommitdiff
path: root/testImports.js
diff options
context:
space:
mode:
authorDamani Pradyumn <kumar.damani@mail.utoronto.ca>2016-07-20 03:03:38 +0000
committerDamani Pradyumn <kumar.damani@mail.utoronto.ca>2016-07-20 03:03:38 +0000
commitac00f848b0c971abb8d944f1cead430baa834b06 (patch)
treeccc0658f1e61afe823a59964fb0cd27fc3918c09 /testImports.js
parent5dccd5e1c80450375b1f32869d0a4f8d0c7689ba (diff)
working on queries
Diffstat (limited to 'testImports.js')
-rw-r--r--testImports.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/testImports.js b/testImports.js
index fc128eb..f64f984 100644
--- a/testImports.js
+++ b/testImports.js
@@ -17,17 +17,30 @@ var questions_array = ["this is q1", "this is q2"];
//test getting all exams database functionality -- USE FOR THE EXAMS PAGES maybe?
-dbFile.get_all_exams("CSC240", function (exams) {
+/*dbFile.get_all_exams("CSC240", function (exams) {
if (exams.length == 0){
console.log("Nothing was found");
}
else {
console.log(exams);
}
-});
+});*/
//test adding course
// dbFile.add_course("CSC148", "Intro to Programming");
//test adding solution
-//dbFile.add_solution(["578a44ff71ed097fc3079d6e", 1, "this is another solution to q1"]);
+//dbFile.add_solution(["578a44ff71ed097fc3079d6e", 1, "this is yet another solution to q1"]);
+
+
+
+// dbFile.get_exam_byID("578a44ff71ed097fc3079d6e");
+
+//test getting all solutions of a given exam and question number
+//dbFile.get_all_solutions("578a44ff71ed097fc3079d6e", 1);
+
+
+//test adding of comments given a solution_id, and the comment information as an array
+// dbFile.add_comment("578edba3e5611f0d4e23c65f", ["this is the 2nd comment", "this is the date", "this is the author"]);
+
+dbFile.get_exam_info_by_ID("578a44ff71ed097fc3079d6e"); \ No newline at end of file