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

Feature/cleanup round getters #1209

Closed BeritJanssen closed 3 months ago

BeritJanssen commented 3 months ago

Working towards #847: this branch removes various methods to determine in which round a user is, and instead makes use of the rounds_passed method, which counts results. This method was adapted so we can specify which results (by question key) should be counted.

I propose to get rid of the current_round field on the Session model, but before I do, would like to make sure nobody foresees problems with that.

NB: the branch makes more changes than necessary to the congosamediff experiment. It was necessary to adapt this experiment, as this was using the current_round field and associated methods, but some of the logic was hard for me to understand, so I rewrote the code where I thought it could be more to the point. Hope I didn't misinterpret some intentions of the code that way. One thing that will be changed now is that after the practice phase, the rounds will be counted from scratch.