This command allows the instructor to edit an existing grade category with a designated weight
This command was introduced by CSC510-Group-1.
The code that implements the above mentioned functionality is located in cogs/grades.py.
edit_grade_category(self, ctx, categoryname: str, weight: str):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, the name of the category being edited, and the weight of the category being edited.
You are in the server that has the Classmate Bot active and online. You are an Instructor. From the instructor commands channel, enter the command $edit_grade_category <category_name> <weight>
with the desired category name and weight.
$edit_grade_category CATEGORY_NAME, WEIGHT
$edit_grade_category Tests, .5
Successful execution of this command will edit a grade category in the database with the new desired weight. The bot will report on the success or failure of the command.