-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataModels.py
43 lines (33 loc) · 866 Bytes
/
dataModels.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
from pydantic import BaseModel
from typing import Optional
class CAMarksModel(BaseModel):
courseCode:Optional[str]
courseTitle:Optional[str]
ca1:Optional[str]
ca2:Optional[str]
ca3:Optional[str]
bestOfCA:Optional[str]
at1:Optional[str]
at2:Optional[str]
ap:Optional[str]
total:Optional[str]
class AttendanceModel(BaseModel):
course_code: str
total_hours: int
exemption_hours: int
total_absent: int
total_present: int
percentage_of_attendance: int
percentage_with_exemp: int
percentage_with_exemp_med: int
attendance_percentage_from: str
attendance_percentage_to: str
remark: dict
class TimeTableModel(BaseModel):
course_code: str
course_title: str
programme: str
sem_no: str
class SemMarkModel(BaseModel):
latest_sem_no: int
latest_sem_cgpa: float