Skip to content

Commit

Permalink
[HOTFIX] Corrige GTFS Domingo CNU (#245)
Browse files Browse the repository at this point in the history
* adiciona != "CNU" na ordem_servico_tratada

* registra flow
  • Loading branch information
akaBotelho authored Sep 25, 2024
1 parent 14326ff commit a4f8152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipelines/migration/br_rj_riodejaneiro_gtfs/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Flows for gtfs
DBT 2024-09-13
DBT 2024-09-24
"""

from prefect import Parameter, case, task
Expand Down
4 changes: 2 additions & 2 deletions queries/models/gtfs/ordem_servico_trips_shapes_gtfs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ WITH
t.feed_version = o.feed_version
AND o.servico = t.trip_short_name
AND
(o.tipo_dia = t.tipo_dia
OR (o.tipo_dia = "Ponto Facultativo" AND t.tipo_dia = "Dia Útil")
((o.tipo_dia = t.tipo_dia AND o.tipo_os != "CNU")
OR (o.tipo_dia = "Ponto Facultativo" AND t.tipo_dia = "Dia Útil" AND o.tipo_os != "CNU")
OR (o.feed_start_date = "2024-08-16" AND o.tipo_os = "CNU" AND o.tipo_dia = "Domingo" AND t.tipo_dia = "Sabado")) -- Domingo CNU
AND
((o.sentido IN ("I", "C") AND t.direction_id = "0")
Expand Down

0 comments on commit a4f8152

Please sign in to comment.