PremierLangage / premierlangage

Server for auto-evaluating exercices
Other
18 stars 9 forks source link

[BUG] Dashboard error (serveur 500) when no student did join the pltp #546

Open nborie opened 11 months ago

nborie commented 11 months ago

All Dashboard fails at running when no student belong the associated pltp. The error is serveur 500 (probably a division by zero when no student belong to the pltp).

We have some pltp with 50 teachers and no student (like in Platon Entraide) thus it could be fine to fix that...

NewMeeh commented 11 months ago

Fixed #547 with this commit https://github.com/PremierLangage/premierlangage/commit/e2d79aeff2529fa2ba1d758202e983c1b5b72302.

NewMeeh commented 10 months ago

Still have 500 error for the survey activity. Yet it is not because no student joined the pltp.

It is because the survey activity doesn't allow you to use several group of items.

There can be multiple question but only one set of available answers.