Spaces:
Build error
Build error
File size: 1,161 Bytes
b7a7f32 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
from tokenize import group
from typing import Optional, List, Any # noqa
from datetime import datetime
from pydantic import BaseModel
from schemas import TeacherShort, CourseMin, GroupReturn, Name
class AssignmentUploadBase(BaseModel):
submission_date: datetime
marks_obtained: int = None
assignment_id: int
files: List[Any] = None
student_id: int
class AssignmentUploadCreate(AssignmentUploadBase):
pass
class AssignmentUploadUpdate(AssignmentUploadBase):
submission_date: Optional[datetime]
marks_obtained: Optional[int]
assignment_id: Optional[int]
files: List[Any] = None
student_id: Optional[int]
class AssignmentUploadInDBBase(AssignmentUploadBase):
id: Optional[int]
class Config:
orm_mode = True
class AssignmentUploadInDB(AssignmentUploadInDBBase):
pass
class AssignmentUpload(AssignmentUploadInDBBase):
pass
class AssignmentUploadwithName(BaseModel):
id: Optional[int]
submission_date: datetime
marks_obtained: int = None
assignment_id: int
files: List[Any] = None
student: Name
student_id: int
class Config:
orm_mode = True
|