Skip to content

Commit

Permalink
Colocando melhorias relatadas no PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ulyssesBML committed Jan 20, 2020
1 parent 43facaf commit 63501b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sapl/painel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def get_materia_aberta(pk):


def get_presentes(pk, response, materia):
if type(materia) == OrdemDia:
if isinstance(materia, OrdemDia):
presentes = PresencaOrdemDia.objects.filter(
sessao_plenaria_id=pk)
else:
Expand All @@ -369,7 +369,7 @@ def get_presentes(pk, response, materia):
num_presentes = len(presentes)
data_sessao = sessao.data_inicio

if type(materia) is ExpedienteMateria:
if isinstance(materia, ExpedienteMateria):
oradores = OradorExpediente.objects.filter(
sessao_plenaria_id=pk).order_by('numero_ordem')
else:
Expand Down

0 comments on commit 63501b5

Please sign in to comment.