Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migra flow para captura manual do gtfs #105

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
61 changes: 61 additions & 0 deletions pipelines/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,67 @@ class constants(Enum): # pylint: disable=c0103
},
}

GTFS_TABLE_CAPTURE_PARAMS_ANTIGO = [
{
"table_id": "shapes",
"primary_key": ["shape_id", "shape_pt_sequence"],
},
{
"table_id": "agency",
"primary_key": ["agency_id"],
},
{
"table_id": "calendar_dates",
"primary_key": ["service_id", "date"],
},
{
"table_id": "calendar",
"primary_key": ["service_id"],
},
{
"table_id": "feed_info",
"primary_key": ["feed_publisher_name"],
},
{
"table_id": "frequencies",
"primary_key": ["trip_id", "start_time"],
},
{
"table_id": "routes",
"primary_key": ["route_id"],
},
{
"table_id": "stops",
"primary_key": ["stop_id"],
},
{
"table_id": "trips",
"primary_key": ["trip_id"],
},
{
"table_id": "fare_attributes",
"primary_key": ["fare_id"],
},
{
"table_id": "fare_rules",
"primary_key": [],
},
{
"table_id": "ordem_servico",
"primary_key": ["servico", "tipo_os"],
"extract_params": {"filename": "ordem_servico"},
},
{
"table_id": "ordem_servico_trajeto_alternativo",
"primary_key": ["servico", "tipo_os", "evento"],
"extract_params": {"filename": "ordem_servico_trajeto_alternativo"},
},
{
"table_id": "stop_times",
"primary_key": ["trip_id", "stop_sequence"],
},
]

# # SUBSÍDIO RECURSOS VIAGENS INDIVIDUAIS
# SUBSIDIO_SPPO_RECURSOS_DATASET_ID = "migracao_br_rj_riodejaneiro_recurso"
# SUBSIDIO_SPPO_RECURSO_API_BASE_URL = "https://api.movidesk.com/public/v1/tickets?"
Expand Down
Loading
Loading