Skip to content

Commit

Permalink
fix: replace removesuffix() function with replace() function (#217)
Browse files Browse the repository at this point in the history
`str.removesuffix()` is only added in 3.9 and thus might not work with older QGIS version.
  • Loading branch information
merydian authored Jan 15, 2024
1 parent 4054f4e commit 2c16bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ RELEASING:
13. Create new release in GitHub with tag version and release title of `vX.X.X`
-->


## Unreleased

### Added
- Add hint to use batch jobs for point layers in tooltip in save vertices button ([#211](https://github.com/GIScience/orstools-qgis-plugin/issues/211))

### Fixed
- TypeError if no SVGPaths are set ([#212](https://github.com/GIScience/orstools-qgis-plugin/issues/212))
- replace removesuffix() function with replace() function in base processing algorithm ([#215](https://github.com/GIScience/orstools-qgis-plugin/pull/215))

## [1.7.0] - 2023-12-22

Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/base_processing_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _get_ors_client_from_provider(
Connects client to provider and returns a client instance for requests to the ors API
"""
name = cls.__name__
name = name.removeprefix("ORS").removesuffix("Algo")
name = name.replace("ORS", "").replace("Algo", "")
agent = f"QGIS_{name}"

providers = configmanager.read_config()["providers"]
Expand Down

0 comments on commit 2c16bcc

Please sign in to comment.