Skip to content

Commit

Permalink
Adiciona o tipo_os Eleição (#281)
Browse files Browse the repository at this point in the history
* Altera tipo os de 2024-10-06 para eleição

* atualiza changelog

* Registra flow de viagens

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
vtr363 and mergify[bot] authored Oct 22, 2024
1 parent 03af0b2 commit b41b0e7
Show file tree
Hide file tree
Showing 3 changed files with 8 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-21
DBT: 2024-10-22
"""

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

## [9.0.6] - 2024-10-22

### Corrigido

- Alterado o tipo_os de 2024-10-06 para `Eleição` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/281)

## [9.0.5] - 2024-10-08

### Corrigido
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ WITH
WHEN data = DATE(2024,09,13) THEN "Rock in Rio"
WHEN data BETWEEN DATE(2024,09,14) AND DATE(2024,09,15) THEN "Verão + Rock in Rio"
WHEN data BETWEEN DATE(2024,09,19) AND DATE(2024,09,22) THEN "Rock in Rio"
WHEN data = DATE(2024,10,06) THEN "Eleição"
ELSE "Regular"
END AS tipo_os,
FROM UNNEST(GENERATE_DATE_ARRAY("{{var('DATA_SUBSIDIO_V6_INICIO')}}", "2024-12-31")) AS data),
Expand Down

0 comments on commit b41b0e7

Please sign in to comment.