Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

MatchingPairs: in frontend component, set the `total` score from the experiment's `bonus_points` field #1165

Open BeritJanssen opened 3 days ago

BeritJanssen commented 3 days ago

Right now, the frontend MatchingPairs component sets the "bonus score" to 100: https://github.com/Amsterdam-Music-Lab/MUSCLE/blob/79282db665329813aa1ae1fb509b9b72519f034b/frontend/src/components/MatchingPairs/MatchingPairs.jsx#L34

This is not easily configurable. We already have a bonus_points field on the Experiment model. This should be used instead to initialize the score for MatchingPairs.

Split off from #1163