diff options
| author | kumar <kumar.damani@mail.utoronto.ca> | 2016-07-24 00:55:56 +0000 |
|---|---|---|
| committer | kumar <kumar.damani@mail.utoronto.ca> | 2016-07-24 00:55:56 +0000 |
| commit | f94e655f733e3be2a5fa2b009e9899c1b8886f03 (patch) | |
| tree | e6f309c9439a3a06a2ab7b093d28f2ab669ba965 /testImports.js | |
| parent | 17d743822746b047b94cd24e5407f1342ba01a7e (diff) | |
exam following and retrieveing -no comments added yet tho
Diffstat (limited to 'testImports.js')
| -rw-r--r-- | testImports.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/testImports.js b/testImports.js index 90ed230..8946a2f 100644 --- a/testImports.js +++ b/testImports.js @@ -40,7 +40,7 @@ var questions_array = ["this is q1", "this is q2"]; });*/ -dbFile.retrieve_userSolutions_history("some_user name", function (bool, result) { +/*dbFile.retrieve_userSolutions_history("some_user name", function (bool, result) { if (bool == false) { console.log(result); } @@ -54,7 +54,7 @@ dbFile.retrieve_userSolutions_count("some_user name", function (bool, result) { else { // bool is true i.e no error occured. result contains an integer console.log(result); } -}); +});*/ /*dbFile.retrieve_userComments_history("some_user name", function (bool, results) { if (!bool) console.log(results); @@ -114,3 +114,18 @@ dbFile.retrieve_userSolutions_count("some_user name", function (bool, result) { } });*/ + +dbFile.followExam("nanalelfe@gmail.com", "578a44ff71ed097fc3079d6e", function (bool, mssg) { + if (!bool) console.log(mssg); + else { + console.log(mssg); + } +}); + +/* +dbFile.retrieveFollows("some_user names", function (bool, result) { + if (!bool) console.log(result); + else { + console.log(result); + } + });*/ |
