Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert authored Jan 7, 2025
2 parents d78bd5a + 60d4afb commit 763b62a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions feeds/ca-on.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@
"name": "Middlesex-County-Connect",
"type": "transitland-atlas",
"transitland-atlas-id": "f-middlesex~county~on~ca",
"skip": true,
"skip-reason": "No file or invalid data"
"url-override": "https://drive.google.com/uc?id=1pCs6qk9nHvP7ff18AJZas2dQVB3kF28l&export=download"
},
{
"name": "Mid-Pen-Transit",
Expand Down
3 changes: 2 additions & 1 deletion feeds/us-mo.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
{
"name": "KCATA",
"type": "transitland-atlas",
"transitland-atlas-id": "f-9yu-kcata"
"transitland-atlas-id": "f-9yu-kcata",
"fix": true
},
{
"name": "KCATA",
Expand Down
2 changes: 1 addition & 1 deletion src/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def fetch_source(self, dest_path: Path, source: Source) -> bool:
server_headers["last-modified"])

content: bytes
if "#" in download_url:
if "#" in download_url and download_url.partition("#")[2]:
# if URL contains #, treat the path after # as an embedded ZIP file
sub_path = download_url.partition("#")[2]
zipfile = ZipFile(io.BytesIO(response.content))
Expand Down

0 comments on commit 763b62a

Please sign in to comment.