edly-io / h5pxblock

Xblock which provides ability to play H5P content in open edX
MIT License
13 stars 23 forks source link

feat: add support for weight and points settings #27

Closed Ian2012 closed 11 months ago

Ian2012 commented 11 months ago

Description

This PR adds support for weight and points settings, which are reflected in the final score percentage.

Although the points for the h5p content are configured in the bundle, in this PR we normalize this value to match our points change.

Testing instructions

  1. Configure graded content to 100 percent and 1 section.
  2. Configure a subsection with the h5p content as graded.
  3. Configure the points to 100 and the weight to 0.5.
  4. The changes should be reflected in the total grade.
BryanttV commented 11 months ago

When I create a new component, the problem weight and maximum score fields are visible, although the is scorable field is set to False. image