Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always registers score as 0 #32

Open
catch56 opened this issue Aug 13, 2020 · 0 comments
Open

Always registers score as 0 #32

catch56 opened this issue Aug 13, 2020 · 0 comments

Comments

@catch56
Copy link

catch56 commented Aug 13, 2020

The Documentation tool always sets the score to 0/0. When this is integrated into Drupal via Opigno, this results in Opigno setting a 0 score regardless of what is set for the activity. The behaviour I'd expect would be Opigno setting the score to whatever is set for the activity (i.e. just to record that it's been completed).

Haven't really worked with xapi much, but would it be possible to just not call setScoredResult at all?

self.triggerAnsweredEvents();
        /*
         * There's no score attached to Documentation Tool, but
         * it may be used in Column which needs a score that's not null.
         */
        var completedEvent = self.createXAPIEventTemplate('completed');
        completedEvent.setScoredResult(0, 0);
        self.trigger(completedEvent);
      });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant