Created
July 20, 2012 18:06
-
-
Save mikebuchanon/3152318 to your computer and use it in GitHub Desktop.
update assignments and grades in moodle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--update grades for all assignments for all courses in a given category | |
update mdl_assignment --update assignment object (front end) | |
set grade = 100 | |
where course in | |
( | |
'34','32','66','65','23','67' --list of courses | |
); | |
update mdl_grade_items --update gradebook (back end) | |
set grademax=100 | |
where itemmodule='assignment' AND | |
courseid IN | |
( | |
'34','32','66','65','23','67' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment