Skip to content

Commit

Permalink
cria exceção para eleição de 2024-10-06 viagem_transacao de 06h as 20h (
Browse files Browse the repository at this point in the history
#286)

* cria esxceção para viagem sem transação

* registra flow de apuração

* atualiza changelog
  • Loading branch information
vtr363 authored Oct 24, 2024
1 parent 7d6b474 commit 3107c42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/migration/projeto_subsidio_sppo/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Flows for projeto_subsidio_sppo
DBT: 2024-10-22
DBT: 2024-10-24
"""

from prefect import Parameter, case, task
Expand Down
4 changes: 4 additions & 0 deletions queries/models/subsidio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog - subsidio

## [1.0.2] - 2024-10-24

- cria exceção na verificação d viagens sem transacao para a eleição de 2024-10-06 em viagem_transacao de 06h as 20h (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/286)

## [1.0.1] - 2024-09-12

### Corrigido
Expand Down
1 change: 1 addition & 0 deletions queries/models/subsidio/viagem_transacao.sql
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ SELECT
AND (COALESCE(tr.quantidade_transacao_riocard, 0) = 0
OR COALESCE(eev.indicador_estado_equipamento_aberto, FALSE) = FALSE)
AND ve.status IN ("Licenciado com ar e não autuado", "Licenciado sem ar e não autuado")
AND v.datetime_partida NOT BETWEEN "2024-10-06 06:00:00" AND "2024-10-06 20:00:00" -- Eleição (2024-10-06)
THEN "Sem transação"
ELSE ve.status
END AS tipo_viagem,
Expand Down

0 comments on commit 3107c42

Please sign in to comment.