Skip to content

Commit 87a7896

Browse files
authored
feat: added free_bike_status to list of features. (#1196)
1 parent ac297b8 commit 87a7896

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

functions-python/gbfs_validator/src/gbfs_data_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"vehicle_types",
3737
"station_status",
3838
"vehicle_status",
39+
"free_bike_status",
3940
"system_regions",
4041
"system_pricing_plans",
4142
"system_alerts",
@@ -308,8 +309,7 @@ def update_or_create_gbfs_endpoint(
308309
gbfs_endpoint_orm = Gbfsendpoint(
309310
id=formatted_id, name=endpoint.name, language=endpoint.language
310311
)
311-
312-
gbfs_endpoint_orm.url = endpoint.url # Update the URL
312+
gbfs_endpoint_orm.url = endpoint.url
313313
gbfs_endpoint_orm.is_feature = (
314314
endpoint.name in features and endpoint.name in FEATURE_ENDPOINTS
315315
)

liquibase/changelog.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@
5959
<include file="changes/feat_1125.sql" relativeToChangelogFile="true"/>
6060
<!-- Materialized view updated. Used Feed.created_at field as timestamp. -->
6161
<include file="changes/feat_1082.sql" relativeToChangelogFile="true"/>
62+
<include file="changes/feat_1181.sql" relativeToChangelogFile="true"/>
6263
</databaseChangeLog>

liquibase/changes/feat_1181.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
UPDATE gbfsendpoint
2+
SET
3+
is_feature = TRUE
4+
WHERE
5+
name = 'free_bike_status';

0 commit comments

Comments
 (0)