Skip to content

Commit

Permalink
fix: replace removesuffix() function with replace() function
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Jan 11, 2024
1 parent b68be1e commit 53acc04
Showing 1 changed file with 1 addition and 1 deletion.
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 53acc04

Please sign in to comment.