MerginMaps / work-packages

Mergin Maps Work Packages: manage field surveys for multiple teams
MIT License
7 stars 4 forks source link

Use rsplit instead of rstrip to get old_wp_names #21

Closed dracic closed 3 years ago

dracic commented 3 years ago

Resolves #20

wonder-sk commented 3 years ago

Actually using rsplit can also produce incorrect results:

>>> "hello.gpkg.world.gpkg".rsplit('.gpkg')
['hello', '.world', '']

From python 3.9 there is removesuffix() method, but that's still quite new version - I will fix it with filename[:-5] for the time being...

wonder-sk commented 3 years ago

Fixed in df7c4a2