Skip to content

Issue with self.getExamDate Function in self.doExamCheck function #23

Description

@deroskarmodulo

Multiple exams with same dateOfExam are all highlighted even though they have a different nameOfExam.
Issue appears in Code the first time in the output of the self.doExamCheck function. It seems to just regard on the date, however, not on the label! I am not aware, if any issues at the registration process itself would appear.

At first sigth, in dateOfExam the examLabel variable is not really used, the output solely relys on the examDate, since in the self.getExamDate function.

Possible fix (at least if date and name are given and enabled):

    self.getExamDate = function (nameOfExam, dateOfExam) {
        return $(".groupWrapper .header_element").filter(function () {
            var examData = $(this).text().trim();
            return examData.match(nameOfExam + " " + dateOfExam);
        });
    };

Additionally, I would like to mention that the script works only if the language in TISS is set to German. It would be lovely to have that mentioned in the description anywhere.

Thanks for your time.
Hope I could help to enhance your project!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions