-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
56 lines (45 loc) · 1.15 KB
/
Copy pathmodels.py
File metadata and controls
56 lines (45 loc) · 1.15 KB
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
56
from dataclasses import dataclass
@dataclass
class Turma:
nome_turma: str
curso: str
disciplina: str
semestre: str
professor: str
id: int | None = None
def __str__(self) -> str:
return f"{self.nome_turma} — {self.disciplina} ({self.semestre})"
@dataclass
class Aluno:
nome_aluno: str
matricula: str
turma_id: int
id: int | None = None
def __str__(self) -> str:
return f"{self.nome_aluno} ({self.matricula})"
@dataclass
class Acompanhamento:
aluno_id: int
data_registro: str
aulas_dadas: int
faltas: int
nota_provas_obtida: float
nota_provas_maxima: float
nota_atividades_obtida: float
nota_atividades_maxima: float
atividades_entregues: int
atividades_atrasadas: int
participacao_aula: float
exercicios_propostos: int
exercicios_resolvidos: int
id: int | None = None
CLASSIFICACAO_LABELS = {
"sem_indicios": "Acompanhamento regular",
"atencao": "Sinais de atenção",
"intervencao": "Prioridade de acompanhamento",
}
CLASSIFICACAO_CORES = {
"sem_indicios": "#2E7D32",
"atencao": "#F57C00",
"intervencao": "#C62828",
}