Skip to content

Commit

Permalink
Update povoar_turma.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tacianosilva authored Jul 17, 2024
1 parent 64542d2 commit 7325013
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dados/povoar_turma.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def carregar_turmas():
carregar_turmas_semestre('csv/turmas-2022.1.csv')
carregar_turmas_semestre('csv/turmas-2023.1.csv')
carregar_turmas_semestre('csv/turmas-2023.2.csv')
carregar_turmas_semestre('csv/turmas-2024.1.csv')


def carregar_turmas_semestre(turmas_csv):
Expand Down Expand Up @@ -103,7 +104,7 @@ def carregar_turma(row):
if Turma.objects.filter(id_turma=id_turma).exists():
turma = Turma.objects.get(id_turma=id_turma)
adicionar_vinculo_docente(turma, docente, ch_dedicada_periodo, horarios_list)
print('+', end="")
print('.', end="")
else:
print("Adicionando Turma " + id_turma + " - " + codigo_turma + "- " + cc.codigo + " - " +
cc.nome + " - " + descricao_horario)
Expand All @@ -121,7 +122,7 @@ def carregar_turma(row):
turma.save()
turma.horarios.set(horarios_list)
adicionar_vinculo_docente(turma, docente, ch_dedicada_periodo, horarios_list)
print('.', end="")
print('+', end="")


def carregar_docente(siape, matricula_docente_externo, componente):
Expand Down

0 comments on commit 7325013

Please sign in to comment.