-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep downloading updated countries file #10
Comments
hi! I gonna go into it and will hopefully correct it accordingly |
I am going to build map with China since I just got a Bolt V2. However I found I actually don't need all 'border countries', if there is a parameter to ignore them. And I found another thing that 'Hong Kong' and 'Macao' are as same as China's map data, the tool downloaded 3 exactly same size file with diff filenames. |
Hi, i released a new version: https://github.com/treee111/wahooMapsCreator/releases Release v0.4.0 changes the download of maps from the selected country and 'border countries'. Not maps of all countries and border-countries are downloaded if FORCE_DOWNLOAD = False.
I would be happy if you could try this release and check if the first issue will be resolved! Concerning the 'border countries': I also will have a look into 3x the same maps. I create two separate issues for these two things. |
I did tried and built map successfully, copied to Bolt V2, also works very well so far. |
` # ToDo: comment
if len(map_files) == 1 and os.path.isfile(map_files[0]):
file_creation_timestamp = os.path.getctime(map_files[0])
if file_creation_timestamp < to_old_timestamp or self.force_download == 1:
print(f'+ mapfile for {country}: deleted')
os.remove(map_files[0])
need_to_download = True
else:
border_countries[country] = {'map_file':map_files[0]}
print(f'+ mapfile for {country}: up-to-date')
I need to download China map with many border countries, so len(border_countries[country]) != 1 will always be true and it will always download all map files over times.
The text was updated successfully, but these errors were encountered: