Skip to content

Commit

Permalink
Remove filtering of participante by unidade_lotacao
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Jul 25, 2024
1 parent 4abf1d9 commit 2be141f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ async def create_plano_trabalho(
select(models.Participante)
.filter_by(origem_unidade=plano_trabalho.origem_unidade)
.filter_by(cod_unidade_autorizadora=plano_trabalho.cod_unidade_autorizadora)
.filter_by(cod_unidade_lotacao=plano_trabalho.cod_unidade_executora)
.filter_by(matricula_siape=plano_trabalho.matricula_siape)
)
result = await session.execute(query)
Expand All @@ -157,7 +156,6 @@ async def create_plano_trabalho(
"Plano de Trabalho faz referência a participante inexistente. "
f"origem_unidade: {plano_trabalho.origem_unidade} "
f"cod_unidade_autorizadora: {plano_trabalho.cod_unidade_autorizadora} "
f"cod_unidade_lotacao: {plano_trabalho.cod_unidade_executora} "
f"matricula_siape: {plano_trabalho.matricula_siape}"
)
db_plano_trabalho.participante = db_participante
Expand Down

0 comments on commit 2be141f

Please sign in to comment.