Closed daliborpavlovic closed 2 years ago
I think an exact match on the filename is a good idea, but this change is failing on tests that work with multigtfs/tests/fixtures/test1.zip
, such as:
The issue is that the zip file has a folder, so the files are at dv/stops.txt
rather than stops.txt
. This matches with endswith
and not with an exact match. The path needs to be processed first to extract the filename, then do the exact match.
Thanks @jwhitlock , I have fixed the issue.
Thanks @daliborpavlovic!
When searching the feed to import, endswith() is used to search for the file in the zip up to now. It causes problem when there are custom files like routes_stops.txt, confusing stops.txt with the former file with this approach. I suggest to replace the endswith() comparison with an exact match.