Skip to content

Commit

Permalink
Merge pull request #32 from prefeitura-rio/staging/fix_taxirio_races_…
Browse files Browse the repository at this point in the history
…pipeline

fix(taxirio/races): fix schema
  • Loading branch information
phrmendes authored Oct 11, 2024
2 parents 2a9fe44 + cdd57c3 commit 6559ab9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pipelines/taxirio/races/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def generate_pipeline(start: datetime, end: datetime) -> list[dict[str, Any]]:
"routeOriginDestination_duration_value": {"$toString": "$routeOriginDestination.duration.value"},
},
},
{
"$unset": "_id",
},
]


Expand All @@ -57,8 +60,7 @@ def generate_pipeline(start: datetime, end: datetime) -> list[dict[str, Any]]:
"passenger": string(),
"city": string(),
"broadcastQtd": string(),
"rating": string(),
"tolls": string(),
"rating_score": string(),
"isSuspect": string(),
"isInvalid": string(),
"status": string(),
Expand All @@ -71,6 +73,6 @@ def generate_pipeline(start: datetime, end: datetime) -> list[dict[str, Any]]:
"billing_associatedTaximeter": string(),
"billing_associatedMinimumFare": string(),
"billing_associatedDiscount": string(),
"billing_associatedCorporative": string(),
"billing_associatedCorporative_externalPropertyPassenger": string(),
},
)

0 comments on commit 6559ab9

Please sign in to comment.