How to "regrade all" all quizzes in Moodle at once

How to "regrade all" all quizzes in Moodle at once

by Miki Alliel -
Number of replies: 3
Picture of Translators

Hello eveyone.

We have changed the  "grade method" to all of our quizzes in all  out courses in our Moodle (3.3) site from "average grade" to "first attempt" (through DB QUERY)

And now, we want to click on  "regrade all"  for all our quizzes inMoodle so that the real and updated grade will be available in the Gradebook for students.

So how can I click on the "regrade all" button to all quizzes at once?

hope you can help me

Thanks in advance

Average of ratings: -
In reply to Miki Alliel

Re: How to "regrade all" all quizzes in Moodle at once

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you change this using the Moodle UI, there is no need to regrade.

If you want to make a script, you will need to call

quiz_update_all_final_grades($quiz);

for each $quiz (row of mdl_quiz table).

In reply to Tim Hunt

Re: How to "regrade all" all quizzes in Moodle at once

by Miki Alliel -
Picture of Translators

Thanks,

unfortunately I'm not doing it (changing the method grading)  from the UI but from sql query (with phpmyadmin) because there are a lot of quizzes.

Is this what you meant?

please let me understand,  if this is the situation (as I described here) then I need to run a script (as you mentioned) so the gradebook will be update?


In reply to Miki Alliel

Re: How to "regrade all" all quizzes in Moodle at once

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Yes, you need to run a script.