Skip to content

Commit

Permalink
Fix unique GTFS naming condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Altonss committed Dec 15, 2024
1 parent 99f849d commit 23d1ba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions feeds/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -3280,7 +3280,7 @@
{
"name": "reseau-urbain-la-navette-commune-de-gaillac--gtfs-gaillac.zip",
"type": "http",
"url": "https://static.data.gouv.fr/resources/reseau-urbain-la-navette-commune-de-gaillac/20240924-121002/gtfs-gaillac.zip",
"url": "https://static.data.gouv.fr/resources/reseau-urbain-la-navette-commune-de-gaillac/20241205-080814/gtfs-gaillac.zip",
"fix": true,
"license": {
"url": "https://transport.data.gouv.fr/datasets/reseau-urbain-la-navette-commune-de-gaillac"
Expand All @@ -3289,7 +3289,7 @@
{
"name": "reseau-urbain-la-navette-commune-de-gaillac--gtfs-gaillac.zip",
"type": "http",
"url": "https://static.data.gouv.fr/resources/reseau-urbain-la-navette-commune-de-gaillac/20241205-080814/gtfs-gaillac.zip",
"url": "https://static.data.gouv.fr/resources/reseau-urbain-la-navette-commune-de-gaillac/20240924-121002/gtfs-gaillac.zip",
"fix": true,
"license": {
"url": "https://transport.data.gouv.fr/datasets/reseau-urbain-la-navette-commune-de-gaillac"
Expand Down Expand Up @@ -5172,7 +5172,7 @@
}
},
{
"name": "moca-communaute-de-communes-caux-austreberthe--pt-th-offer-moca-gtfs-20240529-816-opendata.zip",
"name": "moca-communaute-de-communes-caux-austreberthe",
"type": "url",
"url": "https://proxy.transport.data.gouv.fr/resource/moca-caux-austreberthe-gtfs-rt",
"license": {
Expand Down
2 changes: 2 additions & 0 deletions src/generate-france.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def cond(r) -> bool:
source = {}
source["name"] = (
dataset["slug"]
if unique_GTFS
else dataset["slug"]
+ "--"
+ matches.get(resource["title"])
)
Expand Down

0 comments on commit 23d1ba3

Please sign in to comment.