-
Notifications
You must be signed in to change notification settings - Fork 2
/
models.py
47 lines (38 loc) · 1 KB
/
models.py
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
from pydantic import BaseModel
class LoginResponse(BaseModel):
session_cookie : dict
class ProfileResponse(BaseModel):
name: str
enrollment: str
programme: str
sem: str
passyear: str
class CourseResponse(BaseModel):
course_code: list[str]
course_name: list[str]
attendance: list[str]
syllabus: list[str]
attendance_pct: list[float]
class ResultResponse(BaseModel):
sem_result: dict
combined: dict
class FacultyResponse(BaseModel):
faculties: list[str]
subjects: list[str]
images: list[str]
class ExamScheduleResponse(BaseModel):
course_code: list[str]
course_title: list[str]
exam_date: list[str]
exam_time: list[str]
class TimeTableResponse(BaseModel):
course_code: list[str]
course_title: list[str]
course_teacher: list[str]
class_location: list[str]
class_time: list[str]
attendance: list[int]
class SemCountResponse(BaseModel):
sem_count: int
class cookieStatusResponse(BaseModel):
cookie_status: str