quickhac / qhac-common

Common libraries for use in QuickHAC applications
3 stars 1 forks source link

Refactor: Using a student without selection always returns an error #20

Closed slushyash closed 10 years ago

slushyash commented 10 years ago

Whenever there's a student without selection, at least in RRISD, this.retriever.getYear() fails with the error "no student loaded". To duplicate, try this code using the mock server:

yash = new GradeService();
var promise = yash.attemptLogin(Districts.roundrock, "zengx", "test");
promise.then(function(students) {
    console.log(students);
}, function(err) {
    console.log(err);
});
slushyash commented 10 years ago

Kinda fixed in ae71180727ff27ad1fbe4d301f05cef4230946d9