Spaces:
Build error
Build error
Update utils/enrollment.py
Browse files- utils/enrollment.py +2 -2
utils/enrollment.py
CHANGED
|
@@ -32,12 +32,12 @@ class Enrollment(SQLModel, table=True):
|
|
| 32 |
course: "Course" = Relationship(
|
| 33 |
back_populates="enrollments")
|
| 34 |
|
| 35 |
-
def assign_grade(self, grade:
|
| 36 |
"""
|
| 37 |
Assigns a grade to the student for the course.
|
| 38 |
|
| 39 |
Args:
|
| 40 |
-
grade (
|
| 41 |
"""
|
| 42 |
self.grade = grade
|
| 43 |
|
|
|
|
| 32 |
course: "Course" = Relationship(
|
| 33 |
back_populates="enrollments")
|
| 34 |
|
| 35 |
+
def assign_grade(self, grade: str) -> None:
|
| 36 |
"""
|
| 37 |
Assigns a grade to the student for the course.
|
| 38 |
|
| 39 |
Args:
|
| 40 |
+
grade (str): The grade to assign to the student.
|
| 41 |
"""
|
| 42 |
self.grade = grade
|
| 43 |
|