We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bd93c4 commit 3ab8656Copy full SHA for 3ab8656
1 file changed
functions-python/gbfs_validator/src/gbfs_data_processor.py
@@ -284,9 +284,9 @@ def update_or_create_gbfs_endpoint(
284
features: List[str],
285
) -> Gbfsendpoint:
286
"""Update or create a GBFS endpoint entity."""
287
- formatted_id = (
288
- f"{self.stable_id}_{version}_{endpoint.name}_{endpoint.language or ''}"
289
- )
+ formatted_id = f"{self.stable_id}_{version}_{endpoint.name}"
+ if endpoint.language:
+ formatted_id += f"_{endpoint.language}"
290
gbfs_endpoint_orm = (
291
db_session.query(Gbfsendpoint)
292
.filter(Gbfsendpoint.id == formatted_id)
0 commit comments