Spaces:
Build error
Build error
Update utils/enrollment.py
Browse filesUse grade: str = Field(default=Grade.A_PLUS)
12349 unmodified lines14151617181920212223242526from typing import Optional, Unionfrom utils.enums.grade import Gradefrom .student import Student9 unmodified linesid: (int): The enrollment IDstudent_id (str): The ID of the student who is enrolled in the course.course_id (str): The ID of the course in which the student is enrolled.grade (Union[str, Grade]): The grade assigned to the student for the course. Default if NO_GRADE with enum value of None if no grade has been assigned yet."""id: int = Field(primary_key=True)student_id: str = Field(foreign_key="student.id")course_id: str = Field(foreign_key="course.id")grade: Union[str, Grade] = Field(default=Grade.A_PLUS)course: "Course" = Relationship(back_populates="enrollments")12349 unmodified lines14151617181920212223242526from typing import Optionalfrom utils.enums.grade import Gradefrom .student import Student9 unmodified linesid: (int): The enrollment IDstudent_id (str): The ID of the student who is enrolled in the course.course_id (str): The ID of the course in which the student is enrolled.grade (str): The grade assigned to the student for the course. Default if NO_GRADE with enum value of None if no grade has been assigned yet."""id: int = Field(primary_key=True)student_id: str = Field(foreign_key="student.id")course_id: str = Field(foreign_key="course.id")grade: str = Field(default=Grade.A_PLUS)course: "Course" = Relationship(back_populates="enrollments")
utils/enrollment.py+3-3